/* Outft homepage and kids' page. One stylesheet, no external requests:
   fonts are self-hosted (SIL OFL, see fonts/OFL-*.txt). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --sand: #f6ead9;
  --ink: #2b1d14;
  --body: #3d2b1f;
  --muted: #5c4636;
  --card: #fffaf2;
  --teal: #1f5c5a;
  --teal-dark: #163f3e;
  --rust: #6b3f22;
  --on-teal: #f6ead9;
  --on-teal-2: #d7ebe6;
  --on-teal-label: #bfe0d8;
  --line: #e3d3bd;
  --heading: Outfit, Figtree, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: Figtree, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.on-teal :focus-visible { outline-color: var(--on-teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--heading); text-wrap: balance; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.01em; line-height: 1.1; }
.section { padding: 88px 24px 24px; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 31em; }

/* Wordmark: the text is "Outft"; the uppercase look is styling only. */
.wordmark { font-family: var(--heading); font-weight: 800; font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; }

/* ---------- Hero and the moving desert ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #86a4c6 0%, #d9c3b4 42%, #f4cf9f 72%, #f2c08c 100%); padding: 28px 24px 0; }
.sun { position: absolute; left: 64%; top: 220px; width: 170px; height: 170px; border-radius: 50%; background: #fbf0df; }
.layer { position: absolute; left: 0; bottom: 0; width: 4320px; display: flex; animation: drift linear infinite; }
.layer svg { flex: none; }
.layer-far { height: 300px; animation-duration: 140s; }
.layer-mid { height: 220px; animation-duration: 90s; }
.layer-dune { height: 170px; animation-duration: 55s; }
.layer-near { height: 270px; animation-duration: 32s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@media (prefers-reduced-motion: reduce) { .layer { animation: none; } }

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: 17px; }
.nav-links a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .pill { background: var(--teal); color: #fff; padding: 0 18px; border-radius: 999px; }
.nav-links .pill:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }

.hero-body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 48px 0 130px; }
.hero-copy { flex: 1 1 460px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.hero-phone { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 17px; }

/* Store buttons. Placeholders until the official badges and store listings exist. */
.stores { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 14px; background: #000; color: #fff; border: 2px solid #1f2a2a; text-decoration: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 13px; font-weight: 500; }
.store strong { font-size: 20px; font-weight: 700; }
.store[aria-disabled="true"] { cursor: default; }
.fine { margin: 0; font-size: 17px; line-height: 1.5; color: var(--body); }

/* Early-access sign-up (docs/features/homepage/WAITLIST.md): a plain form post to api.jointheoutft.com */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 520px; padding-top: 6px; }
.signup.center { align-items: center; margin: 0 auto; text-align: center; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 2px solid #8a7462; background: #fff; font: 500 18px Figtree, system-ui, sans-serif; color: var(--ink); }
.signup input[type="email"]:focus-visible { border-color: var(--teal); outline: 3px solid var(--teal); outline-offset: 2px; }
.signup button { flex: none; min-height: 56px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font: 700 18px Figtree, system-ui, sans-serif; cursor: pointer; }
.signup button:hover { background: var(--teal-dark); }
/* Busy buttons (Otto, 2026-10-19): the tap shows at once — another colour, a spinner, "Sending…" (assets/js/busy.js). */
button.is-busy, .signup button.is-busy, .signup button.is-busy:hover { background: var(--ink); color: #fff; cursor: progress; }
.btn.is-busy, .btn.is-busy:hover { background: var(--teal); }
.is-busy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-color: #fff; border-right-color: transparent; } }
.signup .adult { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; }
.signup .adult input { width: 22px; height: 22px; accent-color: var(--teal); }
.signup-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.center-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 16px; text-align: center; }
.center-page p { margin: 0; max-width: 32em; font-size: 19px; line-height: 1.55; color: var(--body); }
/* Waitlist pages on the homepage's moving desert: the text sits above the dunes, the sun low behind them. */
.hero.desert-page { padding: 48px 16px 280px; }
.desert-page > :not(.sun):not(.layer) { position: relative; }
.desert-page .sun { top: auto; bottom: 200px; left: 64%; }
@media (max-width: 600px) { .hero.desert-page { padding: 40px 16px 240px; } .desert-page .sun { left: 58%; bottom: 170px; } }
.notice { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; }
.notice h1 { margin: 24px 0 12px; font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.notice h2 { margin: 32px 0 8px; font-weight: 700; font-size: 22px; }
.notice p, .notice li { font-size: 18px; line-height: 1.6; color: var(--body); }
.notice .meta { font-size: 15px; color: var(--muted); }

.device { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; color: var(--body); }
.device button { font: 600 16px Figtree, system-ui, sans-serif; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.device button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.no-js .device { display: none; }

/* ---------- Phone mockup (one component; swap for a screen recording later) ---------- */
.phone { position: relative; width: 320px; height: 660px; max-width: 100%; padding: 11px; border-radius: 52px; background: #8d8780; box-shadow: 0 30px 60px rgba(60, 30, 10, 0.35); }
.phone .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; background: #efe4d3; }
.phone .cam { position: absolute; left: 50%; top: 9px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #111; z-index: 2; }
.phone .bar { position: absolute; left: 50%; bottom: 8px; height: 5px; width: 120px; margin-left: -60px; border-radius: 3px; background: var(--ink); z-index: 2; }
.phone[data-device="android"] { border-radius: 38px; background: #2f3437; }
.phone[data-device="android"] .screen { border-radius: 28px; }
.phone[data-device="android"] .cam { top: 13px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.phone[data-device="android"] .bar { height: 4px; width: 90px; margin-left: -45px; }

.phone .clock { position: absolute; left: 22px; top: 12px; font: 600 13px Figtree, system-ui, sans-serif; }
.phone .road { position: absolute; background: #fff; }
.phone .park { position: absolute; border-radius: 18px; }
.phone .chiprow { position: absolute; left: 14px; right: 14px; top: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone .chip { background: #fff; border-radius: 999px; padding: 8px 14px; font: 700 14px var(--heading); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.phone .chip.dark { background: var(--ink); color: #fff; font: 600 12px Figtree, system-ui, sans-serif; padding: 8px 12px; }
.phone .pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone .dot { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 15px Figtree, system-ui, sans-serif; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.phone .dot.me { width: 50px; height: 50px; background: var(--teal); }
.phone .name { background: #fff; border-radius: 8px; padding: 2px 8px; font: 600 11px Figtree, system-ui, sans-serif; }
.phone .sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 268px; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 18px 0; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); }
.phone .grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #d8ccbd; }
.phone .sheet-head { display: flex; align-items: baseline; justify-content: space-between; }
.phone .sheet-title { font: 800 20px var(--heading); }
.phone .sheet-meta { font: 600 12px Figtree, system-ui, sans-serif; color: #7a6656; }
.phone .row { display: flex; align-items: center; gap: 12px; }
.phone .row .av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 12px Figtree, system-ui, sans-serif; flex: none; }
.phone .row b { display: block; font: 700 14px Figtree, system-ui, sans-serif; }
.phone .row span { display: block; font: 400 12px Figtree, system-ui, sans-serif; color: #7a6656; }
.c1 { background: #e07a5f; } .c2 { background: #3d7ea6; } .c3 { background: #8a6bb0; }

/* Small phones used beside the "questions" stories */
.phone.mini { width: 260px; height: 536px; padding: 9px; box-shadow: 0 20px 40px rgba(60, 30, 10, 0.25); }
.phone.mini .screen { display: flex; flex-direction: column; gap: 10px; padding: 64px 14px 20px; background: linear-gradient(180deg, #86a4c6, #d9c3b4 55%, #f4cf9f); }
.phone.mini .lock-time { text-align: center; font: 700 44px var(--heading); color: #fff; margin-bottom: 10px; }
.phone.mini .note { background: rgba(255, 250, 242, 0.94); border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 4px 14px rgba(43, 29, 20, 0.12); }
.phone.mini .note b { display: block; font: 700 13px Figtree, system-ui, sans-serif; color: var(--muted); margin-bottom: 2px; }
.phone.mini .panel { background: #fff; border-radius: 18px; padding: 14px; font-size: 14px; line-height: 1.4; }
.phone.mini .panel h4 { margin: 0 0 8px; font: 800 17px var(--heading); }
.phone.mini .panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.phone.mini .stat { display: flex; justify-content: space-between; border-top: 1px solid #efe2cf; padding-top: 6px; }

/* ---------- Cards and grids ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--card); border-radius: 18px; }
.card h3 { margin: 0; font-weight: 700; font-size: 22px; }
.card p { margin: 0; font-size: 18px; line-height: 1.55; color: #4a3729; }

.story { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.story.flip { flex-direction: row-reverse; }
.story-copy { flex: 1 1 460px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.story-q { display: flex; align-items: center; gap: 12px; font: 700 22px var(--heading); color: var(--rust); }
.num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 22px var(--heading); }
.story h3 { margin: 0; font-weight: 800; font-size: 34px; line-height: 1.15; }
.story p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 18px; color: var(--body); }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex: none; margin-top: 2px; }
.story-phone { flex: 0 1 300px; min-width: 0; display: flex; justify-content: center; }

.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px 56px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .ic { flex: none; width: 60px; height: 60px; border-radius: 16px; background: #dbe9e4; display: flex; align-items: center; justify-content: center; }
.features b { display: block; font: 700 24px var(--heading); margin-bottom: 4px; }
.features span span { font-size: 20px; line-height: 1.5; color: var(--body); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--card); border-radius: 18px; }
.steps .num { width: 40px; height: 40px; font-size: 21px; }
.steps b { display: block; font: 700 21px var(--heading); margin-bottom: 4px; }
.steps span span { font-size: 18px; line-height: 1.5; color: #4a3729; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 4px; font: 700 21px var(--heading); min-height: 44px; }
.faq p { margin: 0; padding: 0 4px 22px; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 44em; }

/* ---------- Teal panel ---------- */
.panel-teal { display: flex; flex-direction: column; gap: 32px; padding: 44px 40px; border-radius: 24px; background: var(--teal); color: var(--on-teal); }
.panel-teal .eyebrow { font-size: 15px; color: var(--on-teal-label); }
.panel-teal h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.panel-teal p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 36em; }
.panel-teal a { color: var(--on-teal); }
.see { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; border-top: 1px solid #3f7c79; padding-top: 28px; }
.see h3 { margin: 0 0 12px; font-weight: 700; font-size: 22px; }
.see ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 18px; line-height: 1.45; color: var(--on-teal-2); }
.see li { display: flex; gap: 12px; align-items: flex-start; }
.see svg { flex: none; margin-top: 2px; }

.banner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 24px; background: #f2c08c; }
.banner h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.banner p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 34em; }
.btn { flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 16px Figtree, system-ui, sans-serif; text-decoration: none; }
.btn:hover { color: #fff; background: #000; }

.final { padding: 80px 24px 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.final p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 32em; }
.final .stores { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 28px 24px 36px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 16px; color: #6b5646; }
.foot .wordmark { font-size: 20px; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
.foot a { color: #6b5646; min-height: 44px; display: inline-flex; align-items: center; }
.promise { flex-basis: 100%; margin: 0; font-size: 15px; }

/* Phone-width "Get the app" bar on the parents' page */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(43, 29, 20, 0.12); }
  .mbar .wordmark { font-size: 18px; display: block; }
  .mbar small { font-size: 14px; color: var(--muted); }
  .mbar a.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
  .has-mbar .foot { padding-bottom: 110px; }
}

@media (max-width: 760px) {
  /* Keep the sun out from behind the text: it sits low, behind the phone */
  .sun { top: auto; bottom: 240px; left: 58%; }
}

@media (max-width: 600px) {
  .hero { padding: 20px 16px 0; }
  .hero-body { padding: 32px 0 110px; gap: 36px; }
  .section { padding: 64px 16px 16px; }
  .panel-teal, .banner { padding: 32px 22px; }
  .card { padding: 22px; }
  .final { padding: 64px 16px 80px; }
  .foot { padding: 24px 16px 32px; }
  .story h3 { font-size: 28px; }
  .nav-links { gap: 4px 14px; font-size: 16px; }
  .wordmark { font-size: 24px; }
}
