/* Fed & Glad landing page. Tokens match the app kit (KitFoundations). */
:root {
  --bg: #FBFEF9;
  --surface: #FFFFFF;
  --fill: #EEF4EA;
  --line: #D9E3D4;
  --ink: #1B2B22;
  --ink2: #3B4F42;
  --muted: #627067;
  --green: #14862A;
  --green-press: #0E6E22;
  --green-dark: #0E5F1D;
  --green-soft: #E6F6EA;
  --dark: #14201A;
  --on-dark: #C9D6CC;
  --never-bg: #F6D5D0; --never: #7F1D17;
  --home-bg: #D6ECFA; --home: #0B4F7A;
  --packed-bg: #E6E2F6; --packed: #4A3D8F;
  --out-bg: #D2F0EE; --out: #0E5C5F;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { background: var(--fill); }
.section { padding-block: 80px; }
.section.tight-top { padding-top: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
h2.narrow { max-width: 20em; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink2); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { margin: 8px 0 0; color: var(--ink2); font-size: 16px; }
.card .title-serif { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }

/* Buttons and fields (kit: L 52, M 44, pill) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 26px; border: 0; background: var(--green); color: #fff; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--green-press); color: #fff; }
.btn.m { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; }
.label { display: block; font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.tag.home { background: var(--home-bg); color: var(--home); }
.tag.packed { background: var(--packed-bg); color: var(--packed); }
.tag.out { background: var(--out-bg); color: var(--out); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 254, 249, .92); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { font-family: var(--display); font-weight: 700; font-variation-settings: 'opsz' 28; font-size: 28px; line-height: 1.15; letter-spacing: .01em; text-decoration: none; background: linear-gradient(90deg, #0F9B8E, #1E9E4F, #7CCB3A); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .2em; margin-bottom: -.2em; }
.nav-links { display: flex; gap: 22px; flex: 1; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink2); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--green); }
@media (max-width: 860px) { .nav-links { display: none; } .nav { justify-content: space-between; } }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; max-width: 580px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.01em; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-address { font-size: 17px; font-weight: 600; color: var(--ink); user-select: all; }
.contact-note { margin: -6px 0 0; font-size: 14px; }
.hero-visual { flex: 0 1 440px; min-width: 0; position: relative; height: 600px; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; top: 70px; left: 50%; width: min(460px, 100%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--fill); }
.phone { position: relative; margin-top: 8px; width: 280px; height: 585px; border-radius: 48px; background: var(--ink); padding: 9px; box-shadow: 0 24px 50px rgba(27, 43, 34, .28); }
.phone-screen { position: relative; width: 262px; height: 567px; border-radius: 40px; overflow: hidden; background: var(--bg); }
.phone-ui { width: 390px; height: 844px; transform: scale(.6718); transform-origin: 0 0; pointer-events: none; }
.phone-island { position: absolute; left: 50%; top: 10px; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: var(--ink); }
.hero-photo { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; border-radius: 20px; margin-top: 40px; box-shadow: 0 18px 44px rgba(60, 45, 20, .14); }
@media (max-width: 960px) {
  .hero-visual { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-block: 32px 48px; }
  .hero-visual { height: 520px; }
  .phone { transform: scale(.86); transform-origin: top center; }
  .contact-row .btn { flex: 1 1 100%; }
  .hero-photo { aspect-ratio: 4 / 3; margin-top: 8px; }
}

/* Day strip */
.day-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.day-card .when { font-size: 13px; font-weight: 700; color: var(--muted); }
.day-card b { font-size: 18px; line-height: 1.25; }
.day-card .who { font-size: 14px; color: var(--ink2); }
.day-card .tag { align-self: flex-start; }

/* Outcomes */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 20px; line-height: 1.3; }
.feature p { margin: 0; color: var(--ink2); }
.outcomes { gap: 36px 32px; }
.icon-badge { width: 48px; height: 48px; border-radius: 24px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.steps { list-style: none; padding: 0; }
.steps .num { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--green); }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 20px; }
.ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Comparison table: a table on wide screens, stacked cards on phones */
.compare { margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--green-dark); background: var(--green-soft); }
.compare td.them { color: var(--muted); }
.compare td.us { font-weight: 600; background: #F6FBF4; }
.compare tbody th { width: 22%; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  /* Each row is a card: topic label, Sprightly's answer first and prominent, the typical planner's answer small below. */
  .compare tr { display: flex; flex-direction: column; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 0; border: 0; background: none !important; }
  .compare tbody th { width: auto; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 6px; }
  .compare td { position: relative; padding-left: 30px; }
  .compare td::before { position: absolute; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
  .compare td.us { font-size: 17px; line-height: 1.4; color: var(--ink); }
  .compare td.us::before { content: "✓"; content: "✓" / "Sprightly: "; top: 2px; background: var(--green); color: #fff; }
  .compare td.them { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .compare td.them::before { content: "✕"; content: "✕" / "A typical meal planner: "; top: 0; background: var(--fill); color: var(--muted); font-size: 10px; }
  .compare .compare-key { display: flex; }
}
/* Legend shown once above the cards on phones (the table header does this job on wide screens) */
.compare-key { display: none; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--fill); border-bottom: 1px solid var(--line); }
.compare-key span { display: inline-flex; align-items: center; gap: 8px; }
.compare-key span::before { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; line-height: 1; }
.compare-key .k-us { color: var(--green-dark); }
.compare-key .k-us::before { content: "✓"; background: var(--green); color: #fff; }
.compare-key .k-them::before { content: "✕"; background: var(--surface); color: var(--muted); font-size: 9px; }

/* Families and solo */
.persona { background: var(--surface); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 36px rgba(60, 45, 20, .10); }
.persona .photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.persona .photos img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.persona .photos img.wide { grid-column: span 2; aspect-ratio: 21 / 9; }
.persona .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.persona h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.persona ul { margin: 0; padding-left: 20px; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) { .persona .photos img.wide { aspect-ratio: 16 / 9; } }

/* Join */
.join { background: var(--dark); color: #fff; }
.join-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: start; }
.join h2 { color: #fff; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; }
.join .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); }
.join p { color: var(--on-dark); }
.contact-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card .label { margin: 0; }
.email-big { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--green); text-decoration: none; overflow-wrap: anywhere; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; color: var(--green); }
.contact-card .btn { width: 100%; }
.contact-card .fine { margin: -4px 0 0; font-size: 13px; color: var(--muted) !important; text-align: center; }
@media (max-width: 480px) { .contact-card { padding: 20px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; min-height: 28px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { margin: 10px 0 0; color: var(--ink2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.footer-row .brand { font-family: var(--display); font-weight: 700; font-variation-settings: 'opsz' 28; font-size: 20px; color: var(--green); }
.footer-row .grow { flex: 1; }
.footer-row a { color: var(--ink2); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .grid { gap: 12px; margin-top: 24px; }
  .card { padding: 16px 18px; }
  .card p { margin-top: 6px; }
  .card .title-serif { font-size: 20px; }

  /* One Tuesday: one list with dividers, time and place tag on one line */
  .day-grid { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
  .day-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "when tag" "dish dish" "who who"; align-items: center; gap: 2px 12px; padding: 14px 16px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .day-card:last-child { border-bottom: 0; }
  .day-card .when { grid-area: when; }
  .day-card b { grid-area: dish; font-size: 17px; }
  .day-card .who { grid-area: who; }
  .day-card .tag { grid-area: tag; }

  /* What changes / How it works: icon or number beside the title */
  .outcomes { gap: 24px; }
  .feature { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px 14px; }
  .feature p { grid-column: 1 / -1; }
  .feature h3 { font-size: 19px; }
  .feature .icon-badge { width: 40px; height: 40px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 12px; }
  .steps li p { grid-column: 1 / -1; margin-top: 0; }
  .steps .num { font-size: 32px; }
}

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 80px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink2); }
.notice { background: #FFF3D6; color: #6B4200; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-top: 20px; }

/* Wordmark: the ampersand is a step lighter than the words, as in the app. */
.amp { font-weight: 600; }
.footer-note { margin: -24px auto 0; padding-bottom: 40px; font-size: 13px; color: var(--muted); max-width: 1200px; }
.footer-note a { color: var(--ink2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
