/* ERA audience pages — same tokens and type as the story */
:root {
  --navy: #0F1830; --navy-2: #131E3A; --navy-3: #26344F;
  --warm: #F7F4EE; --paper: #FFFDF9; --sand: #F1EDE4; --line: #E3DDD0;
  --gold: #D4B17A; --gold-2: #B0935F; --ink: #131E3A; --muted: #5E6472; --muted-2: #8A8579;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Schibsted Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.04; font-weight: 800; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: inherit; }
.brand span { color: var(--gold); }
.brand.big { font-size: clamp(48px, 7vw, 96px); line-height: 1; color: #fff; margin-bottom: 18px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.wrap.wide { max-width: 1240px; }

/* nav */
.nav { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 300; display: flex; justify-content: center; pointer-events: none; }
.pill { pointer-events: auto; margin: 0 16px; width: 100%; max-width: 1080px; height: 58px; padding: 0 10px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 999px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(15,24,48,0.55); border: 1px solid rgba(247,244,238,0.14); color: var(--warm); box-shadow: 0 10px 34px rgba(15,24,48,0.16); }
.pill .links { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; }
/* 44px trykkflate, ikke 36px: fra 900px og opp vises disse lenkene i stedet for hamburgeren, og
   1024x768 / 1180x820 er nettbrett med berøring. Pillen er 58px, så boksen vokser innenfor den og
   menyhøyden er uendret. Understreken er flyttet fra bottom:3px til 7px for å bli stående der den
   sto: en 44px boks sentrert i pillen starter 4px høyere enn en 36px boks. */
.pill .links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: inherit; opacity: 0.85; }
.pill .links a[aria-current="page"] { opacity: 1; }
.pill .links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--gold); }
.pill .cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: var(--navy-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.pill .right { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(247,244,238,0.25); background: transparent; color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.menu-panel { pointer-events: auto; position: absolute; top: 72px; left: 16px; right: 16px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(15,24,48,0.94); color: var(--warm); border: 1px solid rgba(247,244,238,0.14); box-shadow: 0 20px 60px rgba(15,24,48,0.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; color: inherit; font-size: 17px; font-weight: 600; }
.menu-panel a span { color: var(--gold); }
@media (max-width: 899px) { .pill .links { display: none; } .menu-btn { display: inline-flex; } .pill, .menu-panel { backdrop-filter: none; -webkit-backdrop-filter: none; } .pill { background: rgba(15,24,48,0.94); } body.light .pill { background: rgba(255,253,248,0.96); } }
@media (max-width: 400px) { .pill { padding-left: 16px; } .pill .cta { font-size: 13.5px; padding: 0 14px; } }
@media (max-width: 350px) { .pill .cta { display: none; } }
body.menu-open { overflow: hidden; }

/* document pages (personvern) */
.doc { padding: 140px clamp(24px, 7vw, 120px) 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 18px; }
.lede.dark { color: var(--muted); }
.fine.dark { color: var(--muted-2); margin-top: 12px; }
.pv { margin-top: 40px; }
.pv h2 { font-size: 24px; letter-spacing: -0.02em; }
.pv p { margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 680px; }

/* hero */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; background: var(--navy); color: var(--warm); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,24,48,0.9) 0%, rgba(15,24,48,0.7) 40%, rgba(15,24,48,0.25) 70%, rgba(15,24,48,0.1) 100%), linear-gradient(180deg, rgba(15,24,48,0.5), transparent 30%, transparent 70%, rgba(15,24,48,0.6)); }
/* Padding grows with the viewport but is subtracted from max-width, so a fixed 720px box left
   only ~518px of text at 1440 — narrower than «vedlikeholdsbehov» at 72px, which is why
   overflow-wrap then split it mid-word. The box grows instead, so the measure never shrinks. */
.hero-text { position: relative; padding: 140px clamp(24px, 7vw, 120px) 80px; max-width: clamp(720px, 50vw + 240px, 960px); }
.hero-dash { position: relative; flex: 1 1 380px; max-width: 440px; margin: 40px clamp(24px, 6vw, 80px) 40px 0; padding: 22px 24px; border-radius: 22px; background: rgba(255,253,248,0.97); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,0.35); }
.hero-dash .kpis { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 899px) { .hero { flex-direction: column; align-items: stretch; padding: 24px 0 32px; min-height: 0; } .hero-text { padding: 120px clamp(20px, 6vw, 40px) 0; } .hero-dash { margin: 24px clamp(20px, 6vw, 40px) 0; max-width: none; } }
.hero h1 { overflow-wrap: break-word; font-size: clamp(38px, 5.4vw, 72px); color: #fff; text-wrap: balance; margin-top: 18px; text-shadow: 0 4px 40px rgba(15,24,48,0.6); }
.lede { margin-top: 20px; font-size: clamp(17px, 2vw, 22px); line-height: 1.4; font-weight: 500; color: rgba(247,244,238,0.85); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--gold); color: var(--navy-2); font-weight: 700; font-size: 15px; }
.btn:hover { background: #E2C48F; color: var(--navy-2); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--gold); }
.link:hover { color: #fff; }

/* ── ERA Bolig produktflater ─────────────────────────────────────────────────
   Skjermbildene er ekte app-skjermer og beskjæres aldri. Rammen tar bildets eget
   sideforhold, og ingen gradient legges over UI-et. Maksbreddene er satt etter
   kildeoppløsningen, så ingenting skaleres opp og blir mykt. */
.pw-phone { position: relative; width: 100%; margin-inline: auto; isolation: isolate; }
.pw-phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.pw-phone::before { content: ""; position: absolute; inset: -10% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(212,177,122,0.22), rgba(212,177,122,0) 72%); pointer-events: none; }
.pw-ui { width: 100%; max-width: 400px; margin-inline: auto; }   /* kilde 783px = 1,96x */
.pw-ui img { display: block; width: 100%; height: auto; border-radius: 18px; }
.section:not(.dark) .pw-ui img { box-shadow: 0 24px 60px rgba(19,30,58,0.14), 0 4px 14px rgba(19,30,58,0.06); }
.pw-phone--sm { max-width: 236px; }      /* kilde 236px */
.pw-phone--md { max-width: 300px; }      /* kilde 296–320px */
.pw-phone--lg { max-width: 420px; }      /* kilde 450px */
.pw-phone--xl { max-width: 460px; }      /* kilde 941px */
.hero .pw-phone img, .section.dark .pw-phone img { box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 10px 28px rgba(0,0,0,0.3); }
.section:not(.dark) .pw-phone img { box-shadow: 0 34px 80px rgba(19,30,58,0.18), 0 6px 18px rgba(19,30,58,0.08); }

/* Produktledet hero: tekst til venstre, appen til høyre. Ikke noe fotografi bak. */
.hero--product { min-height: 0; display: block; }
.hero--product .hero-media { display: none; }
.hero-grid { position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 140px clamp(24px, 7vw, 120px) 80px; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero--product .hero-text { padding: 0; max-width: 560px; }
.hero-plain { display: contents; }
.hero-visual { min-width: 0; }

/* Produktseksjon: ett budskap, ett produktbilde. Snur annenhver gang på desktop. */
.appsec .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.appsec-text { min-width: 0; max-width: 560px; }
.appsec-text h2 { font-size: clamp(28px, 3.4vw, 44px); }
.appsec-text .lede { color: var(--muted); max-width: 520px; }
.section.dark .appsec-text .lede { color: rgba(247,244,238,0.78); }
.appsec-visual { min-width: 0; }
.appsec-dash { padding: 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(19,30,58,0.14), 0 4px 14px rgba(19,30,58,0.06); }
.section.dark .appsec-dash { color: var(--ink); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.pdot-high { background: #C4573F; }
.pdot-med { background: var(--gold); }
.pdot-low { background: #5C8A6B; }
.plan-row b { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.plan-pri { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted-2); }
.agent-q { margin-top: 14px; padding: 12px 16px; border-radius: 14px 14px 4px 14px; background: var(--sand); font-size: 15px; align-self: flex-start; max-width: 90%; }
.agent-a { margin-top: 12px; padding: 16px; border-radius: 4px 14px 14px 14px; background: rgba(212,177,122,0.08); border: 1px solid rgba(212,177,122,0.35); }
.agent-a > p { margin: 0 0 12px; font-size: 15px; }
.agent-pick { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(19,30,58,0.08); }
.agent-pick:first-of-type { border-top: 0; }
.agent-n { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-2); color: var(--warm); font-size: 12px; font-weight: 700; }
.agent-pick div { display: flex; flex-direction: column; gap: 2px; }
.agent-pick b { font-size: 14px; }
.agent-pick span { font-size: 13px; color: var(--muted-2); }
.offer-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.offer-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.offer-row--rec { border-color: var(--gold); background: rgba(212,177,122,0.08); }
.offer-av { background: var(--navy-2); color: var(--warm); flex: none; }
.offer-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer-main b { font-size: 15px; }
.offer-main span { font-size: 13px; color: var(--muted-2); }
.offer-price { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.offer-price b { font-size: 15px; }
.offer-price span { font-size: 12px; color: var(--muted-2); }
.offer-tag { position: absolute; top: -9px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--navy-2); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
@media (max-width: 520px) { .offer-row { flex-wrap: wrap; } .offer-price { text-align: left; } }
.notice-msg { max-width: none; margin-top: 14px; white-space: pre-line; }
.notice-next { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(212,177,122,0.08); border: 1px solid rgba(212,177,122,0.35); }
.notice-next-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-2); }
.notice-next ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notice-next li { position: relative; padding-left: 22px; font-size: 14px; }
.notice-next li::before { content: "✓"; position: absolute; left: 0; color: #5C8A6B; font-weight: 700; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(92,138,107,0.14); color: #3E6650; font-size: 12px; font-weight: 700; }
.doc-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip { padding: 7px 14px; border-radius: 999px; background: var(--sand); font-size: 13px; color: var(--ink); }
.bldg-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bldg-card { position: relative; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.bldg-card--risk { border-color: rgba(196,87,63,0.4); background: rgba(196,87,63,0.05); }
.bldg-name { font-weight: 700; font-size: 15px; }
.bldg-meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.bldg-score { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.bldg-score b { font-size: 20px; }
.bldg-score span { font-size: 12px; color: var(--muted-2); }
.bldg-tasks { margin-top: 6px; font-size: 13px; color: var(--ink); }
.bldg-flag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(196,87,63,0.14); color: #8C4433; font-size: 11px; font-weight: 700; }
@media (max-width: 520px) { .bldg-grid { grid-template-columns: 1fr; } }
.appsec-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.appsec-points li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.appsec-points li b { display: block; color: var(--ink); font-size: 16px; }
.appsec-points li::before { content: ""; position: absolute; left: 6px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.section.dark .appsec-points li { color: rgba(247,244,238,0.75); }
.section.dark .appsec-points li b { color: #fff; }

/* Loopen: fem skjermer i én stripe, med korte etiketter under. */
.apploop { margin-top: 36px; display: none; }
@media (min-width: 900px) { .apploop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; } }
.apploop-shot { min-width: 0; }
.apploop-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 44px rgba(19,30,58,0.16), 0 3px 10px rgba(19,30,58,0.06); }
.apploop-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; margin-top: 26px; }
@media (min-width: 900px) { .apploop-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.apploop-steps { counter-reset: none; }
@media (max-width: 899px) { .apploop-step { padding-left: 16px; border-left: 2px solid var(--line); } }
.apploop-step .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--gold-2); }
.apploop-step b { display: block; margin-top: 6px; font-size: 16px; letter-spacing: -0.01em; }
.apploop-step span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.section.dark .apploop-step span { color: rgba(247,244,238,0.72); }
.section.dark .apploop-step b { color: #fff; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .hero--product .hero-text { max-width: none; }
  .appsec .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .appsec--flip .appsec-text { order: 2; }
  .appsec--flip .appsec-visual { order: 1; }
}

/* sections */
.section { padding: clamp(64px, 10vh, 120px) clamp(24px, 7vw, 120px); }
.section > .label, .wrap > .label { margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 3.8vw, 50px); text-wrap: balance; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--navy); color: var(--warm); text-align: center; }
.section.dark h2 { color: #fff; }
.section.dark .lede { margin-left: auto; margin-right: auto; }
.lede.light { color: rgba(247,244,238,0.75); }

.beta-badge { display: inline-flex; align-items: center; margin-top: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(212,177,122,0.16); border: 1px solid rgba(212,177,122,0.5); color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.beta-note { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: rgba(247,244,238,0.8); }
.section.dark.beta .lede.light { max-width: 640px; }
.beta-items { list-style: none; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; max-width: 720px; text-align: left; }
.beta-items li { position: relative; padding: 12px 16px 12px 34px; border-radius: 12px; background: rgba(247,244,238,0.06); border: 1px solid rgba(247,244,238,0.12); font-size: 14.5px; line-height: 1.4; color: rgba(247,244,238,0.9); }
.beta-items li::before { content: "✓"; position: absolute; left: 14px; top: 12px; color: var(--gold); font-weight: 700; }
.section.dark.beta .btn { margin-top: 28px; }
.section.dark.beta .fine { margin-top: 14px; }

.steps-intro { margin-top: 16px; max-width: 640px; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; max-width: 1080px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > div { min-width: 0; }
.steps .n { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 800; }
.steps h3 { font-size: 19px; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.hero-support { margin-top: 14px; font-size: 15px; font-weight: 600; color: rgba(247,244,238,0.75); }

/* per-scene "product view" toggle: same chip-with-chevron language as the story's detail buttons */
/* five-step story: compact tab navigation + one wide scene panel */
.scenes { scroll-margin-top: 90px; }
.stepnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 32px; position: relative; }
.stepnav::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--line); z-index: 0; }
.stepnav button { position: relative; z-index: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.stepnav button .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 800; color: var(--gold-2); }
.stepnav button:hover { border-color: var(--navy-3); background: #fff; }
.stepnav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.stepnav button.is-past { background: var(--sand); border-color: var(--sand); color: var(--navy-3); }
.stepnav button.is-past .n { color: var(--gold-2); }
.stepnav button[aria-selected="true"] { background: var(--navy-2); border-color: var(--navy-2); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.stepnav button[aria-selected="true"] .n { color: var(--gold); }
.scene-panel { margin-top: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(19,30,58,0.05); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.scene { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); grid-template-rows: 1fr auto; min-height: 520px; }
.scene[hidden] { display: none; }
.scene.is-entering { animation: scene-in 180ms ease-out; }
@keyframes scene-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scene.is-entering { animation: none; } }
.scene-text { grid-column: 1; grid-row: 1; padding: 40px 36px 12px; min-width: 0; }
.scene-text > * { max-width: 440px; }
.scene-text h3 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.scene-text p { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.scene-text .scene-value { font-weight: 600; color: var(--ink); }
.scene-nav { grid-column: 1; grid-row: 2; padding: 16px 36px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scene-prev { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.scene-prev:hover { color: var(--ink); }
.scene-next { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--navy-2); color: var(--warm); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.scene-next:hover { background: var(--navy-3); color: var(--warm); }
.scene-view { grid-column: 2; grid-row: 1 / span 2; padding: 32px; background: var(--paper); border-left: 1px solid var(--line); min-width: 0; display: flex; }
.dash { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dash-meta { margin-top: 2px; font-size: 13px; color: var(--muted-2); }
.dash .tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; font-size: 12px; color: var(--muted-2); }
.kpi b { display: block; margin-top: 4px; font-size: 16px; letter-spacing: -0.01em; overflow-wrap: break-word; }
.dash-group { padding: 12px 16px 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dash-group-ai { background: rgba(212,177,122,0.08); border-color: rgba(212,177,122,0.35); }
.dash-group-illustration, .dash-group-pilot, .dash-group-planned { background: var(--sand); border-color: var(--sand); }
.dash-group .tag { margin-bottom: 6px; }
.drow { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dash-group .drow:last-child { border-bottom: 0; }
.drow span { color: var(--muted-2); flex: none; }
.drow b { font-weight: 600; text-align: right; min-width: 0; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; flex: 1; }
.dcol { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.dcol .tag { margin-bottom: 4px; }
.dcol .drow { flex-direction: column; gap: 2px; }
.dcol .drow b { text-align: left; }
.dash-foot { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--muted-2); }
.dash .tag-doc, .dash .tag-order { background: rgba(19,30,58,0.06); color: var(--ink); }
.dash .tag-ai { background: rgba(212,177,122,0.22); color: #7A6238; }
.dash .tag-board, .dash .tag-pro, .dash .tag-resident { background: var(--navy-2); color: var(--warm); }
.dash .tag-illustration, .dash .tag-pilot, .dash .tag-planned { background: #E7E0D3; color: #7A6238; }
@media (max-width: 899px) {
  .stepnav { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 24px; }
  .stepnav::before { display: none; }
  .stepnav button { gap: 6px; min-height: 44px; padding: 6px 8px; font-size: 12.5px; border-radius: 10px; }
  .scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; }
  .scene-text { grid-column: 1; grid-row: 1; padding: 26px 22px 6px; }
  .scene-text .label { font-size: 13px; }
  .scene-view { grid-column: 1; grid-row: 2; padding: 18px; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; }
  .scene-nav { grid-column: 1; grid-row: 3; padding: 14px 18px 18px; background: var(--paper); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 389px) {
  .stepnav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stepnav button .t { display: none; }
  .stepnav button { padding: 6px 2px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

.step-detail { margin-top: 12px; }
.step-detail summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; }
.step-detail summary::-webkit-details-marker { display: none; }
.step-detail .chev { font-size: 12px; transition: transform 0.25s; }
.step-detail[open] summary { border-color: var(--ink); }
.step-detail[open] .chev { transform: rotate(180deg); }
.step-detail .card { margin-top: 14px; padding: 20px 20px; max-width: min(480px, 100%); box-shadow: 0 20px 50px rgba(19,30,58,0.1); }
.step-detail .card-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
.step-detail .card .row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 0; }
.step-detail .card .row span { font-size: 12.5px; }
.step-detail .card .row b { font-size: 14.5px; }
.card-group { margin-bottom: 4px; }
.card-group:last-of-type { margin-bottom: 0; }
.card-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card-fine { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); }

.card .tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.card .tag-customer { background: var(--sand); color: var(--ink); }
.card .tag-ai { background: rgba(212,177,122,0.18); color: var(--gold-2); }
.card .tag-check { background: #EFEAE0; color: var(--muted-2); }
.card .tag-pilot, .card .tag-planned, .card .tag-illustration { background: #F1EDE4; color: #8A7758; }
.card .tag-order, .card .tag-doc { background: rgba(19,30,58,0.06); color: var(--ink); }
.card .tag-board, .card .tag-pro, .card .tag-resident { background: var(--navy-2); color: var(--warm); }
.aside-text { margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.link.dark { margin-top: 14px; color: var(--gold-2); }
.link.dark:hover { color: var(--ink); }

.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 28px; max-width: 1080px; }
.role { padding: 24px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.role h3 { font-size: 17px; letter-spacing: -0.01em; }
.role p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.fine.dark2 { margin-top: 18px; color: var(--muted-2); }

.gains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 32px; }
.gain { padding: 26px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.gain:first-child { background: var(--navy-2); color: var(--warm); border-color: transparent; }
.gain h3 { font-size: 18px; letter-spacing: -0.01em; }
.gain p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.gain:first-child p { color: rgba(247,244,238,0.75); }

.nsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 32px; }
.nstep { padding: 26px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.nstep h3 { font-size: 18px; letter-spacing: -0.01em; }
.nstep p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.nstep .link { margin-top: 14px; }

.example { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; max-width: 1080px; }
.card { padding: 28px 30px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(19,30,58,0.12); max-width: 440px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head .label { font-size: 11px; letter-spacing: 0.12em; }
.card-head .meta { font-size: 12px; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EFEAE0; }
.card .row:last-child { border-bottom: 0; }
.card .row span { font-size: 14.5px; color: var(--muted-2); }
.card .row b { font-size: 17px; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.example-text p { margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 440px; }

.faq, .features { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details, .features details { border-bottom: 1px solid var(--line); }
.faq summary, .features summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker, .features summary::-webkit-details-marker { display: none; }
.faq summary::after, .features summary::after { content: "+"; color: var(--gold-2); font-weight: 500; }
.faq details[open] summary::after, .features details[open] summary::after { content: "–"; }
.faq p, .features p { padding: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 640px; }

/* form */
.intent { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.intent button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(247,244,238,0.35); background: transparent; color: var(--warm); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.intent button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-2); }
.intent + .lead { margin-top: 16px; }
.lead { display: flex; flex-direction: column; gap: 10px; margin: 32px auto 0; width: 520px; max-width: 100%; text-align: left; }
.lead .lead-pill { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 22px; border-radius: 999px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.lead-value-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.lead-value-wrap input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
#lead-typewriter { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; background: #fff; font-size: 16px; color: var(--muted-2); white-space: nowrap; overflow: hidden; }
.field-label { position: absolute; left: 0; top: -20px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,244,238,0.65); opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none; white-space: nowrap; }
#lead-value:focus ~ .field-label, #lead-value:not(:placeholder-shown) ~ .field-label,
#lead-email:focus ~ .field-label, #lead-email:not(:placeholder-shown) ~ .field-label { opacity: 1; transform: translateY(0); }
.lead button { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--navy-2); color: var(--warm); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.lead button[disabled] { opacity: 0.7; cursor: default; }
.done { display: flex; align-items: center; gap: 14px; margin: 32px auto 0; padding: 18px 24px; border-radius: 22px; background: rgba(255,253,248,0.97); color: var(--ink); width: 520px; max-width: 100%; text-align: left; }
.done .check { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #3E7B4F; display: flex; align-items: center; justify-content: center; }
.done .check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1) 0.1s; }
.done.drawn .check path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .done .check path { stroke-dashoffset: 0; transition: none; } }
.done > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.done b { font-size: 18px; letter-spacing: -0.02em; }
.done span { font-size: 14.5px; color: var(--muted); }
.err { margin-top: 12px; font-size: 13.5px; color: rgba(247,244,238,0.8); }
.fine { margin-top: 18px; font-size: 12.5px; color: rgba(247,244,238,0.5); }
[hidden] { display: none !important; }
@media (max-width: 560px) { .lead .lead-pill { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 12px; } .lead-value-wrap input { min-height: 44px; padding: 10px 10px 6px; } .lead button { justify-content: center; } }
@media (hover: none) { a:hover { color: inherit; } .btn:hover { background: var(--gold); } }

/* footer */
.foot { padding: 56px 32px 32px; background: var(--paper); }
.foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.foot .brand { font-size: 28px; }
.foot .tag { margin-top: 6px; font-size: 15px; color: #4E5464; }
.foot .cols { display: flex; gap: 48px; font-size: 15px; }
.foot .cols div { display: flex; flex-direction: column; gap: 0; }
.foot .cols a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .cols b { color: var(--ink); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.foot .cols a { color: #4E5464; }
.foot .legal { border: 0; margin-top: 18px; padding: 0; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: #9A968C; }

/* light pages: the pill matches the story's light theme */
body.light .pill { background: rgba(255,253,248,0.85); border-color: rgba(19,30,58,0.08); color: var(--ink); }
body.light .pill .cta { background: var(--navy-2); color: var(--warm); }
body.light .menu-btn { border-color: rgba(19,30,58,0.15); }

@media (max-width: 360px) { .hero h1 { font-size: 32px; } }
