/* Tur Skoter website – one full-screen, scroll-scrubbed trip, then a short page. */
body.story { background: var(--night); color: #fff; }
.story .nav { position: fixed; left: 0; right: 0; }
.story .nav:not(.on-dark) { color: var(--ink); }
.story .nav.on-dark.past { background: var(--night); border-color: rgba(255,255,255,.06); }

/* ---------- Scene ---------- */
.scene { position: relative; height: 1450vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: 64px max(24px, calc((100vw - var(--max)) / 2)) 70px;
  background: radial-gradient(100% 80% at 70% 10%, #18304f 0%, var(--night) 60%); }
.stage-glow { position: absolute; right: 8%; top: 50%; width: 640px; height: 640px; margin-top: -320px; border-radius: 50%;
  background: var(--glow, #2f7cf6); opacity: .28; filter: blur(110px); transition: background .8s ease; pointer-events: none; }

.copy { position: relative; z-index: 2; display: grid; align-items: center; min-height: 340px; }
.chap { grid-area: 1 / 1; opacity: 0; max-width: 520px; }
.chap h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.chap h1 .accent, .chap h1 .accent .w > span { background: linear-gradient(90deg, #7cc0ff, var(--aurora)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chap h1 .accent .w > span { background-size: 100% 100%; }
.chap h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.chap p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.75); max-width: 36ch; }
.chap-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chap[data-c="8"] { pointer-events: none; }
.chap[data-c="8"].live { pointer-events: auto; }

.stage-phone { position: relative; z-index: 2; width: 100%; height: calc(640px * var(--k, 1)); }
/* The story phone is drawn at its design size (300×640) and scaled as a whole (--k is set by scroll.js). */
.stage .phone { position: absolute; left: 50%; top: 0; width: 300px; height: 640px; aspect-ratio: auto; margin-left: -150px;
  transform: scale(var(--k, 1)); transform-origin: top center; }
.stage .screen { background: #eef2ee; }
.stage .screen > .L-map, .stage .screen > .L-drive { position: absolute; inset: 0; }
.L-drive { opacity: 0; z-index: 4; }
.stage .screen > .L-3d { position: absolute; inset: 0; opacity: 0; z-index: 3; background: #f2f5f3; }
.t3-host { position: absolute; inset: 0; }
.t3-bar { position: absolute; top: 52px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: .85rem; font-weight: 700; box-shadow: 0 6px 18px rgba(13,27,44,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.t3-bar b { background: var(--trail); color: #fff; padding: 2px 8px; border-radius: 8px; font-size: .75rem; }
.t3-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; background: #fff; box-shadow: 0 4px 14px rgba(13,27,44,.14);
  color: var(--ink); font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 99px; }
.stage .screen > .t-ice { z-index: 6; bottom: 96px; background: #1d4f86; }

/* status bar */
.sb { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 9; display: flex; align-items: center; gap: 8px;
  padding: 14px 26px 0; color: var(--ink); font-size: .8rem; pointer-events: none; }
.sb b { margin-right: auto; }
.sb-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-sig i { width: 3.5px; background: currentColor; border-radius: 1px; }
.screen.dark .sb { color: #fff; }
.sb-sig i:nth-child(1) { height: 4px; } .sb-sig i:nth-child(2) { height: 6px; } .sb-sig i:nth-child(3) { height: 8.5px; } .sb-sig i:nth-child(4) { height: 11px; }
.sb-none { background: #fff1df; color: #8a4b00; font-weight: 800; font-size: .66rem; padding: 2px 7px; border-radius: 99px; opacity: 0; }

/* in-phone cards */
.stage .ap-sheet { padding: 8px 14px 14px; }
.stage .ap-row { margin: 0 0 8px; }
.stage .ap-row b { font-size: 1.45rem; }
.stage .ap-bar { margin-bottom: 10px; }
.stage .ap-go { padding: 10px; }
.stage .ap-search { top: 54px; }
.fuelcard { position: absolute; top: 54px; left: 12px; right: 12px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(13,27,44,.18); z-index: 3; opacity: 0; }
.fc-row { display: flex; justify-content: space-between; align-items: baseline; }
.fc-row .fc-l { font-size: 1.25rem; }
.fuelcard .fuel-gauge { margin: 8px 0 0; height: 12px; }
.fc-warn { margin-top: 10px; background: #fff1df; color: #8a4b00; font-weight: 800; font-size: .8rem; padding: 7px 10px; border-radius: 10px; opacity: 0; }
.toast { position: absolute; left: 12px; right: 12px; bottom: 18px; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 12px 14px; border-radius: 14px; z-index: 3; opacity: 0; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.arrive-ok { background: #e3f7ec; color: #11683b; font-weight: 800; padding: 11px 12px; border-radius: 12px; font-size: .9rem; }
.m-fr, .m-station, .m-me { opacity: 0; }

/* Sweden finale */
.sweden-layer { position: absolute; top: 80px; bottom: 90px; right: max(24px, calc((100vw - var(--max)) / 2)); width: 50%;
  display: grid; place-items: center; opacity: 0; z-index: 1; pointer-events: none; }
.sweden-layer svg { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 0 8px rgba(94,176,255,.55)); }

/* "Scrolla" cue above the chapter bar (fades on the first scroll, see main.js) */
.scroll-cue { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 66px; z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; background: rgba(11,22,38,.6); padding: 10px 14px 12px; border-radius: 18px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scroll-cue i { position: relative; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 13px; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px;
  background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { display: none; } }

/* chapter progress */
.chapters { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(var(--max), 100% - 32px); z-index: 5; }
.ch-track { height: 3px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.ch-fill { display: block; height: 100%; width: 0; background: var(--glow, #2f7cf6); transition: background .8s; }
.ch-labels { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 8px; }
.ch-labels button { background: none; border: 0; color: rgba(255,255,255,.45); font: 700 .72rem/1 inherit; font-family: inherit;
  letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 4px 0; cursor: pointer; }
.ch-labels button.on { color: #fff; }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 76px 16px 64px; align-items: start; }
  .copy { min-height: 0; align-items: start; }
  .chap h1 { font-size: 2.3rem; } .chap h2 { font-size: 1.75rem; }
  .chap p { font-size: .98rem; }
  .stage-glow { right: -30%; top: 65%; }
  .sweden-layer { left: 0; right: 0; width: auto; top: 260px; bottom: 80px; }
  .ch-labels button { font-size: 0; }
  .ch-labels button.on { font-size: .66rem; }
}

/* ---------- After the scene ---------- */
.bento-sec, .steps-sec, .faq-sec { padding: 110px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.b { background: var(--night-2); border: 1px solid rgba(255,255,255,.07); border-radius: 28px; padding: 26px; overflow: hidden;
  display: flex; flex-direction: column; gap: 20px; }
.b-copy p { color: rgba(255,255,255,.7); margin: 0; }
.b-drive { grid-row: span 2; }
.b-drive .phone { width: min(260px, 70vw); }
.b-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; }
.b .w-ice { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; }
.b-terrain .terrain-frame { box-shadow: none; }
.b .w-fuel, .b .w-offline { background: #fff; color: var(--ink); border-radius: 20px; }
.b .friends-map { border: 0; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .b-drive { grid-row: auto; grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b-drive, .b-wide { grid-column: auto; } .b-wide { grid-template-columns: 1fr; } }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-list li { display: flex; gap: 16px; background: var(--night-2); border: 1px solid rgba(255,255,255,.07); border-radius: 24px; padding: 24px; }
.steps-list i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--trail);
  font-style: normal; font-weight: 800; }
.steps-list p { color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 860px) { .steps-list { grid-template-columns: 1fr; } }

.faq-sec { background: var(--snow); color: var(--ink); }
.final-sec { padding: 120px 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, #1d3a60, var(--night) 70%); }
.final-sec img { margin: 0 auto 22px; border-radius: 20px; }
.final-sec p { color: rgba(255,255,255,.75); }
.final-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; align-items: center; }

/* Short phones (iPhone SE etc.): headline only, so the phone gets the room. */
@media (max-width: 860px) and (max-height: 760px) {
  .chap p { display: none; }
  .chap h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .stage { position: relative; }
}
