/* kangarookitchen.app. Kangaroo brand tokens come from the MGS brand library
   (src/static/brand/tokens.css is the untouched upstream copy; the values used
   here are the same ones mobile/src/constants/theme.ts uses). Amber is the one
   saturated fill per view. Buttons carry ink on amber, not white: white on
   #F97316 is 2.8:1, and the app already puts ink on amber for today's tile. */

:root {
  --ink: #1C0F07; --storm: #4A3728; --muted: #78716C; --muted-light: #A8A29E;
  --border: #E7E5E4; --cloud: #FAFAF8; --white: #FFFFFF;
  --amber: #F97316; --amber-dark: #EA580C; --amber-pale: #FFF7ED; --amber-tint: #FEF1E8;
  --violet: #7C3AED; --violet-pale: #F3E8FF; --violet-light: #C4B5FD; --violet-deep: #4C1D95;
  --pass: #15803D;
  --sans: 'Manrope', system-ui, sans-serif; --mono: 'Fira Code', ui-monospace, monospace;
  --r: 12px; --r-md: 14px; --r-lg: 16px; --r-xl: 20px;
  --shadow-md: 0 4px 16px rgba(249,115,22,0.12); --shadow-lg: 0 8px 32px rgba(249,115,22,0.16);
  --ease: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--cloud); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }
a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--amber-dark); }
:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(249,115,22,0.35); border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.icon { flex-shrink: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 6vw, 80px); }
.eyebrow, .menu-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--storm); text-wrap: pretty; }
.body { font-size: 17px; color: var(--storm); text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Header, menu, footer (Site Architecture: universal hamburger) */
.header { height: 72px; padding: 0 clamp(16px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--border); }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.lockup img { width: 31px; height: 40px; position: relative; top: -6px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.wordmark span { color: var(--amber); }
.menu-button, .round { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); }
.round { border-radius: 999px; }
.menu { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); overflow-y: auto; padding: 14px 28px 28px; display: flex; flex-direction: column; gap: 4px; background: var(--white); box-shadow: var(--shadow-lg); }
.menu[hidden], .scrim[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu > a, .menu-head { display: flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 700; text-decoration: none; }
.menu > a.sub { padding-left: 18px; font-size: 15px; font-weight: 500; color: var(--storm); }
.menu > a.btn { justify-content: center; font-size: 16px; font-weight: 800; }
.menu hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.menu-legal { display: flex; flex-direction: column; }
.menu-legal a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.scrim { position: fixed; z-index: 30; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); }
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-row p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 4px 24px; }
.footer-legal a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-md); border: 1px solid transparent; font-size: 16px; font-weight: 800; text-decoration: none; transition: background var(--ease), transform var(--ease), box-shadow var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); color: var(--ink); box-shadow: 0 4px 24px rgba(249,115,22,0.30); }
.btn-primary.is-soon, .btn-primary.is-soon:hover { background: var(--amber-tint); border-color: #EDBD9C; box-shadow: none; cursor: default; }
.btn-ghost { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--cloud); color: var(--ink); }
.btn-ghost.is-soon, .btn-ghost.is-soon:hover { background: var(--white); border-color: var(--border); color: var(--muted); cursor: default; }
.btn-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border-color: var(--border); background: var(--white); font-size: 15px; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.section.white { background: var(--white); }
.section.pale { background: var(--amber-pale); }
.hero { padding: clamp(40px, 6vw, 72px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.center { text-align: center; align-items: center; }

/* Cards and the inset grouped list (the app's ListGroup) */
.card { padding: 24px; display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card p { font-size: 15px; line-height: 1.6; color: var(--storm); }
.card-title { font-size: 20px; font-weight: 800; }
.card.banner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: var(--r-xl); }
.card.banner > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.group { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.group > * { background: var(--white); }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; }
.row.suggested { background: var(--amber-tint); min-height: 76px; }
.row .grow { flex: 1; min-width: 0; }
.row strong { display: block; font-size: 16px; line-height: 21px; font-weight: 700; }
.row small { display: block; font-size: 14px; line-height: 20px; color: var(--storm); }
.row .qty { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.row.done .grow, .row.done .qty { color: var(--muted); text-decoration: line-through; }
.group > a.row { justify-content: space-between; font-weight: 600; text-decoration: none; }
.tile { width: 46px; height: 50px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--cloud); color: var(--muted); }
.tile b { font-size: 10px; line-height: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile i { font-family: var(--mono); font-style: normal; font-weight: 600; font-size: 19px; line-height: 21px; margin-top: 3px; }
.tile.today { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--storm); }
.dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--amber); }
.dot.busy::before { background: var(--violet); }
.check { width: 22px; height: 22px; flex-shrink: 0; border: 2px solid var(--muted-light); border-radius: 999px; }
.check.on { border: 0; background: var(--amber); display: flex; align-items: center; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--cloud); font-size: 14px; font-weight: 600; color: var(--storm); }
.chip.on, .chip[aria-pressed="true"] { border: 1.5px solid var(--amber); background: var(--amber-tint); font-weight: 700; color: var(--ink); }
.chip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.chip-head span:last-child { font-size: 13px; color: var(--muted); }
.evening { display: flex; gap: 4px; height: 44px; }
.evening div { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 700; color: var(--storm); }
.evening .busy { flex: 3; background: var(--violet-pale); border-color: var(--violet-light); color: var(--violet-deep); }
.todo { padding: 14px 18px; border: 1px dashed var(--muted-light); border-radius: var(--r); font-size: 14px; line-height: 1.6; color: var(--storm); }

/* The Plan screen mockup */
.phone { width: 360px; max-width: 100%; margin-inline: auto; padding: 10px; border-radius: 52px; background: var(--ink); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 42px; overflow: hidden; background: var(--cloud); padding: 44px 16px 0; display: flex; flex-direction: column; gap: 16px; }
.phone-title { padding: 0 4px; font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.03em; }
.phone-title small { display: block; font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 20px; letter-spacing: 0; color: var(--muted); }
.phone .row { padding: 12px; min-height: 72px; }
.phone .row small { font-size: 13px; line-height: 18px; }
.phone-bar { margin: 0 -16px; padding: 12px 16px 28px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 700; color: var(--storm); }
.phone-bar span:first-child { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 800; }

/* Reading pages */
.prose { max-width: 760px; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.prose > * + * { margin-top: 12px; }
.prose h1 { font-size: clamp(36px, 4.6vw, 52px); margin-top: 16px; }
.prose h2 { font-size: 26px; line-height: 1.2; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { line-height: 1.7; color: var(--storm); }
.prose .lead { margin-top: 20px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.qa { padding: 22px 0; border-top: 1px solid var(--border); margin-top: 0; }
.qa h3 { font-size: 19px; margin: 0 0 8px; }
.qa h3 a { text-decoration: none; } .qa h3 a:hover { text-decoration: underline; }
.qa[hidden] { display: none; }
.answer { font-size: 19px; line-height: 1.6; color: var(--ink) !important; }

/* Forms */
.field { position: relative; }
.field label { display: block; margin-bottom: 8px; }
.field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); font: inherit; color: var(--ink); }
.field.search input { padding-left: 46px; }
.field.search .icon { position: absolute; left: 16px; bottom: 16px; color: var(--muted); }
.results { margin-top: 12px; }
.results:empty { display: none; }

/* Dinner picker */
.picker { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 899px) { .picker { grid-template-columns: 1fr; } }
.picker .card { border-radius: var(--r-xl); gap: 16px; }
.picker form { display: flex; gap: 8px; }
.picker form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--cloud); font: inherit; }
.meals { max-height: 420px; overflow-y: auto; }
.meals .row { padding: 6px 8px 6px 16px; }
.meals .remove { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.days { display: flex; gap: 8px; }
.days .chip { flex: 1; min-height: 48px; justify-content: center; padding: 0; border-radius: var(--r); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.result { min-height: 260px; justify-content: center; }
.result-name { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
