/* ==========================================================================
   TrackLink — Design System
   A product of Civil Digital. Tokens are taken VERBATIM from the real
   TrackLink product — app/src/.../ui/theme/Color.kt (Compose) and
   web/src/theme.css (React Hub dashboard, confirmed byte-identical to the
   CSS served live at https://tracklink-a9030.web.app). Do not "improve" or
   approximate these — if a token doesn't exist in the product, don't invent
   a new brand colour, reuse the closest existing token instead.

   Structure deliberately mirrors the real app/web Hub's own design
   language, NOT the Dispatch/BoatLog navy-hero template: TrackLink is
   light-first with no dark scheme (Theme.kt: "there is intentionally no
   dark scheme; the brand is the light blue/white look with orange CTAs").
   The ONE dark accent anywhere in the real product is the footer band
   (web theme.css: "the light theme's single dark accent, coordinated with
   the marketing site") — so this site uses light sections throughout and
   reserves navy for the footer only, exactly like the app does.
   ========================================================================== */

/* ---- Design tokens (verbatim from Color.kt / theme.css) ----------------- */
:root {
  /* Brand — exact hex from ui/theme/Color.kt + web/src/theme.css */
  --tl-blue:            #2F6BE4;   /* primary royal blue — TLBlue */
  --tl-blue-container:  #D9E7FB;   /* light blue tint — badges/containers/chips — TLBlueContainer */
  --tl-sky:              #70ABEC;   /* sky blue (app-icon body) — TLSky */
  --tl-orange:          #F5821F;   /* CTA / tertiary — TLOrange */
  --tl-navy:            #14224E;   /* ink / primary text — TLNavy */
  --tl-footer:          #0F1B3D;   /* the app's one dark accent — site-footer bg */
  --tl-footer-text:     #C9D3E8;
  --tl-footer-muted:    #9BA9C7;
  --tl-background:      #F3F7FC;   /* app background — TLBackground */
  --tl-card:            #FFFFFF;   /* card / raised surface — TLCard */
  --tl-text-secondary:  #5B6B8C;   /* TLTextSecondary */
  --tl-outline:         #D6E0EC;   /* TLOutline */
  --tl-online:          #2E9E5B;
  --tl-offline:         #8C96A6;
  --tl-amber:           #D9922F;
  --tl-error:           #B3261E;
  --tl-error-container: #F9DEDC;

  /* Aliases used through this file */
  --navy:          var(--tl-navy);
  --brand:         var(--tl-blue);
  --brand-dark:    #24509C;        /* darkened --tl-blue for hover states only — not a product token */
  --brand-container: var(--tl-blue-container);
  --sky:           var(--tl-sky);
  --accent:        var(--tl-orange);
  --accent-dark:   #C4671A;        /* darkened --tl-orange for hover states only — not a product token */

  --ink:           var(--tl-navy);
  --body:          var(--tl-navy);
  --muted:         var(--tl-text-secondary);
  --line:          var(--tl-outline);
  --surface:       var(--tl-card);
  --surface-alt:   var(--tl-background);
  --surface-deep:  var(--tl-footer);

  --status-online: var(--tl-online);
  --status-amber:  var(--tl-amber);
  --status-grey:   var(--tl-offline);

  --focus:         var(--tl-blue);
  --error:         var(--tl-error);

  /* Typography — Avenir Next first, exactly matching the app's font-family stack */
  --font-sans: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               system-ui, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.375rem;
  --fs-700: clamp(1.5rem, 3.5vw, 2rem);
  --fs-800: clamp(2rem, 5vw, 3rem);
  --fs-900: clamp(2.4rem, 6vw, 3.6rem);

  /* Spacing scale */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape — matches the app's actual shape scale (Theme.kt TrackLinkShapes:
     small=12dp, medium/large=24dp; web .btn is 16px, web .card is 24px).
     This is deliberately NOT the fully-pill buttons Dispatch/BoatLog use. */
  --radius:      24px;   /* cards */
  --radius-sm:   12px;   /* small chips/badges */
  --radius-btn:  16px;   /* buttons — real app/web .btn border-radius */
  --shadow:    0 1px 3px rgba(20,34,78,.08);
  --shadow-lg: 0 24px 48px rgba(20,34,78,.14);
  --maxw:      1120px;
  --maxw-prose: 70ch;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* `clip`, not `hidden`: overflow:hidden here makes <body> a scroll container,
   which silently breaks the sticky header (it sticks to body, not the viewport).
   `clip` guards against stray horizontal overflow without that side effect. */
body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
table, pre, iframe { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }

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

/* ---- Accessibility helpers --------------------------------------------- */
.skip-link {
  position: absolute; left: var(--sp-2); top: -3rem;
  background: var(--accent); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm); z-index: 200; transition: top .15s ease; font-weight: 600;
}
.skip-link:focus { top: var(--sp-2); text-decoration: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section--tint { background: var(--surface-alt); }
.text-center { text-align: center; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: var(--fs-300); font-weight: 700; color: var(--brand);
}

.section-head { max-width: 640px; margin: 0 auto var(--sp-8); text-align: center; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { color: var(--muted); font-size: var(--fs-500); margin: var(--sp-3) auto 0; }

/* ---- Buttons -------------------------------------------------------------
   Rounded-rectangle, NOT pill — matches the real app/web .btn (16px radius),
   the clearest visual break from Dispatch/BoatLog's fully-pill buttons. */
.btn {
  display: inline-block; border-radius: var(--radius-btn);
  padding: var(--sp-3) var(--sp-5); font-weight: 600; font-size: var(--fs-400);
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary   { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(245,130,31,.30); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--brand-container); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-500); }

/* ---- Notice banner -------------------------------------------------------- */
.banner {
  background: var(--tl-blue-container); color: var(--navy);
  text-align: center; font-weight: 600; font-size: var(--fs-300);
  padding: var(--sp-3) var(--sp-4); letter-spacing: .02em;
}
.banner strong { text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); }

/* ---- Header / nav --------------------------------------------------------
   White topbar, exactly like the real app/web .topbar (background: var(--tl-card)). */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand:hover { text-decoration: none; }
.brand__wordmark { height: 26px; width: auto; }

.nav__toggle {
  display: none; background: none; border: 0; color: var(--navy);
  padding: var(--sp-2); cursor: pointer; border-radius: var(--radius-sm);
}
.nav__links { display: flex; align-items: center; gap: var(--sp-6); list-style: none; padding: 0; }
.nav__links a { color: var(--navy); font-weight: 500; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* ---- Hero ------------------------------------------------------------------
   Light-first, matching the real product (no dark hero anywhere in the app —
   Theme.kt: "there is intentionally no dark scheme"). A soft blue-tinted
   background plus a white elevated card, not a navy gradient. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 82% -8%, var(--tl-blue-container), transparent 62%),
    var(--tl-background);
  border-bottom: 1px solid var(--line);
}
/* Centred hero: the product screenshot is dense enough that a half-width
   column made the device list illegible. Copy on top, screenshot full width. */
.hero .container {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-6);
  justify-items: center; text-align: center;
  padding-top: var(--sp-7); padding-bottom: var(--sp-7);
}
.hero__copy { max-width: 46rem; }
.hero__art { width: 100%; max-width: 1000px; }
.hero h1 { color: var(--navy); font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.hero h1 .accent { color: var(--brand); }
.hero .eyebrow { display: inline-block; margin-bottom: var(--sp-3); }
.hero__lead { font-size: var(--fs-500); color: var(--muted); max-width: 54ch; margin: var(--sp-4) auto var(--sp-5); }
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.hero__tagline {
  margin-top: var(--sp-5); text-transform: uppercase; letter-spacing: .12em;
  font-size: var(--fs-300); color: var(--muted); font-weight: 600;
}
.hero__art { display: flex; justify-content: center; }
.hero-card {
  background: var(--tl-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-7); width: 100%; max-width: 380px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.hero-card__mark {
  background: var(--tl-blue-container); border-radius: var(--radius); width: 150px; height: 150px;
  margin: 0 auto var(--sp-5); display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.hero-card__mark img { width: 100%; height: 100%; object-fit: contain; }
.hero-card h3 { color: var(--navy); margin-bottom: var(--sp-1); }
.hero-card p { color: var(--muted); font-size: var(--fs-300); margin: 0; }
.hero-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.hero-card__stat { text-align: center; }
.hero-card__stat strong { display: block; font-size: var(--fs-600); color: var(--brand); }
.hero-card__stat span { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); text-wrap: balance; }

/* ---- Feature cards -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-7) var(--sp-6); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--tl-blue-container);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: var(--fs-600); color: var(--navy); margin-bottom: var(--sp-3); }
.card p { color: var(--muted); margin: 0; }

/* ---- Steps ------------------------------------------------------------------ */
/* Count-aware, not hard-coded to three. The two-role section on How it works has only two
   items, and a fixed third column left an empty gap beside them 2014 the pair sat shoved to the
   left of the page looking like something had failed to load. `auto-fit` lets the grid take its
   column count from the content, so two roles centre as a pair and the three-step sections are
   unchanged. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--sp-6); }

/* Two wide columns would otherwise run the body text to an unreadable measure. */
.step p { max-width: 44ch; }
.step { text-align: center; }
.step__num {
  width: 52px; height: 52px; margin: 0 auto var(--sp-5); border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: var(--fs-600);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--navy); font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.step p { color: var(--muted); margin: 0 auto; }

/* ---- Pricing -----------------------------------------------------------------
   Brand-blue → sky gradient, not navy — the plan card should read as "this
   product's primary colour", matching TLBlue/TLSky, the app's own primary/
   secondary pair (Theme.kt: primary=TLBlue, secondary=TLSky). */
.plan-card {
  background: linear-gradient(135deg, var(--brand), var(--sky));
  color: #fff; border-radius: var(--radius); padding: var(--sp-8) var(--sp-7);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr auto; gap: var(--sp-7);
  align-items: center; margin-bottom: var(--sp-8);
}
.plan-card h3 { color: #fff; font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.plan-card__amount { font-size: var(--fs-900); font-weight: 800; line-height: 1; }
.plan-card__amount small { font-size: var(--fs-400); font-weight: 500; color: #eaf1fc; }
.plan-card__note { color: #eaf1fc; margin-top: var(--sp-2); }
.plan-card__features { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-5); }
.plan-card__features li { color: #fff; font-size: var(--fs-300); display: flex; gap: var(--sp-2); }
.plan-card__features li::before { content: "✓"; color: var(--tl-blue-container); font-weight: 700; flex-shrink: 0; }
.plan-card__cta { text-align: center; }
.plan-card__cta .btn--primary { width: 100%; }
.plan-card__trial { display: block; margin-top: var(--sp-3); font-size: var(--fs-300); color: #eaf1fc; }

.addons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
.addon-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow);
}
.addon-card h4 { font-size: var(--fs-500); color: var(--navy); margin-bottom: var(--sp-1); }
.addon-card .addon-rate { color: var(--brand); font-weight: 700; font-size: var(--fs-300); margin-bottom: var(--sp-4); }
.addon-card table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); }
.addon-card table td { padding: var(--sp-2) 0; border-top: 1px solid var(--line); color: var(--body); }
.addon-card table tr:first-child td { border-top: 0; }
.addon-card table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.pricing-note { text-align: center; color: var(--muted); font-size: var(--fs-300); margin-top: var(--sp-6); }

/* ---- CTA / start trial ------------------------------------------------------ */
.cta {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: var(--radius); padding: var(--sp-8) var(--sp-7); text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #eaf1fc; max-width: 48ch; margin: var(--sp-4) auto var(--sp-6); }
.cta__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }

/* ---- Footer --------------------------------------------------------------
   The app's one dark accent — verbatim colour + rationale as web theme.css:
   "the light theme's single dark accent, coordinated with the marketing site". */
.site-footer { background: var(--tl-footer); color: var(--tl-footer-text); padding: var(--sp-8) 0 var(--sp-6); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-8); flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-brand .brand__wordmark { filter: brightness(0) invert(1); }
.footer-brand p { color: var(--tl-footer-muted); font-size: var(--fs-300); }
.site-footer nav h2, .site-footer div h2 { color: #fff; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-4); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { color: var(--tl-footer-text); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-7); padding-top: var(--sp-5);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-300); color: var(--tl-footer-muted);
}

/* ---- Legal / prose page ---------------------------------------------------
   Light header band (matches the app's light .topbar, not a navy band). */
.page-head { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: var(--sp-8) 0; }
.page-head h1 { color: var(--navy); }
.page-head p { color: var(--muted); margin: var(--sp-3) 0 0; max-width: 62ch; font-size: var(--fs-500); }
.page-head .breadcrumb { color: var(--muted); font-size: var(--fs-300); margin-bottom: var(--sp-4); }
.page-head .breadcrumb a { color: var(--brand); }
.prose { max-width: var(--maxw-prose); margin: 0 auto; }
.prose h2 { color: var(--navy); font-size: var(--fs-600); margin-top: var(--sp-7); }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: var(--sp-5); margin-top: var(--sp-3); }
.prose li { margin-bottom: var(--sp-2); }
.prose .updated { color: var(--muted); font-style: italic; margin-bottom: var(--sp-6); }
.callout {
  background: var(--tl-blue-container); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5); color: var(--navy); margin: var(--sp-6) 0;
}

/* ---- FAQ (native details/summary, no JS needed) ------------------------------ */
.faq { max-width: var(--maxw-prose); margin: 0 auto; display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3em; line-height: 1; color: var(--brand); flex-shrink: 0;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--sp-3); color: var(--body); }

/* ---- Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero .container { padding-top: var(--sp-7); padding-bottom: var(--sp-7); gap: var(--sp-6); }
  .hero__lead { max-width: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr; }
  .plan-card { grid-template-columns: 1fr; text-align: center; }
  .plan-card__features { grid-template-columns: 1fr; justify-items: center; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5); box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { padding: var(--sp-2) 0; }
}
@media (max-width: 480px) {
  .plan-card__amount { font-size: var(--fs-800); }
}

/* ---- Product screenshots ---------------------------------------------------
   Framed so a UI screenshot reads as a screen rather than floating artwork.
   The frame is deliberately understated — one border, one shadow — so it does
   not compete with the cards elsewhere on the page. */
.shot { margin: 0; }
.shot__frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px var(--sp-4); border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.shot__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot__bar em {
  margin-left: var(--sp-3); font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; color: var(--muted);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  margin-top: var(--sp-3); font-size: var(--fs-300); color: var(--muted); text-align: center;
}

/* Phone render: no frame, it carries its own device shell and shadow. */
.shot--phone .shot__frame {
  background: none; border: 0; box-shadow: none; border-radius: 0;
}
.shot--phone img { max-width: 340px; margin: 0 auto; }

/* ---- Alternating feature rows ---------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
  align-items: center; margin-top: var(--sp-8);
}
.feature-row + .feature-row { margin-top: var(--sp-9); }
.feature-row--flip .feature-row__copy { order: 2; }
.feature-row__copy h3 { font-size: var(--fs-700); margin-bottom: var(--sp-3); }
.feature-row__copy p { color: var(--muted); }
.feature-row__copy p + p { margin-top: var(--sp-3); }
.feature-row__copy .eyebrow { display: block; margin-bottom: var(--sp-3); }
.spec-list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-2); }
.spec-list li { display: flex; gap: var(--sp-3); color: var(--body); font-size: var(--fs-300); }
.spec-list li::before { content: "✓"; color: var(--brand); font-weight: 700; flex-shrink: 0; }

/* ---- Breadcrumbs ------------------------------------------------------------ */
.breadcrumb { color: var(--muted); font-size: var(--fs-300); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--brand); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--line); }

/* ---- Section "read more" link ----------------------------------------------- */
.more {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; margin-top: var(--sp-5);
}
.more::after { content: "→"; transition: transform .15s ease; }
.more:hover::after { transform: translateX(3px); }
.section-foot { text-align: center; margin-top: var(--sp-7); }

/* ---- Nav current state ------------------------------------------------------ */
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 700; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-6); }
  .feature-row--flip .feature-row__copy { order: 0; }
  .feature-row + .feature-row { margin-top: var(--sp-8); }
}

/* ---- Zoomable screenshots ---------------------------------------------------
   Each screenshot is a link to the full-resolution file; main.js upgrades that
   into a lightbox. The magnifier cue is always visible rather than hover-only,
   because a touch device never hovers and would otherwise never learn there is
   anything to tap. */
.shot__zoom { display: block; position: relative; cursor: zoom-in; }
.shot__zoom:hover { text-decoration: none; }
.shot__cue {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(20, 34, 78, .72); color: #fff;
  display: grid; place-items: center; opacity: .82;
  transition: opacity .16s ease, transform .16s ease;
}
.shot__cue svg { width: 18px; height: 18px; }
.shot__zoom:hover .shot__cue { opacity: 1; transform: scale(1.06); }
.shot__zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shot--phone .shot__cue { right: 4px; bottom: 78px; }

/* ---- Lightbox ---------------------------------------------------------------
   Built by main.js on first use; markup lives nowhere in the HTML. */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  background: rgba(10, 18, 40, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); max-width: 100%; max-height: 100%;
}
.lightbox__fig img {
  display: block; width: auto; height: auto;
  max-width: min(100%, 2240px); max-height: 88vh;
  border-radius: var(--radius-sm); background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.lightbox__fig figcaption {
  color: #DCE4F2; font-size: var(--fs-300); font-weight: 600;
  letter-spacing: .04em; text-align: center; max-width: 60ch;
}
.lightbox__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.has-lightbox { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .shot__zoom:hover .shot__cue { transform: none; }
}
@media (max-width: 560px) {
  .lightbox { padding: var(--sp-5) var(--sp-3); }
  /* Tall enough that a portrait screenshot never opens smaller than it
     sat inline — on a phone it is already near full width. */
  .lightbox__fig img { max-height: 84vh; }
}
