/* kea waitlist site. Every value comes from brand/design-system/tokens.json. */

/* Caprasimo and Schibsted Grotesk from Google Fonts. The @font-face rules are copied
   from fonts.googleapis.com/css2?family=Caprasimo&family=Schibsted+Grotesk:wght@400;500;600;700
   so the page doesn't wait on that stylesheet. Caprasimo has one weight (400).
   Schibsted Grotesk is one variable file that covers 400 to 700. */
@font-face {
  font-family: 'Caprasimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/caprasimo/v6/esDT31JQOPuXIUGBp72UnJ8DOJKuGPLB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caprasimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/caprasimo/v6/esDT31JQOPuXIUGBp72Ukp8DOJKuGA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/schibstedgrotesk/v7/Jqz55SSPQuCQF3t8uOwiUL-taUTtap9IayojdSFOd1I.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/schibstedgrotesk/v7/Jqz55SSPQuCQF3t8uOwiUL-taUTtap9GayojdSFO.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour (marketing is always the light theme) */
  --ink: #1d1d1f;
  --on-ink: #ffffff;
  --ink-muted: #6e6e73;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --line: #e5e5ea;
  --line-strong: #8e8e93;
  --gold: #f2b544;
  --sage: #a9c46c;
  --pink: #ff9ab8;
  --pink-soft: #ffb8cc;
  --sky: #dce7ff;
  --sky-deep: #a9c2ff;
  --sky-soft: #e8f0ff;
  --trail: #e23d87;
  --trail-edge: #b52a6b;
  --on-trail: #ffffff;
  --danger: #b42318;

  /* type */
  --font-display: Caprasimo, Georgia, serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* shadow */
  --shadow-float: 0 8px 24px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-key: 0 3px 0 #c7c7cc;

  /* the gold highlighter strip behind key phrases */
  --highlight: linear-gradient(transparent 54%, var(--gold) 54%, var(--gold) 90%, transparent 90%);

  /* layout */
  --gutter: 40px;

  color-scheme: light;
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.02;
}
h3 { font-weight: 700; }

a { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--on-ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--space-4); }

/* holds the shared SVG patterns; it can't be display:none or the fills disappear */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.hl { background: var(--highlight); padding: 0 0.05em; white-space: nowrap; }

/* ---------- the mark ---------- */

.kea-mark { display: inline-block; flex: none; color: var(--ink); line-height: 0; }
.kea-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kea-mark .kea-eye { transform-box: fill-box; transform-origin: center; }
.kea-mark.is-blinking .kea-eye { animation: kea-blink 5s infinite; }
.kea-mark.dir-left svg > g { transform: translate(100px, 0) scale(-1, 1); }
@keyframes kea-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* the pink marks and rings inside the illustrations */
.blink { transform-box: fill-box; transform-origin: center; animation: kea-blink 5s infinite; }
.pulse { animation: kea-pulse 2.4s ease-in-out infinite; }
@keyframes kea-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- buttons, inputs, keycaps ---------- */

.kea-btn {
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-pill); border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  white-space: nowrap; text-decoration: none;
}
.kea-btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.kea-btn-primary { background: var(--ink); color: var(--on-ink); }
.kea-btn-primary:hover { opacity: .86; }
.kea-btn[disabled] { opacity: .45; cursor: default; }

.kea-keys { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.kea-key {
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; line-height: 1;
  min-width: 32px; height: 32px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-key);
}

/* ---------- waitlist form ---------- */

.kea-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kea-input {
  width: 280px; max-width: 100%; min-width: 0;
  font: inherit; font-size: 16px; font-weight: 500;
  height: 52px; padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.kea-input::placeholder { color: var(--ink-muted); opacity: 1; }
.kea-input[aria-invalid="true"] { border-color: var(--danger); }
.kea-form-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 13px; line-height: 1.25; font-weight: 500;
  color: var(--ink-muted);
  text-align: center;
}
.kea-form-note.is-error { color: var(--danger); font-weight: 600; }
.kea-form .ts:empty { display: none; }
/* cancels the row gap above it, so the invisible widget takes no room until it's needed */
.kea-form .ts { flex-basis: 100%; display: flex; justify-content: center; margin-top: -10px; }

/* "you're on the list" and the optional role question, made by site.js */
.kea-done-wrap {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  width: min(580px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: var(--radius-lg);
  /* white behind it so the trail never shows through the gaps */
  background: var(--surface); color: var(--ink);
  text-align: center;
}
.kea-done-wrap:focus { outline: none; }
.kea-done-wrap:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-lg); }
.kea-done {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 14px 24px 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink);
  font-weight: 700; line-height: 1.35; text-align: left;
}
.kea-ask { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.kea-ask-q { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.kea-ask-q:focus { outline: none; }
.kea-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.kea-role {
  font: inherit; font-size: 14px; font-weight: 600;
  height: 38px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.kea-role:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kea-role[disabled] { cursor: default; opacity: .6; }
.kea-role[disabled]:hover { border-color: var(--line-strong); box-shadow: none; }
.kea-ask .kea-form-note { margin: 0; }

/* ---------- step bubble and target ---------- */

.kea-bubble {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-float);
}
.kea-bubble .kea-mark { width: 30px; height: 20px; }
.kea-bubble-text { display: flex; flex-direction: column; min-width: 0; line-height: normal; }
.kea-bubble-count { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.kea-bubble-step { font-size: 15px; font-weight: 700; }

.kea-target { position: relative; display: inline-flex; border-radius: var(--radius-pill); }
.kea-target-ring {
  position: absolute; inset: -7px;
  border-radius: inherit;
  border: 3px solid var(--trail);
  pointer-events: none;
  animation: kea-pulse 2.4s ease-in-out infinite;
}

/* ---------- nav ---------- */

.topbar {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 27px; letter-spacing: -0.01em; line-height: 1;
}
.brand .kea-mark { width: 34px; height: 22px; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav .kea-btn { height: auto; padding: 12px 20px; line-height: normal; }
.topnav-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- shared section pieces ---------- */

.sec { position: relative; }
.wrap { position: relative; margin-inline: auto; padding-inline: var(--gutter); }

.h-hero { font-size: 96px; }
.h-section { font-size: 64px; }
.h-demo { font-size: 40px; }
.lede { font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--ink-muted); }

/* the dotted trail down the middle of the page, between the two landscapes */
.trail {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 8px; margin-left: -4px;
  background-image: radial-gradient(circle, var(--trail) 2.5px, transparent 3px);
  background-size: 8px 14px;
  background-repeat: repeat-y;
  background-position: center top;
  pointer-events: none;
}
/* a heading the trail runs behind: white behind the words so no dots cross them */
.on-trail {
  width: fit-content; max-width: 100%;
  margin-left: auto; margin-right: auto;
  padding: 10px 22px;
  background: var(--surface);
}

/* the two landscapes; capped at 1440px so wider screens never slice the sky flat */
.land { width: 100%; max-width: 1440px; margin-inline: auto; }

/* ---------- hero ---------- */

.hero { position: relative; text-align: center; }
.hero-main {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
.hero .lede { max-width: 560px; margin: 28px auto 0; }
.hero .kea-form { margin-top: 32px; }
.hero .kea-form-note { margin-top: 4px; }
.hero .kea-done-wrap { margin-top: 22px; }
.land-top { height: clamp(330px, 44.4vw, 640px); margin-top: -10px; }

/* ---------- how it works ---------- */

.sec-how { padding: 112px 0 96px; }
.how-blob { position: absolute; left: 28px; top: 250px; width: 250px; height: 292px; }
/* below 1300px the blob would slide under the intro text and drop its contrast */
@media (max-width: 1299.98px) { .how-blob { display: none; } }
.split {
  position: relative;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex;
}
.split-how { max-width: 1120px; gap: 64px; align-items: stretch; }
.how-intro { flex: 1 1 0; min-width: 0; text-align: right; padding-right: 8px; }
.rule { width: 48px; height: 3px; margin: 32px 0 28px auto; border-radius: 2px; background: var(--ink); }
.how-intro .lede { max-width: 340px; margin-left: auto; }
.split-gap { flex: 0 0 8px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 44px;
}
.steps li { display: flex; gap: 22px; align-items: flex-start; }
.step-icon { flex: 0 0 56px; width: 56px; height: 56px; }
.step-title {
  margin: 4px 0 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.02em;
}
.step-body { max-width: 340px; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- demo ---------- */

.sec-demo { padding: 40px 0 120px; }
.wrap-demo { max-width: 1060px; }
.h-demo { margin-bottom: 48px; text-align: center; }
.demo-stage { position: relative; }
/* they hang past the demo by up to 96px and 60px, but pull in on narrower screens so
   the viewport edge never slices them; (100vw - 100%) / 2 is the space beside the demo */
.demo-leaf { position: absolute; right: max(-96px, calc(56px - (100vw - 100%) / 2)); top: -70px; width: 260px; height: 300px; transform: rotate(18deg); }
.demo-mound { position: absolute; left: max(-60px, calc(24px - (100vw - 100%) / 2)); bottom: -72px; width: 520px; height: 160px; }
.demo {
  position: relative;
  display: flex; gap: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.demo-side {
  list-style: none; margin: 0; padding: 6px 0;
  flex: 0 0 170px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; line-height: normal; font-weight: 600; color: var(--ink-muted);
}
.demo-side li { padding: 10px 14px; border-radius: 10px; }
.demo-side li.is-on { background: var(--surface); color: var(--ink); }
.demo-main {
  flex: 1 1 auto; min-width: 0;
  padding: 28px 32px 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.demo-main { line-height: normal; }
.demo-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.demo-sub { margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.demo-rows { margin: 22px 0 0; border-top: 1px solid var(--line); }
.demo-rows div { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.demo-rows dt { width: 80px; color: var(--ink-muted); }
.demo-rows dd { margin: 0; font-weight: 700; }
.demo-act { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.demo-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--on-ink);
  font-size: 15px; font-weight: 700;
}

/* ---------- tasks along the river ---------- */

.sec-tasks { padding: 72px 0; }
.wrap-tasks { z-index: 1; max-width: 1100px; text-align: center; }
.river { position: relative; margin-top: 56px; }
.river-water { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.chips {
  position: relative;
  list-style: none; margin: 0 auto; padding: 64px var(--gutter);
  max-width: 1040px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.chips li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: normal; font-weight: 700;
}
.chips li.is-you { background: var(--ink); color: var(--on-ink); }
.chip-sq { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sq-sage { background: var(--sage); }
.sq-gold { background: var(--gold); }
.sq-pink { background: var(--pink); }
.sq-ink { background: var(--ink); }

/* ---------- privacy, the hut ---------- */

.sec-privacy { padding: 40px 0 120px; }
.split-privacy { max-width: 1060px; gap: 150px; align-items: center; }
.hut { flex: 1 1 0; min-width: 0; width: 100%; max-width: 440px; height: auto; }
.privacy-copy { flex: 1 1 0; min-width: 0; }
.privacy-copy .lede { max-width: 420px; margin-top: 24px; }

/* ---------- final signup and the bottom landscape ---------- */

.sec-final { position: relative; text-align: center; }
/* the trail stops where the bottom landscape starts; this matches .land-bottom's height */
.sec-final .trail { bottom: clamp(260px, 32.6vw, 470px); }
.wrap-final { z-index: 1; max-width: 760px; padding-top: 40px; }
.sec-final .kea-form { margin-top: 36px; }
.sec-final .kea-done-wrap { margin-top: 26px; }
.land-bottom { height: clamp(260px, 32.6vw, 470px); margin-top: 24px; }

/* ---------- footer ---------- */

.foot { background: var(--surface); padding: 8px var(--gutter) 32px; }
.foot-in {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; line-height: normal; font-weight: 700;
}
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 20px; }

/* ---------- privacy and 404 pages ---------- */

.page { padding: 56px var(--gutter) var(--space-24); }
.prose { max-width: 680px; margin: 0 auto; }
.prose h1 { font-size: 64px; }
.prose h2 { margin-top: var(--space-12); font-size: 32px; }
.prose p { margin-top: var(--space-4); font-size: 19px; line-height: 1.45; font-weight: 500; }
.prose a { text-underline-offset: 3px; }

/* ---------- phones and small tablets ---------- */

@media (max-width: 860px) {
  .hide-sm, .trail, .split-gap, .demo-side { display: none !important; }

  /* the lower bounds keep "everyone else." and "the actual button." on one line down to 320px */
  .h-hero { font-size: clamp(min(44px, calc(14vw - 6px)), 8.5vw, 72px); }
  .h-section { font-size: clamp(42px, 7vw, 56px); }
  .h-demo { font-size: min(40px, calc(11vw - 10px)); }

  .split { flex-direction: column; gap: 40px; }
  .how-intro { text-align: left; padding-right: 0; }
  .rule { margin-left: 0; }
  .how-intro .lede { margin-left: 0; }
  .split-privacy { align-items: flex-start; }
  .hut { align-self: center; }

  .demo { padding: 16px; }
  .demo-main { padding: 24px 20px 28px; }
  .demo-act { gap: 20px; }

  .prose h1 { font-size: clamp(42px, 7vw, 56px); }
}

@media (max-width: 380px) {
  .topbar .kea-btn { padding: 0 16px; font-size: 14px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .kea-mark .kea-eye, .blink, .pulse, .kea-target-ring { animation: none !important; }
}
