/* Truline Takeoff — one-page marketing site
   Self-contained. No external requests, no trackers. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #071325;
  --navy-900: #0b1f3a;
  --navy-800: #123050;
  --navy-700: #1a3d63;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --paper: #f4f0e6;
  --paper-line: #d9d2c3;
  --amber: #c49212;
  --amber-bright: #e8b931;
  --white: #ffffff;
  --header-h: 5.35rem;
  --wrap: 160rem;
  --gap: 1.5rem;
  --radius: 0.75rem;
  --shadow-sheet: 0 18px 50px rgba(7, 19, 37, 0.28), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--blue-600);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 22px;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.65rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--blue-600);
  text-decoration-thickness: 2px;
}

/* Links on dark backgrounds: light blue, underlined; gold on hover/focus */
.hero a:not(.btn),
.site-footer a,
.checklist a {
  color: var(--blue-200);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero a:not(.btn):hover,
.hero a:not(.btn):focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.checklist a:hover,
.checklist a:focus-visible {
  color: var(--amber-bright);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Mobile menu button is shown only in the small-screen query. */
.nav-toggle {
  display: none;
}

/* Keep in-page anchors from sitting under the sticky header. */
.section,
.hero-tour,
#tour {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

/* ----- Header ----- */


.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(7, 19, 37, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
  cursor: pointer;
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand__name {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.brand__name span {
  font-weight: 500;
  opacity: 0.82;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--amber-bright);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.nav .btn,
.nav .btn:hover,
.nav .btn:focus-visible {
  color: var(--white);
  text-decoration: none;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.15rem 1.9rem;
  border-radius: 0.45rem;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-700);
  color: var(--white);
}

.btn--on-dark {
  background: var(--blue-600);
  color: var(--white);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background: var(--blue-700);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-200);
  border-color: rgba(191, 219, 254, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--amber-bright);
  border-color: var(--amber-bright);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(14, 80, 140, 0.22), transparent 50%),
    var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: 4.25rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "copy board"
    "tour tour";
  column-gap: 4rem;
  row-gap: 3.25rem;
  align-items: center;
}

.hero__copy {
  grid-area: copy;
}

.plan-board {
  grid-area: board;
}

.eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 0 0 0.85rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.6rem, 7vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 400;
  color: var(--slate-200);
  line-height: 1.35;
  max-width: 36ch;
}

.hero__lede {
  margin: 0 0 1.75rem;
  color: var(--slate-200);
  max-width: 54ch;
  font-size: 1.7rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.hero__note {
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  color: var(--slate-300);
}

/* ----- Plan illustration (CSS board + SVG) ----- */

.plan-board {
  position: relative;
  isolation: isolate;
}

.plan-board__sheet {
  position: relative;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.plan-board__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 160, 120, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 120, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}

.plan-board__sheet svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.plan-board__crops {
  position: absolute;
  inset: -8px;
  pointer-events: none;
}

.plan-board__crops span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--amber-bright);
  border-style: solid;
  border-width: 0;
}

.plan-board__crops span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.plan-board__crops span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.plan-board__crops span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.plan-board__crops span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ----- Hero tour video (24-second ad) ----- */

.hero-tour-wrap {
  position: relative;
  grid-area: tour;
  width: 100%;
}

.hero-tour {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 6rem;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
}

.hero-tour__frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #071325;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.hero-tour__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071325;
  vertical-align: middle;
}

.hero-tour.is-playing .hero-tour__frame {
  cursor: default;
}

.hero-tour__crops {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 3;
}

.hero-tour__crops span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--amber-bright);
  border-style: solid;
  border-width: 0;
}

.hero-tour__crops span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hero-tour__crops span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hero-tour__crops span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hero-tour__crops span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hero-tour__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18%;
  gap: 0.7rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  font-family: inherit;
  transition: opacity 0.28s ease;
}

.hero-tour.is-playing .hero-tour__play {
  opacity: 0;
  pointer-events: none;
}

.hero-tour__play-icon {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  background: var(--amber-bright);
  color: #071325;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-tour__play-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.22rem;
}

.hero-tour__play:hover .hero-tour__play-icon,
.hero-tour__play:focus-visible .hero-tour__play-icon {
  transform: scale(1.08);
  background: #f3cd55;
}

.hero-tour__play:focus-visible {
  outline: none;
}

.hero-tour__play:focus-visible .hero-tour__play-icon {
  outline: 3px solid var(--blue-500, #3b82f6);
  outline-offset: 4px;
}

.hero-tour__play-label,
.hero-tour__play-time {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero-tour__play-label {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-tour__play-time {
  margin-top: -0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero-tour__caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-200, #e2e8f0);
}

/* ----- Shared section chrome ----- */

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--white);
  border-block: 1px solid var(--slate-200);
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section__index {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
  border-left: 3px solid var(--blue-600);
  padding-left: 0.7rem;
  line-height: 1.3;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  grid-column: 1 / -1;
}

.section__lead {
  margin: -1.25rem 0 2.5rem;
  color: var(--slate-700);
  max-width: 90ch;
  font-size: 1.8rem;
}

/* ----- Features ----- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem 2.15rem 2.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.section--alt .feature {
  background: var(--slate-50);
  border-color: var(--slate-200);
}

.feature__icon {
  width: 3.1rem;
  height: 3.1rem;
  color: var(--blue-700);
  margin-bottom: 0.25rem;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.55rem;
  line-height: 1.5;
}

/* ----- Local AI helper ----- */

.ai-helper {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
  margin-top: 2.25rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 2rem 2.15rem 2.15rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: start;
}

.ai-helper__icon {
  width: 3.1rem;
  height: 3.1rem;
  color: var(--blue-700);
  margin-top: 0.15rem;
}

.ai-helper__icon svg {
  width: 100%;
  height: 100%;
}

.ai-helper .section__index {
  margin: 0 0 0.55rem;
}

.ai-helper h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ai-helper p {
  margin: 0 0 0.8rem;
  color: var(--slate-700);
  font-size: 1.55rem;
  line-height: 1.5;
  max-width: 68ch;
}

.ai-helper p:last-child {
  margin-bottom: 0;
}

/* ----- How it works ----- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 0 0.25rem 0 0;
}

.step + .step::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 1.5rem;
  width: 1.5rem;
  border-top: 1px dashed var(--slate-300);
}

.step__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--amber-bright);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step h3 {
  margin: 0 0 0.7rem;
  font-size: 2rem;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.65rem;
}

/* ----- Built for contractors ----- */

.for-whom {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 4rem;
  align-items: start;
}

.for-whom .section__index,
.for-whom h2 {
  grid-column: 1 / -1;
}

.for-whom h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.for-whom p {
  margin: 0;
  color: var(--slate-700);
  max-width: none;
  font-size: 1.8rem;
}

.for-whom .section__index {
  display: inline-block;
  margin-bottom: 0;
}

/* ----- Screenshots (one at a time) ----- */
/* The whole screenshots block (heading, photo, description, thumbs)
   fits in one screen under the sticky header, so changing pictures
   does not move the page. */

#screenshots.section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1.6rem;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}

#screenshots .wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - var(--header-h) - 3.1rem);
  height: calc(100dvh - var(--header-h) - 3.1rem);
}

#screenshots .section__head {
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

#screenshots .section__head h2 {
  line-height: 1.1;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

#screenshots .section__lead {
  margin: 0 0 0.7rem;
  flex-shrink: 0;
  font-size: 1.45rem;
}

.gallery {
  max-width: none;
  margin-inline: 0;
  overflow-anchor: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery__stage {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.gallery__media {
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 12rem;
  min-width: 0;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(7, 19, 37, 0.18);
  cursor: pointer;
}

.gallery__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery__slide[hidden] {
  display: none;
}

.gallery__slide:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--navy-900);
  display: block;
}

.gallery__arrow {
  position: static;
  z-index: 2;
  align-self: center;
  justify-self: center;
  min-width: 8.5rem;
  min-height: 8.5rem;
  height: auto;
  padding: 1.1rem 0.9rem;
  border: 0;
  border-radius: 1rem;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(7, 19, 37, 0.28);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.gallery__arrow svg {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  background: var(--blue-600);
  color: var(--white);
}

.gallery__arrow:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.gallery__caption {
  margin: 0.7rem 0 0;
  font-size: 1.6rem;
  color: var(--slate-700);
  line-height: 1.45;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
  min-height: 4.65rem;
  flex-shrink: 0;
}

.gallery__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.gallery__count {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-700);
  font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 0.5rem;
  scrollbar-width: thin;
}

.gallery__thumb {
  flex: 0 0 auto;
  width: 6.75rem;
  padding: 0;
  border: 3px solid var(--slate-300);
  border-radius: 0.45rem;
  background: var(--slate-200);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.gallery__thumb img {
  width: 100%;
  height: 4.15rem;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}

.gallery__thumb:hover {
  border-color: var(--blue-500);
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--amber-bright);
}

.gallery__thumb:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (max-width: 900px) {
  .gallery__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media media"
      "prev next";
    gap: 0.85rem;
  }

  .gallery__media {
    grid-area: media;
    width: 100%;
    min-height: 0;
  }

  .gallery__arrow {
    min-width: 0;
    min-height: 4.25rem;
    width: 100%;
    flex-direction: row;
    padding: 0.85rem 1rem;
    font-size: 1.45rem;
  }

  .gallery__arrow--prev { grid-area: prev; }
  .gallery__arrow--next { grid-area: next; }

  .gallery__arrow svg {
    width: 2rem;
    height: 2rem;
  }

  .gallery__caption {
    font-size: 1.4rem;
    text-align: left;
    min-height: 6.3rem;
  }

  .gallery__thumb {
    width: 6.25rem;
  }

  .gallery__thumb img {
    height: 3.85rem;
  }
}

/* ----- Pricing (one compact band) ----- */

.price-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.price-band__option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 8rem;
}

.price-band__label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-band__amount {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy-900);
}

.price-band__amount span {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--slate-600);
  margin-left: 0.15rem;
}

.price-band__join {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: lowercase;
}

.price-band__badge {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--amber-bright);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.price-band__btn {
  margin-left: auto;
}

.plans__note {
  margin: 1.35rem 0 0;
  color: var(--slate-700);
  font-size: 1.2rem;
  max-width: 54rem;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 3rem 0 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer .brand__name {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  display: block;
}

.site-footer p {
  margin: 0;
  font-size: 1.125rem;
}

/* ----- Legal / disclaimer page ----- */

.legal__wrap {
  max-width: 52rem;
}

.legal__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal__updated {
  margin: 0 0 2rem;
  color: var(--slate-600);
  font-size: 1.0625rem;
}

.legal__callout {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--amber-bright);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.25rem;
}

.legal__callout p {
  margin: 0;
  color: var(--ink);
}

.legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.65rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--navy-900);
}

.legal p,
.legal li {
  color: var(--slate-700);
  max-width: 62ch;
  font-size: 1.45rem;
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal li::marker {
  color: var(--blue-600);
}

.legal__back {
  margin-top: 2.75rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

/* ----- Responsive ----- */

@media (max-width: 1180px) {
  .hero__inner {
    column-gap: 2.75rem;
  }
}

@media (max-width: 1400px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "board"
      "tour";
    gap: 2.25rem;
  }

  .hero__inner > *,
  .hero__copy,
  .plan-board,
  .hero-tour,
  .hero-tour-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .for-whom {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .price-band {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .price-band__option {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--slate-200);
  }

  .price-band__join {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .price-band__btn {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .step + .step::before {
    display: none;
  }

  .hero__tagline {
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 3.7rem;
  }

  html {
    font-size: 16px;
  }

  body {
    font-size: 1.25rem;
    overflow-x: hidden;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .brand__mark {
    width: 2rem;
    height: 2rem;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  #features.section {
    padding: 2rem 0 2.15rem;
  }

  #features .section__head {
    margin-bottom: 0.85rem;
    gap: 0.4rem 0.85rem;
  }

  #features .section__head h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  #features .section__lead {
    margin: -0.15rem 0 1.1rem;
    font-size: 1.05rem;
  }

  .feature {
    padding: 0.7rem 0.75rem 0.8rem;
    gap: 0.28rem;
    min-width: 0;
  }

  .feature__icon {
    width: 1.7rem;
    height: 1.7rem;
    margin-bottom: 0;
  }

  .section {
    padding: 2.25rem 0;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--wrap));
  }

  .section__lead,
  .for-whom p {
    font-size: 1.2rem;
  }

  .feature h3 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .feature p {
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .step p {
    font-size: 1.15rem;
  }

  .ai-helper {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.35rem 1.2rem 1.45rem;
    margin-top: 1.5rem;
  }

  .ai-helper h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .ai-helper p {
    font-size: 1.15rem;
  }

  .price-band {
    padding: 1.25rem 1.1rem;
  }

  .price-band__amount {
    font-size: 2rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .price-band__option {
    align-items: center;
  }

  .price-band__label {
    min-width: 0;
    flex: 1 1 auto;
  }

  /* ----- Hamburger + dropdown nav ----- */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.4rem;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 50;
  }

  .nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
  }

  .site-header {
    /* backdrop-filter on the sticky bar makes the dropdown look see-through. */
    backdrop-filter: none;
    background: #071325;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 60;
    background: #071325;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.15rem;
    font-size: 1.1rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav .btn {
    display: flex;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.85rem 1.15rem;
    font-size: 1.05rem;
  }

  /* ----- Hero: tour sits under the headline; plan-board yields to the video ----- */
  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "tour"
      "pitch";
    gap: 1.1rem;
  }

  .hero__copy {
    display: contents;
  }

  .hero__intro {
    grid-area: intro;
  }

  .hero__pitch {
    grid-area: pitch;
  }

  .plan-board {
    display: none;
  }

  .hero__actions .btn--ghost {
    display: none;
  }

  .hero-tour__play {
    justify-content: center;
    padding-top: 0;
  }

  .hero-tour__play-icon {
    width: 4rem;
    height: 4rem;
  }

  .hero-tour__play-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .hero-tour__caption {
    font-size: 1.05rem;
    margin-top: 0.65rem;
  }

  .hero__inner > *,
  .hero__copy,
  .hero__intro,
  .hero__pitch,
  .plan-board,
  .hero-tour,
  .hero-tour-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .hero__tagline {
    font-size: 1.25rem;
    max-width: none;
  }

  .hero__lede {
    font-size: 1.1rem;
  }

  .hero__note {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 0.9rem 1.15rem;
    font-size: 1.1rem;
  }

  .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .plan-board__crops,
  .hero-tour__crops {
    inset: 0;
  }

  /* Keep gold crop marks on the 16:9 frame, not around the caption. */
  .hero-tour__crops {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* ----- Screenshots: let the gallery flow instead of locking to 100dvh ----- */
  #screenshots.section {
    padding: 2.5rem 0 3rem;
  }

  #screenshots .wrap {
    height: auto;
  }

  #screenshots .section__lead {
    display: block;
    font-size: 1.15rem;
  }

  #screenshots .section__head h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .gallery__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .gallery__slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .gallery__arrow {
    min-height: 2.85rem;
    padding: 0.7rem 0.8rem;
    font-size: 1.05rem;
  }

  .gallery__arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .gallery__caption {
    min-height: 0;
    font-size: 1.1rem;
    text-align: left;
  }

  .gallery__thumbs {
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.65rem;
  }

  /* Footer / inline links: easier to tap */
  .site-footer a,
  .plans__note a,
  .hero__note a {
    display: inline-block;
    padding: 0.35rem 0;
    min-height: 2.75rem;
    line-height: 1.5;
  }

  .legal p,
  .legal li {
    font-size: 1.15rem;
  }

  .legal h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
}


@media (max-width: 900px) and (min-width: 721px) {
  #screenshots.section {
    padding: 0.85rem 0 1rem;
  }

  #screenshots .wrap {
    height: calc(100vh - var(--header-h) - 1.85rem);
    height: calc(100dvh - var(--header-h) - 1.85rem);
  }

  #screenshots .section__head {
    margin-bottom: 0.35rem;
  }

  #screenshots .section__head h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }

  /* The photo caption is the description; drop the long lead so everything fits. */
  #screenshots .section__lead {
    display: none;
  }

  .gallery__stage {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .gallery__media {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }

  .gallery__caption {
    font-size: 1.12rem;
    line-height: 1.35;
    min-height: 0;
    margin-top: 0.4rem;
  }

  .gallery__bar {
    margin-top: 0.35rem;
    gap: 0.3rem;
  }

  .gallery__arrow {
    align-self: stretch;
  }
}

@media (max-height: 850px) and (min-width: 901px) {
  #screenshots .section__lead {
    display: none;
  }

  #screenshots .section__head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .gallery__caption {
    min-height: 0;
    font-size: 1.3rem;
    margin-top: 0.4rem;
  }

  .gallery__bar {
    margin-top: 0.35rem;
    gap: 0.35rem;
  }

  .gallery__thumb {
    width: 5.5rem;
  }

  .gallery__thumb img {
    height: 3.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}


/* Phone gallery/layout overrides must follow the 900px rules so they win. */
@media (max-width: 720px) {
  #screenshots.section {
    padding: 2.5rem 0 3rem;
  }

  #screenshots .wrap {
    height: auto;
  }

  #screenshots .section__lead {
    display: block;
    font-size: 1.15rem;
  }

  .gallery__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .gallery__slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .gallery__thumbs {
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
}


/* ----- Post-click download helper ----- */

.download-notice {
  position: fixed;
  z-index: 80;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(26.5rem, calc(100vw - 2rem));
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(7, 19, 37, 0.48);
  padding: 1.1rem 1.2rem 1.15rem;
}

.download-notice__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--slate-300);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.download-notice__close:hover,
.download-notice__close:focus-visible {
  color: var(--white);
  background: var(--navy-800);
}

.download-notice__close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.download-notice__title {
  margin: 0 2.2rem 0.7rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--white);
}

.download-notice__steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate-300);
  font-size: 0.98rem;
  line-height: 1.45;
}

.download-notice__steps li + li {
  margin-top: 0.35rem;
}

@media (max-width: 40rem) {
  .download-notice {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}
