@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Flodi brand (see Mobile app design planning/design_handoff_flodi_brand) */
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #221e3f;
  --muted: #5c5878;
  --line: #e4e0d6;
  --iris: #5b50e0;
  --lilac: #b4aef7;
  --lilac-soft: #e4e1fd;
  --lilac-deep: #3d34b5;
  --teal: #14a394;
  --teal-deep: #0b6e66;
  --sun: #ffc83d;
  --coral: #ff7a59;
  --hero: var(--iris);
  --hero-text: #ffffff;
  --accent: var(--iris);
  --num-bg: var(--iris);
  --num-text: #ffffff;
  --dot: var(--teal);
  --phone-border: var(--ink);
  --shadow: 0 24px 60px -24px rgba(61, 52, 181, 0.45);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131f;
    --surface: #1d1a2c;
    --ink: #eceaf6;
    --muted: #b3afc9;
    --line: #2f2b45;
    --hero: var(--lilac-deep);
    --accent: var(--lilac);
    --num-bg: var(--lilac);
    --num-text: #221e3f;
    --dot: var(--teal);
    --phone-border: #3a3556;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero: iris sky, teal water along the bottom edge */
.hero {
  position: relative;
  background: var(--hero);
  color: var(--hero-text);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 96' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q16 2 32 14T64 14T96 14T128 14V96H0Z' fill='%2314a394'/%3E%3Cpath d='M0 44Q16 34 32 44T64 44T96 44T128 44V96H0Z' fill='%230b6e66' fill-opacity='.55'/%3E%3C/svg%3E")
    repeat-x left bottom / 128px 96px;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-text);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  border-radius: 23%;
}
.wordmark {
  display: block;
  width: 70px;
  height: 30px;
  overflow: visible;
}
.lang {
  color: var(--hero-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
}
.lang:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hero-grid {
  display: grid;
  gap: 40px;
  padding: 24px 0 0;
}
.hero .tagline {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero p {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sun);
  color: #221e3f;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.hero .facts {
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-shot {
  justify-self: center;
  width: min(300px, 78vw);
  margin-bottom: -60px;
}

/* Phone frame */
.phone {
  border-radius: 30px;
  overflow: hidden;
  border: 6px solid var(--phone-border);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero .phone {
  border-color: #221e3f;
  box-shadow: 0 30px 60px -20px rgba(11, 110, 102, 0.6);
}
.phone img {
  width: 100%;
}

/* Sections */
section {
  padding: 72px 0;
}
.hero + main > section:first-child {
  padding-top: 120px;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lead {
  margin: 0 0 40px;
  max-width: 36em;
  color: var(--muted);
  font-size: 19px;
}
.steps {
  display: grid;
  gap: 48px;
}
.step {
  display: grid;
  gap: 24px;
  align-items: center;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 23%;
  background: var(--num-bg);
  color: var(--num-text);
  font-weight: 700;
  font-size: 15px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}
.step p {
  margin: 0;
  color: var(--muted);
}
.step .phone {
  width: min(260px, 70vw);
  justify-self: center;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.band .phone,
.ai .phone {
  width: min(260px, 70vw);
  justify-self: center;
}
.band ul,
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.band li,
.checks li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.band li::before,
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
}
.band li strong,
.checks li strong {
  color: var(--ink);
}

.soon {
  text-align: center;
}
.soon .mascot {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}
.soon .lead {
  margin: 0 auto 32px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #221e3f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.store:hover {
  background: #000000;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}
.pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: #221e3f;
  font-size: 14px;
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cta {
  color: #ffffff;
  font-weight: 600;
  text-underline-offset: 4px;
}
.soon {
  scroll-margin-top: 16px;
}
.features {
  margin: 0 auto 48px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 960px;
  text-align: left;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  color: var(--muted);
}
.features strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 4px;
}
.signup {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: left;
}
.signup h3 {
  margin: 0 0 16px;
  font-size: 22px;
  text-align: center;
}
.plans {
  display: grid;
  gap: 12px;
}
@media (min-width: 480px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  display: grid;
  gap: 2px;
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 14px 16px;
}
.plan-name {
  font-weight: 600;
  color: var(--muted);
  font-size: 15px;
}
.plan-price,
.plan-was s {
  white-space: nowrap;
}
.plan-price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}
.plan-price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.plan-was {
  font-size: 14px;
  color: var(--muted);
}
.plans-note,
.fine {
  color: var(--muted);
  font-size: 15px;
}
.plans-note {
  margin: 14px 0 20px;
}
.fine {
  margin: 16px 0 0;
}
.waitlist {
  display: grid;
  gap: 14px;
}
.waitlist label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
.waitlist input,
.waitlist select {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.waitlist input:focus,
.waitlist select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.waitlist button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--sun);
  color: #221e3f;
  cursor: pointer;
}
.waitlist button:disabled {
  opacity: 0.6;
}
.thanks {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lilac-soft);
  color: #221e3f;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (min-width: 820px) {
  body {
    font-size: 18px;
  }
  .hero::after {
    height: 120px;
    background-size: 160px 120px;
  }
  .hero .tagline {
    font-size: 15px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 48px;
  }
  .hero-grid > div:first-child {
    padding-bottom: 150px;
  }
  .hero-shot {
    width: 300px;
    justify-self: end;
    margin-right: 40px;
    margin-bottom: -90px;
  }
  .hero + main > section:first-child {
    padding-top: 150px;
  }
  .step {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .step:nth-child(even) .phone {
    order: -1;
  }
  .band-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
  }
  .ai .band-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .ai .phone {
    order: 1;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .signup {
    padding: 36px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .soon .mascot {
    animation: bob 4s ease-in-out infinite;
  }
  @keyframes bob {
    50% {
      transform: translateY(-6px);
    }
  }
}

/* 404 */
.missing {
  min-height: 100vh;
  display: grid;
  align-items: center;
  text-align: center;
  padding: 48px 0;
}
.missing .mascot {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}
.missing h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
}
.missing .lead {
  margin: 0 auto 28px;
}
.button {
  display: inline-block;
  margin: 4px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: #221e3f;
  font-weight: 700;
  text-decoration: none;
}
.button.ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
