/* ============================================================================
   Scenera Landing V2 — cream-dominant editorial.
   Palette: cream (5 tonal steps) + warm ink (text only) + quiet field-green accent.
   No more dark-flooded sections — variation comes from tonal cream shifts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Cream tonal scale — protagonist */
  --cream-50:   #fbf8f0;   /* lifted card */
  --cream-100:  #f5f1e8;   /* primary surface (bg) */
  --cream-200:  #ece7d6;   /* alt section */
  --cream-300:  #ddd3b8;   /* deep accent panel */
  --cream-400:  #c4b896;   /* tan band */
  --cream-shadow:#a39676;  /* tan border / shadow */

  /* Aliases */
  --bg:         var(--cream-100);
  --bg-soft:    var(--cream-200);
  --paper:      var(--cream-50);
  --hairline:   #e2dccb;
  --hairline-strong: #c8bfa3;

  /* Ink — used for text, hairlines, and small dark accents only.
     NOT for filling whole sections. */
  --ink-deep:   #2a2820;
  --ink:        #3b372c;

  /* Text — all three pass WCAG AA against --bg (#f5f1e8). */
  --fg:           #2a2820;
  --fg-muted:     #6a665d;
  --fg-subtle:    #6f6a5e;

  /* Accent — quiet pitch green */
  --accent:       #355e46;
  --accent-soft:  #cfdcce;
  --accent-deep:  #1f3d2d;

  /* Semantic */
  --danger:     #a8462e;
  --danger-soft:#f0d8cd;
  --success:    var(--accent);

  /* Type */
  --font-display: 'Newsreader', 'New York', Georgia, serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.wrap        { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px;  margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
.serif    { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.mono     { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.lede     { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.45; color: var(--fg-muted); letter-spacing: -0.005em; }

h1.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; margin: 0; color: var(--ink-deep); }
h2.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.0; letter-spacing: -0.02em; margin: 0; color: var(--ink-deep); }
h3.display { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--ink-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -0.02em; color: var(--ink-deep); }
.brand sup { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); vertical-align: super; margin-left: 4px; letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 32px; margin-left: 56px; }
.nav-links a { font-size: 15px; color: var(--fg-muted); transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink-deep); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
/* Nav button is a tighter, more compact variant of .btn — keeps the same
   pill silhouette but doesn't dwarf the 15px nav links. */
.nav-right .btn { padding: 9px 18px; font-size: 14px; }

.locale-switch { display: inline-flex; flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--hairline); border-radius: 9999px; padding: 3px; }
.locale-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 9999px; border: none; background: transparent; color: var(--fg-muted); white-space: nowrap; }
.locale-btn.on { background: var(--cream-300); color: var(--ink-deep); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 9999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; transition: transform .12s var(--ease), background .15s var(--ease), color .15s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-deep); color: var(--cream-50); border-color: var(--ink-deep); }
.btn-primary:hover { background: var(--ink); }
.btn-dark { background: var(--ink-deep); color: var(--cream-50); }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-deep); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--ink-deep); }
.btn-ghost.on-dark { color: var(--ink-deep); border-color: var(--hairline-strong); }
.btn-link { background: none; padding: 0; border: 0; color: var(--ink-deep); text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero (cream, not dark) ---------- */
.hero { background: var(--bg); position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(ellipse at top right, var(--cream-200), transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; padding: 88px 0 96px; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }
.hero-eyebrow .mono { color: var(--accent); }
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero-sub { margin-top: 28px; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--fg-muted); max-width: 520px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero-foot { display: flex; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--fg-muted); }
.hero-foot strong { color: var(--ink-deep); font-weight: 500; }

/* Hero reels: asymmetric 1-large + 2x2 thumbs grid.
   Hero tile is portrait 9:16 (sets the block height). The 4 thumbs auto-fill
   the right 2x2 sub-grid and stretch to match — their aspect-ratio is
   intentionally unset so they land roughly square instead of fighting the
   hero's height. The Customers section's .story-card .reel uses the base .reel rule. */
.hero-reels {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
/* Carousel dots: only visible on mobile (the mobile @media block turns
   them on). On desktop the hero-reels uses the grid layout above and
   all reels are shown side by side — dots are irrelevant. */
.hero-dots { display: none; }
.reel { aspect-ratio: 9/16; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(60,50,30,0.15); border: 1px solid var(--hairline); }
.reel.tall { grid-row: span 2; aspect-ratio: 9/32; }  /* legacy, kept for safety */
.reel-hero {
  grid-column: 1;
  grid-row: 1 / -1;
  aspect-ratio: 9 / 16;
}
.reel-thumb {
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 6px;
}
.reel-tag { position: absolute; left: 8px; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-deep); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.92; }
.reel-thumb .reel-tag { font-size: 9px; }
/* Reel placeholders — all warm tones inside the cream family */
.reel-r1 { background: linear-gradient(160deg, #ddd3b8 0%, #c4b896 100%); }
.reel-r2 { background: linear-gradient(160deg, #e8dcc0 0%, #b89e6e 100%); }
.reel-r3 { background: linear-gradient(160deg, #cfdcce 0%, #7a9785 100%); }
.reel-r4 { background: linear-gradient(160deg, #fbf8f0 0%, #d8cda8 100%); }
.reel-r5 { background: linear-gradient(160deg, #e0c8b0 0%, #a8826a 100%); }
.reel-r6 { background: linear-gradient(160deg, #dde6dc 0%, #355e46 100%); }
.reel-r6 .reel-tag { color: var(--cream-50); opacity: 0.95; }
.reel-play { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(30,28,20,0.18); display: grid; place-items: center; font-size: 10px; color: var(--ink-deep); }
.reel-thumb .reel-play { width: 18px; height: 18px; font-size: 8px; }
.reel-r6 .reel-play { background: rgba(251,248,240,0.3); color: var(--cream-50); }

/* ---------- Ticker (cream, hairline-bounded) ---------- */
.ticker {
  background: var(--cream-200);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--fg-muted);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 48px; animation: ticker 38s linear infinite; }
.ticker-track > span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section.tone { background: var(--cream-200); }
.section.accent-tone { background: var(--accent-soft); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head .lede { margin-top: 24px; }

/* ---------- Customers grid (4 cards, 2x2 desktop, 1-col mobile) ----------
   Each card pairs a portrait reel (left/top) with the owner's quote
   and outcome metrics (right/below). Replaces the old Proof mosaic +
   Stories carousel — same content responsibility, half the page. */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-top: 48px;
}
.story-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
  align-items: start;
}
.story-card .reel {
  aspect-ratio: 9/16;
  border-radius: 10px;
  width: 100%;
  align-self: start;
}
.story-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.story-meta { display: flex; align-items: center; gap: 14px; }
.story-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--ink-deep); border: 1px solid var(--hairline); flex-shrink: 0; }
.story-avatar.a1 { background: var(--cream-300); }
.story-avatar.a2 { background: var(--accent-soft); }
.story-avatar.a3 { background: var(--cream-400); color: var(--cream-50); }
.story-avatar.a4 { background: var(--paper); }
.story-meta-text { display: flex; flex-direction: column; min-width: 0; }
.story-name { font-weight: 600; font-size: 15px; color: var(--ink-deep); }
.story-role { font-size: 13px; color: var(--fg-muted); }
.story-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; background: var(--cream-200); color: var(--fg-muted); align-self: flex-start; border: 1px solid var(--hairline); }
.story-quote { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-deep); margin: 0; }
.story-quote::before { content: "\201C"; font-style: italic; color: var(--fg-muted); margin-right: 2px; }
.story-quote::after  { content: "\201D"; font-style: italic; color: var(--fg-muted); margin-left: 2px; }
.story-context { font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.story-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 18px; border-top: 1px solid var(--hairline); margin-top: auto; }
.stat-num { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; color: var(--ink-deep); }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; line-height: 1.3; }

/* ---------- Workflow ---------- */
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { position: relative; }
/* step-head packs num + h4 onto one line for a more compact header. The
   num keeps its own circle silhouette; the gap matches its border radius
   for a balanced rhythm. h4 wraps under it on narrow widths if needed. */
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.step-num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; position: relative; z-index: 1; border: 1px solid; }
/* 4-stop gradient — cream at "brief" end, deep green at "delivered" end.
   Reader's eye tracks the pipeline as visual weight builds up. */
.step-1 .step-num { background: var(--cream-50);    border-color: var(--hairline);        color: var(--ink-deep); }
.step-2 .step-num { background: var(--cream-300);   border-color: var(--cream-shadow);    color: var(--ink-deep); }
.step-3 .step-num { background: var(--accent-soft); border-color: var(--accent);          color: var(--accent-deep); }
.step-4 .step-num { background: var(--accent);      border-color: var(--accent-deep);     color: var(--cream-50); }
.step h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; margin: 0; color: var(--ink-deep); }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }

/* ----- Workflow step demos (in-card SVG illustrations) -----
   Each step gets an inline SVG above its number. The card-tint mirrors
   the .step-num gradient so the eye reads cream → green as one flow.
   Animations are gated by .is-in-view (set by IntersectionObserver in JS)
   so they play once when the section scrolls in, then settle. */
.wf-demo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 320 / 110;
  margin-bottom: 18px; border-radius: 10px; overflow: visible;
}
.wf-d-card { stroke-width: 1; }
.step-1 .wf-d-card { fill: var(--cream-200);   stroke: var(--hairline-strong); }
.step-2 .wf-d-card { fill: var(--cream-300);   stroke: var(--cream-shadow); }
.step-3 .wf-d-card { fill: var(--accent-soft); stroke: var(--accent); }
.step-4 .wf-d-card { fill: var(--accent);      stroke: var(--accent-deep); }

/* Step 1 — form skeleton */
.wf-d1-chip       { fill: transparent; stroke: var(--hairline-strong); stroke-width: 1; }
.wf-d1-chip.on    { fill: var(--accent); stroke: var(--accent-deep); }
.wf-d1-field      { fill: #fff; stroke: var(--hairline); stroke-width: 1; }
.wf-d1-fill       { fill: var(--ink-deep); opacity: 0.78; transform: scaleX(0); transform-box: fill-box; transform-origin: left center; }
.wf-d1-check      { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; opacity: 0; }
.wf-d1-tick       { fill: none; stroke: var(--accent-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.is-in-view .wf-d1-fill  { animation: wf-d1-typing 0.55s cubic-bezier(.5,0,.2,1) forwards; animation-delay: calc(0.1s + var(--i) * 0.2s); }
.is-in-view .wf-d1-check { animation: wf-fade-in 0.25s forwards; animation-delay: calc(0.7s + var(--i) * 0.2s); }
.is-in-view .wf-d1-tick  { animation: wf-fade-in 0.25s forwards; animation-delay: calc(0.78s + var(--i) * 0.2s); }
@keyframes wf-d1-typing { to { transform: scaleX(var(--stop, 1)); } }

/* Step 2 — photo thumbs scanned into tags */
.wf-d2-thumb rect    { fill: var(--cream-50); stroke: var(--cream-shadow); stroke-width: 1; }
.wf-d2-thumb circle  { fill: var(--cream-shadow); opacity: 0.7; }
.wf-d2-thumb path    { fill: var(--ink-deep); opacity: 0.32; }
.wf-d2-scan          { stroke: var(--accent-deep); stroke-width: 2; opacity: 0; transform: translateX(12px); }
.wf-d2-tag rect      { fill: var(--ink-deep); opacity: 0; transform: translateY(4px); transform-box: fill-box; transform-origin: center; }
.wf-d2-tag text      { fill: var(--cream-50); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; text-anchor: middle; dominant-baseline: middle; }
.is-in-view .wf-d2-scan     { animation: wf-d2-sweep 0.9s cubic-bezier(.4,0,.2,1) forwards; animation-delay: 0.1s; }
.is-in-view .wf-d2-tag rect { animation: wf-d2-tag-in 0.35s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(0.95s + var(--i) * 0.12s); }
.is-in-view .wf-d2-tag text { animation: wf-fade-in 0.25s forwards; animation-delay: calc(1.05s + var(--i) * 0.12s); }
@keyframes wf-d2-sweep  { 0% { transform: translateX(12px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(296px); opacity: 0; } }
@keyframes wf-d2-tag-in { to { opacity: 1; transform: translateY(0); } }

/* Step 3 — parallel production tracks */
.wf-d3-label   { fill: var(--accent-deep); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.wf-d3-bar-bg  { fill: var(--cream-50); stroke: var(--accent); stroke-width: 0.5; opacity: 0.55; }
.wf-d3-bar-fl  { fill: var(--accent-deep); transform: scaleX(0); transform-box: fill-box; transform-origin: left center; }
.is-in-view .wf-d3-bar-fl { animation: wf-d3-fill 1.1s cubic-bezier(.4,0,.15,1) forwards; animation-delay: calc(0.1s + var(--i) * 0.08s); }
@keyframes wf-d3-fill { to { transform: scaleX(var(--stop, 1)); } }

/* Step 4 — timeline + playhead + Guardian stamp */
.wf-d4-clip        { opacity: 0; transform: translateY(4px); transform-box: fill-box; transform-origin: center; }
.wf-d4-clip-body   { fill: var(--cream-50); }
.wf-d4-clip-thumb  { fill: var(--cream-shadow); opacity: 0.7; }
.wf-d4-playhead    { stroke: var(--cream-50); stroke-width: 1.5; opacity: 0; }
.wf-d4-stamp      { opacity: 0; transform: scale(0.7); transform-box: view-box; transform-origin: 160px 80px; }
.wf-d4-stamp rect { fill: var(--cream-50); }
.wf-d4-stamp text { fill: var(--accent-deep); font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: -0.005em; }
.is-in-view .wf-d4-clip     { animation: wf-d4-clip-in 0.3s ease-out forwards; animation-delay: calc(0.1s + var(--i) * 0.07s); }
.is-in-view .wf-d4-playhead { animation: wf-d4-play 1.1s cubic-bezier(.5,0,.2,1) forwards; animation-delay: 0.5s; }
.is-in-view .wf-d4-stamp    { animation: wf-d4-stamp-in 0.45s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: 1.5s; }
@keyframes wf-d4-clip-in  { to { opacity: 1; transform: translateY(0); } }
@keyframes wf-d4-play     { 0% { transform: translateX(0); opacity: 0.95; } 90% { opacity: 0.95; } 100% { transform: translateX(280px); opacity: 0; } }
@keyframes wf-d4-stamp-in { to { opacity: 1; transform: scale(1); } }

/* Shared */
@keyframes wf-fade-in { to { opacity: 1; } }

/* Reduced motion — settle on the end state immediately, no animation. */
@media (prefers-reduced-motion: reduce) {
  .wf-d1-fill    { transform: scaleX(var(--stop, 1)); animation: none !important; }
  .wf-d1-check,
  .wf-d1-tick    { opacity: 1; animation: none !important; }
  .wf-d2-scan    { opacity: 0; animation: none !important; }
  .wf-d2-tag rect,
  .wf-d2-tag text { opacity: 1; transform: none; animation: none !important; }
  .wf-d3-bar-fl  { transform: scaleX(var(--stop, 1)); animation: none !important; }
  .wf-d4-clip    { opacity: 1; transform: none; animation: none !important; }
  .wf-d4-playhead{ opacity: 0; animation: none !important; }
  .wf-d4-stamp   { opacity: 1; transform: scale(1); animation: none !important; }
}

/* ---------- Guardian (cream + green tint, not dark) ---------- */
.section.guardian { background: var(--accent-soft); }
.guardian-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 56px; }
.gd-box { background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; padding: 28px; font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--ink-deep); position: relative; }
.gd-box .gd-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.gd-box.bad  { border-color: var(--danger); }
.gd-box.bad .gd-label  { color: var(--danger); }
.gd-box.bad mark { background: var(--danger-soft); color: var(--danger); padding: 1px 6px; border-radius: 3px; text-decoration: line-through; text-decoration-color: var(--danger); }
.gd-box.good { border-color: var(--accent); }
.gd-box.good .gd-label { color: var(--accent); }
.gd-box.good mark { background: var(--cream-200); color: var(--accent-deep); padding: 1px 6px; border-radius: 3px; }
.gd-box.good ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.gd-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.gd-arrow svg { width: 28px; height: 28px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tier { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tier .btn-block { margin-top: auto; }
.tier.featured { background: var(--cream-300); border-color: var(--cream-shadow); position: relative; }
.tier.featured .tier-label { color: var(--accent-deep); }
.tier-flag { position: absolute; top: -12px; left: 32px; background: var(--accent); color: var(--cream-50); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; }
.tier-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.tier-name { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.015em; color: var(--ink-deep); }
.tier-price { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: -0.005em; color: var(--ink-deep); }
.tier-desc { font-size: 14px; color: var(--fg-muted); }
.tier-items { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 0; }
.tier-items li { padding: 12px 0; border-top: 1px solid var(--hairline-strong); font-size: 14px; color: var(--ink-deep); }
.tier.featured .tier-items li { border-top-color: rgba(60,50,30,0.18); }
.tier-items li:first-child { border-top: none; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
/* Form groups — visual sections for long form (Package / Contact / Project) */
.form-group { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--hairline); margin-top: 28px; }
.form-group:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.form-group-label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 4px; }
.form > button[type="submit"] { margin-top: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.field .req { color: var(--danger); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--paper); font: inherit; color: var(--ink-deep); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field .help { font-size: 13px; color: var(--fg-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; color: var(--ink-deep); }
.chip.on { background: var(--cream-300); border-color: var(--cream-shadow); }
.chip span:first-child { font-weight: 500; font-size: 15px; }
.chip-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.upload { display: block; width: 100%; border: 2px dashed var(--hairline-strong); border-radius: 14px; padding: 36px; text-align: center; background: var(--paper); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s var(--ease); }
.upload:hover, .upload:focus-visible { border-color: var(--accent); }
.upload:disabled { opacity: 0.55; cursor: not-allowed; }
.upload-icon { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.upload-title { font-weight: 500; font-size: 16px; margin-bottom: 6px; color: var(--ink-deep); }
.upload-sub { font-size: 13px; color: var(--fg-muted); margin: 0; }

/* File list shown under the upload card after the user picks files. */
.upload-empty { margin-top: 10px; text-align: center; }
.upload-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.upload-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; font-size: 14px; }
.upload-list-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-deep); }
.upload-list-size { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; }
.upload-list-remove { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: transparent; color: var(--fg-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.upload-list-remove:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.upload-list-remove:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--hairline-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline-strong); }
.faq-item summary { padding: 22px 0; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--fg-muted); transition: transform .15s var(--ease); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 24px; color: var(--fg-muted); max-width: 640px; }

/* ---------- Footer (cream, not dark) ---------- */
.footer { background: var(--cream-200); color: var(--fg-muted); padding: 64px 0 36px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.footer h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-deep); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--fg-muted); font-size: 14px; transition: color .15s var(--ease); }
.footer a:hover { color: var(--ink-deep); }
.footer .brand { color: var(--ink-deep); margin-bottom: 12px; }
.footer-tag { font-size: 14px; max-width: 320px; line-height: 1.55; color: var(--fg-muted); }

/* ---------- Modals + Toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(42,40,32,0.4); z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--paper); border-radius: 18px; padding: 40px; max-width: 440px; width: 100%; border: 1px solid var(--hairline); }
.modal h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink-deep); }
.modal-sub { color: var(--fg-muted); margin: 0 0 24px; font-size: 14px; }
.modal-divider { text-align: center; color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin: 16px 0; position: relative; }
.modal-divider::before, .modal-divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--hairline); }
.modal-divider::before { left: 0; }
.modal-divider::after  { right: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--cream-50); color: var(--ink-deep); padding: 12px 20px; border-radius: 9999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; z-index: 80; box-shadow: 0 8px 24px rgba(60,50,30,0.18); border: 1px solid var(--hairline); }

/* ---------- Success ---------- */
.success { max-width: 600px; margin: 80px auto; text-align: center; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 36px; display: grid; place-items: center; margin: 0 auto 24px; font-family: var(--font-display); border: 1px solid var(--accent); }
.success h2 { font-family: var(--font-display); font-weight: 500; font-size: 40px; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink-deep); }
.success p { color: var(--fg-muted); margin: 8px 0; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- Utility classes (replaces former inline styles) ---------- */
.hero-stat-num     { display: block; font-size: 22px; font-family: var(--font-display); font-weight: 500; color: var(--ink-deep); }
.help-center       { text-align: center; }
.help-error        { color: var(--danger); }
.textarea-lg       { min-height: 140px; }
.modal-field       { margin-bottom: 12px; }
.modal-field:last-of-type { margin-bottom: 16px; }
.modal-actions     { display: flex; gap: 8px; }
.gd-quote          { display: block; }
.success-foot      { font-size: 13px; margin-top: 18px; }
.success-foot-link { color: var(--ink-deep); text-decoration: underline; }

/* ---------- Skip link (screen-reader bypass) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-deep); color: var(--cream-50);
  padding: 10px 14px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Keyboard focus ring (consistent across interactive elements) ---------- */
:focus { outline: none; }
.btn:focus-visible,
.btn-link:focus-visible,
.locale-btn:focus-visible,
.chip:focus-visible,
.faq-item summary:focus-visible,
.upload:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field input:focus-visible,
.field textarea:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Anchor scroll offset for sticky nav */
:target { scroll-margin-top: 80px; }
section[id]   { scroll-margin-top: 72px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track       { animation: none; }
  .hero-eyebrow .dot  { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Nav */
  .nav-inner { gap: 12px; height: 56px; }
  .nav-links { display: none; }
  .brand { font-size: 22px; }
  .nav-right { gap: 8px; }
  .locale-switch { padding: 2px; }
  .locale-btn { padding: 5px 9px; font-size: 10px; letter-spacing: 0.06em; }
  .nav-right .btn { padding: 8px 14px; font-size: 13px; }

  /* === Mobile Hero — image-top + card-bottom layout =================
     Inspired by editorial/product landings (Higgsfield-style structure,
     adapted to Scenera's cream/serif brand). Reels area fills the top
     ~50vh full-bleed; the text card emerges below with rounded top
     corners overlapping the reel by 24px. */
  .hero { padding: 0; overflow: hidden; }
  .hero::before { display: none; }

  .hero-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    grid-template-columns: none;
    gap: 0;
    padding: 0;
  }

  /* Text card — bottom, lifted with rounded top corners */
  .hero-inner > div:first-child {
    background: var(--paper);
    padding: 36px 20px 48px;
    margin-top: -24px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: relative;
    z-index: 1;
  }

  h1.display { font-size: clamp(30px, 8vw, 56px); line-height: 1.08; }
  .hero-sub { font-size: 16px; max-width: none; margin-top: 18px; }

  /* CTAs — primary full-width pill; secondary quiet text link */
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
  }
  .hero-ctas .btn-primary { width: 100%; justify-content: center; }
  .hero-ctas .btn-ghost {
    background: transparent;
    border: none;
    color: var(--fg-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 4px 0;
    min-height: auto;
    font-weight: 400;
    font-size: 14px;
  }
  .hero-ctas .btn-ghost:hover { color: var(--ink-deep); border-color: transparent; background: transparent; }

  /* Reels area — top, full-bleed, carousel of all 5 stacked w/ cross-fade.
     Reels are absolute-positioned, only .is-active is opacity 1. */
  .hero-reels {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
    margin: 0 -20px;
    height: 50vh;
    min-height: 320px;
    max-height: 520px;
    position: relative;
    overflow: hidden;
  }
  .hero-reels .reel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .hero-reels .reel.is-active {
    opacity: 1;
    pointer-events: auto;
  }
  /* Chip-style caption. The reel extends -20px past the wrap padding,
     so add 20 to left/right offsets to stay visually inset. */
  .hero-reels .reel-tag {
    background: rgba(30, 28, 20, 0.55);
    color: var(--cream-50);
    padding: 6px 12px;
    border-radius: 9999px;
    left: 36px;
    bottom: 64px;
    right: auto;
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 1;
    max-width: calc(100% - 72px);
  }
  .hero-reels .reel-play {
    width: 32px; height: 32px;
    font-size: 12px;
    top: 16px;
    right: 36px;
    background: rgba(251, 248, 240, 0.18);
    color: var(--cream-50);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  /* Carousel dots — bottom-right corner of reel area */
  .hero-dots {
    position: absolute;
    bottom: 64px;
    right: 36px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(251, 248, 240, 0.5);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s var(--ease), width 0.2s var(--ease);
  }
  .hero-dot.on {
    background: var(--cream-50);
    width: 18px;
    border-radius: 9999px;
  }

  /* Ticker */
  .ticker { padding: 10px 0; font-size: 10px; letter-spacing: 0.12em; }
  .ticker-track { gap: 32px; }

  /* Section heads */
  h2.display { font-size: clamp(32px, 8.5vw, 44px); }
  h3.display { font-size: 22px; }
  .section-head { margin-bottom: 40px; }
  .section-head .lede { font-size: 17px; margin-top: 16px; }
  .lede { font-size: 17px; }

  /* Customers — horizontal snap-scroll on phones. Cards take 85% of
     viewport with a 15% peek on the right, signaling "more to swipe".
     Container extends past wrap padding via negative margin for full-bleed
     scroll area; inner padding keeps the first card aligned with section
     copy. scroll-snap-type forces clean per-card stops on touch. */
  .customers-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 36px -20px 0;
    padding: 0 20px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .customers-grid::-webkit-scrollbar { display: none; }
  .story-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    border-radius: 14px;
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .story-card .reel { max-width: 200px; justify-self: center; }
  .story-quote { font-size: 18px; line-height: 1.4; }
  .story-context { font-size: 13px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 9px; }
  .story-stats { gap: 6px; padding-top: 18px; }

  /* Workflow */
  .workflow { grid-template-columns: 1fr; gap: 28px; }
  .step h4 { font-size: 17px; }

  /* Guardian */
  .guardian-stage { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  /* Mobile: rotate only the arrow SVG (down-pointing), keep text upright */
  .gd-arrow { transform: none; flex-direction: column; margin: 8px auto; }
  .gd-arrow svg { transform: rotate(90deg); }
  .gd-box { padding: 22px; font-size: 16px; }
  .gd-box.good ul { font-size: 15px; gap: 10px; }

  /* Pricing — mobile: hierarchy-first layout.
     Standard (featured) is reordered to position 1, gets a lifted box-shadow,
     and keeps full padding. Light + Custom get compact padding and smaller
     type so the featured tier dominates the decision moment. */
  .pricing {
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
    gap: 14px;
  }
  .tier { padding: 22px; gap: 12px; }
  .tier-flag { left: 22px; }
  /* Featured: position 1 (above Light/Custom), lifted, full content */
  .tier.featured {
    order: -1;
    padding: 30px 24px;
    box-shadow: 0 16px 40px -10px rgba(60, 50, 30, 0.22);
    margin-bottom: 6px;
  }
  .tier.featured .tier-name { font-size: 28px; }
  .tier.featured .tier-price { font-size: 22px; }
  /* Non-featured: compact secondary cards */
  .tier:not(.featured) .tier-name { font-size: 22px; }
  .tier:not(.featured) .tier-price { font-size: 16px; }
  .tier:not(.featured) .tier-desc { font-size: 13px; }
  .tier:not(.featured) .tier-items li { padding: 8px 0; font-size: 13px; }

  /* Form */
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .form-group { padding-top: 24px; margin-top: 20px; }
  /* Chips on mobile: each chip full-width, Standard reordered to first
     (matches Pricing's mobile pattern of Standard-prominence). */
  .chips { flex-direction: column; gap: 8px; }
  .chip { flex: 1 1 100%; padding: 14px 16px; }
  .chip:nth-child(2) { order: -1; }  /* Standard (2nd in source) → first */
  .chip span:first-child { font-size: 14px; }
  .field input, .field textarea { padding: 14px 14px; font-size: 16px; /* 16px prevents iOS zoom on focus */ }
  .upload { padding: 22px 16px; }
  .upload-icon { font-size: 26px; margin-bottom: 6px; }
  .upload-title { font-size: 15px; }
  .upload-sub { font-size: 12px; }

  /* FAQ */
  .faq-item summary { font-size: 17px; padding: 18px 0; gap: 12px; }
  .faq-item summary::after { font-size: 19px; }
  .faq-item p { font-size: 14px; padding-bottom: 20px; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-tag { font-size: 13px; }

  /* Modal */
  .modal { padding: 28px 24px; border-radius: 16px; }
  .modal h3 { font-size: 22px; }

  /* Buttons / touch targets */
  .btn { padding: 12px 18px; min-height: 44px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

@media (max-width: 540px) {
  .hero-foot > div { flex: 0 0 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .story-card .reel { max-width: 180px; }
}

/* ---------- Tablet (iPad mini through iPad Pro portrait) ----------
   Overrides @max 960 mobile rules to use horizontal layouts for sections
   whose content fits multi-column at 768-1023px. Customers stays stacked
   (cards too content-heavy for side-by-side), but the GRID goes 2-col.
   Form / FAQ / Hero already work fine at this width, so untouched. */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Reset mobile's horizontal scroll on customers — tablet gets 2x2 grid */
  .customers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .story-card { flex: initial; scroll-snap-align: none; }
  .workflow { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .tier { padding: 22px; gap: 14px; }
  .tier.featured { order: 0; box-shadow: none; margin-bottom: 0; padding: 22px; }
  .tier-name { font-size: 22px; }
  .tier-price { font-size: 18px; }
  .tier.featured .tier-name { font-size: 22px; }
  .tier.featured .tier-price { font-size: 18px; }
  .tier:not(.featured) .tier-name { font-size: 22px; }
  .tier:not(.featured) .tier-price { font-size: 18px; }
  .tier:not(.featured) .tier-desc { font-size: 14px; }
  .tier:not(.featured) .tier-items li { padding: 12px 0; font-size: 14px; }
}
