/* ==========================================================================
   TPEE.app — styles.css
   Session 1 (Build 183 · v1.0.0) — static site skeleton.
   Design tokens copied VERBATIM from TEAM_REPORT_Design_UX.md §3.2.
   Dark-only v1. Flat surfaces, hairline borders, one gradient (hero).
   No webfonts, no external requests, no glassmorphism, no glow.
   ========================================================================== */

/* ----- Design tokens (TEAM_REPORT_Design_UX.md §3.2, names final) -------- */
:root {
  /* Color */
  --bg-0: #060d18;                 /* page */
  --bg-1: #0a1626;                 /* section alt */
  --surface: #0e1e33;              /* cards */
  --surface-2: #12263f;            /* raised/hover */
  --line: rgba(148, 184, 220, 0.14); /* hairlines */
  --text-1: #e8f0f8;
  --text-2: #a7bcd2;               /* muted (8.6:1 on --surface, verified) */
  --text-3: #7d93ab;               /* captions, large-text only */
  --accent: #3fd4e0;               /* cyan, brand/primary actions */
  --accent-ink: #04222a;           /* text on accent */
  --green: #3ddc97;                /* app GREEN indicator; success/trust */
  --amber: #f2b84b;                /* warnings, sparing */
  --red: #f26d6d;                  /* errors only */
  --gradient-hero: linear-gradient(180deg, #0a1c30 0%, #060d18 70%);

  /* Type */
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", var(--font-ui);
  --font-mono: "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Elevation + motion */
  --shadow-1: 0 8px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --header-h: 64px;
  --section-pad: clamp(64px, 10vw, 128px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
ul { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* WCAG 1.4.1 (Use of Color): links inside running prose must not rely on
   color alone — underline them (Session 5 Lighthouse a11y finding). Buttons,
   nav, and card chrome keep their non-underlined look. */
main p a:not(.btn),
main li a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* WCAG 2.4.7 — visible focus everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.mono { font-family: var(--font-mono); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  border-radius: var(--r-sm);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* ----- Layout containers ------------------------------------------------- */
.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.container-wide {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-1); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); } /* WCAG 2.4.11 */

.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-intro {
  color: var(--text-2);
  font-size: 1.125rem;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms var(--ease),
    border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #6fe0e9; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-1);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Sticky header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.brand-sub {
  font-size: 0.875rem;
  color: var(--text-3);
  white-space: nowrap;
}
/* Jacques: Toptronic is a registered trademark — keep the ® superscripted
   and visually quiet wherever the brand line appears. */
.brand-sub sup {
  font-size: 0.62em;
  line-height: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.938rem;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.site-nav a:hover {
  color: var(--text-1);
  background: var(--surface);
  text-decoration: none;
}
.site-nav .nav-cta {
  margin-left: 8px;
  min-height: 44px;
  color: var(--accent-ink);
  background: var(--accent);
}
.site-nav .nav-cta:hover { background: #6fe0e9; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-1);
  border-radius: 1px;
}

/* ----- Hero (the ONE gradient on the site) -------------------------------- */
.hero {
  background: var(--gradient-hero);
  padding-block: clamp(72px, 11vw, 140px) var(--section-pad);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  color: var(--text-2);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75rem;
}
.trust-line {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 0;
}

/* ----- Trust strip -------------------------------------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--text-2);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ----- Screenshot carousel (Session 2 — adapted PlazdiezCarousel) --------- */
/* Bare, styled slides: 16px radius, hairline border, soft shadow — no
   phone-frame mockups (design report §2.1). Track geometry: slide k sits at
   k * (width + 24px) on a static rail; carousel.js owns the translate. */
.carousel { margin-bottom: 1.5rem; }

/* Tab bar (role=tablist) */
.carousel-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2rem;
}
.carousel-tab {
  font: inherit;
  font-size: 0.875rem;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.carousel-tab:hover { background: var(--surface-2); color: var(--text-1); }
.carousel-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

/* Stage: clipped viewport; slides are absolutely positioned by JS */
.carousel-stage {
  position: relative;
  overflow: hidden;
  padding-block: 8px;
}
.carousel-track {
  position: relative;
  transition: transform 350ms var(--ease);
  will-change: transform;
}
.carousel-track.no-anim { transition: none; }
.carousel-slide {
  position: absolute;
  top: 0;
  width: 30%;
  aspect-ratio: 9 / 19.5;
}
.carousel-slide picture,
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background: var(--surface);
}
.carousel-slide:not(.active) img {
  opacity: 0.5;
  transition: opacity 350ms var(--ease);
}
.carousel-slide.active img { opacity: 1; }
@media (max-width: 768px) {
  .carousel-slide { width: 76%; }
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(6, 13, 24, 0.8);
  color: var(--accent);
  font-size: 1.25rem;
  cursor: pointer;
}
.carousel-arrow:hover { background: var(--surface-2); }
.carousel-arrow-left { left: 8px; }
.carousel-arrow-right { right: 8px; }

/* Caption chip */
.carousel-caption {
  text-align: center;
  color: var(--text-2);
  min-height: 1.6em;
  margin-top: 1rem;
}

/* Toolbar: counter + Play/Pause + fullscreen */
.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0.75rem;
}
.carousel-counter {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
  text-align: center;
}
.carousel-pause-btn,
.carousel-fs-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-1);
  font-size: 1rem;
  cursor: pointer;
}
.carousel-pause-btn:hover,
.carousel-fs-btn:hover { background: var(--surface-2); }
.carousel-pause-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Progress bar (8s autoplay countdown) */
.carousel-progress {
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* Filmstrip (thumb targets exceed 44px — WCAG 2.5.8) */
.carousel-filmstrip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 8px;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: 64px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.carousel-thumb img { display: block; width: 100%; height: auto; }
.carousel-thumb:hover { border-color: var(--text-3); }
.carousel-thumb.active,
.carousel-thumb[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Lightbox / fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.94);
}
.fullscreen-overlay.active { display: flex; }
.fullscreen-media img {
  max-height: 92vh;
  max-width: 92vw;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.fullscreen-hint {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-2);
  font-size: 0.875rem;
}
.fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(6, 13, 24, 0.8);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
}
.fullscreen-arrow:hover { background: var(--surface-2); }
.fullscreen-arrow-left { left: 16px; }
.fullscreen-arrow-right { right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide:not(.active) img { transition: none; }
}

/* <noscript> Best-of grid + /gallery page (the true no-JS experience) */
.noscript-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 1.5rem;
}
.noscript-item,
.gallery-item { margin: 0; }
.noscript-item img,
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background: var(--surface);
}
.noscript-item figcaption,
.gallery-item figcaption {
  color: var(--text-2);
  font-size: 0.875rem;
  margin-top: 8px;
}
.gallery-page { padding-block: var(--section-pad); }
.gallery-tab { margin-bottom: 4rem; }
.gallery-tab-title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.carousel-note {
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

/* ----- Features 3×3 ------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  transition: background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.feature-card:hover {
  background: var(--surface-2);
  border-color: rgba(148, 184, 220, 0.28);
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.4em; }
.feature-card p {
  color: var(--text-2);
  font-size: 0.938rem;
  margin: 0;
}

/* ----- Audiences ---------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.audience-card h3 { font-size: 1rem; margin-bottom: 0.3em; }
.audience-card p {
  color: var(--text-2);
  font-size: 0.875rem;
  margin: 0;
}
.audience-card .chip { margin-top: 12px; }

/* ----- Learning Center callout -------------------------------------------- */
.learning-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-1);
}
.learning-callout h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.learning-callout p { color: var(--text-2); max-width: 62ch; }
.learning-callout .mono {
  color: var(--accent);
  font-size: 0.938rem;
}

/* ----- Pricing ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 2rem;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
}
.plan-card--popular { border-color: var(--accent); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 2px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.plan-name { font-size: 1.125rem; margin-bottom: 0.15em; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75em;
}
.plan-price-term {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-3);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.plan-features li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: 0; }
.plan-cta { margin-top: auto; width: 100%; }
.plan-cta-link { margin-top: auto; width: 100%; }
.plan-status {
  min-height: 1.4em; /* reserved — no CLS when app.js writes the status */
  margin: 10px 0 0;
  font-size: 0.813rem;
  color: var(--amber);
}
.plan-note {
  color: var(--text-2);
  font-size: 0.938rem;
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}
.pricing-meta {
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1.25rem;
}

/* ----- FAQ ----------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  align-items: start;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.969rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-radius: var(--r-md);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--text-2);
  font-size: 0.938rem;
}

/* ----- Security summary ---------------------------------------------------- */
.security-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
}
.security-summary .trust-strip { padding-block: 0 8px; }
.security-summary p { color: var(--text-2); max-width: 68ch; }

/* ----- Final CTA (hero gradient reversed) ---------------------------------- */
.final-cta {
  background: linear-gradient(0deg, #0a1c30 0%, #060d18 70%);
  text-align: center;
}
.final-cta .section-title { margin-bottom: 1.5rem; }

/* ----- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.813rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.75em;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 0.938rem;
  min-height: 32px;
}
.footer-col a:hover { color: var(--text-1); }
/* External links (Founder, About Toptronic) open in a new tab — say so */
.footer-col a[target="_blank"]::after {
  content: "↗";
  margin-left: 4px;
  font-size: 0.75em;
  color: var(--text-3);
}
.footer-note {
  color: var(--text-3);
  font-size: 0.875rem;
  margin: 8px 0 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }

/* ----- Stub pages (Sessions 2–4 fill these in) ------------------------------ */
.stub-page { padding-block: var(--section-pad); }
.stub-notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  color: var(--text-2);
  max-width: 68ch;
}

/* ----- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }

  .brand-sub { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
  .features-grid,
  .pricing-grid,
  .audience-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn { width: 100%; }
}

/* ----- Reduced motion (WCAG 2.3.3) — no non-essential animation ------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- Session 3: commerce pages (success.html / download.html) -------------- */
.page-narrow { max-width: 860px; padding-bottom: 72px; }

.order-line {
  color: var(--text-2);
  margin: 0 0 20px;
}

.section-sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-1);
  margin: 36px 0 12px;
}

.notice-amber {
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  border: 1px solid var(--amber);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--text-1);
  margin: 0 0 24px;
}
.notice-amber strong { color: var(--amber); }

.notice-plain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--text-2);
  margin: 0 0 24px;
}

.status-line {
  color: var(--text-3);
  font-size: 0.9375rem;
  min-height: 1.4em;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 8px 0 8px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.dl-title {
  font-size: 1rem;
  color: var(--text-2);
  margin: 0 0 12px;
}
.dl-btn { width: 100%; justify-content: center; }
.dl-meta { color: var(--text-3); font-size: 0.8125rem; margin: 10px 0 0; }

.hash-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-1);
}
.hash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 16px;
  margin: 8px 0;
}
.hash-label {
  color: var(--accent);
  font-size: 0.8125rem;
  flex: none;
}
.hash-value {
  font-size: 0.75rem;
  color: var(--text-2);
  word-break: break-all;
  flex: 1;
}
.copy-btn { flex: none; min-height: 32px; padding: 4px 14px; }

.steps { color: var(--text-2); padding-left: 22px; }
.steps li { margin: 10px 0; }

.next-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--text-1);
  margin: 28px 0 0;
}

.support-line {
  color: var(--text-3);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.form-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.field {
  flex: 1;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-1);
  font: inherit;
  padding: 12px 16px;
  min-height: 44px;
}
.field:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* === Session 4: application form, prominent feature, Turnstile ========== */
.feature-card--prominent { border-color: var(--accent); }
.feature-card--prominent .chip { display: inline-block; margin-top: 12px; }

.form-stack { max-width: 620px; }
.form-stack .field { width: 100%; }
.field-label { display: block; color: var(--text-2); font-weight: 600; margin: 18px 0 8px; }
.form-hint { color: var(--text-3); font-size: 0.8125rem; margin: 6px 0 0; }
.field--area { min-height: 140px; resize: vertical; }
.choice-fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.choice-fieldset .field-label { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); }
.choice:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.choice input { accent-color: var(--accent); }
.choice-title { display: block; color: var(--text-1); font-weight: 600; margin-top: 6px; }
.choice-sub { display: block; color: var(--text-3); font-size: 0.8125rem; margin-top: 2px; }
.turnstile-box { margin: 18px 0; min-height: 65px; } /* reserves widget height (CLS) */

@media (max-width: 700px) {
  .choice-grid { grid-template-columns: 1fr; }
}
