/* Custom overrides – nav, z-index, font-weight, lightbox, burger, footer, HOME GRID. */

/* Site theme – follows OS light/dark */
:root {
  --theme-bg: #fff;
  --theme-text: #1a1b1f;
  --theme-text-muted: #444;
  --theme-text-secondary: #333;
  --theme-border: #e0e0e0;
  --theme-card-bg: transparent;
  --theme-cta-bg: #000;
  --theme-cta-text: #fff;
  --theme-cta-hover-bg: #333;
  --theme-hero-icon-bg: #1a1a1a;
  --theme-pill-media-bg: #b0b0b0;
  --theme-nav-bg: #fff;
  --theme-nav-text: #1a1b1f;
  --theme-work-card-bg: #f4f4f4;
  --theme-work-hover-overlay: rgba(0, 165, 146, 0.7);
  --theme-text-pill-desc: #333;
}
@media (prefers-color-scheme: dark) {
  :root {
    --theme-bg: #000;
    --theme-text: #fff;
    --theme-text-muted: #fff;
    --theme-text-secondary: #fff;
    --theme-border: #333;
    --theme-card-bg: transparent;
    --theme-cta-bg: #fff;
    --theme-cta-text: #000;
    --theme-cta-hover-bg: #ccc;
    --theme-hero-icon-bg: #fff;
    --theme-pill-media-bg: #222;
    --theme-nav-bg: #000;
    --theme-nav-text: #fff;
    --theme-work-card-bg: #000000;
    --theme-work-hover-overlay: rgba(0, 165, 146, 0.7);
    --theme-text-pill-desc: #b0b0b0;
  }
}
/* Forced theme (overrides OS) */
html.theme-light {
  --theme-bg: #fff;
  --theme-text: #1a1b1f;
  --theme-text-muted: #444;
  --theme-text-secondary: #333;
  --theme-border: #e0e0e0;
  --theme-card-bg: transparent;
  --theme-cta-bg: #000;
  --theme-cta-text: #fff;
  --theme-cta-hover-bg: #333;
  --theme-hero-icon-bg: #1a1a1a;
  --theme-pill-media-bg: #b0b0b0;
  --theme-nav-bg: #fff;
  --theme-nav-text: #1a1b1f;
  --theme-work-card-bg: #f4f4f4;
  --theme-work-hover-overlay: rgba(0, 165, 146, 0.7);
  --theme-text-pill-desc: #333;
}
html.theme-dark {
  --theme-bg: #000;
  --theme-text: #fff;
  --theme-text-muted: #fff;
  --theme-text-secondary: #fff;
  --theme-border: #333;
  --theme-card-bg: transparent;
  --theme-cta-bg: #fff;
  --theme-cta-text: #000;
  --theme-cta-hover-bg: #ccc;
  --theme-hero-icon-bg: #fff;
  --theme-pill-media-bg: #222;
  --theme-nav-bg: #000;
  --theme-nav-text: #fff;
  --theme-work-card-bg: #000000;
  --theme-work-hover-overlay: rgba(0, 165, 146, 0.7);
  --theme-text-pill-desc: #b0b0b0;
}
body.body,
body.body .page-div,
body.body .page-div-mid {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}
body.body a:not(.topkit-cta):not(.navigation-item):not(.navigation-item-mobile) {
  color: var(--theme-text);
}
body.body .link-2:hover,
body.body .link-3:hover {
  color: var(--light-sea-green, #00a592) !important;
}
.desktop-nav-div,
.mobile-nav-div {
  background-color: var(--theme-nav-bg);
}
.desktop-nav-div .navigation-item,
.mobile-nav-div .navigation-item-mobile {
  color: var(--theme-nav-text) !important;
}
.mobilemenu {
  background-color: var(--theme-nav-bg);
}
.mobilemenu .navigation-item-mobile {
  color: var(--theme-nav-text) !important;
}
.burgerline {
  background-color: var(--theme-nav-text) !important;
}

/* Theme toggle – same size and states as nav items */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 20px;
  opacity: 0.6;
  color: var(--theme-nav-text);
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
}
.navigation-items .theme-toggle,
.mobilemenu .theme-toggle {
  flex-shrink: 0;
}
.theme-toggle:hover {
  opacity: 1;
  color: var(--light-sea-green, #00a592);
}
.theme-toggle .theme-toggle-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.theme-toggle .theme-toggle-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html.effective-dark .theme-toggle .theme-toggle-icon img {
  filter: brightness(0) invert(1);
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
html.effective-dark .theme-toggle .icon-sun {
  display: block;
}
html.effective-dark .theme-toggle .icon-moon {
  display: none;
}
/* Process/More: dark nav – set tokens so theme toggle and nav items use same vars */
body.page-dark-nav .desktop-nav-div,
body.page-dark-nav .mobile-nav-div,
body.page-dark-nav .mobilemenu {
  --theme-nav-bg: #000;
  --theme-nav-text: #fff;
}
body.page-dark-nav .theme-toggle .theme-toggle-icon img {
  filter: brightness(0) invert(1);
}
/* Keep icon white on hover so it matches effective-dark nav (no filter: none) */

/* Home grid – same as Webflow: 3 cols desktop, single column from 991px down. Same gaps and breakpoints as webflow/tommasorota.webflow.css */
#works-grid.grid-work {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  grid-column-gap: 4vw;
  grid-row-gap: 60px;
  margin: 0 0 80px;
  padding-top: 40px;
}
@media screen and (max-width: 991px) {
  #works-grid.grid-work {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    grid-column-gap: 4vh;
    grid-row-gap: 60px;
    max-width: 100%;
  }
}
@media screen and (max-width: 767px) {
  #works-grid.grid-work {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-column-gap: 2.5vh;
    grid-row-gap: 60px;
    padding-top: 20px;
  }
}
@media screen and (max-width: 479px) {
  #works-grid.grid-work {
    grid-row-gap: 40px;
  }
}

/* Nav font-weight – same as Webflow: 500 for all (selected does NOT change weight) */
.navigation-item,
.desktopnav .navigation-item,
.navigation-item.w--current,
.desktopnav .navigation-item.w--current {
  font-weight: 500 !important;
}
.navigation-item-mobile,
.mobilenav .navigation-item-mobile,
.navigation-item-mobile.w--current,
.mobilenav .navigation-item-mobile.w--current {
  font-weight: 500 !important;
}

/* Desktop: show only desktop nav; mobile: tommasorota at 767px shows mobile nav */
@media screen and (min-width: 768px) {
  .mobile-nav-div {
    display: none;
  }
}

/* Header above content */
.desktop-nav-div {
  z-index: 1000;
  transition: transform 0.3s ease;
}
.desktop-nav-div.header-hidden {
  transform: translateY(-100%);
}
.mobile-nav-div {
  z-index: 1000;
  transition: transform 0.3s ease;
}
.mobile-nav-div.header-hidden {
  transform: translateY(-100%);
}
.page-div,
.page-div-mid {
  z-index: 1;
}

/* Parallax: only .fw-div full-width blocks; promote so transform is visible */
.fw-div > a {
  will-change: transform;
  backface-visibility: hidden;
}

/* Full-width breakout when .fw-div is inside .page-div (e.g. more.html String image) */
.page-div .fw-div {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  min-height: 450px;
}
.page-div .fw-div > a {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.page-div .fw-div .fw-image {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* Work grid cards + eye overlay – theme-aware (no white card/overlay in dark mode) */
body .work-image,
body .work-image.cc-work-2 {
  background-color: var(--theme-work-card-bg) !important;
}
body .work-hover-eye-div {
  background-color: var(--theme-work-hover-overlay) !important;
}
html.effective-dark .work-hover-eye-div:hover {
  background-color: var(--theme-work-hover-overlay) !important;
}
/* Explicit dark: force card and overlay dark (class + media fallback) */
html.effective-dark .work-image,
html.effective-dark .work-image.cc-work-2,
#works-grid .work-image,
#works-grid .work-image.cc-work-2 {
  background-color: var(--theme-work-card-bg) !important;
}
html.effective-dark #works-grid .work-image,
html.effective-dark #works-grid .work-image.cc-work-2,
html.effective-dark .page-div .work-image,
html.effective-dark .page-div .work-image.cc-work-2 {
  background-color: #000000 !important;
}
html.effective-dark .work-image.cc-work-2:hover,
html.effective-dark #works-grid .work-image.cc-work-2:hover {
  background-color: var(--light-sea-green) !important;
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #works-grid .work-image,
  html:not(.theme-light) #works-grid .work-image.cc-work-2 {
    background-color: #000000 !important;
  }
  html:not(.theme-light) #works-grid .work-image.cc-work-2:hover {
    background-color: var(--light-sea-green) !important;
  }
  html:not(.theme-light) .natasha-cover {
    background-color: #000000 !important;
  }
}
/* Natasha-style cards (e.g. Builder.ai): cover div was var(--white), force dark */
html.effective-dark .natasha-cover,
html.effective-dark #works-grid .natasha-cover {
  background-color: #000000 !important;
}
.work-image-hover-div:hover .work-hover-eye-div,
.work-image.cc-work-2:hover .work-hover-eye-div {
  opacity: 1;
}
.work-hover-eye-div .eyeiecon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Topkit grid cover – same size & aspect ratio as other covers (matches .natasha-cover: 83.33% = 6:5) */
.topkit-cover {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 83.33%;
  position: relative;
  overflow: hidden;
  background: #1a5f3a;
}
.topkit-cover-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a5f3a;
  animation: topkit-cover-shift 4s ease-in-out infinite;
}
@keyframes topkit-cover-shift {
  0% { background-color: #1a5f3a; }
  25% { background-color: #e85d1a; }
  50% { background-color: #1a5f3a; }
  75% { background-color: #2d2d2d; }
  100% { background-color: #1a5f3a; }
}

.work-hover-eye-icon {
  display: block;
  width: 3vw;
  min-width: 28px;
  max-width: 48px;
  height: auto;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
@media screen and (max-width: 991px) {
  .work-hover-eye-icon {
    width: 6vw;
    min-width: 32px;
  }
}
@media screen and (max-width: 767px) {
  .work-hover-eye-icon {
    width: 12vw;
    min-width: 40px;
  }
}

/* Lightbox (gallery: arrows + thumbnail strip like Webflow) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
/* Single image: no strip, no arrows – image can use most of viewport */
.lightbox-overlay:not(:has(.lightbox-strip)) {
  padding: 20px;
}
.lightbox-overlay:not(:has(.lightbox-strip)) .lightbox-content {
  max-width: 96vw;
  max-height: 96vh;
}
.lightbox-overlay:not(:has(.lightbox-strip)) .lightbox-content img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Gallery: inset image so arrows + strip stay visible */
.lightbox-overlay:has(.lightbox-strip) {
  padding-left: 56px;
  padding-right: 56px;
  padding-bottom: 14vh;
  padding-top: 20px;
}
.lightbox-overlay:has(.lightbox-strip) .lightbox-content {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100vw - 112px);
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay:has(.lightbox-strip) .lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
.lightbox-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.lightbox-content {
  position: relative;
  z-index: 0;
}
/* Close: top right, close to viewport edge */
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 2.6em;
  height: 2.6em;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-close svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
/* Arrows: on the sides – prev left, next right. Y: centred to image. X: next aligned with close (right: 20px) */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6em;
  height: 2.6em;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.lightbox-prev {
  left: 6px;
}
.lightbox-next {
  right: 6px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Thumbnail strip at bottom */
.lightbox-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1vh 2vw;
  line-height: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lightbox-thumbnail {
  flex-shrink: 0;
  display: inline-block;
  width: 10vh;
  min-width: 48px;
  height: 10vh;
  min-height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lightbox-thumbnail:hover {
  opacity: 0.9;
}
.lightbox-thumbnail-active {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.6);
}
.lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .lightbox-overlay:has(.lightbox-strip) {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 13vh;
  }
  .lightbox-overlay:has(.lightbox-strip) .lightbox-content {
    max-width: calc(100vw - 80px);
    max-height: 72vh;
  }
  .lightbox-overlay:has(.lightbox-strip) .lightbox-content img {
    max-height: 72vh;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 2.2em;
    min-width: 40px;
    height: 2.2em;
    min-height: 40px;
  }
}

/* Mobile menu open */
body.menu-open .mobilemenu {
  display: flex !important;
  justify-content: flex-start;
}
/* Theme toggle in mobile menu – same size and alignment as nav links (WORK, PROCESS, MORE) */
.mobilemenu-theme-wrap {
  flex-shrink: 0;
}
@media screen and (max-width: 991px) {
  .mobilemenu .mobilemenu-theme-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    margin: 10px 20px;
    padding: 0;
    min-height: 0;
  }
  .mobilemenu .mobilemenu-theme-wrap .theme-toggle {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 22px;
    justify-content: center;
    align-items: center;
    min-height: auto;
  }
}
/* Match nav item margins at 767px and below (2vw / 30px) */
@media screen and (max-width: 767px) {
  .mobilemenu .mobilemenu-theme-wrap {
    margin: 10px 2vw;
    padding-left: 30px;
    padding-right: 30px;
  }
}
/* Burger to X – centered so the two lines form a straight X (42px btn, 12px pad, 3px lines) */
.burgerline {
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center center;
}
.burgernmenubutt--open .burgerline:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burgernmenubutt--open .burgerline:nth-child(2) {
  opacity: 0;
}
.burgernmenubutt--open .burgerline:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Footer & email section – themed */
.footer-wrap {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}
.footer-text {
  color: var(--theme-text);
}
.email-section,
.email-section .label-subtitle-center {
  color: var(--theme-text);
}
.email-section .email-link {
  color: var(--theme-text);
  transition: color 0.2s ease;
}
.email-section .email-link:hover {
  color: var(--light-sea-green, #00a592) !important;
}
.footer-links a,
.footer-links a.footer-itemmail,
.footer-links a.footer-item {
  border-color: var(--theme-border);
}
.footer-links .footer-icon {
  filter: brightness(0);
}
html.effective-dark .footer-links .footer-icon {
  filter: brightness(0) invert(1);
}
html.effective-dark .footer-links a:hover .footer-icon {
  filter: brightness(0) invert(0);
}

/* Footer – perfect circles, no icon shift on hover, SVG icons. */
.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.footer-links a,
.footer-links a.footer-itemmail,
.footer-links a.footer-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover,
.footer-links a.footer-itemmail:hover {
  background-color: var(--light-sea-green, #00a592);
  border-color: var(--light-sea-green, #00a592);
}
.footer-links a.footer-item:hover {
  background-color: #0976b4;
  border-color: #0976b4;
}
.footer-links .footer-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
.footer-links a:hover .footer-icon {
  filter: brightness(0) invert(1);
}

/* Bottom nav (navigator) – visible icons using SVG */
.navigator {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.navigator a.pnav-button-prev,
.navigator a.pnav-button-home,
.navigator a.pnav-button-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  color: transparent;
  text-decoration: none;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s ease;
}
.navigator a.pnav-button-prev:hover,
.navigator a.pnav-button-home:hover,
.navigator a.pnav-button-next:hover {
  background-color: var(--light-sea-green, #00a592);
}
.navigator .pnav-icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
  filter: none;
  transition: filter 0.2s ease;
}
.navigator a:hover .pnav-icon {
  filter: brightness(0) invert(1);
}
/* Dark pages (Process, More): white icons so they’re visible */
.body-utility .navigator .pnav-icon {
  filter: brightness(0) invert(1);
}
.body-utility .navigator a:hover .pnav-icon {
  filter: brightness(0) invert(1);
}
/* Dark mode: navigator icons white so they're visible on dark background */
html.effective-dark .navigator .pnav-icon {
  filter: brightness(0) invert(1);
}
html.effective-dark .navigator a:hover .pnav-icon {
  filter: brightness(0) invert(0);
}

/* Process/More: dark nav – nav items and burger use --theme-nav-text from .page-dark-nav */
body.page-dark-nav .desktop-nav-div .navigation-item:hover,
body.page-dark-nav .mobilemenu .navigation-item-mobile:hover {
  color: var(--light-sea-green, #00a592) !important;
}
body.page-dark-nav .burgerline {
  background-color: var(--theme-nav-text) !important;
}

/* Topkit case study / marketing page */
.topkit-hero {
  text-align: center;
  padding: 0.75rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.topkit-hero-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  padding: 0.75rem;
  background: var(--theme-hero-icon-bg);
  border-radius: 16px;
  box-sizing: border-box;
}
.topkit-hero-logo {
  display: block;
  width: 44px;
  height: auto;
  opacity: 0.95;
  filter: brightness(0) invert(1);
}
html.effective-dark .topkit-hero-logo {
  filter: none;
}
.topkit-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}
.topkit-hero .topkit-subhead {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin-bottom: 4.5rem;
  line-height: 1.5;
}
.topkit-subhead-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 0;
}
.topkit-subhead-bit {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.topkit-subhead-bit::after {
  content: "·";
  font-weight: 400;
  opacity: 0.7;
}
.topkit-subhead-bit:last-of-type::after {
  content: "";
}
.topkit-subhead-bit:last-of-type {
  gap: 0;
}
.topkit-subhead-tagline {
  display: block;
  text-align: center;
  margin-top: 1.25em;
}
.topkit-hero .topkit-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--theme-cta-bg);
  color: var(--theme-cta-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}
.topkit-hero .topkit-cta:hover {
  background: var(--theme-cta-hover-bg);
}
.topkit-section {
  padding: 3rem 0;
}
.topkit-hero + .topkit-section {
  padding-top: 9rem;
}
.topkit-section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.topkit-section-row > .topkit-section {
  flex: 1 1 320px;
  padding: 3rem 0;
  min-width: 0;
}
.topkit-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.topkit-section .topkit-intro {
  color: var(--theme-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 640px;
}
.topkit-hero + .topkit-section .topkit-intro {
  max-width: none;
}
.topkit-section > ul {
  padding-left: 1.25em;
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--theme-text-secondary);
}
.topkit-section-intro-center {
  padding-top: 7rem;
}
.topkit-section-intro-center h2,
.topkit-section-intro-center > .topkit-intro {
  text-align: center;
}
.topkit-section-intro-center h2 {
  line-height: 1.2;
}
.topkit-section-intro-center .topkit-testimonials {
  margin-top: 4rem;
}
.topkit-section-intro-center > .topkit-intro {
  margin-left: auto;
  margin-right: auto;
}
.topkit-workflow-points {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.topkit-workflow-point {
  margin-bottom: 1.5rem;
}
.topkit-workflow-point:last-child {
  margin-bottom: 0;
}
.topkit-workflow-point-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: inherit;
  color: inherit;
}
.topkit-workflow-point-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--theme-text-secondary);
}
.topkit-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.topkit-pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  padding: 0;
  border-radius: 12px;
  box-sizing: border-box;
}
/* Card 1, 3, 5… image left (default) */
.topkit-pill .topkit-pill-media { order: 1; }
.topkit-pill .topkit-pill-content { order: 2; }
/* Card 2, 4, 6… image right */
.topkit-pill:nth-child(even) .topkit-pill-media { order: 2; }
.topkit-pill:nth-child(even) .topkit-pill-content { order: 1; }
/* Aspect ratio matches video 1470×956 (~1.54:1) – same for all pills */
.topkit-pill-media {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 65.03%; /* 956/1470 – matches tk1.mp4 and future pill videos */
  overflow: hidden;
  border-radius: 8px;
  background: var(--theme-pill-media-bg);
}
.topkit-pill-media-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--theme-pill-media-bg);
}
/* Video fills pill media; object-fit keeps ratio; autoplay works when muted + playsinline */
.topkit-pill-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.topkit-pill-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.topkit-pill h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}
.topkit-pill p {
  font-size: 1rem;
  color: var(--theme-text-pill-desc);
  line-height: 1.5;
  margin: 0;
}
.topkit-feature-block {
  margin-bottom: 2.5rem;
}
.topkit-feature-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.topkit-feature-block .topkit-feature-intro {
  color: var(--theme-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.topkit-feature-block ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--theme-text-secondary);
}
.topkit-faq-card {
  text-align: center;
}
/* Same title-to-content gap and typography as testimonials (intro-center) */
.topkit-faq .topkit-faq-card h2 {
  line-height: 1.2;
}
.topkit-faq .topkit-faq-card .topkit-faq-row {
  margin-top: 2rem;
}
.topkit-faq-card h2,
.topkit-faq-card .topkit-faq-row,
.topkit-faq-card dl,
.topkit-faq-card dt,
.topkit-faq-card dd,
.topkit-faq-card .topkit-faq-contact {
  text-align: center;
}
.topkit-faq-row {
  display: flex;
  flex-direction: column;
}
.topkit-faq-row dl {
  margin: 0;
}
.topkit-faq .topkit-faq-contact {
  margin: 6rem auto 0;
  margin-bottom: 0;
  padding-bottom: 0;
  color: var(--theme-text-pill-desc);
}
.topkit-faq-contact-line {
  white-space: nowrap;
}
.topkit-faq-contact-line a {
  display: inline !important;
}
.topkit-faq ul,
.topkit-faq dl {
  margin: 0 0 1rem;
}
.topkit-faq .topkit-faq-row dl {
  margin: 0;
}
.topkit-faq dt {
  font-weight: 600;
  margin-top: 1rem;
}
.topkit-faq dd {
  margin: 0.25rem 0 0;
  padding-left: 0;
  color: var(--theme-text-pill-desc);
  line-height: 1.5;
}
.topkit-testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.topkit-testimonial {
  flex: 0 1 260px;
  min-width: 260px;
  max-width: 360px;
  min-height: 180px;
  padding: 1.5rem 1.5rem 0.75rem;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  font-style: italic;
  color: var(--theme-text-secondary);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.topkit-testimonial .topkit-testimonial-author {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--theme-text-pill-desc);
  margin-top: auto;
}
.topkit-pricing {
  text-align: center;
  padding: 7rem 0 2rem;
}
.topkit-pricing-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  padding: 0.5rem;
  background: var(--theme-hero-icon-bg);
  border-radius: 12px;
  box-sizing: border-box;
}
.topkit-pricing-logo {
  display: block;
  width: 32px;
  height: auto;
  opacity: 0.95;
  filter: brightness(0) invert(1);
}
html.effective-dark .topkit-pricing-logo {
  filter: none;
}
.topkit-pricing .topkit-intro {
  margin-left: auto;
  margin-right: auto;
}
.topkit-pricing .topkit-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--theme-cta-bg);
  color: var(--theme-cta-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 1rem;
}
.topkit-placeholder-img {
  width: 100%;
  max-width: 600px;
  height: 320px;
  background: var(--theme-pill-media-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin: 1rem 0;
}
@media (max-width: 767px) {
  .topkit-hero { padding: 2rem 0 2rem; }
  .topkit-section { padding: 2rem 0; }
  .topkit-section-row > .topkit-section { flex: 1 1 100%; }
  .topkit-pill {
    width: 100%;
    grid-template-columns: 1fr;
  }
  /* Stacked: title, subtitle, then media (same order for odd and even pills) */
  .topkit-pill .topkit-pill-content { order: 1; }
  .topkit-pill .topkit-pill-media { order: 2; }
  .topkit-pill:nth-child(even) .topkit-pill-content { order: 1; }
  .topkit-pill:nth-child(even) .topkit-pill-media { order: 2; }
}
