/* Forecast Kitchen landing: same tokens, fonts and shapes as the plan page
   (concierge/render-plan.mjs + harvest theme in concierge/lib/theme.mjs). */
:root {
  --hdr1: #a63d1f;
  --hdr2: #a8521c;
  --hdr3: #8a5a10;
  --hdr-ink: #ffffff;
  --tile: rgba(0, 0, 0, 0.14);
  --accent: #b3401f;
  --accent2: #5f7a52;
  --link: #3f6f99;
  --bg: #fbf6ef;
  --card: #ffffff;
  --chip: #f6ece1;
  --line: #ecdfd2;
  --ink: #2b2420;
  --muted: #6e6158;
  --danger: #8a2f1d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  line-height: 1.5;
  font-size: 16px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 18px 80px; }
h1, h2, .meal { font-family: Fraunces, Georgia, serif; }
a { color: var(--link); }
.kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.theme {
  background: var(--tile);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
}

/* Hero — same gradient header as the plan page */
.hero {
  background: linear-gradient(135deg, var(--hdr1) 0%, var(--hdr2) 55%, var(--hdr3) 100%);
  color: var(--hdr-ink);
  border-radius: 22px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--tile);
  opacity: 0.7;
}
.hero h1, .hero p, .hero .strip, .hero-actions { position: relative; z-index: 1; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
  margin: 10px 0 12px;
}
.lede { margin: 0; max-width: 540px; font-size: 16.5px; }
.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 20px 0 0;
}
.strip div {
  background: var(--tile);
  border-radius: 12px;
  padding: 8px 2px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hdr-ink);
}
.strip div.off { opacity: 0.45; text-decoration: line-through; }
.strip .e { display: block; height: 22px; margin-bottom: 2px; }
.strip .e svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.hero-actions { margin: 22px 0 0; }
.cta, button, .primary {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
}
.cta, button.primary, a.primary {
  background: #fff;
  color: var(--accent);
}
button.primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  max-width: 320px;
}
button[disabled] { opacity: 0.6; cursor: wait; }
.cta:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
input:focus-visible, select:focus-visible, .opt:has(input:focus-visible) {
  outline-color: var(--accent);
}

/* Sample week — compact plan-page day cards */
.preview { margin-top: 8px; }
h2 { font-size: 24px; font-weight: 800; margin: 32px 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.days { list-style: none; margin: 0; padding: 0; }
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 2px 0 var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.day.skipped { background: var(--chip); box-shadow: none; }
.badge {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--chip);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge .e { display: block; height: 26px; margin-bottom: 1px; }
.badge .e svg, .icon svg { width: 26px; height: 26px; display: block; margin: 0 auto; }
.badge .e svg { color: var(--muted); }
.dname {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.meal { font-size: 20px; font-weight: 600; margin: 1px 0; line-height: 1.2; }
.wx { font-size: 14px; color: var(--muted); }
.preview-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

/* How it works */
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 0 var(--line);
}
.icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 24px; height: 24px; }
.how strong { color: var(--ink); }

/* Waitlist form */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 20px;
  margin: 28px 0 0;
  box-shadow: 0 2px 0 var(--line);
}
.card h2 { margin-top: 0; }
label { display: block; margin: 12px 0; font-weight: 800; font-size: 14.5px; }
input[type=email], input[inputmode], select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  min-height: 46px;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row label { flex: 1 1 200px; }
fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.opt { font-weight: 600; margin: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.consent { margin-top: 20px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.small { font-size: 14px; color: var(--muted); font-weight: 600; }
#msg { min-height: 1.5em; font-weight: 800; color: var(--accent2); }
footer { margin-top: 36px; color: var(--muted); font-size: 13px; text-align: center; }
footer p { margin: 0 0 8px; }

@media (max-width: 520px) {
  .wrap { padding: 14px 14px 64px; }
  .hero { padding: 22px 18px 20px; }
  .hero h1 { font-size: 28px; }
  .strip { gap: 4px; }
  .strip div { font-size: 10px; padding: 6px 1px; }
  .strip .e, .strip .e svg { width: 18px; height: 18px; }
  .meal { font-size: 18px; }
  .badge { flex-basis: 56px; height: 56px; }
  .cta, a.primary { width: 100%; }
}

@media (min-width: 700px) {
  .how ol { grid-template-columns: 1fr 1fr; }
  button.primary { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
