/* Feed Your Fam: launch splash (static, no build step). Spec: docs/ugenius/2026-11-21-launch-hype/03-spec.md §4.
   Brand: the green to blue tile (#34D399 to #0E7AC4), white plates, navy ink. Type: Nunito (OFL, self-hosted latin
   subset) for headings, the system face for body text, like the app. Spacing on a 4 px grid (8 for layout). */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  color-scheme: light dark;
  --green: #34D399;
  --blue: #0E7AC4;
  --night: #0B1F33;
  --night-2: #0F2B45;
  --canvas: #F2F2F7;
  --surface: #FFFFFF;
  --ink: #0B1F33;
  --ink-muted: #4A5868;
  --hairline: #D9DEE5;
  --tint: #0A65A3;            /* buttons and links: white on it 6.1:1, on canvas 5.4:1 */
  --tint-ink: #FFFFFF;
  --tint-press: #08507F;
  --accent-text: #0B7A50;     /* green text on white: 5.3:1 */
  --error: #B42318;
  --error-soft: #FDECEA;
  --ok-soft: #E3F6EE;
  --field: #FFFFFF;
  --field-border: #8794A3;
  --shadow: 0 1px 2px rgb(11 31 51 / .06), 0 8px 24px rgb(11 31 51 / .08);
  --radius: 16px;
  --radius-sm: 12px;
  --display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spring: linear(0, .062, .191, .337, .475, .594, .692, .769, .829, .874, .908, .934, .952, .966, .976, .983, .988, .991, .994, .996, 1);
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #07131E;
    --surface: #102234;
    --ink: #EAF2F8;
    --ink-muted: #A9BACA;
    --hairline: #24384B;
    --tint: #62C3F5;
    --tint-ink: #04203A;
    --tint-press: #8AD3F8;
    --accent-text: #5BE3AA;
    --error: #FF9C8F;
    --error-soft: #3A1714;
    --ok-soft: #0E3327;
    --field: #0A1A28;
    --field-border: #7A8DA0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}
:root[data-theme="dark"] {
  --canvas: #07131E;
  --surface: #102234;
  --ink: #EAF2F8;
  --ink-muted: #A9BACA;
  --hairline: #24384B;
  --tint: #62C3F5;
  --tint-ink: #04203A;
  --tint-press: #8AD3F8;
  --accent-text: #5BE3AA;
  --error: #FF9C8F;
  --error-soft: #3A1714;
  --ok-soft: #0E3327;
  --field: #0A1A28;
  --field-border: #7A8DA0;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--tint); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 8px; }
.night :focus-visible { outline-color: #7FD8FF; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  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: 16px; top: -64px; z-index: 10; background: var(--surface); color: var(--ink);
  padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink);
  font: 700 1rem/1.2 var(--display); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--spring), background-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--tint-press); }
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-light { background: #FFFFFF; color: var(--night); }
.btn-light:hover { background: #E4F7EF; }

/* ── The night band (hero, also in light mode: it is the brand frame) ──── */
.night {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 110% 0%, rgb(14 122 196 / .55), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(52 211 153 / .28), transparent 60%),
    var(--night);
  color: #FFFFFF;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.topbar a.home { display: inline-flex; align-items: center; min-height: 48px; }
.topbar img { width: auto; height: 32px; }
.topbar .nav-cta {
  min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px;
  color: #FFFFFF; font-weight: 600; text-decoration: none; border: 1px solid rgb(255 255 255 / .35);
}
.topbar .nav-cta:hover { background: rgb(255 255 255 / .08); }

.hero { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgb(52 211 153 / .55);
  color: #A7F3D0; font: 700 0.875rem/1.5 var(--display); letter-spacing: .01em;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 1.3rem + 5.4vw, 4.5rem);
  line-height: .98; letter-spacing: -.025em;
}
.hero h1 .together { color: var(--green); display: block; }
.hero h1 .first { white-space: nowrap; }
.hero .category { margin-top: 16px; color: #A7F3D0; font: 800 1.125rem/1.4 var(--display); max-width: 34rem; }
.hero .promise { margin-top: 12px; font-size: 1.125rem; line-height: 1.5; color: #D5E3EE; max-width: 34rem; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .small { color: #B9CBDA; font-size: 0.875rem; }

/* The table: three plates and a fork, the logo grown up. They float, slowly, out of step. */
.table { position: relative; width: min(100%, 320px); aspect-ratio: 1 / .86; margin: 0 auto; }
.table .plate, .table .fork { position: absolute; }
.plate { border-radius: 50%; background: #FFFFFF; box-shadow: 0 24px 48px rgb(0 20 40 / .35), inset 0 -6px 0 rgb(11 31 51 / .06); }
.plate-big { width: 58%; aspect-ratio: 1; left: 18%; top: 26%; display: grid; place-items: center; }
.plate-big::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; border: 6px solid rgb(27 170 132 / .3); }
.plate-big svg { width: 50%; }
.plate-mid { width: 26%; aspect-ratio: 1; right: 6%; top: 6%; opacity: .9; }
.plate-small { width: 17%; aspect-ratio: 1; right: 2%; top: 58%; opacity: .75; }
.fork { width: 15%; left: 2%; top: 2%; }
.float { animation: float var(--d, 7s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes float { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 8px, 0); } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.4fr 1fr; padding-top: 72px; padding-bottom: 96px; }
  .table { width: 100%; max-width: 440px; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head { max-width: 40rem; }
.eyebrow { color: var(--accent-text); font: 800 0.875rem/1.4 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.section h2 { margin-top: 8px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; }
.section .lede { margin-top: 12px; color: var(--ink-muted); font-size: 1.125rem; }

/* Countdown: four plates on the brand tile */
.count {
  margin-top: 24px; border-radius: 28px; padding: 24px 16px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: var(--shadow);
}
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 640px; margin: 0 auto; list-style: none; padding: 0; }
.plates li {
  aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; color: var(--night);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 10px 24px rgb(0 30 60 / .25), inset 0 -4px 0 rgb(11 31 51 / .06);
}
.plates .n { font: 800 clamp(1.75rem, 1.3rem + 2vw, 2.5rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plates .u { font: 700 0.875rem/1.3 var(--display); color: #33475B; margin-top: 4px; }
.count-when { margin-top: 16px; text-align: center; color: var(--night); font: 700 0.875rem/1.4 var(--display); }
.live { display: none; text-align: center; padding: 24px 0; }
.count.is-live .plates, .count.is-live .count-when { display: none; }
.count.is-live .live { display: block; }
.live p { color: var(--night); font: 800 1.5rem/1.2 var(--display); margin-bottom: 16px; }
@media (min-width: 480px) { .plates { gap: 16px; } .count { padding: 32px 24px; } }

/* Feature beats: words and a phone */
.beats { display: grid; gap: 64px; margin-top: 40px; }
.beat { display: grid; gap: 24px; align-items: center; }
.beat h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
.beat p { margin-top: 12px; color: var(--ink-muted); font-size: 1.125rem; max-width: 28rem; }
@media (min-width: 840px) {
  .beat { grid-template-columns: 1fr 1fr; gap: 48px; }
  .beat:nth-child(even) .beat-words { order: 2; }
}

/* The phone mockups: invented demo content (the Mokoena family), app's grouped look */
.phone {
  --pw: 288px;
  width: var(--pw); margin: 0 auto; padding: 10px; border-radius: 44px;
  background: #11161C; box-shadow: 0 30px 60px rgb(11 31 51 / .25), inset 0 0 0 2px #2A323C;
}
.screen {
  position: relative; height: 488px; overflow: hidden; border-radius: 34px;
  background: #F2F2F7; color: #1C1C1E; font: 400 0.8125rem/1.35 var(--body);
  display: flex; flex-direction: column;
}
.screen .status { display: flex; justify-content: space-between; padding: 12px 24px 4px; font-weight: 600; font-size: 0.75rem; }
.screen .island { position: absolute; top: 8px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 12px; background: #11161C; }
.screen .title { padding: 12px 16px 4px; font: 700 1.5rem/1.1 var(--body); letter-spacing: -.01em; }
.screen .sub { padding: 0 16px 8px; color: #5A5A60; font-size: 0.75rem; }
.screen .group { margin: 4px 12px 8px; background: #FFFFFF; border-radius: 12px; overflow: hidden; }
.screen .row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px; }
.screen .row + .row { border-top: 1px solid #E5E5EA; }
.screen .day { width: 32px; flex: none; color: #5A5A60; font-weight: 600; font-size: 0.75rem; }
.screen .meal { flex: 1; min-width: 0; font-weight: 500; }
.screen .who { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #FFFFFF; display: grid; place-items: center; font: 700 0.75rem/1 var(--body); }
.who.n { background: #B83B5E; } .who.t { background: #0A65A3; } .who.l { background: #7A4BC9; } .who.k { background: #0B7A50; }
.screen .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 4px 20px; background: rgb(249 249 249 / .94); border-top: 1px solid #E5E5EA; font-size: 0.75rem; color: #6B6B70; }
.screen .tabs b { color: #C2410C; font-weight: 600; }
.screen .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF1E8; color: #9A3412; font-weight: 600; }
.screen .whos { display: flex; gap: 12px; padding: 8px 16px 12px; }
.screen .whos span { display: grid; justify-items: center; gap: 4px; font-size: 0.75rem; color: #3A3A3C; }
.screen .whos i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font: 700 1rem/1 var(--body); font-style: normal; }
.screen .whos .on i { box-shadow: 0 0 0 3px #F2F2F7, 0 0 0 5px #7A4BC9; }
.screen .added { color: #5A5A60; font-size: 0.75rem; }
.screen .new { background: #FFF8F2; }
.screen .check { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #AEAEB2; }
.screen .check.done { border-color: #0B7A50; background: #0B7A50 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.screen .done-text { color: #6B6B70; text-decoration: line-through; }
.screen .from { margin-left: auto; color: #5A5A60; font-size: 0.75rem; white-space: nowrap; }
.screen .cap { padding: 8px 16px 4px; color: #5A5A60; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* Kids beat: "KFC?" pops onto Friday, again and again */
.js .phone.in .pop { animation: pop 5.2s var(--spring) 600ms infinite; transform-origin: 20% 50%; }
@keyframes pop {
  0%, 6% { opacity: 0; transform: scale(.6); }
  16%, 86% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.96); }
}
/* Shop beat: the list fills itself in, one line after the other */
.js .phone .writes .row { opacity: 0; transform: translateY(8px); }
.js .phone.in .writes .row { animation: write 520ms var(--spring) forwards; animation-delay: calc(400ms + var(--i, 0) * 160ms); }
@keyframes write { to { opacity: 1; transform: none; } }

/* ── Sign-up ───────────────────────────────────────────────────────────── */
.join { display: grid; gap: 32px; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.field + .field, .field + .consent, .consent + .btn, .field + .note { margin-top: 16px; }
label.lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.lbl .opt { color: var(--ink-muted); font-weight: 400; }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--field-border); background: var(--field); color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
.input:focus-visible { outline-offset: 1px; border-color: var(--tint); }
.input[aria-invalid="true"] { border-color: var(--error); }
.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px; margin-left: -12px; margin-right: -12px; border-radius: var(--radius-sm); cursor: pointer; }
.consent:hover { background: rgb(127 127 127 / .06); }
.consent input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--tint); cursor: pointer; }
.consent span { font-size: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#join-form .btn { width: 100%; margin-top: 16px; }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.msg:empty { display: none; }
.msg.err { background: var(--error-soft); color: var(--error); }
.done { text-align: left; }
.done[hidden] { display: none; }
.done h3 { font-size: 1.5rem; }
.done p { margin-top: 8px; color: var(--ink-muted); }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 16px; }
.fine { margin-top: 16px; font-size: 0.875rem; color: var(--ink-muted); }

/* ── Questions: every answer is plain text on the page, nothing to open ── */
.faq { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 840px) { .faq { grid-template-columns: 1fr 1fr; gap: 20px; } }
.qa { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); }
.qa h3 { font-size: 1.125rem; line-height: 1.35; }
.qa p { margin-top: 8px; color: var(--ink-muted); }

/* ── Made here, follow along, footer ───────────────────────────────────── */
.made { display: grid; gap: 24px; align-items: center; }
@media (min-width: 840px) { .made { grid-template-columns: 1fr auto; } }
.made p { font: 700 1.125rem/1.45 var(--display); max-width: 34rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
  transition: transform 160ms var(--spring);
}
.social a:active { transform: scale(.97); transition-duration: 60ms; }
.social svg { width: 20px; height: 20px; }
footer { border-top: 1px solid var(--hairline); padding: 24px 0 40px; color: var(--ink-muted); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
footer a { color: var(--ink-muted); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; font-size: 1rem; }
footer nav { display: flex; flex-wrap: wrap; column-gap: 16px; }

/* ── Simple pages (confirmed, unsubscribe, privacy, 404) ───────────────── */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; padding-top: 40px; padding-bottom: 64px; }
.page .card { max-width: 36rem; margin: 0 auto; }
.page h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; }
.page .card p { margin-top: 12px; }
.page .card .btn { margin-top: 24px; }
.page .card .muted { color: var(--ink-muted); }
.page-top { padding-top: 16px; padding-bottom: 24px; }
.page-top img { height: 32px; width: auto; }
.page-top a { display: inline-flex; align-items: center; min-height: 48px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.notice dt { font: 800 1.0625rem/1.3 var(--display); margin-top: 24px; }
.notice dd { margin: 8px 0 0; }
.page .card .notice-intro { color: var(--ink-muted); }

/* ── Entrance: a staggered rise on a critically damped spring ──────────── */
.js .rise { opacity: 0; transform: translateY(16px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 700ms var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .float, .js .phone.in .pop { animation: none !important; }
  .js .rise, .js .rise.in { transform: none; transition: opacity 200ms ease-out; transition-delay: 0ms; }
  .js .phone .writes .row, .js .phone.in .writes .row { opacity: 1; transform: none; animation: none; }
  .btn, .social a { transition: none; }
  .btn:active, .social a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .screen .tabs { background: #F9F9F9; } }
