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

/* Caprasimo and Schibsted Grotesk, self-hosted in /fonts (both SIL Open Font License).
   The files and unicode-ranges match what Google Fonts serves for
   css2?family=Caprasimo&family=Schibsted+Grotesk:wght@400;500;600;700, so only the
   subset a page needs gets downloaded. 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(/fonts/caprasimo-400-latin-ext.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(/fonts/caprasimo-400-latin.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(/fonts/schibsted-grotesk-variable-latin-ext.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(/fonts/schibsted-grotesk-variable-latin.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: see css/pages.css ---------- */

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

@media (max-width: 860px) {
  .hide-sm, .trail, .split-gap { 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; }

}

@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; }
}

/* =====================================================================
   homepage additions (site-additions brief): about, faq, footer
   ===================================================================== */

/* ---------- about: why a bird? ---------- */

.sec-about { padding: 40px 0 120px; }
.split-about { max-width: 1120px; gap: 64px; align-items: center; }
.about-copy { flex: 1 1 0; min-width: 0; }
.about-copy p {
  max-width: 480px;
  margin-top: 18px;
  font-size: 18px; line-height: 1.55; font-weight: 500;
  color: var(--ink-muted);
}
.about-copy h2 + p { margin-top: 28px; }
.about-copy .about-punch { color: var(--ink); font-weight: 700; }
.about-copy .kea-key { min-width: 28px; height: 28px; font-size: 14px; }

.about-art {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; justify-content: center;
  padding: 24px 0 56px;
}
.about-mound {
  position: absolute; left: 50%; bottom: 0;
  width: min(440px, 100%); height: auto;
  transform: translateX(-50%);
}

/* the big full stop key: a pink cap over a darker lip. about.js toggles .is-pressed;
   the cap drops onto the lip, the bird fades out and the > and . legends fade in.
   transforms and opacity only. */
.bigkey {
  --key: 280px;
  --lip: 14px;
  position: relative; z-index: 1;
  width: var(--key); height: calc(var(--key) + var(--lip));
  border-radius: 64px;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.bigkey:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
.bigkey-lip, .bigkey-cap {
  position: absolute; left: 0; right: 0;
  height: var(--key);
  border-radius: 64px;
}
.bigkey-lip { bottom: 0; background: var(--trail-edge); }
.bigkey-cap {
  top: 0;
  background: var(--trail); color: var(--on-trail);
  /* release: settles back with a small bounce */
  transition: transform 420ms cubic-bezier(.3, 1.6, .6, 1);
}
.bigkey-mark {
  position: absolute; left: 22%; top: 30%;
  width: 56%; height: 40%;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(.3, 1.6, .6, 1);
}
.bigkey-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bigkey-legends {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font-sans); font-weight: 600; font-size: 76px; line-height: 0.9;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 260ms ease;
}
.bigkey.is-pressed .bigkey-cap { transform: translateY(calc(var(--lip) - 3px)); transition: transform 110ms ease-out; }
.bigkey.is-pressed .bigkey-mark { opacity: 0; transform: scale(.9); transition: opacity 120ms ease, transform 160ms ease-out; }
.bigkey.is-pressed .bigkey-legends { opacity: 1; transform: none; transition: opacity 160ms ease 60ms, transform 200ms ease-out 60ms; }

/* ---------- faq ---------- */

.sec-faq { padding: 32px 0 72px; }
.wrap-faq { max-width: 760px; }
.h-faq { font-size: 40px; text-align: center; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  list-style: none;
  padding: 20px 48px 20px 4px;
  font-size: 19px; line-height: 1.3; font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* a plus that turns into a minus when open */
.faq-item summary::before, .faq-item summary::after {
  content: "";
  position: absolute; right: 12px; top: 50%;
  width: 16px; height: 3px; margin-top: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p {
  max-width: 620px;
  padding: 0 48px 22px 4px;
  font-size: 17px; line-height: 1.5; font-weight: 500;
  color: var(--ink-muted);
}
.faq-item a { color: var(--ink); text-underline-offset: 3px; }

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

.foot-in { flex-wrap: wrap; gap: 16px 32px; }
.foot-id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.foot-legal { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- additions on phones and small tablets ---------- */

@media (max-width: 860px) {
  .sec-about { padding: 24px 0 80px; }
  .about-copy p { max-width: none; font-size: 17px; }
  .about-copy, .about-art { flex: none; }
  .about-art { align-self: center; width: 100%; padding-bottom: 44px; }
  .bigkey { --key: 210px; --lip: 11px; border-radius: 48px; }
  .bigkey-lip, .bigkey-cap { border-radius: 48px; }
  .bigkey-legends { font-size: 58px; }
  .h-faq { font-size: 34px; text-align: left; }
  .faq-item summary { font-size: 17px; }
  .faq-item p { font-size: 16px; padding-right: 8px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .bigkey-cap, .bigkey-mark, .bigkey-legends,
  .bigkey.is-pressed .bigkey-cap, .bigkey.is-pressed .bigkey-mark, .bigkey.is-pressed .bigkey-legends,
  .faq-item summary::before, .faq-item summary::after { transition: none !important; }
}

/* =====================================================================
   interactions (site-additions brief, section 3): playable demo, the
   bird that looks at you, ⌃ . bubble, alps parallax, the trail drawing
   itself, the signup moment. Scripts: js/demo.js, js/interactions.js and
   the "you're in" card in js/site.js. Transforms and opacity only.
   ===================================================================== */

/* ---------- 1. playable demo ---------- */

.demo { align-items: flex-start; }
.demo-side li { padding: 0; }
.demo-side .demo-nav {
  display: block; width: 100%;
  padding: 10px 14px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-muted);
  font: inherit; text-align: left;
}
.demo-side .demo-nav.is-on { background: var(--surface); color: var(--ink); }
.demo-main { min-height: 300px; }
.demo-screen[hidden] { display: none; }

/* only the current target looks and acts like a button you can press */
.demo button { cursor: default; -webkit-tap-highlight-color: transparent; }
.demo button.is-target { cursor: pointer; position: relative; }
.demo .demo-btn { border: 0; font-family: inherit; line-height: normal; }
.demo-btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
/* the pink ring round whatever kea is pointing at */
.demo button.is-target::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--trail);
  pointer-events: none;
  animation: kea-pulse 2.4s ease-in-out infinite;
}
.demo .demo-nav.is-target::after, .demo .demo-order.is-target::after { border-radius: 14px; inset: -5px; }

/* orders list */
.demo-list { margin-top: 22px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.demo-order {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  width: 100%; padding: 14px 10px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; text-align: left;
}
.demo-order span:first-child { font-weight: 700; }
.demo-order span:nth-child(2) { color: var(--ink-muted); }
.demo-order span:last-child { font-weight: 700; }
button.demo-order.is-target { border-radius: 10px; background: var(--surface-2); }

/* refund sent */
.demo-tick {
  width: 44px; height: 44px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage); color: var(--ink);
}
.demo-tick svg { width: 24px; height: 24px; }

/* the end card */
.demo-end { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 6px; }
.demo-end-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.012em; max-width: 460px; }
.demo-end-title:focus { outline: none; }
.demo-end-title:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.demo-end-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.demo-again {
  font: inherit; font-size: 15px; font-weight: 700;
  padding: 8px 2px; border: 0; background: none; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.demo button.demo-again { cursor: pointer; }

/* kea itself flies over the screen (demo.js moves .demo-kea and turns .demo-kea-turn) */
.demo-kea {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 44px; height: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}
.demo-kea.is-in { opacity: 1; }
.demo-kea-turn, .demo-kea-nudge { display: block; width: 100%; height: 100%; }
.demo-kea .kea-mark { width: 100%; height: 100%; color: var(--trail); filter: drop-shadow(0 3px 4px rgba(29, 29, 31, .18)); }
/* perched, it leans in toward the button now and then */
.demo-kea.is-perched .demo-kea-nudge { animation: kea-nudge 1.6s ease-in-out infinite; }
@keyframes kea-nudge { 0%, 55%, 100% { transform: translateX(0); } 70% { transform: translateX(5px); } 85% { transform: translateX(0); } }
.demo-kea.is-shaking .demo-kea-nudge { animation: kea-no 420ms ease; }
@keyframes kea-no { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(13deg); } 70% { transform: rotate(-7deg); } }

/* the step tip pops out once kea lands */
.demo-tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 10px 16px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}
.demo-tip .kea-bubble-text { transform: scale(.92); transform-origin: left center; transition: transform 160ms ease; }
.demo-tip.is-on { opacity: 1; transition: opacity 220ms ease; }
.demo-tip.is-on .kea-bubble-text { transform: scale(1); transition: transform 320ms cubic-bezier(.3, 1.5, .5, 1); }
.demo-tip.is-shaking .kea-bubble-text { animation: kea-shake 420ms ease; }
@keyframes kea-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* the ring only shows once kea has landed; pressing sinks the button */
.demo button.is-target:not(.is-lit)::after { opacity: 0; animation: none; }
.demo button.is-target { transition: transform 140ms ease; }
.demo button.is-target.is-pressed { transform: scale(.95); }
.demo-screen.is-entering { animation: demo-screen-in 260ms ease both; }
@keyframes demo-screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the beak points up or down when the bubble sits below or above its target */
.kea-mark.dir-up svg { transform: rotate(-90deg); }
.kea-mark.dir-down svg { transform: rotate(90deg); }

/* ---------- 2 and 7. the hero bird: turning and the hop ---------- */

.hero-bird-hop.is-hopping { animation: kea-hop 700ms ease; }
.kea-done .kea-mark.is-hopping { animation: kea-hop-sm 700ms ease 120ms; }
@keyframes kea-hop {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-26px); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-9px); }
  86% { transform: translateY(0); }
}
@keyframes kea-hop-sm {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-9px); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-3px); }
  86% { transform: translateY(0); }
}

/* ---------- 5. alps parallax ---------- */

/* layers can drift a few px past the viewBox; let them, so nothing gets a flat edge */
.land { overflow: visible; }
.px-layer { will-change: transform; }

/* ---------- 6. the trail draws itself ---------- */

/* interactions.js adds .trail-draws and a window/dots pair inside each strip */
.trail-draws .trail { background: none; overflow: hidden; }
.trail-win, .trail-dots { position: absolute; inset: 0; display: block; }
.trail-win { overflow: hidden; }
.trail-dots {
  background-image: radial-gradient(circle, var(--trail) 2.5px, transparent 3px);
  background-size: 8px 14px;
  background-repeat: repeat-y;
  background-position: center top;
}

/* ---------- 7. the signup moment: share the link ---------- */

.kea-share { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kea-share-q { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.kea-share-btn {
  font: inherit; font-size: 15px; font-weight: 700;
  height: 44px; padding: 0 20px; min-width: 150px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.kea-share-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.kea-share-btn.is-copied { background: var(--ink); color: var(--on-ink); }
.kea-share .kea-form-note { margin: 0; }
.kea-share-url { width: min(460px, 100%); height: 44px; font-size: 14px; padding: 0 16px; }

/* ---------- interactions on phones ---------- */

@media (max-width: 860px) {
  /* the sidebar becomes a row of tabs so the first step has something to point at */
  .demo { flex-direction: column; gap: 12px; }
  .demo-side { flex: none; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 0; }
  .demo-side li { flex: none; }
  .demo-side .demo-nav { width: auto; padding: 8px 10px; }
  .demo.is-done .demo-main { min-height: 0; padding-bottom: 28px; }
  .demo-side li:nth-child(4) { display: none; }
  .demo-main { width: 100%; min-height: 330px; padding-bottom: 96px; }
  .demo-order { grid-template-columns: 56px 1fr auto; gap: 8px; padding: 12px 6px; font-size: 14px; }
  .demo-end-title { font-size: 28px; }
}

/* ---------- interactions under reduced motion: instant state changes only ---------- */

@media (prefers-reduced-motion: reduce) {
  .demo-kea, .demo-tip, .demo-tip .kea-bubble-text, .demo button.is-target { transition: none !important; }
  .demo-kea .demo-kea-nudge, .demo-tip .kea-bubble-text, .demo-screen.is-entering,
  .hero-bird-hop.is-hopping, .kea-done .kea-mark.is-hopping,
  .demo button.is-target::after { animation: none !important; }
  .px-layer { will-change: auto; }
}

/* ---------- the demo as a real mac window ----------
   overrides the plainer demo rules above: a window bar with an address, a sidebar
   with icons, a search row, and kea's own "call kea" button in the corner */

.demo {
  display: block;
  padding: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(29, 29, 31, .28), 0 0 0 1px rgba(29, 29, 31, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body), sans-serif;
  text-align: left;
}
.demo-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #f6f6f8;
}
.demo-lights { display: flex; gap: 8px; }
.demo-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.demo-lights i:nth-child(2) { background: #febc2e; }
.demo-lights i:nth-child(3) { background: #28c840; }
.demo-url {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%;
  padding: 5px 14px; border-radius: 7px;
  background: #ebebef; color: var(--ink-muted);
  font-size: 12px; line-height: 1; white-space: nowrap; overflow: hidden;
}
.demo-url svg { width: 11px; height: 11px; flex: none; }
.demo-url-text { overflow: hidden; text-overflow: ellipsis; }

.demo-body { display: flex; align-items: stretch; min-height: 380px; }
.demo-sidebar {
  flex: 0 0 196px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  border-radius: 0 0 0 14px;
  background: #fafafb;
}
.demo-store { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; font-size: 14px; font-weight: 700; line-height: normal; color: var(--ink); }
.demo-logo { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--sage); color: var(--ink); font-size: 13px; font-weight: 800; }
.demo .demo-side { flex: none; padding: 0; gap: 2px; font-size: 13.5px; font-weight: 500; }
.demo-side .demo-nav {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px;
  background: none; color: #48484d;
  font: inherit; text-align: left;
}
.demo-side .demo-nav.is-on { background: #ececf0; color: var(--ink); font-weight: 600; }
.demo-ic { width: 17px; height: 17px; flex: none; }
.demo-count { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #e4e4e9; font-size: 11.5px; font-weight: 600; }

.demo-main { flex: 1 1 auto; min-width: 0; min-height: 0; padding: 14px 28px 30px; border-radius: 0 0 14px 0; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.demo-search {
  display: inline-flex; align-items: center; gap: 8px;
  width: min(280px, 60%); padding: 7px 12px;
  border-radius: 8px; background: var(--surface-2); color: #8e8e93;
  font-size: 13px; line-height: 1;
}
.demo-search svg { width: 14px; height: 14px; }
.demo-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--ink); font-size: 11.5px; font-weight: 700; }

.demo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 21px; }
.demo-sub { font-size: 13.5px; }

.demo-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--ink-muted); line-height: normal; }
.demo-stat b { font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }

.demo-list { margin-top: 16px; border-top: 0; }
.demo .demo-order { grid-template-columns: 62px 1fr 96px 70px; padding: 11px 10px; font-size: 13.5px; }
.demo .demo-order span:nth-child(2) { color: var(--ink); }
.demo .demo-order span:last-child { text-align: right; font-weight: 600; }
.demo .demo-order-head { padding-top: 6px; padding-bottom: 8px; font-size: 12px; color: var(--ink-muted); }
.demo .demo-order-head span, .demo .demo-order-head span:first-child, .demo .demo-order-head span:nth-child(2), .demo .demo-order-head span:last-child { color: var(--ink-muted); font-weight: 500; }
.demo-badge {
  display: inline-block; padding: 3px 8px; border-radius: 99px;
  font-size: 11.5px; font-style: normal; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.demo-badge.is-paid { background: #e3f3d6; color: #2f5a12; }
.demo-badge.is-shipped { background: var(--sky-soft); color: #23408f; }
.demo-badge.is-return { background: #fdecc8; color: #7a4b00; }
.demo-title .demo-badge { font-size: 12px; }

.demo-item {
  margin-top: 20px; display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; line-height: normal;
}
.demo-thumb { width: 46px; height: 46px; flex: none; border-radius: 9px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M14 12 L19 10 Q23 13 27 10 L32 12 L36 19 L31 21 L31 36 L15 36 L15 21 L10 19 Z' fill='%23ffffff' stroke='%231d1d1f' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.demo-item-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo-item-name span { font-size: 12.5px; color: var(--ink-muted); }
.demo .demo-act { margin-top: 24px; gap: 12px; }
.demo .demo-btn { padding: 10px 18px; font-size: 14px; border-radius: 9px; }
.demo .demo-rows { margin-top: 18px; }
.demo .demo-rows div { padding: 11px 0; font-size: 14px; }
.demo .demo-rows dd { font-weight: 600; }
.demo .demo-nav.is-target::after, .demo .demo-order.is-target::after { border-radius: 11px; inset: -4px; }
.demo button.is-target::after { border-radius: 13px; }
.demo .demo-end-title { font-family: var(--font-display); }

/* kea's own button in the window's corner */
.demo-call {
  position: absolute; right: 16px; bottom: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 0; border-radius: 99px;
  background: var(--ink); color: var(--on-ink);
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
  box-shadow: 0 10px 24px -8px rgba(29, 29, 31, .45);
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease;
}
.demo .demo-call { cursor: pointer; }
.demo-call .kea-mark { width: 22px; height: 14px; color: #ff9ab8; }
.demo-call-task { display: none; align-items: baseline; gap: 8px; animation: demo-call-in 240ms ease both; }
@keyframes demo-call-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.demo-call-task small { font-size: 11.5px; font-weight: 500; opacity: .7; }
.demo-call .kea-keys { gap: 3px; }
.demo-call .kea-key { min-width: 22px; height: 22px; padding: 0 5px; font-size: 12px; border-radius: 6px; background: #3a3a3e; color: var(--on-ink); border-color: #4a4a4f; box-shadow: 0 1px 0 #111; }
.demo-call:focus-visible { outline: 3px solid var(--trail); outline-offset: 3px; }
.demo-call.is-calling .demo-call-idle { display: none; }
.demo-call.is-calling .demo-call-task { display: flex; }
.demo-call.is-calling .kea-keys { opacity: .4; }
.demo.is-started .demo-call:not(.is-calling) { opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none; }
@media (pointer: fine) {
  .demo-call:not(.is-calling):hover { transform: translateY(-1px); }
}
@media not all and (pointer: fine) {
  .demo-call .pointer-only { display: none; }
}

@media (max-width: 860px) {
  .demo-bar { height: 34px; padding: 0 10px; }
  .demo-lights { gap: 6px; }
  .demo-lights i { width: 10px; height: 10px; }
  .demo-url { font-size: 11px; padding: 4px 10px; }
  .demo-body { flex-direction: column; min-height: 0; }
  .demo-sidebar { flex: none; padding: 8px 8px 6px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .demo-store { display: none; }
  .demo .demo-side { flex-direction: row; flex-wrap: nowrap; gap: 2px; overflow: visible; }
  .demo-side .demo-nav { width: auto; padding: 7px 9px; gap: 6px; font-size: 13px; }
  .demo-side .demo-nav .demo-ic { display: none; }
  .demo-count { display: none; }
  .demo .demo-side li:nth-child(4) { display: none; }
  .demo-main { padding: 12px 16px 84px; min-height: 360px; border-radius: 0 0 14px 14px; }
  .demo.is-done .demo-main { padding-bottom: 24px; }
  .demo-top { margin-bottom: 16px; }
  .demo-stats { grid-template-columns: 1fr 1fr; }
  .demo-stat:first-child { grid-column: 1 / -1; }
  .demo .demo-order { grid-template-columns: 52px 1fr 66px; gap: 8px; padding: 10px 6px; font-size: 13px; }
  .demo .demo-order span:nth-child(2) { display: none; }
  .demo-call { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-call { transition: none; }
  .demo-call-task { animation: none; }
}
