/* =========================================================
   HOMEPAGE — one section per thing a visitor can do.
   Loaded only by index.html; tokens come from style.css :root.
   ========================================================= */

.home-wrap { max-width: 1080px; margin: 0 auto; }
.home-section { padding: clamp(64px, 9vw, 104px) 20px; }
.home-section--white { background: var(--bg-card); }
.home-section--sage  { background: var(--bg-sage); }
.home-section--cream { background: var(--bg); }
.home-section--dark  { background: var(--sage-900); color: #fff; }

.home-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; }
.home-split--reverse { flex-wrap: wrap-reverse; }
.home-copy   { flex: 1 1 360px; max-width: 480px; display: flex; flex-direction: column; gap: 16px; }
.home-visual { flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.home-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.home-eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--sage-700); }
.home-title {
  margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -1px; color: inherit;
}
.home-title--xl { font-size: clamp(40px, 7vw, 68px); line-height: 1; }
.home-lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-800); max-width: 560px; }
.home-fine { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-600); }
.home-fine a { color: inherit; }
.home-more { font-size: 17px; font-weight: 500; color: var(--sage-700); text-decoration: none; }
.home-more:hover { text-decoration: underline; }

.home-section--dark .home-eyebrow,
.home-section--dark .home-fine,
.home-more--light { color: var(--sage-200); }
.home-section--dark .home-lede { color: var(--sage-100); }

/* Hero */
.home-hero { padding: clamp(112px, 15vw, 152px) 20px 64px; text-align: center; background: var(--bg); }
.home-hero .home-wrap { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-hero h1 {
  margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--ink-900);
  font-size: clamp(44px, 9vw, 84px); line-height: 1; letter-spacing: -1.5px;
}
.home-hero-sub { margin: 0; max-width: 600px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; color: var(--ink-600); }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.home-rating { font-size: 14px; color: var(--ink-600); }
.home-rating .stars { color: var(--gold); }
.need-ask { margin: 28px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-500); }
.need-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.need-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--bg-card); color: var(--ink-800); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.need-chip:hover, .need-chip[aria-current="true"] { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.home-note { margin: 8px 0 0; max-width: 520px; font-size: 12px; line-height: 1.5; color: var(--ink-500); }

/* Find answers: tabs appear only once main.js has wired them (.js-tabs). */
.find-tabs-wrap { display: none; justify-content: center; margin-top: 22px; }
.js-tabs .find-tabs-wrap { display: flex; }
.find-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--bg); border-radius: var(--r-pill); }
.find-tab {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--ink-600); font: 600 14px 'Inter', system-ui, sans-serif;
}
.find-tab[aria-selected="true"] { background: var(--bg-card); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.find-tab:focus-visible, .need-chip:focus-visible, .find-card:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 2px; }
.find-panel { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.find-panel[hidden] { display: none; }
.find-panel-title { margin: 0; text-align: center; font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 600; }
.js-tabs .find-panel-title { display: none; }
.find-panel > .home-more { align-self: center; }
.find-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.find-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--bg-soft); color: var(--ink-900); text-decoration: none; transition: transform var(--transition);
}
.find-card:hover { transform: translateY(-2px); }
.find-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.find-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.find-card-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.find-card-sub { font-size: 14px; line-height: 1.4; color: var(--ink-600); }
.home-badge { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.home-badge.ev-strong      { background: var(--sage-100); color: var(--sage-900); }
.home-badge.ev-moderate    { background: var(--peach-soft); color: #6B3E12; }
.home-badge.ev-preliminary { background: #EFEBE5; color: var(--ink-800); }

/* Ask the Herbalist */
.herbalist-shot { flex: 0 1 300px; display: flex; justify-content: center; }
.herbalist-shot img { width: 100%; max-width: 300px; height: auto; }

/* Make it */
.recipe-card { overflow: hidden; border-radius: 26px; background: var(--bg-card); box-shadow: var(--shadow-lg); }
.recipe-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.recipe-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 26px; }
.recipe-name { margin: 0; font-size: 20px; font-weight: 700; }
.recipe-sub { margin: -10px 0 0; font-size: 14px; color: var(--ink-600); }
.recipe-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recipe-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.step-num {
  flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--sage-100); color: var(--sage-900); font-size: 14px; font-weight: 700;
}
.recipe-dose { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }

/* Evidence */
.evidence-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: 22px; background: var(--bg-soft); }
.evidence-head { display: flex; align-items: center; gap: 14px; }
.evidence-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.evidence-name { margin: 0; font-size: 17px; font-weight: 700; }
.evidence-sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-600); }
.ev-scale { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ev-step { padding: 9px 0; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 600; background: #EFEBE5; color: var(--ink-600); }
.ev-step.is-current { background: var(--sage-700); color: #fff; font-weight: 700; }
.caution-card { display: flex; gap: 12px; align-items: flex-start; padding: 20px 24px; border-radius: 22px; background: #FDF3EC; }
.caution-card svg { flex: none; margin-top: 1px; }
.caution-card p { margin: 0; font-size: 15px; line-height: 1.5; color: #5C2C0A; }

/* Habit */
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,0.94); color: var(--ink-900); }
.notif-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sage-700); }
.notif-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.notif-text > span:last-child { color: var(--ink-600); }
.notif-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); }
.plan-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.08); }
.plan-card p { margin: 0; font-size: 14px; font-weight: 600; color: var(--sage-100); }
.plan-days { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.plan-days li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--sage-100); }
.plan-days li::before { content: ""; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); }
.plan-days li.done::before { background: var(--sage-300); border-color: var(--sage-300); }
.plan-days li.today::before { border-color: #fff; }

/* Start tonight + browse */
.home-final .home-wrap { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.home-link-button {
  min-height: 44px; padding: 8px; border: 0; background: none; cursor: pointer;
  color: var(--sage-700); font: 500 14px 'Inter', system-ui, sans-serif; text-decoration: underline;
}
.home-browse { padding: 0 20px 72px; background: var(--bg); }
.home-browse-title { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.category-link {
  padding: 9px 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-900); font-size: 13px; font-weight: 500; text-decoration: none;
}
.category-link:hover { border-color: var(--sage-500); }
