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

:root {
  --night: #0F1736;
  --ultramarine: #16224F;
  --lapis: #23408E;
  --violet: #6E4C9A;
  --rose: #D98BA0;
  --saffron: #E9A93A;
  --snow: #EEEDF4;
  --mist: #8F98C4;
  --line: #2A3566;
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 56px);
  --text-w: 600px;
  --col-gap: clamp(48px, 8vw, 140px);
  --phone-w: clamp(260px, 22vw, 320px);
  --wrap: calc(var(--text-w) + var(--col-gap) + var(--phone-w));
  --land-h: clamp(300px, 46vh, 560px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

/* header */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 40px max(var(--gutter), (100% - var(--wrap)) / 2);
}
.logo { display: inline-block; }
.logo img { display: block; height: 32px; width: auto; }

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, var(--text-w)) auto;
  align-items: center;
  row-gap: 48px;
  justify-content: center;
  column-gap: var(--col-gap);
  /* Reserve the band the ridges can reach (top 30% of the landscape is sky). */
  padding: 128px var(--gutter) calc(var(--land-h) * 0.7 + 24px);
  overflow: hidden;
  isolation: isolate;
}
.hero-text { max-width: var(--text-w); }
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, min(4vw, 6.6vh), 58px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  max-width: 36em;
  font-size: clamp(16px, 1.3vw, 17px);
  color: var(--mist);
}
.lede + .lede { margin-top: 14px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  font: 600 16px/1 var(--font);
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--snow); color: var(--night); border-radius: 999px; }
.btn-primary:hover { background: #fff; }
.btn-secondary { border-radius: 999px; background: transparent; color: var(--snow); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* phone placeholder */
.phone {
  position: relative; z-index: 1;
  width: var(--phone-w); aspect-ratio: 300 / 640;
  padding: 10px;
  border-radius: 48px;
  background: #0A1029;
  box-shadow: inset 0 0 0 1.5px #2A3566;
  /* Stand the phone in the landscape. */
  margin-bottom: calc(var(--land-h) * -0.5);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--night);
}
.phone-ridges { position: absolute; inset: 0; width: 100%; height: 100%; }

/* app loop in the phone (phone.js). Laid out at 280px wide and scaled to fit. */
.app {
  position: absolute; left: 0; top: 0;
  width: 280px; height: 600px;
  transform-origin: 0 0;
  font-family: var(--font); line-height: 1.2; color: var(--snow);
}
.app p { margin: 0; }
.app-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.island {
  position: absolute; top: 11px; left: 103px; z-index: 3;
  width: 74px; height: 22px; border-radius: 11px; background: #05081A;
}
.start-label {
  position: absolute; left: 0; right: 0; margin-top: -10px;
  text-align: center; font-weight: 600; font-size: 16px; line-height: 20px; color: var(--night);
}
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.scr h3 {
  position: absolute; top: 72px; left: 24px; right: 24px; margin: 0;
  font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em;
}
.scr h3.xl { font-weight: 800; font-size: 34px; letter-spacing: -0.04em; }
.scr .sub { position: absolute; left: 24px; font-size: 15px; color: var(--mist); }
.scr .phones { display: flex; align-items: center; gap: 8px; }
.s-check .big {
  position: absolute; top: 200px; left: 0; right: 0; text-align: center;
  font-weight: 800; font-size: 80px; line-height: 1; letter-spacing: -0.04em;
}
.slider { position: absolute; left: 32px; width: 216px; height: 4px; border-radius: 2px; background: var(--line); }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--saffron); }
.slider .thumb {
  position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: var(--snow);
}
.ends { position: absolute; left: 32px; width: 216px; display: flex; justify-content: space-between; font-size: 13px; color: var(--mist); }
.app .pill {
  position: absolute; left: 24px; right: 24px; bottom: 40px; height: 48px;
  display: grid; place-items: center;
  border-radius: 24px; background: var(--snow); color: var(--night);
  font-weight: 600; font-size: 16px;
}
.s-talk .who { position: absolute; top: 72px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 16px; }
.s-talk .wave {
  position: absolute; left: 0; right: 0; bottom: 72px; height: 40px;
  display: flex; justify-content: center; align-items: center; gap: 4px;
}
.s-talk .wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--snow); opacity: .85; }
.s-rate .lbl { position: absolute; left: 32px; font-weight: 600; font-size: 16px; }
.s-pick .guide { position: absolute; top: 250px; width: 100px; text-align: center; }
.s-pick .guide i {
  display: block; width: 88px; height: 88px; margin: 6px auto 18px; border-radius: 50%;
  transition: box-shadow .3s;
}
.s-pick .guide.on i { box-shadow: 0 0 0 6px var(--night), 0 0 0 8.5px var(--snow); }
.s-pick .guide span { font-weight: 600; font-size: 16px; }
.finger {
  position: absolute; left: -23px; top: -23px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(238, 237, 244, .22); box-shadow: inset 0 0 0 2px rgba(238, 237, 244, .7), 0 2px 10px rgba(5, 8, 26, .35);
  opacity: 0; pointer-events: none;
}
.finger.down { background: rgba(238, 237, 244, .38); }

/* landscape */
.landscape {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: clamp(220px, 34vh, 420px);
  overflow: visible;
}
.sun { animation: rise 3.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(140px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sun { animation: none; } }

/* generative landscape replaces the static one once it has drawn */
.landscape-canvas {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: var(--land-h);
  display: block;
  visibility: hidden;
}
.landscape-canvas.ready { visibility: visible; }
.landscape-canvas.ready + .landscape { display: none; }

/* Sky light behind the whole hero (drawn by landscape.js at low resolution). */
.sky-canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: blur(6px); /* smooths gradient banding */
}

/* faq: continues the front ridge colour */
.faq {
  background: var(--ultramarine);
  padding: 48px max(var(--gutter), (100% - var(--wrap)) / 2) 96px;
}
.faq > * { max-width: 760px; }
.faq h2 {
  margin-top: 0; margin-bottom: 24px;
  font-weight: 700; font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1; letter-spacing: -0.03em;
}
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  min-height: 44px;
  font-weight: 600; font-size: 18px; line-height: 1.3;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p, details ul { margin: 0 0 24px; color: var(--mist); max-width: 64ch; }
details ul { padding-left: 1.2em; }
details li + li { margin-top: 6px; }

/* footer */
.foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px max(var(--gutter), (100% - var(--wrap)) / 2);
  background: var(--ultramarine);
  border-top: 1px solid var(--line);
}
.foot img { display: block; }
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--snow); }

/* modal */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ultramarine);
  color: var(--snow);
  box-shadow: inset 0 0 0 1px var(--line);
}
.modal::backdrop { background: rgba(10, 16, 41, .78); }
.modal[open] { animation: open .2s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.modal-body[hidden] { display: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; }
.modal h2 { margin: 0; font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.modal .done p { margin: 0; color: var(--mist); }
.close {
  flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--mist); cursor: pointer;
}
.close:hover { color: var(--snow); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--mist); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font);
  color: var(--snow);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mist); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--mist); cursor: pointer; }
.check input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin: 0; color: var(--rose); font-size: 15px; }
.modal-body .btn-primary { align-self: flex-start; margin-top: 4px; }

/* small screens */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 80px;
    gap: 28px;
  }
  .top { padding-top: 24px; padding-bottom: 24px; }
  .phone { justify-self: center; width: min(260px, 70vw); }
  h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
  .lede { margin-top: 16px; font-size: 15.5px; line-height: 1.5; }
  .lede + .lede { margin-top: 10px; }
  .actions { margin-top: 22px; }
  .sun { cx: 1010px; cy: 150px; }
}
