/* ==========================================================
   PoshanPal - landing styles (redesign)
   Palette and vernacular derived from the app itself:
   forest headers, cream paper, kitchen lavender, pink accent.
   ========================================================== */

/* 1. Fonts */
@font-face { font-family: "Quicksand"; src: url("assets/fonts/quicksand-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("assets/fonts/quicksand-medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("assets/fonts/quicksand-bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-light-italic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satisfy"; src: url("assets/fonts/satisfy-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

/* 2. Tokens */
:root {
  --forest-950: #052018;
  --forest-900: #083a2a;
  --forest-800: #0d4c34;
  --forest-700: #117355;
  --forest-ink: #0b2c1f;
  --mint-100: #e2f3ea;
  --mint-50: #f1f9f4;
  --cream: #fdfbf4;
  --card: #ffffff;
  --lav-100: #ece5f7;
  --lav-50: #f7f4fc;
  --lav-600: #7a5fb3;
  --pink: #d51d78;
  --gold: #f2c14e;
  --gold-soft: #fdf3d7;
  --ink: #1e2622;
  --muted: #5c6a61;
  --muted-light: #a7bcae;
  --line: #e3e9e2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 14px 34px rgba(5, 32, 24, 0.08);
  --shadow-md: 0 26px 60px rgba(5, 32, 24, 0.13);
  --shadow-lg: 0 40px 90px rgba(5, 32, 24, 0.2);
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --container: 1180px;
  --header-h: 74px;
  --display: "Fraunces", "Georgia", serif;
  --body: "Quicksand", system-ui, sans-serif;
  --utility: "DM Sans", system-ui, sans-serif;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4 { margin: 0; }
main { overflow: clip; }

.container { width: min(var(--container), calc(100% - 44px)); margin: 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid rgba(213, 29, 120, 0.55); outline-offset: 3px; border-radius: 4px; }

section { padding: 96px 0; }

/* 4. Type */
h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--forest-ink);
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

h1 em, h2 em {
  font-weight: 300;
  font-style: italic;
  color: var(--forest-700);
}

h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--forest-ink);
}

.h3-size { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-700);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 9px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-1px);
}

.eyebrow--light { color: var(--gold); }

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 76, 52, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(13, 76, 52, 0.42); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #eaf4ee;
  border: 1px solid var(--line-dark);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

.btn--nav {
  padding: 10px 20px;
  background: var(--forest-900);
  color: #fff;
  font-size: 0.88rem;
}
.btn--nav:hover { background: var(--forest-700); }

/* 6. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 32, 24, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled { background: rgba(5, 32, 24, 0.96); border-bottom-color: rgba(255, 255, 255, 0.08); }

.nav-shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { border-radius: 11px; }
.brand-word { font-weight: 800; font-size: 1.16rem; color: #fff; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(234, 244, 238, 0.78);
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.site-nav a.active { color: var(--forest-ink); background: var(--gold); }

.mobile-quick-nav { display: none; }

/* 7. Hero */
.hero {
  position: relative;
  padding: 72px 0 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(17, 115, 85, 0.55), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(122, 95, 179, 0.22), transparent 55%),
    linear-gradient(175deg, var(--forest-950) 0%, #07301f 55%, var(--forest-900) 100%);
  color: #eaf4ee;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-radial-gradient(
    ellipse 130% 90% at 110% -30%,
    transparent 0 34px,
    rgba(255, 255, 255, 0.035) 34px 36px
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.hero-greeting {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.greeting-sun {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--gold));
  box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.16), 0 0 18px rgba(242, 193, 78, 0.55);
  align-self: center;
}

.greeting-sub {
  font-family: "Satisfy", cursive;
  font-weight: 400;
  font-size: 1.06rem;
  color: rgba(234, 244, 238, 0.66);
}

.hero h1 { color: #fff; max-width: 560px; }
.hero h1 em { color: var(--gold); }

.hero-summary {
  margin-top: 22px;
  max-width: 520px;
  color: rgba(234, 244, 238, 0.82);
  font-size: 1.08rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* 7b. Signature - log demo */
.log-demo {
  margin-top: 40px;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 20px 22px 14px;
  backdrop-filter: blur(6px);
}

.log-demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.log-demo-kicker {
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 244, 238, 0.6);
}

.log-demo-source {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.16);
  color: var(--gold);
}

.log-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: rgba(5, 32, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.06rem;
  font-weight: 600;
  color: #fff;
}

.log-caret {
  width: 2px; height: 1.2em;
  margin-left: 3px;
  background: var(--gold);
  animation: caret-blink 0.9s steps(2) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.log-result { margin-top: 14px; transition: opacity 0.3s ease, transform 0.3s ease; }
.log-result.is-hidden { opacity: 0; transform: translateY(6px); }

.nutrient-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrient {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
}

.nutrient b { font-weight: 800; color: #fff; }
.nutrient small { color: rgba(234, 244, 238, 0.62); font-size: 0.74rem; }
.nutrient img { width: 20px; height: 20px; }

.log-insight {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.28);
}

.insight-check {
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.log-insight b { display: block; font-size: 0.94rem; color: #fff; }

.insight-lift {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

.log-demo-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(234, 244, 238, 0.45);
}

/* 7c. Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  border-radius: 18px;
  border: 2px solid #4D4D4D;
  padding: 1px;
  background: #4D4D4D;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.phone img {
  width: 100%;
  border-radius: 15px;
  transition: filter 0.35s ease;
}

.phone:hover,
.feature-card:hover .phone,
.care-mini:hover .phone,
.family-panel:hover .phone,
.hero-phone-pair:hover .phone {
  box-shadow: 0 26px 58px rgba(4, 31, 22, 0.28);
  filter: saturate(1.04);
}

.phone:hover img,
.feature-card:hover .phone img,
.care-mini:hover .phone img,
.family-panel:hover .phone img,
.hero-phone-pair:hover .phone img {
  filter: brightness(1.02);
}

.phone--hero { width: min(320px, 78%); position: relative; z-index: 2; }

.phone--peek {
  position: absolute;
  width: min(250px, 58%);
  right: 0;
  bottom: -14px;
  z-index: 1;
  transform: rotate(6deg);
  opacity: 0.92;
}

.hero-float-card {
  position: absolute;
  left: -6px;
  bottom: 76px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 210px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-float-card span {
  font-family: var(--utility);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.hero-float-card b { font-size: 0.9rem; line-height: 1.35; color: var(--forest-ink); }

.lift-chip {
  display: inline-block;
  align-self: flex-start;
  font-style: normal;
  font-family: var(--utility);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--forest-700);
}

.hero-traits {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  margin-top: 88px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-dark);
}

.trait { font-size: 0.9rem; color: rgba(234, 244, 238, 0.68); }
.trait b { color: #fff; font-weight: 700; }

/* 8. Why */
.why { background: var(--cream); }

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.question-card {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.question-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--forest-800);
  margin-bottom: 12px;
  line-height: 1.25;
}

.question-card > p:last-child { color: var(--muted); font-size: 0.96rem; }

/* 9. Loop */
.loop { background: linear-gradient(180deg, var(--cream), var(--mint-50)); padding-top: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--forest-900);
  color: var(--gold);
  font-family: var(--utility);
  font-weight: 700;
  font-size: 1rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* 10. AI */
.ai-section { padding-top: 40px; background: var(--mint-50); }

.ai-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(17, 115, 85, 0.5), transparent 55%),
    linear-gradient(160deg, var(--forest-950), var(--forest-900));
  color: #eaf4ee;
  box-shadow: var(--shadow-lg);
}

.ai-panel h2 { color: #fff; }
.ai-panel h2 em { color: var(--gold); }
.ai-copy > p { margin-top: 16px; color: rgba(234, 244, 238, 0.8); }

.ai-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}

.ai-board-kicker {
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 244, 238, 0.55);
}

.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.signal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  background: rgba(5, 32, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.signal small { font-weight: 500; font-size: 0.7rem; color: rgba(234, 244, 238, 0.55); }

.ai-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 700;
  color: var(--gold);
}

.ai-hub img { border-radius: 12px; box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.12); }

.ai-answer {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
}

.ai-answer b { display: block; color: var(--forest-ink); font-size: 0.98rem; }
.ai-answer p { margin: 7px 0 11px; font-size: 0.92rem; color: var(--muted); }

/* 11. Product & feature cards */
.product { background: var(--cream); }

.feature-stack { display: grid; gap: 26px; }

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 52px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-card--reverse .feature-copy { order: 2; }
.feature-card--reverse .feature-visual { order: 1; }

.feature-card--dark {
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(17, 115, 85, 0.45), transparent 55%),
    linear-gradient(160deg, var(--forest-950), var(--forest-900));
  border: 0;
  color: #eaf4ee;
  box-shadow: var(--shadow-lg);
}

.feature-card--dark h3 { color: #fff; }
.feature-card--dark .feature-copy > p { color: rgba(234, 244, 238, 0.8); }

.feature-card--plain { box-shadow: var(--shadow-md); }

.feature-copy > p { margin-top: 14px; color: var(--muted); }
.feature-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--forest-700);
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag--gold { background: rgba(242, 193, 78, 0.16); color: var(--gold); }

.check-list { display: grid; gap: 11px; margin-top: 20px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--forest-700);
  font-size: 0.72rem;
  font-weight: 800;
}

.check-list--light li { color: rgba(234, 244, 238, 0.78); }
.check-list--light li::before { background: rgba(242, 193, 78, 0.18); color: var(--gold); }

.point-list { display: grid; gap: 16px; margin-top: 22px; }
.point-list li { display: grid; gap: 3px; padding-left: 18px; border-left: 3px solid var(--gold); }
.point-list strong { color: var(--forest-ink); font-size: 0.98rem; }
.point-list span { color: var(--muted); font-size: 0.92rem; }

.feature-footnote {
  margin-top: 18px;
  font-family: var(--utility);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 238, 0.55);
}

.feature-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.feature-visual .phone { width: min(280px, 82%); }

.phone-pair { display: flex; justify-content: center; }

.phone-pair .phone { width: min(240px, 52%); }

.phone--lean-l { transform: rotate(-3.5deg) translateX(10px); z-index: 1; }
.phone--lean-r { transform: rotate(3.5deg) translateX(-10px) translateY(18px); }

.feature-badge {
  position: relative;
  z-index: 3;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: min(100%, 300px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--forest-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
  white-space: normal;
  box-shadow: var(--shadow-md);
}

.feature-badge small { font-weight: 500; font-size: 0.7rem; color: var(--muted-light); }

/* 12. Kitchen (lavender) */
.kitchen {
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(236, 229, 247, 0.9), transparent 60%),
    linear-gradient(180deg, var(--lav-50), var(--cream));
}

.kitchen .tag:not(.tag--gold) { background: var(--lav-100); color: var(--lav-600); }
.kitchen .check-list li::before { background: var(--lav-100); color: var(--lav-600); }
.kitchen .feature-card--dark .check-list li::before { background: rgba(242, 193, 78, 0.18); color: var(--gold); }

/* 13. Supplements */
.supplements { padding-top: 40px; background: var(--cream); }
.supplements .container.feature-card { width: min(var(--container), calc(100% - 44px)); }

/* 14. Care hub */
.care-hub {
  background: var(--mint-50);
}

.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}

.care-mini {
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.care-mini h3 { font-size: 1.2rem; }
.care-mini > p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

.care-mock { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }

.care-screen-pair,
.care-screen-single,
.family-screen-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 24px;
  min-height: 245px;
  overflow: hidden;
}

.care-screen-pair .phone,
.care-screen-single .phone,
.family-screen-pair .phone {
  width: min(155px, 48%);
}

.care-screen-single .phone {
  width: min(175px, 60%);
}

.phone--mini.phone--lean-l { transform: rotate(-3deg) translateX(12px); }
.phone--mini.phone--lean-r { transform: rotate(3deg) translateX(-12px) translateY(18px); }

.family-screen-pair {
  min-height: 270px;
}

.paper-sheet {
  flex: 1 1 180px;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  border: 1px solid #efdca4;
}

.paper-sheet span {
  font-family: var(--utility);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8853a;
}

.paper-sheet b { font-size: 0.94rem; color: var(--forest-ink); }
.paper-sheet i { height: 5px; border-radius: 3px; background: #eadcae; }
.paper-sheet i:last-child { width: 62%; }

.dose-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--forest-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.dose-chip--soft { background: var(--mint-100); color: var(--forest-700); }

.sick-status {
  flex: 1 1 180px;
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--lav-50);
  border: 1px solid var(--lav-100);
}

.sick-status span {
  font-family: var(--utility);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lav-600);
}

.sick-status b { color: var(--forest-ink); }
.sick-status p { font-size: 0.82rem; color: var(--muted); }

.sick-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.sick-tags span {
  padding: 7px 13px;
  border-radius: 999px;
  background: #fdeaf3;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
}

/* 15. Family */
.family { background: var(--cream); }

.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.family-panel {
  padding: 40px 38px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.family-panel > p { margin-top: 12px; color: var(--muted); font-size: 0.97rem; }

.family-panel--dark {
  background: linear-gradient(160deg, var(--forest-950), var(--forest-900));
  border: 0;
  color: #eaf4ee;
}

.family-panel--dark h3 { color: #fff; }
.family-panel--dark > p { color: rgba(234, 244, 238, 0.78); }

.family-mock { display: grid; gap: 12px; margin-top: 24px; }

.child-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--mint-50);
  border: 1px solid var(--line);
}

.child-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(5, 32, 24, 0.14);
  color: var(--forest-ink);
  font-family: var(--utility);
  font-size: 0.95rem;
  font-weight: 800;
}

.child-avatar--rose { background: #fbe4ef; color: #9d174d; }
.child-avatar--teal { background: #dff3eb; color: var(--forest-700); }

.child-info { display: grid; gap: 1px; min-width: 0; }
.child-info b { font-size: 0.98rem; color: var(--forest-ink); }
.child-info span { font-size: 0.8rem; color: var(--muted); }

.child-chip {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--forest-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.child-chip--soft { background: var(--lav-100); color: var(--lav-600); }

.household-card {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px dashed #e6cd8c;
}

.household-card b { font-size: 0.9rem; color: var(--forest-ink); }
.household-card span { font-size: 0.82rem; color: #8a7134; }

.caregiver-stack { display: grid; gap: 10px; margin-top: 24px; }

.caregiver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
}

.caregiver-row strong { display: block; font-size: 0.95rem; color: #fff; }
.caregiver-row span:not(.role-pill) { font-size: 0.8rem; color: rgba(234, 244, 238, 0.6); }

.role-pill {
  flex: none;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.16);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

/* 16. Trust */
.trust { padding-top: 40px; background: var(--cream); }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.trust-panel {
  padding: 40px 38px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trust-panel--dark {
  background: linear-gradient(160deg, var(--forest-950), var(--forest-900));
  border: 0;
}

.trust-panel--dark h3 { color: #fff; }
.trust-panel .check-list { margin-top: 18px; }

/* 17. FAQ */
.faq { background: var(--mint-50); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest-ink);
}

.faq-q::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--forest-700);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q::after { content: "-"; transform: rotate(180deg); }

.faq-a {
  padding: 0 22px 19px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 18. CTA */
.cta { background: var(--cream); }

/* 17A. Stories */
.stories {
  background: #fbfdf8;
}

.stories-page {
  background: #fbfdf8;
}

.stories-page .site-nav a[aria-current="page"],
.stories-page .mobile-quick-nav a[aria-current="page"] {
  color: var(--forest-ink);
  background: var(--gold);
}

.stories-archive {
  padding-top: 72px;
}

.stories-head {
  margin-bottom: 64px;
}

.stories-head h1 {
  max-width: 820px;
  margin-inline: auto;
}

.stories-head p {
  max-width: 620px;
  margin-inline: auto;
}

.story-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 48px 52px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(253, 243, 215, 0.96), rgba(226, 243, 234, 0.96));
  color: var(--forest-ink);
  border: 1px solid #d9e8dc;
  box-shadow: 0 24px 70px rgba(5, 32, 24, 0.08);
  overflow: hidden;
}

.story-hero-date {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 1;
  font-family: var(--utility);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--forest-ink);
}

.story-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.story-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.story-hero h3 {
  max-width: 640px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--forest-ink);
}

.story-hero p {
  margin-top: 16px;
  max-width: 560px;
  color: #53645a;
  font-size: 1rem;
}

.story-read-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 0;
  color: var(--forest-800);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.story-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 54px 0 22px;
}

.story-subhead h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 0;
}

.story-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  text-align: left;
  background: #eff3ee;
  border: 1px solid #dde7df;
  color: var(--forest-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  background: #e7e8e5;
  box-shadow: var(--shadow-md);
}

.story-card-date {
  align-self: flex-end;
  font-family: var(--utility);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--forest-ink);
}

.story-card-problem {
  margin-top: 40px;
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.story-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.24rem;
  line-height: 1.22;
  color: var(--forest-ink);
}

.story-card-preview {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-card-action {
  margin-top: auto;
  padding-top: 22px;
  color: var(--forest-700);
  font-size: 0.86rem;
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

.story-modal[hidden] {
  display: none;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.story-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 32, 24, 0.72);
  backdrop-filter: blur(7px);
}

.story-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  padding: 44px 48px;
  background: #fffdf7;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.18s ease;
}

.story-modal.is-open .story-modal-card {
  transform: none;
}

.story-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: -18px -20px 10px 18px;
  border-radius: 50%;
  background: var(--forest-900);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.story-modal-date {
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.story-modal-card h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.story-modal-body {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  color: #33413a;
  font-size: 1.04rem;
  line-height: 1.76;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
  padding: 60px 58px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(17, 115, 85, 0.5), transparent 55%),
    linear-gradient(160deg, var(--forest-950), var(--forest-900));
  color: #eaf4ee;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-card h2 { color: #fff; }
.cta-card h2 em { color: var(--gold); }
.cta-copy > p { margin-top: 14px; max-width: 460px; color: rgba(234, 244, 238, 0.8); }

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  max-width: 480px;
}

.waitlist-form input {
  flex: 1 1 240px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.waitlist-form input::placeholder { color: rgba(234, 244, 238, 0.55); }
.waitlist-form input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

.waitlist-form .btn--primary {
  background: var(--gold);
  color: var(--forest-ink);
  box-shadow: 0 12px 26px rgba(242, 193, 78, 0.3);
}

.form-status { margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--gold); min-height: 1.3em; }

.cta-footnote {
  margin-top: 10px;
  font-family: "Satisfy", cursive;
  font-size: 1.05rem;
  color: rgba(234, 244, 238, 0.6);
}

.cta-illustration { justify-self: center; width: min(320px, 100%); }

/* 18A. Floating waitlist */
.floating-waitlist {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  width: min(860px, calc(100% - 40px));
  transform: translate(-50%, calc(100% + 36px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-waitlist.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.floating-waitlist-form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 44px 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a092f, #3f0621);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(46, 4, 23, 0.42);
  backdrop-filter: blur(18px);
}

.floating-waitlist-copy {
  display: flex;
  align-items: center;
  padding-left: 4px;
  white-space: nowrap;
}

.floating-waitlist-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

.floating-waitlist-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(138, 26, 85, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--forest-ink);
  font-size: 0.9rem;
}

.floating-waitlist-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.floating-waitlist-form .btn {
  min-height: 42px;
  padding: 0 22px;
  background: var(--gold);
  color: var(--forest-ink);
  box-shadow: 0 10px 24px rgba(242, 193, 78, 0.24);
}

.floating-waitlist-dismiss {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
}

.floating-waitlist-status {
  position: absolute;
  left: 22px;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(90, 9, 47, 0.14);
  box-shadow: 0 10px 24px rgba(46, 4, 23, 0.16);
  color: #5a092f;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.floating-waitlist-status:empty {
  display: none;
}

/* 19. Footer */
.site-footer { background: var(--forest-950); color: rgba(234, 244, 238, 0.72); padding: 34px 0; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.footer-brand > div {
  display: grid;
  gap: 2px;
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.12;
}
.footer-brand span {
  font-size: 0.82rem;
  line-height: 1.22;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.86rem; }
.footer-links a:hover { color: #fff; }

.footer-meta { font-size: 0.82rem; }

/* 20. Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float-card { animation: none; }
  .log-caret { animation: none; }
  .phone,
  .phone img { transition: none; }
}

/* 21. Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .ai-panel { grid-template-columns: 1fr; padding: 44px 40px; }
  .feature-card { grid-template-columns: 1fr; gap: 44px; padding: 44px 40px; }
  .feature-card--reverse .feature-copy { order: 1; }
  .feature-card--reverse .feature-visual { order: 2; }
  .story-grid { gap: 28px; }
  .story-card { min-height: 300px; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 140px; }
  section { padding: 72px 0; }
  .site-nav { display: none; }
  .btn--nav { margin-left: auto; }

  .mobile-quick-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 22px 12px;
    background: rgba(5, 32, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
  }
  .mobile-quick-nav::-webkit-scrollbar { display: none; }

  .mobile-quick-nav a {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(234, 244, 238, 0.8);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .mobile-quick-nav a.active { background: var(--gold); color: var(--forest-ink); }

  .question-grid, .steps, .care-grid, .family-grid, .trust-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 280px; }
  .signal-row { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-illustration { display: none; }

  .floating-waitlist {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .floating-waitlist-form {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 42px 12px 12px;
    border-radius: 22px;
  }

  .floating-waitlist-copy {
    grid-column: 1 / -1;
  }

  .floating-waitlist-form input {
    min-height: 40px;
  }

  .floating-waitlist-form .btn {
    min-height: 40px;
    padding: 0 16px;
  }

  .floating-waitlist-status {
    left: 12px;
    right: 12px;
    bottom: calc(100% + 8px);
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .hero-float-card { position: static; margin: 20px auto 0; transform: none; }
  .phone--peek { display: none; }
  .phone--hero { width: min(280px, 92%); }
  .feature-card, .family-panel, .trust-panel, .ai-panel { padding: 32px 24px; }
  .phone-pair .phone { width: 48%; }
  .phone--lean-l { transform: rotate(-3deg) translateX(6px); }
  .phone--lean-r { transform: rotate(3deg) translateX(-6px) translateY(12px); }
  .feature-badge { font-size: 0.78rem; padding: 8px 15px; }
  .nutrient { font-size: 0.8rem; padding: 6px 10px; }
  .log-demo { padding: 16px 15px 10px; }
  .hero-traits { gap: 8px 18px; font-size: 0.84rem; }
  .story-hero {
    min-height: 360px;
    padding: 38px 28px;
  }
  .story-hero-date {
    top: 20px;
    right: 22px;
  }
  .story-modal {
    padding: 14px;
  }
  .story-modal-card {
    max-height: 86vh;
    padding: 34px 26px;
  }
}

/* 22. Mobile app-site treatment */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 140px;
  }

  body {
    background: var(--cream);
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  section {
    padding: 54px 0;
  }

  .site-header {
    position: sticky;
    background: rgba(5, 32, 24, 0.96);
  }

  .nav-shell {
    height: 62px;
    gap: 12px;
  }

  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-word {
    font-size: 1.02rem;
  }

  .btn--nav {
    padding: 8px 13px;
    font-size: 0.76rem;
  }

  .mobile-quick-nav {
    display: flex;
    gap: 7px;
    padding: 8px 14px 11px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .mobile-quick-nav a {
    scroll-snap-align: start;
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(2.32rem, 13vw, 3.12rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.72rem, 9vw, 2.28rem);
    line-height: 1.08;
  }

  h3 {
    font-size: 1.18rem;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .section-head {
    margin-bottom: 28px;
    text-align: left;
  }

  .section-head p {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .hero {
    padding: 38px 0 28px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-greeting {
    gap: 6px;
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .greeting-sub {
    width: 100%;
    font-size: 0.94rem;
  }

  .hero-summary {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
  }

  .log-demo {
    margin-top: 26px;
    padding: 15px 14px 12px;
    border-radius: 20px;
  }

  .log-demo-head {
    align-items: flex-start;
  }

  .log-demo-kicker {
    font-size: 0.58rem;
  }

  .log-demo-source {
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .log-input {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 0.9rem;
  }

  .nutrient-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nutrient {
    justify-content: flex-start;
    min-width: 0;
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .nutrient img {
    width: 18px;
    height: 18px;
  }

  .log-insight {
    padding: 12px;
  }

  .log-insight b,
  .insight-lift {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .hero-visual {
    width: 100%;
    max-width: 360px;
    min-height: 520px;
    margin-inline: auto;
    align-items: flex-start;
  }

  .phone {
    border-width: 5px;
    border-radius: 23px;
  }

  .phone img {
    border-radius: 16px;
  }

  .phone--hero {
    width: min(250px, 72vw);
    margin-inline: auto;
  }

  .phone--peek {
    display: block;
    width: min(180px, 52vw);
    right: -2px;
    bottom: 10px;
    transform: rotate(5deg);
  }

  .hero-float-card {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 240px;
    margin: -4px auto 0;
    transform: none;
    border-radius: 18px;
  }

  .hero-traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 26px;
  }

  .trait {
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    text-align: center;
    font-size: 0.76rem;
  }

  .question-grid,
  .steps,
  .care-grid,
  .family-grid,
  .trust-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .question-card,
  .step,
  .care-mini,
  .family-panel,
  .trust-panel {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .question-quote {
    font-size: 1.08rem;
  }

  .steps {
    gap: 12px;
  }

  .step-no {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .ai-panel,
  .feature-card,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 20px;
    border-radius: 24px;
  }

  .ai-board {
    padding: 18px;
    border-radius: 20px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal,
  .ai-answer {
    padding: 13px;
    border-radius: 16px;
  }

  .feature-card--reverse .feature-copy,
  .feature-card--reverse .feature-visual {
    order: initial;
  }

  .feature-copy > p,
  .check-list li,
  .point-list span,
  .care-mini p,
  .family-panel > p,
  .trust-panel li,
  .faq-a {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .check-list {
    gap: 9px;
    margin-top: 16px;
  }

  .check-list li {
    padding-left: 28px;
  }

  .feature-visual {
    gap: 14px;
    overflow: hidden;
    padding: 2px 0 4px;
  }

  .feature-visual .phone {
    width: min(218px, 70vw);
  }

  .phone-pair {
    width: 100%;
    min-height: 355px;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .phone-pair .phone {
    width: min(168px, 45vw);
  }

  .phone--lean-l {
    transform: rotate(-3deg) translateX(14px);
  }

  .phone--lean-r {
    transform: rotate(3deg) translateX(-14px) translateY(18px);
  }

  .feature-badge {
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .feature-badge small {
    font-size: 0.66rem;
  }

  .supplements {
    padding-top: 54px;
  }

  .supplements .container.feature-card {
    width: min(100% - 28px, var(--container));
  }

  .care-mock {
    margin-top: 18px;
  }

  .paper-sheet {
    width: 100%;
  }

  .dose-chip,
  .dose-chip--soft {
    position: static;
  }

  .sick-status {
    min-width: 100%;
  }

  .sick-tags {
    position: static;
    max-width: 100%;
  }

  .child-card,
  .caregiver-row {
    align-items: flex-start;
    gap: 12px;
  }

  .child-chip,
  .role-pill {
    padding-inline: 10px;
    white-space: nowrap;
  }

  .faq-list {
    gap: 10px;
  }

  .story-hero {
    min-height: 330px;
    padding: 34px 22px 28px;
  }

  .story-hero h3 {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .story-hero p {
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .story-grid {
    margin-top: 22px;
  }

  .story-subhead {
    display: block;
    margin-top: 34px;
  }

  .story-card {
    min-height: 250px;
    padding: 22px;
  }

  .story-card strong {
    font-size: 1.08rem;
  }

  .story-card-preview {
    font-size: 0.86rem;
  }

  .story-modal-card {
    padding: 30px 22px;
  }

  .story-modal-body {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .faq-q {
    padding: 17px 48px 17px 18px;
    font-size: 0.92rem;
  }

  .faq-a {
    padding: 0 18px 17px;
  }

  .cta-card {
    text-align: left;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .waitlist-form input,
  .waitlist-form button {
    width: 100%;
    min-height: 48px;
  }

  .footer-row {
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    gap: 8px 14px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .btn--nav {
    padding-inline: 10px;
  }

  .brand-word {
    font-size: 0.96rem;
  }

  .hero-traits {
    grid-template-columns: 1fr;
  }

  .phone-pair .phone {
    width: min(150px, 46vw);
  }
}

/* 23. Polished mobile landing layout */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 140px;
  }

  body {
    background: #fffdf7;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  section {
    padding: 48px 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    background: rgba(5, 32, 24, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-shell {
    height: 58px;
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 1.04rem;
  }

  .btn--nav {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .mobile-quick-nav {
    display: flex;
    gap: 7px;
    padding: 8px 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-quick-nav a {
    flex: none;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(234, 244, 238, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
  }

  .mobile-quick-nav a.active {
    background: var(--gold);
    color: var(--forest-ink);
  }

  h1 {
    font-size: clamp(2.16rem, 12vw, 3rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.58rem, 8vw, 2.12rem);
    line-height: 1.08;
  }

  h3 {
    font-size: 1.12rem;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .section-head {
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
  }

  .section-head p {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .hero {
    padding: 34px 0 28px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-greeting {
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .greeting-sub {
    width: 100%;
    font-size: 0.92rem;
  }

  .hero-summary {
    margin-top: 15px;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .hero-ctas {
    display: grid;
    gap: 9px;
    margin-top: 20px;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
  }

  .log-demo {
    margin-top: 22px;
    padding: 14px;
    border-radius: 20px;
  }

  .log-demo-kicker {
    font-size: 0.56rem;
  }

  .log-demo-source {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .log-input {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .nutrient-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nutrient {
    min-width: 0;
    justify-content: flex-start;
    padding: 7px 8px;
    font-size: 0.68rem;
  }

  .nutrient img {
    width: 17px;
    height: 17px;
  }

  .log-insight {
    padding: 11px;
  }

  .log-insight b,
  .insight-lift,
  .log-demo-note {
    font-size: 0.74rem;
    line-height: 1.36;
  }

  .hero-visual {
    width: 100%;
    max-width: 342px;
    min-height: 392px;
    margin-inline: auto;
  }

  .phone {
    border-width: 5px;
    border-radius: 22px;
  }

  .phone img {
    border-radius: 15px;
  }

  .phone--hero {
    width: min(216px, 62vw);
  }

  .phone--peek {
    display: block;
    width: min(162px, 47vw);
    right: -4px;
    bottom: 28px;
    transform: rotate(5deg);
  }

  .hero-float-card {
    left: 0;
    bottom: 30px;
    max-width: 186px;
    padding: 12px 13px;
    border-radius: 16px;
  }

  .hero-float-card span {
    font-size: 0.56rem;
  }

  .hero-float-card b {
    font-size: 0.78rem;
  }

  .hero-traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .trait {
    justify-content: center;
    min-height: 40px;
    padding: 9px 8px;
    text-align: center;
    font-size: 0.72rem;
  }

  .question-grid,
  .steps,
  .care-grid,
  .family-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .question-card,
  .step,
  .care-mini,
  .family-panel,
  .trust-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .question-quote {
    font-size: 1rem;
  }

  .step {
    gap: 12px;
  }

  .step-no {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .ai-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .ai-board {
    padding: 16px;
    border-radius: 18px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal,
  .ai-answer {
    padding: 12px;
    border-radius: 15px;
  }

  .feature-stack {
    gap: 16px;
  }

  .feature-card,
  .supplements .container.feature-card,
  .care-hub > .container > .feature-card {
    position: relative;
    display: block;
    width: min(100% - 24px, var(--container));
    min-height: 388px;
    margin-inline: auto;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
  }

  .feature-card--plain {
    box-shadow: var(--shadow-sm);
  }

  .feature-card::after {
    display: none;
  }

  .feature-card--dark::after {
    display: none;
  }

  .feature-card--reverse .feature-copy,
  .feature-card--reverse .feature-visual {
    order: initial;
  }

  .feature-card .feature-visual {
    position: absolute;
    inset: 18px 8px 0 8px;
    z-index: 0;
    display: block;
    padding: 0;
    overflow: visible;
  }

  .feature-card .feature-visual > .phone {
    width: min(168px, 46vw);
    margin-left: 10px;
  }

  .phone-pair {
    position: relative;
    width: 100%;
    min-height: 252px;
    display: block;
    overflow: visible;
  }

  .phone-pair .phone {
    position: absolute;
    width: min(142px, 40vw);
  }

  .phone--lean-l {
    left: 4px;
    top: 4px;
    transform: rotate(-4deg);
  }

  .phone--lean-r {
    left: min(112px, 30vw);
    top: 20px;
    transform: rotate(4deg);
  }

  .feature-card .feature-copy {
    position: absolute;
    left: 36%;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(8, 58, 42, 0.08);
    box-shadow: 0 18px 38px rgba(5, 32, 24, 0.12);
    backdrop-filter: blur(12px);
  }

  .feature-card--dark .feature-copy {
    background: rgba(255, 253, 247, 0.94);
  }

  .feature-card .tag {
    margin-bottom: 7px;
    padding: 4px 8px;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .feature-card .feature-copy h3,
  .feature-card .feature-copy h2 {
    font-size: 0.9rem;
    line-height: 1.12;
    color: var(--forest-ink);
  }

  .feature-card .feature-copy > p {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.36;
    color: var(--muted);
  }

  .feature-card .check-list,
  .feature-card .point-list {
    display: none;
  }

  .feature-footnote {
    margin-top: 8px;
    font-size: 0.6rem;
    color: var(--forest-700);
  }

  .feature-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    max-width: 34%;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
  }

  .feature-badge small {
    display: none;
  }

  .supplements {
    padding-top: 48px;
  }

  .care-hub {
    padding-bottom: 54px;
  }

  .care-mini {
    padding: 20px;
  }

  .care-mini h3 {
    font-size: 1.02rem;
  }

  .care-mini > p,
  .family-panel > p,
  .trust-panel li,
  .faq-a {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .care-mock {
    margin-top: 16px;
  }

  .paper-sheet {
    flex-basis: 100%;
  }

  .dose-chip,
  .dose-chip--soft,
  .sick-tags {
    position: static;
  }

  .sick-status {
    min-width: 100%;
  }

  .child-card,
  .caregiver-row {
    gap: 11px;
    align-items: flex-start;
  }

  .child-info span,
  .caregiver-row span {
    font-size: 0.76rem;
  }

  .child-chip,
  .role-pill {
    padding: 5px 9px;
    white-space: nowrap;
  }

  .faq-list {
    gap: 9px;
  }

  .faq-q {
    padding: 15px 44px 15px 16px;
    font-size: 0.9rem;
  }

  .faq-q::after {
    right: 16px;
  }

  .faq-a {
    padding: 0 16px 16px;
  }

  .cta {
    padding-top: 36px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .cta-card h2 {
    font-size: 1.48rem;
  }

  .cta-copy > p {
    font-size: 0.88rem;
  }

  .waitlist-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .waitlist-form input,
  .waitlist-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .cta-illustration {
    display: none;
  }

  .footer-row {
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    width: 100%;
    gap: 8px 14px;
  }
}

@media (max-width: 390px) {
  .feature-card,
  .supplements .container.feature-card,
  .care-hub > .container > .feature-card {
    min-height: 360px;
  }

  .feature-card .feature-copy {
    left: 34%;
    right: 10px;
    bottom: 10px;
    padding: 11px 12px;
  }

  .feature-card .feature-copy h3,
  .feature-card .feature-copy h2 {
    font-size: 0.82rem;
  }

  .feature-card .feature-copy > p {
    font-size: 0.66rem;
  }

  .phone-pair .phone {
    width: min(128px, 39vw);
  }

  .phone--lean-r {
    left: min(98px, 30vw);
  }

  .feature-badge {
    display: none;
  }
}

/* Hero phone pair: keep the first viewport consistent with the feature visuals. */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 6px;
}

.hero-phone-pair {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 530px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-phone-pair .phone {
  position: relative;
  inset: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  opacity: 1;
}

.hero-phone-pair .phone--growth {
  width: min(242px, 39%);
  z-index: 2;
  transform: rotate(-7deg) translateX(36px) translateY(8px);
}

.hero-phone-pair .phone--hero {
  width: min(318px, 52%);
  z-index: 4;
  transform: rotate(-1.5deg) translateY(-14px);
}

.hero-phone-pair .phone--food-ai {
  display: block;
  width: min(250px, 40%);
  z-index: 1;
  transform: rotate(6deg) translateX(-38px) translateY(18px);
  opacity: 0.96;
}

.hero-note-box {
  position: relative;
  z-index: 4;
  width: min(380px, 90%);
  margin-top: -16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245, 190, 63, 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: var(--forest-ink);
  box-shadow: 0 18px 38px rgba(4, 31, 22, 0.18);
}

.hero-note-box span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--utility);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.hero-note-box b {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.hero-note-box .lift-chip {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .hero-visual {
    max-width: 380px;
    min-height: 0;
  }

  .hero-phone-pair {
    min-height: 392px;
  }

  .hero-phone-pair .phone--growth {
    width: min(118px, 30vw);
    transform: rotate(-7deg) translateX(23px) translateY(20px);
  }

  .hero-phone-pair .phone--hero {
    width: min(168px, 42vw);
    transform: rotate(-1.5deg) translateY(0);
  }

  .hero-phone-pair .phone--food-ai {
    width: min(122px, 31vw);
    transform: rotate(6deg) translateX(-24px) translateY(24px);
  }

  .hero-note-box {
    box-sizing: border-box;
    width: min(260px, calc(100% - 44px));
    margin-top: 0;
    padding: 12px 15px;
    border-radius: 16px;
  }
}

@media (max-width: 390px) {
  .hero-phone-pair {
    min-height: 348px;
  }

  .hero-phone-pair .phone--growth {
    width: min(104px, 29vw);
    transform: rotate(-7deg) translateX(19px) translateY(18px);
  }

  .hero-phone-pair .phone--hero {
    width: min(142px, 40vw);
    transform: rotate(-1.5deg) translateY(0);
  }

  .hero-phone-pair .phone--food-ai {
    width: min(108px, 30vw);
    transform: rotate(6deg) translateX(-20px) translateY(22px);
  }

  .hero-note-box {
    width: min(260px, calc(100% - 44px));
  }
}

/* Mobile polish: tighter highlight grid and slimmer phone frames. */
@media (max-width: 760px) {
  .phone {
    border-width: 2px;
    padding: 1px;
    border-radius: 17px;
  }

  .phone img {
    border-radius: 14px;
  }

  .hero-traits {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
    padding: 14px 0 18px;
  }

  .trait {
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.74rem;
    line-height: 1.2;
  }
}

@media (max-width: 390px) {
  .phone {
    border-width: 2px;
    padding: 1px;
    border-radius: 16px;
  }

  .phone img {
    border-radius: 13px;
  }

  .hero-traits {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
    padding-top: 12px;
  }

  .trait {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }
}

/* Phone hover microinteractions: move the physical mockup, not the screenshot inside it. */
@media (hover: hover) and (pointer: fine) {
  .phone:hover {
    transform: translateY(-7px);
  }

  .phone-pair:hover .phone--lean-l,
  .feature-card:hover .phone--lean-l,
  .care-mini:hover .phone--lean-l,
  .family-panel:hover .phone--lean-l {
    transform: rotate(-3.5deg) translateX(10px) translateY(-8px);
  }

  .phone-pair:hover .phone--lean-r,
  .feature-card:hover .phone--lean-r,
  .care-mini:hover .phone--lean-r,
  .family-panel:hover .phone--lean-r {
    transform: rotate(3.5deg) translateX(-10px) translateY(8px);
  }

  .hero-phone-pair:hover .phone--growth {
    transform: rotate(-7deg) translateX(36px) translateY(12px);
  }

  .hero-phone-pair:hover .phone--hero {
    transform: rotate(-1.5deg) translateY(-10px);
  }

  .hero-phone-pair:hover .phone--food-ai {
    transform: rotate(6deg) translateX(-40px) translateY(24px);
  }
}

/* ============ FOOD GUIDE HOME TOOL (UNIFIED EXPANDING CONTAINER) ============ */
.food-guide-home-section {
  padding: 82px 0;
  background: #f6faf7;
  border-top: 1px solid var(--border-light, #e2ece5);
  border-bottom: 1px solid var(--border-light, #e2ece5);
}

.food-tool-unified-card {
  width: 100%;
  margin: 36px 0 0;
  background: #ffffff;
  border: 1px solid #d9e6de;
  border-radius: 18px;
  padding: 34px 40px;
  box-shadow: 0 18px 46px rgba(6, 39, 28, 0.07);
  transition: all 0.25s ease;
}

.food-tool-controls {
  width: 100%;
}

.age-selector-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--forest-600, #426356);
  letter-spacing: 0;
  margin-bottom: 10px;
  display: block;
}

.age-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.age-pill {
  background: #ffffff;
  border: 1px solid #d8e4dc;
  color: #2e3833;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.age-pill.active, .age-pill:hover {
  background: var(--forest-900, #06271c);
  color: #ffffff;
  border-color: var(--forest-900, #06271c);
}

.search-input-row {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #dbe6de;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: #117355;
}

.btn-search {
  background: #117355;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-search:hover {
  background: #0c563f;
}

.preset-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.preset-label {
  font-size: 0.84rem;
  color: #66706b;
  font-weight: 700;
}

.preset-chip {
  background: #ffffff;
  border: 1px solid #d8e4dc;
  color: #2e5145;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: #eff7f2;
  color: #0c563f;
  border-color: #bcd8c8;
}

.preset-chip.active {
  background: var(--forest-900, #06271c);
  color: #ffffff;
  border-color: var(--forest-900, #06271c);
}

.food-guide-note {
  margin-top: 12px;
  color: #66706b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.result-card-inner {
  animation: fadeIn 0.3s ease;
}

.result-divider {
  height: 1px;
  background: #e5ede7;
  margin: 28px 0 22px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #e5ede7;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.result-food-title {
  font-size: 1.5rem;
  color: #06271c;
  font-weight: 800;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.verdict-safe { background: #e8f8ef; color: #0c6a4d; border: 1px solid #a8e5c4; }
.verdict-caution { background: #fff8e6; color: #9c6800; border: 1px solid #f8de96; }
.verdict-avoid { background: #fde8e8; color: #b81c1c; border: 1px solid #f8b4b4; }

.result-section {
  margin-bottom: 15px;
}

.result-section h4 {
  font-size: 0.98rem;
  color: #173329;
  letter-spacing: 0;
  margin-bottom: 6px;
  font-weight: 800;
}

.result-section p {
  font-size: 0.96rem;
  color: #20232a;
  line-height: 1.55;
}

.nutrient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.nutrient-tag {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.nutrient-tag-safe { background: #e8f8ef; color: #0c6a4d; border: 1px solid #a8e5c4; }
.nutrient-tag-caution { background: #fff8e6; color: #9c6800; border: 1px solid #f8de96; }
.nutrient-tag-avoid { background: #fde8e8; color: #b81c1c; border: 1px solid #f8b4b4; }

.pediatric-tip-box {
  border-top: 1px solid #e5ede7;
  padding-top: 14px;
  margin-top: 16px;
  font-size: 0.94rem;
  color: #3f4d47;
  font-weight: 500;
  line-height: 1.5;
}

.spinner {
  text-align: center;
  padding: 24px;
  color: #117355;
  font-weight: 700;
}

@media (max-width: 768px) {
  .food-tool-unified-card {
    padding: 22px 18px;
    margin-top: 24px;
    border-radius: 18px;
  }
  .search-input-row {
    flex-direction: column;
  }
  .btn-search {
    padding: 12px;
  }
}
