/* Culina website. Palette and type follow the app: forest greens, lime for actions,
   apricot only for "use soon", warm oat text instead of pure white. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pine: #0c1b13;
  --moss: #15291e;
  --shelf: #213a2a;
  --line: #2b4734;
  --lime: #bdf457;
  --on-lime: #0a1a0c;
  --apricot: #ffb86b;
  --oat: #eee9dc;
  --sage: #9db3a3;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--pine);
  color: var(--oat);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.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(--lime); color: var(--on-lime); padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ───────── Type ───────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(46px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.022em; font-stretch: 92%; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.02em; font-stretch: 94%; max-width: 16ch; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--sage); max-width: 46ch; }
.muted { color: var(--sage); }
.small { font-size: 14px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn-lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 0 rgba(189, 244, 87, 0); }
.btn-lime:hover { box-shadow: 0 8px 30px -6px rgba(189, 244, 87, .45); }
.btn-ghost { background: transparent; color: var(--oat); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--sage); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ───────── Header ───────── */
.site-head { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(12, 27, 19, .72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--sage); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--oat); }
.head-row .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 760px) { .nav { display: none; } .head-row .btn { margin-left: auto; } }

/* ───────── Hero: the live demo ───────── */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(60px, 8vw, 110px); position: relative; }
.hero::before { /* faint lime light behind the phone */
  content: ""; position: absolute; right: -10vw; top: 4%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, rgba(189, 244, 87, .10), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "text phone" "after phone"; column-gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; }
.hero-text { grid-area: text; }
.hero-after { grid-area: after; }
.phone-col { grid-area: phone; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }

.tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tray-head h2 { font-size: 20px; letter-spacing: -0.01em; font-stretch: 100%; max-width: none; font-variation-settings: "opsz" 24; }
.sound-toggle { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--sage); font-size: 13px; cursor: pointer; }
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle[aria-pressed="true"] { color: var(--lime); border-color: rgba(189, 244, 87, .5); }

.tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
  position: relative; width: 100%; aspect-ratio: 1 / 1.18; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--moss); outline-offset: 3px;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.chip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.62); transition: filter .3s, transform .5s var(--ease-out); }
.chip::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 1; pointer-events: none; }
.chip span { z-index: 2;
  position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: left;
  font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--oat); text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.chip::after { /* tick */
  content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; z-index: 2;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a0c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.chip:hover img { transform: scale(1.05); }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--lime); }
.chip[aria-pressed="true"] img { filter: none; }
.chip[aria-pressed="true"]::after { transform: scale(1); }
.chip:active { transform: scale(.96); }
.chip.pulse { animation: pulse .7s var(--ease-out); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 184, 107, .8); } 100% { box-shadow: 0 0 0 14px rgba(255, 184, 107, 0); } }

.demo-status { min-height: 52px; margin: 16px 0 26px; color: var(--sage); font-size: 15px; }
.demo-status strong { color: var(--oat); font-weight: 600; }
.demo-status .need { color: var(--apricot); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

/* Phone (pure HTML, so it can change live) */
.phone-col { position: sticky; top: 96px; display: flex; justify-content: center; }
.phone {
  width: min(360px, 100%); aspect-ratio: 360 / 740; border-radius: 46px; padding: 9px; position: relative;
  background: #18211c; box-shadow: 0 0 0 1px #2e3a33, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(189, 244, 87, .25);
}
.screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--pine); position: relative; display: flex; flex-direction: column; container-type: inline-size; }
.r-photo { position: relative; height: 41%; flex: none; background: var(--moss); }
.r-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.r-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 22%, transparent 55%, var(--pine) 100%); }
.r-bar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 2; }
.r-bar i { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.r-bar svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.r-card { position: relative; z-index: 2; margin: -54px 12px 0; padding: 14px 12px 12px; background: var(--moss); border: 1px solid var(--line); border-radius: 22px; }
.r-title { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 6cqi, 21px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 2px 12px; transition: opacity .25s; }
.r-stats { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.r-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.r-stats i { width: 32px; height: 32px; border-radius: 50%; background: var(--shelf); display: grid; place-items: center; }
.r-stats svg { width: 15px; height: 15px; stroke: var(--lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-stats b { font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.r-stats small { font-size: 9.5px; color: var(--sage); line-height: 1; }
.r-ings { margin: 12px 12px 0; flex: 1; min-height: 0; overflow: hidden; }
.r-ings h4 { margin: 0 2px 6px; font-size: 13px; font-weight: 650; }
.r-ings ul { list-style: none; margin: 0; padding: 0; }
.r-ings li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; animation: rowIn .45s var(--ease-out) both; }
.r-ings li:last-child { border-bottom: 0; }
.r-ings li img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.r-ings li span { flex: 1; min-width: 0; }
.r-ings li em { font-style: normal; font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.r-ings li em.have { color: var(--lime); background: rgba(189, 244, 87, .1); }
.r-ings li button.missing { font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 184, 107, .6); background: rgba(255, 184, 107, .1); color: var(--apricot); cursor: pointer; white-space: nowrap; }
.r-ings .staples { color: var(--sage); font-size: 11px; padding: 6px 2px 0; border: 0; animation: none; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.r-cta { margin: 10px 12px 14px; height: 44px; border-radius: 999px; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; flex: none; }
.r-cta svg { width: 14px; height: 14px; fill: currentColor; }
.r-empty { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; padding: 34px; gap: 12px; background: var(--pine); z-index: 5; }
.r-empty svg { width: 46px; height: 46px; }
.r-empty p { font-family: var(--display); font-size: 22px; line-height: 1.15; font-weight: 600; }
.screen.empty .r-empty { display: flex; }
.screen.swap .r-title, .screen.swap .r-stats b { opacity: .15; }

/* ───────── Sections ───────── */
section { padding: clamp(56px, 7vw, 104px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { justify-self: start; }

/* Use-soon shelf */
.soon { background: linear-gradient(180deg, var(--pine), #0f2117 40%, var(--pine)); }
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding: 6px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 22px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shelf li { flex: 0 0 auto; width: 210px; scroll-snap-align: start; background: var(--moss); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.shelf li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shelf li div { padding: 12px 14px 16px; }
.shelf li b { display: block; font-size: 16px; font-weight: 650; }
.shelf li small { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--sage); }
.shelf li small.urgent { color: var(--pine); background: var(--apricot); padding: 2px 9px; border-radius: 999px; font-weight: 650; }
.soon-note { margin-top: 26px; max-width: 60ch; }

/* Steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps figure { margin: 0 0 22px; background: radial-gradient(closest-side, rgba(189, 244, 87, .08), transparent) center/100% 100% no-repeat; }
.steps img { width: min(300px, 100%); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.steps h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.steps h3::before { content: counter(step); font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--on-lime); background: var(--lime); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.steps p { color: var(--sage); max-width: 34ch; }

/* Made around you */
.you-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.you-grid figure { margin: 0; }
.you-grid img { width: min(330px, 100%); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.answers { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.answers li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.answers li span:first-child { color: var(--sage); }
.answers li span:last-child { font-weight: 550; }
.allergy-note { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 184, 107, .08); border: 1px solid rgba(255, 184, 107, .25); }
.allergy-note svg { width: 22px; height: 22px; flex: none; stroke: var(--apricot); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

/* Pricing */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--moss); border: 1px solid var(--line); margin-bottom: 28px; }
.billing button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--sage); transition: background-color .25s, color .25s; }
.billing button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.billing button small { font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.plan { border-radius: 28px; padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); }
.plan.free { background: transparent; }
.plan.premium { background: var(--moss); border-color: rgba(189, 244, 87, .45); position: relative; overflow: hidden; }
.plan.premium::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(189, 244, 87, .14), transparent); }
.plan h3 { font-size: 26px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price b { font-family: var(--display); font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--sage); }
.price-note { min-height: 1.6em; color: var(--sage); font-size: 15px; }
.price-note strong { color: var(--lime); font-weight: 650; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--lime); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan.free li svg { stroke: var(--sage); }
.plans-foot { margin-top: 18px; font-size: 14px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--sage); max-width: 62ch; }

/* Closing call to action */
.closing { padding-bottom: 40px; }
.closing-box { border-radius: 36px; padding: clamp(36px, 6vw, 80px); background: var(--lime); color: var(--on-lime); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; position: relative; overflow: hidden; }
.closing-box h2 { max-width: 13ch; }
.closing-box p { font-size: 18px; max-width: 40ch; margin-top: 16px; }
.closing-box .btn { background: var(--on-lime); color: var(--lime); justify-self: start; }
.closing-box .leaf-bg { position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; opacity: .12; }

/* Footer */
.site-foot { padding: 50px 0 0; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; color: var(--sage); font-size: 15px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--oat); }
/* The name, edge to edge across the page width, cropped by the bottom of the window. */
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 100%; letter-spacing: -0.04em; font-size: calc(min(100vw - 2 * var(--gutter), var(--wrap)) / 2.45); line-height: .74; color: var(--moss); margin: 34px 0 -0.06em; user-select: none; white-space: nowrap; }

/* Legal / text pages */
.doc { padding: clamp(40px, 7vw, 90px) 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.doc h2 { font-size: 26px; max-width: none; margin: 46px 0 12px; letter-spacing: -0.015em; font-stretch: 100%; font-variation-settings: "opsz" 32; }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: #d6d2c6; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--lime); }
.doc .meta { color: var(--sage); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--oat); font-weight: 650; }
.doc td { color: #d6d2c6; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  /* Phone right under the tiles, so the recipe visibly changes as you tap. */
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "phone" "after"; }
  .phone-col { position: static; margin-top: 22px; }
  .tray { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head, .you-grid, .faq-grid, .plans, .closing-box { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .steps img { width: min(280px, 80%); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  /* Four across keeps the phone close enough to see it react. */
  .tray { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .chip { border-radius: 14px; aspect-ratio: 1 / 1.12; }
  .chip span { font-size: 11.5px; left: 6px; bottom: 6px; }
  .chip::after { width: 18px; height: 18px; top: 6px; right: 6px; background-size: 11px; }
  .answers li { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
