/* Bearly site (bearly.gojansson.com, English / and Swedish /sv/): "The living cabin". Near-monochrome, one lavender
   accent, large tight type, flat colour fields only, the real films and the 21:9 cabin art. One curve for every
   transition. Shared by both languages: every path is absolute. */
@font-face { font-family: 'Nunito'; font-weight: 500 900; font-display: swap; src: url(/app/assets/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 500 900; font-display: swap; src: url(/app/assets/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --snow: #fbf8ff; --mist: #f2edf8; --ink: #2f2236; --ink-2: #5b4d65; --line: rgba(47, 34, 54, .12);
  --navy: #14123a; --navy-2: #0e0c2c; --on-navy: #cdc7e4; --navy-line: rgba(251, 248, 255, .14);
  --accent: #6a55b5; --accent-n: #bcaef0;
  --ease: cubic-bezier(.2, .7, .1, 1);            /* the one curve */
  --g: clamp(16px, 4.4vw, 64px);
  --sec: clamp(88px, 12.5vw, 192px);
  --f-h2: clamp(2.5rem, 1.1rem + 5.6vw, 6.75rem);
  --f-h3: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--snow); }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: 'Nunito', ui-rounded, system-ui, -apple-system, sans-serif;
  font-weight: 550; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
h1, h2 { font-weight: 900; letter-spacing: -0.035em; line-height: .95; }
h3 { font-size: var(--f-h3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; hanging-punctuation: first; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--snow); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.plus :focus-visible, .p-night :focus-visible, [data-tod="night"] .hero :focus-visible { outline-color: var(--accent-n); }
/* a section that a nav link jumped to holds the focus for the keyboard, without a ring around the whole block */
main [tabindex="-1"]:focus, main [tabindex="-1"]:focus-visible { outline: none; }
dd, li, summary { text-wrap: pretty; }
.nb { white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(1240px + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.sec-head { max-width: 62rem; margin-bottom: clamp(56px, 7vw, 104px); }
.sec-head h2, .privacy h2, .final h2 { font-size: var(--f-h2); }
.sub { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); color: var(--ink-2); margin-top: 28px; max-width: 34em; text-wrap: balance; }

/* Reveal (m.js adds .in): fade and rise 20 px; images settle from 1.04. Hidden only when JS runs. */
[data-reveal] { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
html.js [data-reveal]:not(.in) { opacity: 0; transform: translate3d(0, 20px, 0); }
[data-reveal] img { transition: transform 1.1s var(--ease); }
html.js [data-reveal]:not(.in) img { transform: scale(1.04); }
html.rm [data-reveal], html.rm [data-reveal] img { opacity: 1 !important; transform: none !important; transition: none; }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: #110d16; color: #fff; text-decoration: none; transition: transform .7s var(--ease); }
.store .apple { width: 21px; height: 26px; fill: currentColor; flex: none; margin-top: -3px; }
.store span { display: flex; flex-direction: column; line-height: 1.08; }
.store small { font-size: .6875rem; font-weight: 700; letter-spacing: .01em; }
.store b { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.015em; }
.store.is-soon { opacity: .8; }
.ghost { display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 14px; text-decoration: none; font-weight: 750;
  color: var(--ink); background: rgba(251, 248, 255, .82); box-shadow: inset 0 0 0 1px var(--line); transition: transform .7s var(--ease);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.store:active, .ghost:active, .nav-get:active, .tod button:active, .pp:active { transform: scale(.97); transition-duration: .15s; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
/* a pointer gets an answer everywhere it can click: buttons lift, links and rows take the accent, controls a flat tint */
@media (hover: hover) {
  .store:hover, .ghost:hover { transform: translate3d(0, -2px, 0); }
  .nav-get:hover { transform: translate3d(0, -1px, 0); }
  .pp:hover { transform: scale(1.06); }
  .nav nav a:hover, .qs summary:hover { color: var(--accent); }
  [data-tod="night"] .nav:not(.past) nav a:hover { color: var(--accent-n); }
  .more:hover { text-decoration-thickness: 2px; }
  .tod button:hover:not([aria-pressed="true"]) { background: rgba(47, 34, 54, .1); }
  [data-tod="night"] .tod button:hover:not([aria-pressed="true"]) { background: rgba(251, 248, 255, .16); }
}

/* ---------- Nav: thin and quiet, a flat translucent surface after scroll ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--g) 0;
  display: flex; align-items: center; gap: 24px; color: var(--ink); }
.nav::before, .nav::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s var(--ease); }
.nav::before { background: rgba(251, 248, 255, .86); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
/* the plate comes with the first scroll (site.js: .solid after 8 px), so the hero never runs through the bar. Over the
   night hero (until .past, the end of the hero) it is the night's own flat navy; after that the light one */
.nav::after { background: rgba(20, 18, 58, .92); box-shadow: 0 1px 0 var(--navy-line); }
.nav.solid::before { opacity: 1; }
[data-tod="night"] .nav.solid:not(.past)::before { opacity: 0; }
[data-tod="night"] .nav.solid:not(.past)::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 900; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav nav { display: none; margin-left: auto; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 650; font-size: .9375rem; }
.nav-get { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: .9375rem; background: var(--ink); color: var(--snow); transition: transform .7s var(--ease); }
/* the other language. Phones: a short code beside the one button; wide screens: the word, after the sections */
.nav-lang { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none;
  font-weight: 800; font-size: .8125rem; letter-spacing: .08em; color: inherit; }
.nav-lang .lg { display: none; }
.nav-lang + .nav-get { margin-left: -12px; }
.nav-get { white-space: nowrap; }
@media (max-width: 359px) { .nav { gap: 12px; } .nav-get { padding: 0 14px; font-size: .875rem; } }
/* without JS the bar never learns that the page moved, so it keeps its plate */
html:not(.js) .nav::before { opacity: 1; }
@media (min-width: 900px) {
  .nav nav { display: flex; } .nav-get, .nav-lang + .nav-get { margin-left: 12px; }
  .nav-lang .lg { display: inline; } .nav-lang .sm { display: none; }
  /* the other language: quiet, after the sections, before the one button */
  .nav-lang { padding: 0 14px; margin-left: 4px; font-weight: 650; font-size: .9375rem; letter-spacing: 0; color: var(--ink-2); box-shadow: inset 1px 0 0 var(--line); }
  .nav-lang:hover { color: var(--ink); }
  [data-tod="night"] .nav:not(.past) .nav-lang { color: var(--on-navy); box-shadow: inset 1px 0 0 var(--navy-line); }
  [data-tod="night"] .nav:not(.past) .nav-lang:hover { color: var(--snow); }
}
[data-tod="night"] .nav:not(.past) { color: var(--snow); }
[data-tod="night"] .nav:not(.past) .nav-get { background: var(--snow); color: var(--ink); }

/* ---------- Hero ---------- */
/* Phones and portrait tablets: the app's own film, full-bleed, type over sky and snow. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; color: var(--ink); }
.fields { display: none; }
.win { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #d9cde6; }
.win-in { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; display: none; opacity: 0; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
html:not(.js) .l-dusk, [data-tod="day"] .l-day, [data-tod="dusk"] .l-dusk, [data-tod="night"] .l-night, .layer.show { display: block; }
html:not(.js) .l-dusk, [data-tod="day"] .l-day, [data-tod="dusk"] .l-dusk, [data-tod="night"] .l-night { opacity: 1; }
html.js:not(.rm) .win:not(.ready) .layer { transform: scale(1.04); }
.poster, .film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.film { opacity: 0; transition: opacity 1s var(--ease); }
.film.is-on { opacity: 1; }
.l-night .wash { position: absolute; inset: 0; background: #46519c; mix-blend-mode: multiply; }
/* the phone night sky: the northern lights lie high in the sky, from under the bar down to the light control, above the
   headline and well clear of the cabin roof. Mirrored, so the band falls to the right, behind the control's own plate */
.l-night .aurora { position: absolute; left: -8%; top: calc(env(safe-area-inset-top) + 56px); width: 116%; height: 62px; mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate; }
@keyframes drift { from { transform: translate3d(-1.5%, 0, 0) scale(-1, .96); } to { transform: translate3d(1.5%, 0, 0) scale(-1, 1.06); } }

.hero-title, .hero-side { position: absolute; left: var(--g); right: var(--g); transition: opacity .4s var(--ease); }
.hero-title { top: calc(env(safe-area-inset-top) + 116px); }
.hero .label { color: var(--ink); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, min(11vw, 12vh), 8.5rem); max-width: 9.5em; }
/* "Två varma björnar." is a little longer than "Two warm bears.": the Swedish headline is set a touch smaller so it
   keeps to two lines and stays in the sky above the cabin */
:lang(sv) .hero h1 { font-size: clamp(2rem, min(10.2vw, 12vh), 8.5rem); }
.hero-side { bottom: calc(env(safe-area-inset-bottom) + 14px); max-width: 32rem; }
/* the lede sits in the snow under the bears' feet, not across them: the group keeps tight to the bottom edge */
.lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); font-weight: 700; line-height: 1.45; margin-bottom: 14px; max-width: 24em; }
.hero .ctas { gap: 10px; }
/* what it costs, quietly, under the two buttons */
.note { font-size: .8125rem; font-weight: 750; line-height: 1.35; letter-spacing: .01em; margin-top: 10px; text-wrap: balance; }
@media (max-width: 359px) { .note { font-size: .75rem; letter-spacing: 0; } }
.hero.swap .hero-title, .hero.swap .hero-side, .hero.swap .tod-l { opacity: 0; }

.tod { position: absolute; z-index: 1; right: var(--g); top: calc(env(safe-area-inset-top) + 64px); display: flex; align-items: center; gap: 12px; }
.tod-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tod-seg, .pp { background: rgba(251, 248, 255, .76); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tod-seg { display: inline-flex; padding: 3px; border-radius: 999px; }
.tod button { min-width: 54px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 750; font-size: .875rem; color: var(--ink); transition: transform .4s var(--ease); }
.tod button[aria-pressed="true"] { background: var(--ink); color: var(--snow); }
html:not(.js) .tod { display: none; }
.pp { position: absolute; z-index: 1; left: var(--g); top: calc(env(safe-area-inset-top) + 67px); width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease); }
.pp[hidden] { display: none; }
.pp span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pp.paused span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

[data-tod="night"] .hero { color: var(--snow); }
[data-tod="night"] .hero .label { color: #e4ddff; }
[data-tod="night"] .hero .ghost { background: rgba(20, 18, 58, .55); color: var(--snow); box-shadow: inset 0 0 0 1px var(--navy-line); }
[data-tod="night"] .hero .store { box-shadow: inset 0 0 0 1px rgba(251, 248, 255, .26); }
[data-tod="night"] .tod-seg, [data-tod="night"] .pp { background: rgba(20, 18, 58, .72); box-shadow: inset 0 0 0 1px var(--navy-line); }
[data-tod="night"] .tod button, [data-tod="night"] .pp { color: var(--snow); }
[data-tod="night"] .tod button[aria-pressed="true"] { background: var(--snow); color: var(--ink); }

@media (max-width: 380px) { .hero .ghost { padding: 0 18px; min-height: 50px; } }
@media (max-height: 700px) and (max-aspect-ratio: 6/5) { .lede { display: none; } }
/* short phones (SE size): the label gives its line to the headline, so the headline stays in the sky above the cabin */
@media (max-height: 700px) and (max-width: 599px) { .hero-title .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .hero-title { top: calc(env(safe-area-inset-top) + 112px); }
  /* the price note takes its line from the gaps, so the buttons stay under the bears' feet */
  .hero-side { bottom: calc(env(safe-area-inset-bottom) + 14px); } .hero .ctas { gap: 8px; } .note { margin-top: 8px; } }
/* the smallest phones (320 x 568): the cabin roof starts a little over a quarter down, so the headline is set smaller and higher */
@media (max-height: 600px) and (max-width: 599px) { .hero-title { top: calc(env(safe-area-inset-top) + 120px); } .hero h1, :lang(sv) .hero h1 { font-size: 1.875rem; }
  .hero .store { min-height: 50px; } .hero .store b { font-size: 1.1875rem; } .hero .ghost { min-height: 48px; } .hero-side { bottom: calc(env(safe-area-inset-bottom) + 10px); } }
/* portrait tablets: the headline sits over trees and the cabin, so it gets a flat glass plate */
/* portrait tablets and near-square windows: the headline sits over trees and the cabin and the lede over the bears, so
   both get a flat glass plate. The headline's plate is as wide as its two lines */
@media (min-width: 600px) and (max-aspect-ratio: 6/5) {
  .hero-title, .hero-side { right: auto; border-radius: 28px; background: rgba(251, 248, 255, .74);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
  .hero-title { max-width: calc(100% - 2 * var(--g)); padding: 28px 32px 32px; }
  .hero-side { max-width: 30rem; padding: 24px 28px; }
  .hero h1 { font-size: clamp(2.6rem, 8vw, 4.75rem); max-width: none; white-space: nowrap; }
  :lang(sv) .hero h1 { font-size: clamp(2.4rem, 7.3vw, 4.5rem); }
  [data-tod="night"] .hero-title, [data-tod="night"] .hero-side { background: rgba(20, 18, 58, .62); }
}
/* near-square windows (about 900 x 800): the picture's trees reach the bar, so the bar keeps its plate from the start */
@media (min-width: 600px) and (max-aspect-ratio: 6/5) and (min-aspect-ratio: 9/10) {
  .nav::before { opacity: 1; }
  [data-tod="night"] .nav:not(.past)::before { opacity: 0; }
  [data-tod="night"] .nav:not(.past)::after { opacity: 1; }
}

/* Wide screens: large type on a flat field, the 21:9 cabin in a near full-bleed window below. */
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .hero { display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: clamp(28px, 4vh, 48px); min-height: 680px;
    padding: calc(env(safe-area-inset-top) + 88px) 24px 24px; }
  .fields { display: block; position: absolute; inset: 0; z-index: -2; }
  .fields i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
  .f-day { background: var(--snow); } .f-dusk { background: var(--mist); } .f-night { background: var(--navy); }
  html:not(.js) .f-dusk, [data-tod="day"] .f-day, [data-tod="dusk"] .f-dusk, [data-tod="night"] .f-night { opacity: 1; }
  .hero-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 64px; padding-inline: calc(var(--g) - 24px); }
  .hero-title, .hero-side { position: static; }
  .hero h1 { font-size: clamp(3.75rem, min(7.2vw, 12.5vh), 8.5rem); }
  :lang(sv) .hero h1 { font-size: clamp(3.5rem, min(6.3vw, 11.5vh), 7.75rem); }
  .hero-side { max-width: 27rem; padding-bottom: 6px; }
  .hero-side .ctas { flex-wrap: nowrap; gap: 12px; }
  .lede { margin-bottom: 20px; }
  .note { color: var(--ink-2); }
  [data-tod="night"] .note { color: var(--on-navy); }
  .win { position: relative; inset: auto; z-index: 0; border-radius: 28px; background: #cfd5e6; }
  /* the picture is a little taller than its window, so the 8 % drift never uncovers the window's own colour */
  .win-in { top: -9%; height: 109%; }
  .poster, .film { object-position: 50% 62%; }
  .l-dusk .poster, .l-dusk .film { object-position: 50% 70%; }
  .l-night .wash, .l-night .aurora { display: none; }
  .tod { top: auto; bottom: 20px; right: 20px; gap: 4px; padding: 3px 3px 3px 18px; border-radius: 999px; background: rgba(251, 248, 255, .78); box-shadow: inset 0 0 0 1px var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .tod .tod-seg { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .tod-l { position: static; width: auto; height: auto; clip: auto; padding-right: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
  [data-tod="night"] .tod { background: rgba(20, 18, 58, .58); box-shadow: inset 0 0 0 1px var(--navy-line); }
  [data-tod="night"] .tod .tod-seg { background: none; box-shadow: none; }
  [data-tod="night"] .tod-l { color: var(--snow); }
  .pp { left: 20px; top: auto; bottom: 20px; }
}

/* small laptops and landscape tablets (900-1199 px): the headline takes the full width on two lines, and the lede and
   the buttons share one row under it, instead of squeezing the headline into three lines beside them */
@media (min-width: 900px) and (max-width: 1199px) and (min-aspect-ratio: 6/5) {
  .hero-head { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .hero-side { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 0; }
  .hero-side .lede { margin: 0; max-width: 25em; }
  .hero-cta { flex: none; }
  /* the window is short here: the control keeps to its three buttons, so it does not cover the bears */
  .tod { padding: 3px; }
  .tod-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
}

/* ---------- A day at the cabin ---------- */
.chapter { position: relative; background: var(--mist); }
.ch-pin { position: relative; padding: var(--sec) var(--g); max-width: calc(1240px + 2 * var(--g)); margin-inline: auto; }
.ch-bg, .h-snow, .ch-foot { display: none; }
.ch-head h2 { font-size: var(--f-h2); margin-bottom: clamp(48px, 7vw, 96px); }
.sc { display: grid; gap: 28px 72px; align-items: center; margin-bottom: 88px; }
.sc-media { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; background: #e6e0f0; isolation: isolate; }
.sc-media > img, .sc-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.sc0 .sc-media > *, .sc4 .sc-media > img, .sc4 .sc-media > video { object-position: 50% 50%; }
.sc-k { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.sc-t { font-size: clamp(2.25rem, 1.1rem + 4.2vw, 5.25rem); font-weight: 900; line-height: .97; letter-spacing: -0.035em; }
.sc-s { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); margin-top: 24px; max-width: 26em; }
.sc-media .wash { position: absolute; inset: 0; background: #46519c; mix-blend-mode: multiply; }
.sc-media .aurora { position: absolute; left: -12%; top: 0; width: 124%; height: 30%; mix-blend-mode: screen; object-fit: fill; }
.sc4 .sc-media .wash { background: #4c57a3; }
.sc4 .sc-media .aurora { height: 26%; opacity: .9; }
.frost { position: absolute; inset: 0; pointer-events: none; border-style: solid; border-color: transparent; border-width: 52px 36px 44px;
  border-image-slice: 150 110 150 110; border-image-width: 1; border-image-repeat: stretch; }
/* the frost picture loads only when its block is near the screen */
html:not(.js) .frost, .in .frost, .chapter.near .frost { border-image-source: url(/app/assets/frost.webp); }
@media (min-width: 760px) { .sc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* pinned: one stage, the light changes as you scroll (html.pin is set by h.js when motion is allowed) */
html.pin .chapter { height: 520vh; background: none; }
html.pin .ch-pin { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; margin: 0; overflow: hidden; display: grid; isolation: isolate;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: 16px;
  padding: calc(env(safe-area-inset-top) + 72px) var(--g) calc(env(safe-area-inset-bottom) + 16px); }
html.pin .ch-bg { display: block; position: absolute; inset: 0; z-index: -1; }
.ch-bg i { position: absolute; inset: 0; }
.ch-bg .b0 { background: var(--mist); } .ch-bg .b1 { background: #e9eff8; opacity: 0; } .ch-bg .b2 { background: #f5e9f0; opacity: 0; }
.ch-bg .b3 { background: var(--navy); opacity: 0; } .ch-bg .b4 { background: var(--navy-2); opacity: 0; }
/* the night field does not follow the scroll: it turns with the caption (site.js), so ink never sits on half-dark */
html.pin .ch-bg .b3, html.pin .h-ink, html.pin .h-snow { transition: opacity .45s var(--ease); }
html.pin .ch-head { grid-row: 1; grid-column: 1; position: relative; }
html.pin .ch-head h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; margin: 0; }
html.pin .ch-head h2 { position: relative; }
html.pin .h-snow { display: block; position: absolute; inset: 0; color: var(--snow); opacity: 0; }
html.pin .sc { display: contents; }
html.pin .sc-cap { grid-row: 2; grid-column: 1; pointer-events: none; }
html.pin .sc.on .sc-cap { pointer-events: auto; }
html.pin .sc-k { margin-bottom: 10px; }
html.pin .sc-t { font-size: clamp(2rem, 1.1rem + 4.2vw, 5.75rem); }
html.pin .sc-s { margin-top: 12px; }
html.pin .sc-media { grid-row: 3; grid-column: 1; aspect-ratio: auto; width: 100%; height: 100%; min-height: 0; opacity: 0; background: transparent; will-change: opacity; }
html.pin .sc0 .sc-media { opacity: 1; background: #e6e0f0; }
html.pin .sc3 .night-still { visibility: hidden; }
/* the night layer has no picture of its own: its wash and aurora blend straight onto the dusk film below */
html.pin .sc3 .sc-media { opacity: 1; isolation: auto; will-change: auto; }
html.pin .sc3 .wash, html.pin .sc3 .aurora { opacity: 0; will-change: opacity; }
html.pin .is-night .sc-cap { color: var(--snow); }
html.pin .is-night .sc-k { color: var(--accent-n); }
html.pin .is-night .sc-s { color: var(--on-navy); }
html.pin .ch-foot { display: flex; align-items: center; gap: 12px; grid-row: 4; grid-column: 1; }
.ch-time { position: relative; padding: 10px 18px 12px; border-radius: 18px; background: rgba(251, 248, 255, .94); color: var(--ink); }
.ch-time ol { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ch-time li { opacity: .72; transition: opacity .7s var(--ease); }
.ch-time li.on { font-weight: 900; }
.ch-time li.on { opacity: 1; }
.ch-bar { display: block; height: 2px; margin-top: 8px; background: var(--line); overflow: hidden; }
.ch-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
/* phones: the pause button sits top right, level with the chapter label; wide screens: next to the timeline */
.pp-ch { left: auto; right: var(--g); top: calc(env(safe-area-inset-top) + 62px); background: rgba(251, 248, 255, .88); flex: none; }
@media (max-width: 380px) { .ch-time ol { gap: 9px; font-size: .6875rem; letter-spacing: .03em; } .ch-time { padding-inline: 14px; } }

/* caption words arrive in at most three beats */
html.pin .sc-k, html.pin .sc-s { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .35s var(--ease), transform .35s var(--ease); }
html.pin .sc-t .w { display: inline-block; opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .3s var(--ease), transform .3s var(--ease); }
html.pin .sc.on .sc-k, html.pin .sc.on .sc-s, html.pin .sc.on .w { opacity: 1; transform: none; transition-duration: .8s, 1.05s; }
html.pin .sc.on .w:nth-child(n+3) { transition-delay: .1s; }
html.pin .sc.on .w:nth-child(n+5) { transition-delay: .2s; }
html.pin .sc.on .sc-s { transition-delay: .3s; }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  html.pin .ch-pin { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: clamp(48px, 7vw, 128px); row-gap: 0;
    padding: calc(env(safe-area-inset-top) + 88px) max(var(--g), calc((100vw - 1320px) / 2)) 40px; }
  html.pin .ch-head { grid-row: 1; align-self: start; }
  html.pin .sc-cap { grid-row: 2; align-self: center; }
  html.pin .sc-media { grid-column: 2; grid-row: 1 / 4; align-self: center; height: min(calc(100svh - 136px), 880px); width: auto; aspect-ratio: 4 / 5; }
  html.pin .ch-foot { grid-row: 3; align-self: end; }
  .pp-ch { position: static; }
  .sc-t { max-width: 10em; }
}

/* ---------- How it works ---------- */
.how { padding-block: var(--sec) calc(var(--sec) * .75); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px 24px; }
.st-media { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--mist); margin-bottom: 28px; }
.st-media > img:not(.phone), .st-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.st-media .phone { position: absolute; left: 15%; top: 9%; width: 70%; height: auto; }
.st-media .frost { border-width: 40px 28px 34px; }
.st-n { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; font-variant-numeric: tabular-nums; padding-top: 16px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p:not(.st-n) { color: var(--ink-2); max-width: 30em; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li:nth-child(2) { transition-delay: .1s; } .steps li:nth-child(3) { transition-delay: .2s; } .steps li:nth-child(4) { transition-delay: .2s; }

.places { margin-top: clamp(96px, 11vw, 160px); }
.places-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.places-head h3 { font-size: var(--f-h3); }
.places-head p { color: var(--ink-2); }
.pcs { list-style: none; margin: 0 calc(-1 * var(--g)); padding: 4px var(--g) 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--g); scrollbar-width: none; overscroll-behavior-x: contain; }
.pcs::-webkit-scrollbar { display: none; }
.pcs li { flex: 0 0 min(64%, 280px); scroll-snap-align: start; }
.pcs img { width: 100%; height: auto; border-radius: 14px; background: var(--mist); }
.pcs span { display: block; margin-top: 12px; font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.pcs em { font-style: normal; margin-left: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 1080px) { .pcs { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; overflow: visible; } }

/* ---------- Features ---------- */
.feat { padding-block: calc(var(--sec) * .5) var(--sec); }
.panel { display: grid; border-radius: 32px; overflow: hidden; margin-top: 24px; background: var(--mist); }
.p-copy { padding: clamp(36px, 6vw, 88px); align-self: center; }
.p-copy h3 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); font-weight: 900; line-height: .98; letter-spacing: -0.035em; margin-bottom: 24px; }
.p-copy p:not(.label) { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); max-width: 28em; }
.p-art { display: flex; justify-content: center; height: clamp(360px, 48vw, 600px); padding-top: clamp(0px, 4vw, 72px); overflow: hidden; }
.p-art .phone { width: min(76%, 400px); height: auto; align-self: flex-start; }
.p-night { background: var(--navy); color: var(--snow); }
.p-night .label { color: var(--accent-n); }
.p-night .p-copy p:not(.label) { color: var(--on-navy); }
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 32px; }
  .panel:nth-of-type(even) .p-copy { order: 2; }
  .p-art { height: 640px; padding-top: 80px; }
}
.more-list { margin: clamp(80px, 10vw, 136px) 0 0; display: grid; gap: 0 48px; }
.more-list div { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.more-list dt { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.more-list dd { margin: 0; color: var(--ink-2); max-width: 30em; text-wrap: balance; }
@media (min-width: 700px) { .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Plus: the dark chapter ---------- */
.plus { background: var(--navy); color: var(--snow); padding-bottom: var(--sec); }
.plus .label { color: var(--accent-n); }
.plus .sub { color: var(--on-navy); }
.plus-art img { width: 100%; height: auto; aspect-ratio: 2560 / 1086; object-fit: cover; }
/* phones: a 3:2 cut keeps the northern lights on both sides of the cabin in the picture */
@media (max-width: 699px) { .plus-art img { aspect-ratio: 3 / 2; } }
.plus-in { display: grid; gap: 64px 96px; padding-top: var(--sec); }
/* "Plus" in the nav lands on the words, just under the bar, not on the picture above them: the block's own top
   padding is taken off the jump (a negative scroll margin), so the label stops 72 px down and the prices are in view */
.plus-in { scroll-margin-top: calc(72px - var(--sec)); }
.plus h2 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.5rem); }
.adds { list-style: none; margin: 0; padding: 0; }
.adds li { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--navy-line); }
.adds li:last-child { border-bottom: 1px solid var(--navy-line); }
.adds .n { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--accent-n); padding-top: 5px; font-variant-numeric: tabular-nums; }
.adds b { display: block; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.adds p { color: var(--on-navy); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plan { padding: 28px 0 32px; border-top: 1px solid var(--navy-line); }
.plan.is-main { border-top: 2px solid var(--accent-n); }
.pl-n { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy); }
.plan.is-main .pl-n { color: var(--accent-n); }
.pl-p { font-size: clamp(3rem, 2.2rem + 3vw, 5rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.pl-p .cur { font-size: .36em; font-weight: 800; letter-spacing: .02em; vertical-align: .12em; color: var(--on-navy); }
.pl-x { color: var(--on-navy); }
.fine { font-size: .9375rem; color: var(--on-navy); max-width: 46rem; }
@media (min-width: 900px) {
  .plus-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .plus-in { row-gap: 48px; }
  .adds li { padding: 18px 0; }
  .plan { padding-top: 24px; }
  .plans { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .fine { grid-column: 1 / -1; margin-top: -16px; }
}

/* ---------- Privacy ---------- */
.privacy { padding-block: var(--sec); display: grid; gap: 56px; align-items: center; }
.pv-art { border-radius: 32px; overflow: hidden; max-width: 560px; }
.pv-art img { width: 100%; height: auto; }
.pv-lead { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); font-weight: 750; line-height: 1.35; letter-spacing: -0.01em; margin-top: 32px; max-width: 28em; }
.facts { margin: 40px 0 24px; display: grid; }
.facts div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .privacy { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 128px); } .facts div { grid-template-columns: 14rem 1fr; gap: 24px; } }

/* ---------- What's new ---------- */
.new { background: var(--mist); padding-block: var(--sec); }
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
.nw-m { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; margin-bottom: 20px; isolation: isolate; background: #e6e0f0; }
.nw-m > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.nw-m .wash { position: absolute; inset: 0; background: #8f95d6; mix-blend-mode: multiply; }
.nw-m .frost { border-width: 30px 22px 26px; }
.news p { font-weight: 650; line-height: 1.45; padding-top: 16px; border-top: 1px solid var(--line); }
.news li:nth-child(2) { transition-delay: .1s; } .news li:nth-child(3), .news li:nth-child(4) { transition-delay: .2s; }
@media (min-width: 1000px) { .news { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--sec) calc(var(--sec) * .6); }
.qs { max-width: 56rem; border-bottom: 1px solid var(--line); }
.qs details { border-top: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 16px 0;
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translate3d(0, -4px, 0) rotate(45deg); transition: transform .7s var(--ease); }
.qs details[open] summary::after { transform: translate3d(0, 3px, 0) rotate(-135deg); }
.qs details p { padding: 0 0 28px; color: var(--ink-2); max-width: 40em; }
.more-wrap { margin-top: 24px; }

/* ---------- Closing ---------- */
.final { padding-top: calc(var(--sec) * .8); text-align: center; overflow: hidden; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final .sub { margin-inline: auto; }
/* the narrowest phones: the closing heading keeps to its two lines */
@media (max-width: 359px) { .final h2 { font-size: 2.125rem; } }
.final .ctas { justify-content: center; margin-top: 40px; }
.final-art { margin-top: clamp(72px, 9vw, 128px); overflow: hidden; }
.final-art img { width: 100%; height: auto; aspect-ratio: 1920 / 823; object-fit: cover; }
@media (max-width: 640px) { .final-art img { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.foot { background: var(--snow); padding-block: 72px calc(48px + env(safe-area-inset-bottom)); font-size: .9375rem; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 9px; }
.foot-brand p { display: flex; flex-direction: column; line-height: 1.4; }
.foot-brand b { font-size: 1.125rem; font-weight: 900; }
.foot-brand span { color: var(--ink-2); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 10rem)); gap: 24px; }
@media (min-width: 480px) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 9rem)); gap: 24px 32px; } }
.foot-nav a[aria-current] { color: var(--ink-2); }
.foot-nav .label { color: var(--ink-2); margin-bottom: 4px; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-end { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.care, .copy { color: var(--ink-2); max-width: 46rem; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-end { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: baseline; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
/* No prefers-reduced-transparency block on purpose: in Chrome that media query made scroll frames twice as slow in
   testing (qa/site-next/a/diag3.mjs). The glass is light and the text on it passes AA anyway. */
