/* Recipes module page (design node YJDU4). Builds on /styles.css; values mirror the 1440px design.
   Light page (paper), with a sun "capture" band and a dark "ask" band.
   Nav, hero type, section heads and buttons are the shared m- classes in /module.css. */
:root {
  --dark-2: #2A2918;
  --dark-copy: #D6D3C4;
  --spec-line: #2E2C1F;
  --spec-text: #B9B6A6;
}

/* ---------- Shared bits ---------- */
.r-body { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.r-body-dark { font-size: 18px; line-height: 1.55; color: var(--dark-copy); }
.r-h64 { font: 800 64px/1 var(--font-display); letter-spacing: -2.2px; color: #fff; }
.r-head-900 { width: 900px; }

/* ---------- Hero ---------- */
.r-hero { overflow: hidden; }
.r-hero-in { position: relative; max-width: 1440px; margin-inline: auto; min-height: 820px; }
.r-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; width: 640px; padding: 110px 0 96px 64px; box-sizing: content-box; }
/* Art is a 720x820 crop of the design frame's right half (x720–1440): photo + sun block, card on top. */
.r-hero-art { position: absolute; top: 0; right: 0; width: min(720px, 50vw); aspect-ratio: 720 / 820; }
.motion .r-hero-art img { opacity: 0; }

/* ---------- Spec bar ---------- */
.r-specs { background: var(--ink); }
.r-specs-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.r-specs-in li { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px 40px; border-block: 1px solid var(--spec-line); }
.r-specs-in li + li { border-left: 1px solid var(--spec-line); }
.r-specs-in li:first-child { padding-left: 0; }
.r-specs-in strong { font: 600 44px/1.25 var(--font-mono); letter-spacing: -1.5px; color: var(--sun); white-space: nowrap; }
.r-specs-in span { font-size: 15px; line-height: 1.45; color: var(--spec-text); }

/* ---------- Snap the card ---------- */
.r-snap { background: var(--sun); overflow: hidden; }
.r-snap-in { position: relative; max-width: 1440px; margin-inline: auto; min-height: 1161px; }
.r-snap-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; width: 520px; padding: 264px 0 96px 64px; box-sizing: content-box; }
.r-pill-ink { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--sun); font: 600 12px/1.2 var(--font-mono); }
.r-pill-ink .lucide { width: 14px; height: 14px; }
.r-snap h2 { font: 800 84px/.952 var(--font-display); letter-spacing: -3px; color: var(--ink); }
.r-steps { padding-top: 8px; }
.r-steps li { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-top: 1px solid #12110026; }
.r-steps div { display: flex; flex-direction: column; gap: 3px; }
.r-steps strong { font-size: 17px; font-weight: 700; line-height: 1.2; }
.r-steps div span { font-size: 14px; line-height: 1.43; color: var(--ink-2); }
/* 840x1161 crop (x600–1440) holding the chat window and the "parsed" callout. */
.r-snap-art { position: absolute; top: 0; right: 0; width: min(840px, 58vw); aspect-ratio: 840 / 1161; }

/* ---------- Calculator ---------- */
.r-calc { padding-block: 120px; }
.r-sheet { background: var(--card); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.r-sheet:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.r-sheet table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; }
.r-sheet th, .r-sheet td { padding: 0; text-align: left; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.r-sheet tr > :first-child { width: 264px; border-left: 0; }
.r-sheet thead th { border-top: 0; vertical-align: top; padding: 24px; font-weight: 400; }
.r-sheet thead .r-corner { vertical-align: bottom; padding: 24px 28px; }
.r-corner strong { display: block; font: 700 22px/1.2 var(--font-display); }
.r-corner span { display: block; margin-top: 4px; font: 400 12px/1.2 var(--font-mono); color: var(--muted); }
.r-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; white-space: nowrap; }
.r-mode span { display: flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--font-mono); letter-spacing: .5px; color: var(--muted); }
.r-mode .lucide { width: 14px; height: 14px; }
.r-x { padding: 4px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 13px/1.2 var(--font-mono); font-style: normal; }
.r-x-plain { background: var(--paper-2); }
.r-scn { display: block; font-size: 13px; line-height: 1.2; color: var(--muted); }
.r-sheet thead th:not(.r-corner) strong { display: block; margin-top: 2px; font: 700 24px/1.2 var(--font-display); }
.r-sheet thead .r-have { background: var(--ink); color: #fff; }
.r-have .r-mode span { color: var(--sun); }
.r-have .r-scn { color: var(--spec-text); }
.r-sheet tbody th { padding: 16px 28px; font: 400 16px/1.3 var(--font-body); }
.r-sheet tbody td { padding: 16px 24px; font: 700 17px/1.2 var(--font-mono); white-space: nowrap; }
.r-sheet tbody td:last-child { background: #12110008; }
.r-sheet .r-pin td:last-child { background: var(--sun); }
.r-sheet .r-taste td { font: 400 14px/1.2 var(--font-body); color: var(--muted); }
.r-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.r-rules li { display: flex; gap: 16px; }
.r-rules div { display: flex; flex-direction: column; gap: 6px; }
.r-rules h3 { font: 700 19px/1.2 var(--font-display); }
.r-rules p { font-size: 15px; line-height: 1.53; color: var(--ink-2); }

/* ---------- Ask ---------- */
.r-ask { background: var(--ink); padding-block: 120px; }
.r-ask-in { display: flex; align-items: center; gap: 96px; }
.r-ask-art { width: 600px; flex-shrink: 0; }
.r-chat { border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px #12110040, 0 0 0 1px #12110022; }

/* Recipe widget inside the ChatGPT window: the app's MCP widget (Tailwind stone + amber), rebuilt as
   live HTML so the calculator works (recipes.js). Sizes follow the screenshot it replaces. */
.rw {
  --st-9: #1C1917; --st-5: #78716C; --st-2: #E7E5E4; --st-1: #F5F5F4; --amber: #F59E0B; --amber-soft: #FEF1DB;
  margin: 2px 22px 0; padding: 14px; border-radius: 16px; background: #FAFAF9; box-shadow: inset 0 0 0 1px #E6E3DA;
  font-family: var(--font-body); color: var(--st-9);
}
.rw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rw-head h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.rw-head p, .rw-desc { font-size: 12px; line-height: 1.4; color: var(--st-5); }
.rw-links { display: flex; gap: 12px; flex-shrink: 0; padding-top: 2px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rw-links span { display: flex; align-items: center; gap: 3px; }
.rw-links .lucide { width: 11px; height: 11px; }
.rw-desc { margin-top: 12px; font-size: 13px; }
.rw-tags { display: flex; gap: 6px; margin-top: 10px; }
.rw-tags span { padding: 2px 7px; border-radius: 999px; background: var(--st-1); font-size: 11px; font-weight: 600; color: var(--st-5); }
.rw-calc { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 11px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--st-2); }
.rw-bar, .rw-bar-r, .rw-modes, .rw-row { display: flex; align-items: center; gap: 6px; }
.rw-bar { justify-content: space-between; }
.rw-bar-r { gap: 8px; }
.rw button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.rw-modes button { padding: 5px 9px; border-radius: 999px; background: var(--st-1); font-size: 12px; font-weight: 600; transition: background-color .15s ease; }
.rw-modes button[aria-pressed="true"] { background: var(--amber); }
.rw-factor { padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); font-size: 11px; font-weight: 600; }
.rw-factor.is-bad { background: #FDE8E8; color: #B42318; }
.rw .rw-reset { font-size: 12px; font-weight: 600; }
.rw-reset:hover { text-decoration: underline; text-underline-offset: 2px; }
.rw-row { gap: 8px; font-size: 13px; }
.rw-row[hidden] { display: none; }
.rw input, .rw select { height: 34px; min-width: 0; padding: 0 10px; border: 1px solid var(--st-2); border-radius: 8px; background: #fff; font: 400 14px var(--font-body); color: var(--st-9); }
.rw input:focus-visible, .rw select:focus-visible, .rw button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.rw-amount { width: 78px; }
.rw-unit { width: 52px; }
.rw-select { position: relative; flex: 1; min-width: 0; display: flex; }
.rw-select select { flex: 1; appearance: none; padding-right: 28px; cursor: pointer; }
.rw-select .lucide { position: absolute; right: 9px; top: 50%; translate: 0 -50%; width: 14px; height: 14px; pointer-events: none; }
.rw-step { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 999px !important; background: var(--st-1) !important; box-shadow: inset 0 0 0 1px var(--st-2); }
.rw-step .lucide { width: 14px; height: 14px; }
.rw-serv { min-width: 32px; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rw-row > span:last-child { color: var(--st-5); }
.rw-label { margin: 14px 0 6px; font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--st-5); }
.rw-ings { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--st-2); }
.rw-ings li { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.3; }
.rw-ings li + li { border-top: 1px solid var(--st-2); }
.rw-ings b { width: 64px; flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-ings em { font-size: 11px; font-style: normal; color: var(--st-5); }
.rw-composer { display: flex; align-items: center; gap: 10px; margin: 10px 16px 16px; padding: 12px 14px; border-radius: 999px; background: #F4F2EC; font-size: 14px; color: #9A978A; }
.rw-composer span { flex: 1; }
.rw-composer .lucide { width: 18px; height: 18px; color: var(--muted); }
/* iOS zooms into inputs under 16px; touch screens get 16px text in the fields. */
@media (pointer: coarse) { .rw input, .rw select { font-size: 16px; } }
.r-ask-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.r-groc { border-radius: 16px; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); overflow: hidden; }
.r-groc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--dark-line); }
.r-groc-head strong { display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--font-display); color: #fff; }
.r-groc-head .lucide { width: 18px; height: 18px; color: var(--sun); }
.r-groc-head span { font: 400 12px/1.2 var(--font-mono); color: var(--spec-text); text-align: right; }
.r-groc li + li { border-top: 1px solid var(--dark-line); }
/* Each row is a real checkbox (visually hidden); ticked = on the list, unticked = already have it. */
.r-groc label { display: flex; align-items: center; gap: 14px; padding: 13px 20px; cursor: pointer; transition: background-color .15s ease; }
.r-groc label:hover { background: #ffffff08; }
.r-groc input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.r-groc input:focus-visible + .r-check { outline: 2px solid var(--sun); outline-offset: 2px; }
.r-check { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #6B6852; color: var(--ink); transition: background-color .15s ease, box-shadow .15s ease; }
.r-check .lucide { opacity: 0; scale: .6; transition: opacity .15s ease, scale .2s cubic-bezier(.22, 1, .36, 1); }
.r-groc input:checked + .r-check { background: var(--sun); box-shadow: none; }
.r-groc input:checked + .r-check .lucide { opacity: 1; scale: 1; }
.r-check .lucide { width: 14px; height: 14px; stroke-width: 3; }
.r-gn { flex: 1; font-size: 16px; line-height: 1.2; color: #fff; }
.r-groc b { font: 700 14px/1.2 var(--font-mono); color: var(--sun); }
.r-gn { transition: color .15s ease; }
.r-have-txt { display: none; font-size: 13px; color: #8F8B76; }
.r-groc input:not(:checked) ~ .r-gn { color: #8F8B76; }
.r-groc input:not(:checked) ~ b { display: none; }
.r-groc input:not(:checked) ~ .r-have-txt { display: inline; }

/* ---------- Cookbook ---------- */
.r-book { background: var(--paper-2); padding-block: 120px; }
.r-book-body { display: flex; align-items: flex-start; gap: 64px; }
.r-book-phone { width: 480px; flex-shrink: 0; border-radius: 24px; }
.r-feats { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.r-feats li { display: flex; flex-direction: column; gap: 12px; padding: 28px 0 36px; border-top: 1.5px solid var(--ink); }
.r-feats .lucide { width: 24px; height: 24px; }
.r-feats h3 { font: 700 22px/1.2 var(--font-display); }
.r-feats p { font-size: 16px; line-height: 1.56; color: var(--ink-2); }

/* ================= Responsive ================= */
@media (max-width: 1320px) {
  .r-hero-copy { width: calc(100% - min(720px, 50vw) - 88px); }
  .r-snap h2 { font-size: clamp(56px, 5.8vw, 84px); }
  .r-snap-copy { width: calc(100% - min(840px, 58vw) - 88px); padding-top: clamp(140px, 18vw, 264px); }
  .r-ask-in { gap: 56px; }
  .r-ask-art { width: 520px; }
  .r-h64 { font-size: 52px; }
  .r-book-body { gap: 40px; }
  .r-book-phone { width: 400px; }
}

@media (max-width: 1080px) {
  .r-hero-in, .r-snap-in { min-height: 0; }
  .r-hero-copy, .r-snap-copy { width: auto; padding: 72px var(--gutter) 40px; }
  .r-hero-art, .r-snap-art { position: relative; margin-inline: auto; }
  .r-hero-art { width: min(600px, 100%); }
  /* Show the chat down to the recipe photo; the rest of the window is cut by the section edge. */
  .r-snap-art { width: min(720px, 100%); aspect-ratio: auto; height: min(820px, calc(min(720px, 100vw) * 1000 / 840)); overflow: hidden; }
  .r-calc, .r-ask, .r-book { padding-block: 96px; }
  .r-specs-in { grid-template-columns: 1fr 1fr; }
  .r-specs-in li:nth-child(3) { border-left: 0; padding-left: 0; }
  .r-specs-in li:nth-child(n+3) { border-top: 0; }
  .r-rules { grid-template-columns: 1fr; gap: 28px; }
  .r-ask-in { flex-direction: column-reverse; align-items: stretch; gap: 56px; }
  .r-ask-art { width: min(600px, 100%); margin-inline: auto; }
  .r-h64 { font-size: 52px; }
  .r-book-body { flex-direction: column; align-items: stretch; }
  .r-book-phone { width: min(480px, 100%); margin-inline: auto; }
}

@media (max-width: 640px) {
  .r-hero-copy, .r-snap-copy { padding: 48px var(--gutter) 32px; gap: 22px; }
  .r-specs-in li { padding: 24px 16px 28px; }
  .r-specs-in li:nth-child(odd) { padding-left: 0; }
  .r-specs-in strong { font-size: 30px; }
  .r-specs-in span { font-size: 14px; }
  .r-snap h2 { font-size: 48px; letter-spacing: -1.6px; }
  .r-body, .r-body-dark { font-size: 16px; }
  .r-snap-art { height: 540px; }
  .r-h64 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.04; }
  .r-h64 br, .r-snap h2 br { display: none; }
  .r-calc, .r-ask, .r-book { padding-block: 72px; }
  .r-chat { border-radius: 18px; }
  .rw { margin-inline: 12px; padding: 12px; }
  .rw-links { display: none; }
  .rw-row { flex-wrap: wrap; }
  .rw-select { flex-basis: 100%; }
  .r-groc-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .r-groc-head span { text-align: left; }
  .r-feats { grid-template-columns: 1fr; }
  .r-feats li { padding: 22px 0 26px; }
}

/* ---------- Hero video ---------- */
/* Play button (shared .hero-play) centred at (1190, 506) of the hero frame = 65.3% / 61.7% of the
   720x820 art crop, 84px = 11.7% wide. */
.r-hero-play { left: 65.3%; top: 61.7%; width: 11.7%; }
