@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/SchibstedGrotesk-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ground: #080d17;
  --card: #0f1828;
  --raised: #162236;
  --control: #1d2b44;
  --track: #0b1220;
  --line: rgba(255, 255, 255, 0.07);
  --border: rgba(120, 150, 205, 0.18);
  --text: #eef2f8;
  --muted: #93a1b6;
  --dim: #808da3;
  --decor: #5d6b82;
  --accent: #5b9bff;
  --accent-soft: #8bb8ff;
  --accent-tint: rgba(91, 155, 255, 0.16);
  --green: #34e39e;
  --red: #ff4f7e;
  --green-fill: rgba(52, 227, 158, 0.2);
  --red-tint: rgba(255, 79, 126, 0.14);
  --zero: rgba(255, 255, 255, 0.22);
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(112px, 14vw, 200px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Schibsted Grotesk', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--ground); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 10px; }
a { color: inherit; text-decoration-color: var(--decor); text-underline-offset: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-weight: 700; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--ground); z-index: 20; }
.skip:focus { top: 16px; }
.ph-big, .ph-books b, .ph-books small, .facit-big, .coupon em { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }

/* Top bar: the app's floating pills, over a ground that fades in once the page has scrolled. */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.top.scrolled { background: rgba(8, 13, 23, 0.92); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a, .lang { text-decoration: none; color: var(--muted); font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.top nav a:hover, .lang:hover { color: var(--text); background: var(--card); }
.top-end { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; text-decoration: none; border-radius: 999px; font-weight: 600; }
.pill-small { white-space: nowrap; padding: 9px 18px; font-size: 15px; background: var(--text); color: var(--ground); transition: transform 0.25s var(--ease); }
.pill-small:hover { transform: translateY(-1px); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--text); color: var(--ground); text-decoration: none;
  font-weight: 650; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.store + .store { background: var(--control); color: var(--text); box-shadow: none; }
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.9); }
.store + .store:hover { background: #24365a; box-shadow: none; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.7; letter-spacing: 0; }

/* Hero: copy at left, the phone at right, the season's curve across the bottom of both. */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); align-items: center; gap: 48px;
  min-height: min(calc(100svh - 76px), 940px);
  padding: 40px var(--gutter) 120px;
  isolation: isolate;
}
.hero h1 { font-size: clamp(46px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
@media (min-width: 1100px) { .hero h1 span { white-space: nowrap; } }
.hero .lead { margin-top: 28px; }
.hero .stores { margin-top: 40px; }
.note { margin-top: 18px; font-size: 14px; color: var(--dim); }

.phone { justify-self: start; position: relative; z-index: 2; }
.phone-screen {
  width: min(330px, 78vw); aspect-ratio: 330 / 680;
  border-radius: 50px; padding: 50px 18px 22px;
  background: var(--ground);
  border: 10px solid var(--control);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(120, 150, 205, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.phone figcaption { margin: 14px auto 0; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--ground); text-align: center; font-size: 13px; color: var(--dim); }
.ph-label { font-size: 13px; color: var(--muted); }
.ph-big { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; color: var(--green); margin-top: 2px; white-space: nowrap; }
.ph-sub { font-size: 13px; color: var(--green); }
.ph-chips { display: flex; gap: 4px; margin: 16px 0 6px; padding: 3px; border-radius: 999px; background: var(--track); }
.ph-chips li { flex: 1; text-align: center; font-size: 12px; padding: 6px 0; border-radius: 999px; color: var(--muted); }
.ph-chips li.on { background: var(--control); color: var(--text); font-weight: 600; }
.ph-chart { width: 100%; height: 110px; display: block; margin-top: 8px; overflow: visible; }
.ph-section { margin-top: 18px; font-size: 15px; font-weight: 600; }
.ph-books { margin-top: 10px; border-radius: 20px; background: var(--card); padding: 4px 14px; }
.ph-books li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.ph-books li + li { border-top: 1px solid var(--line); }
.ph-books i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--c); color: var(--ground); flex: none; }
.ph-books span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ph-books small { color: var(--dim); font-size: 12px; }
.ph-books b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ph-open { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--accent-tint); font-size: 13px; color: var(--accent-soft); }
.ph-open b { font-size: 14px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

svg .zero { stroke: var(--zero); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
svg .draw { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
svg .fill { opacity: 1; }
svg .fill.loss { fill: var(--red-tint); }
.hero-curve { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }

/* The draw: the curves are complete by default, and only drawn when motion is allowed. */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .will-draw .draw { stroke-dashoffset: 1; }
.js .will-draw .fill { opacity: 0; }
.js .drawn .draw { transition: stroke-dashoffset 2.2s var(--ease); }
.js .drawn .fill { transition: opacity 1.6s 0.6s var(--ease); }

/* Sync: copy at left, the coupons gather into the result at right as the section scrolls by. */
.sync {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px;
  padding: var(--section) var(--gutter) 0;
}
.sync-copy { align-self: start; position: sticky; top: 120px; padding-bottom: 80px; }
.sync h2, .insights h2, .screens h2, .pro h2, .faq h2, .books h2, .close h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.sync .lead { margin-top: 28px; }
.steps { margin-top: 44px; display: grid; gap: 4px; counter-reset: s; }
.steps li {
  counter-increment: s; display: flex; gap: 16px; align-items: center;
  padding: 14px 0; font-size: 18px; color: var(--dim);
  transition: color 0.5s var(--ease);
}
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--muted); transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.steps li.on { color: var(--text); }
.steps li.on::before { background: var(--accent); color: var(--ground); }
.works { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 32em; }
.works span { color: var(--text); font-weight: 600; }
.trust { margin-top: 32px; padding: 18px 20px; border-radius: 20px; background: var(--card); color: var(--muted); font-size: 15px; max-width: 30em; }

.stage { height: 210vh; position: relative; }
.stage-inner { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.coupon, .facit { grid-area: 1 / 1; }
.coupon {
  --p: 0;
  width: 240px; padding: 14px 16px 14px 52px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  font-size: 13px; color: var(--muted); position: relative;
  transform: translate(calc(var(--x) * var(--spread, 1) * (1 - var(--p))), calc(var(--y) * var(--spread, 1) * (1 - var(--p)))) rotate(calc(var(--r) * (1 - var(--p)))) scale(calc(1 - var(--p) * 0.25));
  opacity: calc(1 - max(0, var(--p) - 0.75) * 4);
  will-change: transform;
}
.coupon i { position: absolute; left: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: var(--c); color: var(--ground); }
.coupon b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.coupon span { display: block; margin-top: 2px; padding-right: 64px; }
.coupon em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; font-size: 14px; }
.facit {
  --p: 1;
  width: min(380px, 84vw); padding: 28px 28px 22px; border-radius: 28px;
  background: var(--raised); border: 1px solid rgba(120, 150, 205, 0.26);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: scale(calc(0.86 + var(--p) * 0.14)); opacity: var(--p);
  z-index: 1;
}
.facit-label { font-size: 14px; color: var(--muted); }
.facit-big { font-size: clamp(52px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; color: var(--green); white-space: nowrap; margin-top: 2px; }
.facit dl { margin-top: 18px; display: grid; gap: 2px; }
.facit dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facit dt { color: var(--muted); }
.facit dd { font-weight: 600; }
.facit-note { margin-top: 10px; font-size: 12px; color: var(--dim); }

/* Insights: the curve across the full width, with what it says pinned to its points. */
.insights { padding: var(--section) 0 0; }
.insights-head { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; align-items: end; }
.track { position: relative; margin-top: 72px; height: clamp(300px, 36vw, 480px); }
.track svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; left: var(--px); top: var(--py); width: 0; height: 0; }
.pin::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 6px var(--ground); }
.pin.down::before { background: var(--red); }
.pin span, .pin b { position: absolute; left: 0; white-space: nowrap; transform: translateX(-50%); }
.pin span { bottom: 26px; margin-bottom: 30px; font-size: 14px; color: var(--muted); }
.pin b { bottom: 26px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 650; letter-spacing: -0.02em; }
.pin.down span { bottom: auto; top: 22px; margin: 0; }
.pin.down b { bottom: auto; top: 44px; color: var(--red); }
.pin:last-of-type span, .pin:last-of-type b { transform: translateX(-92%); }
.track-note { position: absolute; left: var(--gutter); bottom: 12px; font-size: 13px; color: var(--dim); }
.honest { margin: 96px var(--gutter) 0; padding: 40px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.honest h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }
.honest p { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 34em; }

/* Screens */
.screens { padding: var(--section) var(--gutter) 0; }
.screens-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.screens-list div { padding: 32px 32px 8px 0; }
.screens-list div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.screens-list dt { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.screens-list dd { margin-top: 12px; color: var(--muted); max-width: 26em; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-soft); letter-spacing: 0.01em; }
.tag-quiet { background: var(--card); color: var(--muted); }

/* Pro */
.pro { padding: var(--section) var(--gutter) 0; }
.plans { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 1080px; }
.plan { padding: 36px; border-radius: 28px; background: var(--card); }
.plan-pro { background: linear-gradient(160deg, #15294d, var(--card) 70%); border: 1px solid rgba(91, 155, 255, 0.28); }
.plan h3 { font-size: 20px; font-weight: 600; color: var(--muted); }
.plan-pro h3 { color: var(--accent-soft); }
.price { margin-top: 10px; font-size: clamp(40px, 4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-alt { margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan ul { margin-top: 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--decor); flex: none; transform: translateY(-2px); }
.plan-pro li::before { background: var(--accent); }
.pro-note { margin-top: 24px; font-size: 14px; color: var(--dim); }

/* FAQ */
.faq { padding: var(--section) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.faq h2 { position: sticky; top: 120px; }
/* .faq-list holds the questions in the right column. */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 26px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent-soft); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 40em; }

/* Close */
.close { position: relative; margin-top: var(--section); padding: 140px var(--gutter) 140px; text-align: center; overflow: hidden; isolation: isolate; }
.close-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: -1; opacity: 0.8; }
.close .lead { margin: 24px auto 0; }
.close .stores { justify-content: center; margin-top: 44px; }

/* Footer */
.foot { padding: 48px var(--gutter) 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 14px; }
.foot-help strong { display: inline-grid; place-items: center; min-width: 38px; height: 26px; margin-right: 8px; border-radius: 6px; border: 1px solid var(--decor); color: var(--text); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text); }
.foot-meta { color: var(--dim); }

@media (max-width: 1100px) {
  .top nav { display: none; }
  .top-end { margin-left: auto; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq h2 { position: static; }
}

@media (max-width: 860px) {
  .phone { justify-self: center; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 96px; gap: 56px; min-height: 0; }
  .hero h1 { font-size: clamp(46px, 13vw, 72px); }
  .sync { grid-template-columns: 1fr; gap: 0; }
  .sync-copy { position: static; padding-bottom: 0; }
  .stage { height: 190vh; margin-top: 24px; }
  .coupon { width: 196px; font-size: 12px; --spread: 0.45; }
  .insights-head, .honest { grid-template-columns: 1fr; gap: 24px; }
  .track { height: 260px; margin-top: 48px; }
  .pins { position: static; display: grid; gap: 0; margin: 0 var(--gutter); }
  .track { display: flex; flex-direction: column; height: auto; }
  .track svg { position: relative; height: 220px; flex: none; }
  .pin { position: relative; left: auto; top: auto; width: auto; height: auto; display: flex; flex-direction: column; padding: 16px 0 16px 28px; border-top: 1px solid var(--line); }
  .pin::before { left: 0; top: 22px; box-shadow: none; }
  .pin span, .pin b, .pin.down span, .pin.down b, .pin:last-of-type span, .pin:last-of-type b { position: static; transform: none; margin: 0; white-space: normal; }
  .track-note { position: static; margin: 12px var(--gutter) 0; }
  .screens-list { grid-template-columns: 1fr; }
  .screens-list div, .screens-list div + div { padding: 28px 0; border-left: 0; }
  .screens-list div + div { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .close { padding: 112px var(--gutter); }
}

@media (max-width: 420px) {
  .brand { font-size: 17px; gap: 8px; }
  .pill-small { padding: 8px 14px; font-size: 14px; }
  .top-end { gap: 2px; }
  .stores { flex-direction: column; }
  .store { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { height: auto; }
  .stage-inner { position: static; height: min(760px, 92vh); }
  .coupon { --p: 0.3 !important; }
  .facit { --p: 1 !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .stage-inner { height: auto; padding: 24px 0 40px; display: grid; }
  .coupon { transform: translate(calc(var(--x) * 0.34), calc(var(--y) * 0.12 - 150px)) rotate(var(--r)); }
  .facit { margin-top: 190px; }
  * { transition-duration: 0.01ms !important; }
}
