/* Vitrine · Hydroponikeren 4T. Tokens fra kit/design-tokens.md */
:root {
  --black: #1c1a17; --black-2: #221f1b; --ink: #161513; --paper: #efe8da; --paper-2: #e8e2d4; --cream: #faf7f1; --white: #fffcf7;
  --muted: #4a453d; --muted-dark: #c9c3b6; --line: rgba(22,21,19,.12); --line-dark: rgba(255,252,247,.14);
  --red: #c81e2a; --red-deep: #9a1520; --red-soft: #e45a4c; --green: #2f6b3f; --green-bright: #3d8c52; --green-leaf: #7fbf8a;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 3.5rem); --max: 72rem; --nav-h: 4rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; margin: 0; font-variation-settings: "opsz" 144; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 48rem; }

.eyebrow { margin: 0 0 1rem; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 1.05rem; line-height: 1.5; color: var(--muted); max-width: 34rem; }
.fine { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.display { font-size: clamp(2.3rem, 7.2vw, 5.4rem); line-height: .98; letter-spacing: -0.04em; margin-bottom: 1.4rem; }
.display--sm { font-size: clamp(2rem, 5.4vw, 3.8rem); }
.display--xl { font-size: clamp(2.6rem, 9vw, 7rem); }
.display em, h1 em { display: block; font-style: italic; font-weight: 400; color: var(--red); }

/* Knapper og brikker */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .85rem 1.45rem; border-radius: 999px; border: 1px solid transparent; font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-decoration: none; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: rgba(22,21,19,.42); background: rgba(255,253,248,.6); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 44px; padding: .6rem 1.05rem; font-size: .85rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.4rem; }
.actions--center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(22,21,19,.22); background: rgba(255,252,247,.78); font-size: .8rem; font-weight: 600; line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(128,120,110,.55); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Navigasjon */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 1rem; padding: 0 var(--gutter); background: rgba(239,232,218,.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav__brand { font-family: var(--serif); font-size: 18.4px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav__links { display: none; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: .5rem 0; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 359px) { .nav__brand { font-size: 16px; } .nav__cta { padding: .5rem .8rem; font-size: .8rem; } }

/* ---------- Scrollhistorie ---------- */
.story { position: relative; background: var(--paper); color: var(--ink); transition: background-color .7s var(--ease), color .7s var(--ease); }
.story[data-theme="dark"] { background: var(--black); color: var(--white); }
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__stage { position: absolute; inset: var(--nav-h) 0 0 0; }
.story__stage canvas, .studio__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 2px; background: rgba(128,120,110,.25); border-radius: 2px; overflow: hidden; }
.story__progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--red); }
.story__steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) calc(2.2rem + env(safe-area-inset-bottom)); pointer-events: none; }
.step > * { pointer-events: auto; max-width: 30rem; }
.step h2 { font-size: clamp(1.75rem, 7vw, 3.4rem); margin-bottom: .7rem; }
.step p { color: inherit; opacity: .82; margin-bottom: .5rem; }
.story[data-theme="dark"] .eyebrow { color: var(--green-leaf); }
.step .eyebrow { opacity: 1; }
.step:not(.step--hero) { opacity: .15; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step--hero { justify-content: flex-end; }
.step--hero h1 { font-size: clamp(2.4rem, 10.5vw, 5.6rem); line-height: .96; letter-spacing: -.045em; margin-bottom: .8rem; }
.step--hero .lede { font-size: .98rem; margin-bottom: .6rem; }
.hero__price { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; margin: .3rem 0 .2rem; }
.hero__from { font-size: .55em; color: var(--muted); letter-spacing: 0; margin-right: .2em; }
.scroll-cue { margin-top: 1.2rem; font-size: 10.88px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stage-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a8275; z-index: 3; white-space: nowrap; }
.stage-status[hidden] { display: none; }
.stage-poster { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 6px; opacity: .35; transition: opacity .6s; }
.stage-poster span { width: 72px; height: 34px; border-radius: 14px; background: linear-gradient(90deg, rgba(128,120,110,.25), rgba(128,120,110,.5), rgba(128,120,110,.25)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.is-ready .stage-poster { opacity: 0; pointer-events: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.story__dots { position: absolute; inset: 0; pointer-events: none; }
.story__dots b { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(200,30,42,.25); opacity: 0; transition: opacity .35s; }
.story__dots b::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(228,90,76,.7); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.story__ruler { position: absolute; width: 1px; background: currentColor; opacity: 0; transition: opacity .35s; pointer-events: none; }
.story__ruler::before, .story__ruler::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: currentColor; }
.story__ruler::before { top: 0; } .story__ruler::after { bottom: 0; }
.story__ruler span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }

/* ---------- Seksjoner ---------- */
.section { padding: clamp(4.5rem, 11vw, 9rem) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--white { background: var(--cream); }
.section--dark { background: var(--black-2); color: var(--white); }
.section--black { background: #121110; color: var(--white); }
.section--dark .eyebrow, .section--black .eyebrow { color: var(--green-leaf); }
.section--dark .lede, .section--black .lede, .fine--dark { color: var(--muted-dark); }
.section--dark .display em, .section--black .display em { color: var(--red-soft); }

.values__grid { list-style: none; padding: 0; margin: 2.4rem 0 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.values__grid strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.values__grid span { font-size: .9rem; color: var(--muted); }
.values__cols { display: grid; gap: 1.8rem; }
.values__cols h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.values__cols p { color: var(--muted); }

/* ---------- 3D-studio ---------- */
.section--studio { background: linear-gradient(180deg, var(--cream), var(--paper)); padding-top: calc(var(--nav-h) + 1rem); }
.studio { display: grid; gap: 1.5rem; max-width: 90rem; margin: 0 auto; }
.studio__stage { position: relative; height: 66svh; min-height: 400px; border-radius: 0; background: radial-gradient(70% 55% at 50% 42%, #fffcf7 0%, rgba(255,252,247,0) 70%), var(--paper-2); overflow: hidden; touch-action: pan-y; }
.studio__stage canvas { cursor: grab; }
.studio__stage canvas:active { cursor: grabbing; }
.studio__stage canvas:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.studio__hint { position: absolute; left: 0; right: 0; top: 14px; text-align: center; margin: 0; font-size: 10.88px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .75; pointer-events: none; }
.studio__tools { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0 .75rem; z-index: 4; }
.studio__panel { padding: 0 var(--gutter); }
.ctl { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.ctl legend { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; padding: 0; }
.stepper { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.step-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(22,21,19,.3); background: var(--white); font-size: 1.25rem; font-weight: 600; line-height: 1; }
.step-btn:disabled { opacity: .35; cursor: default; }
.stepper__out { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.03em; min-width: 0; flex: 1; text-align: center; }
.chips--n .chip { min-width: 52px; justify-content: center; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.seg button { border: 1px solid rgba(22,21,19,.22); background: var(--white); border-radius: 16px; padding: .65rem .4rem; text-align: center; display: flex; flex-direction: column; gap: .1rem; min-height: 56px; }
.seg b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.seg span { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.seg button[aria-pressed="true"] { border-color: var(--green); background: #e9f0e6; box-shadow: inset 0 0 0 1px var(--green); }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.4rem 0 .8rem; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.readout div { background: var(--white); padding: .8rem 1rem; }
.readout dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 0; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.25; }
.readout dd.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(5px); } }
.oppsett { margin-top: 1rem; padding: .9rem 1rem; border: 1px dashed rgba(22,21,19,.3); border-radius: 14px; }
.oppsett code, .receipt__code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; word-break: break-all; }
.oppsett .fine { margin: .3rem 0 0; }

.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 2px solid var(--white); background: var(--red); color: var(--white); font-size: .78rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .25s, transform .25s var(--ease); will-change: transform; }
.hs:hover, .hs[aria-expanded="true"] { background: var(--ink); }
.hs.is-back { opacity: .35; }
.hs-card { position: absolute; z-index: 5; width: min(270px, calc(100% - 24px)); padding: .85rem 1rem; border-radius: 16px; background: rgba(255,252,247,.97); box-shadow: 0 18px 40px rgba(0,0,0,.18); font-size: .9rem; line-height: 1.45; pointer-events: auto; }
.hs-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: .2rem; }
.hs-card[hidden] { display: none; }
.parts__title { font-size: 1.5rem; margin: 3rem 0 1rem; }
.parts { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: .6rem; }
.parts li { counter-increment: p; }
.parts button { width: 100%; text-align: left; display: grid; grid-template-columns: 32px 1fr; gap: .2rem .8rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.parts button::before { content: counter(p); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.parts button[aria-pressed="true"] { border-color: var(--ink); }
.parts b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.parts span { font-size: .9rem; color: var(--muted); }

/* ---------- Slik virker det ---------- */
.how__grid { display: grid; gap: 2.5rem; align-items: center; }
.how__fig { margin: 0; }
.how__fig img { width: min(100%, 420px); margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.how__fig figcaption { font-size: .8rem; color: var(--muted-dark); text-align: center; margin-top: .8rem; }
.how__steps { list-style: none; counter-reset: h; padding: 0; margin: 1.6rem 0; display: grid; gap: 1.2rem; }
.how__steps li { counter-increment: h; display: grid; grid-template-columns: 2.4rem 1fr; gap: .1rem .8rem; }
.how__steps li::before { content: "0" counter(h); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; color: var(--red-soft); line-height: 1.1; }
.how__steps b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.how__steps span { color: var(--muted-dark); }
.note { font-size: .9rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line-dark); color: var(--muted-dark); }
.note strong { color: var(--white); }

/* ---------- Appen ---------- */
.app__lede { margin-bottom: 3rem; }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 260px); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 1.2rem; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.phone { margin: 0; scroll-snap-align: center; }
.phone__frame { border-radius: 34px; padding: 9px; background: #2b2824; box-shadow: 0 0 0 1px #3d3933, 0 30px 60px rgba(0,0,0,.5); }
.phone__frame img { border-radius: 26px; width: 100%; aspect-ratio: 9 / 18.4; object-fit: cover; object-position: top; background: #f3f3f0; }
.phone figcaption { font-size: .9rem; color: var(--muted-dark); margin-top: 1rem; }
.phone figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--white); }

/* ---------- Modeller / spesifikasjoner ---------- */
.models__grid { display: grid; gap: 1rem; margin-top: 2rem; }
.card { background: var(--white); border-radius: 24px; padding: 1.6rem; border: 1px solid var(--line); }
.card h3 { font-size: 2.4rem; letter-spacing: -.04em; margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card__meta { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green) !important; margin: 0; }
.specs__grid { display: grid; gap: 2.2rem; margin-top: 2rem; }
.spec { margin: 0; }
.spec h3 { font-size: 1.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--ink); margin-bottom: .2rem; }
.spec div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .85rem; color: var(--muted); }
.spec dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.spec small, .receipt small { color: var(--muted); font-size: .8em; }

/* ---------- Pris ---------- */
.price__grid { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
.receipt { background: var(--white); border-radius: 28px; padding: 1.6rem; box-shadow: 0 30px 60px rgba(22,21,19,.12); }
.receipt__code { margin: 0 0 .5rem; color: var(--green); }
.receipt h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.receipt dl { margin: 0 0 1rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.receipt dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .sub { font-weight: 600; }
.receipt .total { border-bottom: 0; font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.03em; padding-top: .9rem; }
.compare h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.compare ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.compare li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,252,247,.6); }
.compare b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.compare span { grid-column: 1; font-size: .85rem; color: var(--muted); }
.compare em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.2rem 1.2rem 0; position: relative; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.05rem; font-family: var(--sans); font-size: 1.4rem; color: var(--red); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 40rem; }

/* ---------- Finale / kjøpslinje / bunn ---------- */
.finale { text-align: center; overflow: hidden; }
.finale__inner { display: flex; flex-direction: column; align-items: center; }
.finale .lede { margin: 0 auto 1rem; }
.finale::before { content: ""; position: absolute; inset: auto 0 -30% 0; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(200,30,42,.28), transparent 70%); pointer-events: none; }
.buybar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .55rem .55rem 1.1rem; border-radius: 999px; background: rgba(22,21,19,.9); color: var(--white); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.3); transform: translateY(160%); transition: transform .45s var(--ease); }
.buybar.is-on { transform: none; }
.buybar p { margin: 0; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buybar b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.buybar span { font-size: .72rem; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer { background: #121110; color: var(--muted-dark); font-size: .85rem; padding: 2.5rem 0 6rem; border-top: 1px solid var(--line-dark); }
.footer b { color: var(--white); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--white); padding: 1rem; text-align: center; margin: 0; }

/* ---------- Bredere skjermer ---------- */
@media (min-width: 700px) {
  .values__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .values__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
  .models__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; }
  .phones { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 960px) {
  :root { --nav-h: 4.5rem; }
  .nav__links { display: flex; gap: 1rem; margin-right: 1.2rem; }
  .story__stage { inset: 0; }
  .step { justify-content: center; padding: 0 var(--gutter); }
  .step > * { max-width: 27rem; }
  .step h2 { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
  .step--hero h1 { font-size: clamp(3.6rem, 5.6vw, 6rem); }
  .step--hero .lede { font-size: 1.1rem; }
  .hero__price { font-size: 2.4rem; }
  .studio { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 0; padding: 0 var(--gutter) 0 0; }
  .studio__stage { position: sticky; top: calc(var(--nav-h) + 1rem); height: calc(100svh - var(--nav-h) - 2rem); min-height: 520px; border-radius: 0 32px 32px 0; }
  .studio__panel { padding: 2rem 0 2rem 3.5rem; }
  .parts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .how__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; }
  .price__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .buybar { left: auto; right: 24px; bottom: 24px; width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Mobil: myk overgang bak teksten i historien */
@media (max-width: 959px) {
  .story__sticky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(239,232,218,0), var(--paper) 62%); transition: background .7s var(--ease); }
  .story[data-theme="dark"] .story__sticky::after { background: linear-gradient(180deg, rgba(28,26,23,0), var(--black) 62%); }
  .story__progress { z-index: 2; }
}

/* Mørk nav mens historien er mørk */
.nav { transition: background-color .5s var(--ease, ease), border-color .5s; }
html[data-nav="dark"] .nav { background: rgba(28,26,23,.78); border-bottom-color: rgba(255,255,255,.08); color: #f3efe6; }
html[data-nav="dark"] .nav__links a { color: rgba(243,239,230,.72); }
html[data-nav="dark"] .nav__links a:hover { color: #fff; }
html[data-nav="dark"] .nav__brand { color: #f3efe6; }

/* Lave mobilskjermer: kortere heltetekst, så tårnet får plass over den uten overlapp */
@media (max-width: 699px) and (max-height: 760px) {
  .step--hero .lede, .step--hero .scroll-cue { display: none; }
  .step--hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .step--hero .hero__price { margin-bottom: .2rem; }
}

/* ---------- v2: berøringsflater ≥ 44 px, skjulte hotspots ---------- */
.hs { position: absolute; }
.hs.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.chip { min-height: 44px; }
.nav__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .25rem; }
.btn--sm { position: relative; }
.nav__price { display: none; margin: 0 1rem 0 0; flex-direction: column; align-items: flex-end; line-height: 1.15; opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav__price b { font-family: var(--serif); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav__price span { font-size: .72rem; color: var(--muted); }
html[data-nav="dark"] .nav__price span { color: rgba(243,239,230,.65); }
@media (min-width: 960px) { .nav__price { display: flex; } .nav__price.is-on { opacity: 1; transform: none; } .buybar { display: none; } }
/* Plass til kjøpslinja nederst på mobil (linja skjules også over avslutning og bunntekst) */
@media (max-width: 959px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* App-karusell på mobil: tydelig sveip, snapping til start, ingen klipping uten hint */
.swipe-hint { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 .8rem; }
.phones { scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.phone { scroll-snap-align: start; }
.phones:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 4px; }
@media (min-width: 960px) { .swipe-hint { display: none; } }

/* Uten WebGL: statisk bilde av tårnet i stedet for plassholderformer */
.stage-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.stage-fallback img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 18px; }
.is-fallback .stage-poster, .is-fallback .stage-status { display: none; }
.story__stage .stage-fallback { top: .25rem; bottom: 62%; padding: .5rem; }
@media (min-width: 960px) { .story__stage .stage-fallback { top: var(--nav-h); bottom: 6%; left: 45%; } }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }

/* v3: hotspot-knappen er selv 44 × 44 px; den røde prikken (32 px) tegnes inni. */
.hs { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: transparent; box-shadow: none; isolation: isolate; display: grid; place-items: center; padding: 0; }
.hs::before { content: ""; position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--white); background: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: -1; transition: background .2s; }
.hs:hover, .hs[aria-expanded="true"] { background: transparent; }
.hs:hover::before, .hs[aria-expanded="true"]::before { background: var(--ink); }
.hs:focus-visible { outline: none; }
.hs:focus-visible::before { outline: 3px solid var(--ink); outline-offset: 3px; }
.nav__cta { min-height: 44px; }
