/* =====================================================================
   RAOM · Family Recipe Ebook · shared styles
   Palette: RAOM visual identity (2024-03-09). Font: Metropolis (Unlicense),
   self-hosted, stand-in for Gotham. No third-party requests.
   ===================================================================== */

@font-face { font-family: "Metropolis"; src: url("fonts/metropolis-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("fonts/metropolis-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("fonts/metropolis-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("fonts/metropolis-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("fonts/metropolis-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* RAOM palette */
  --white-smoke: #f2f0ea;
  --silk: #bcaa95;
  --rusty-red: #6b1c1c;
  --brown-tar: #715246;
  --wildfire: #db6327;
  --sand-dollar: #c9b788;
  --raom-black: #221f20;

  /* roles */
  --bg: var(--white-smoke);
  --surface: #fbfaf7;
  --ink: var(--raom-black);
  --muted: #6e5a50;          /* Brown tar, darkened for 4.5:1 on White smoke */
  --accent: var(--wildfire);
  --accent-ink: #b44a16;     /* Wildfire, darkened for text on light grounds */
  --cta: #bf5220;            /* Wildfire, deepened so white button text reaches 4.7:1 */
  --accent-hover: #ad4715;
  --line: #e2dacb;
  --soft: #ebe4d6;
  --dark: var(--rusty-red);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34,31,32,.04), 0 12px 32px rgba(113,82,70,.10);
  --glow: 0 10px 28px rgba(219,99,39,.32);
  --wrap: 1120px;
  --font: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wildfire); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[data-confirm] { display: none !important; }   /* hidden until Marie confirms the value */

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 14px;
}
.display {
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0;
  font-size: clamp(42px, 8.4vw, 92px);
}
.display .accent { color: var(--wildfire); display: block; }
.h2 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 48px); text-align: center;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }
.sub { text-align: center; color: var(--muted); margin: 0 auto; max-width: 560px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--cta); color: #fff; border: 0; border-radius: 999px;
  padding: 17px 30px; box-shadow: var(--glow);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }
.link-arrow { color: var(--accent-ink); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.textbtn { background: none; border: 0; font: 500 14px var(--font); color: var(--muted); cursor: pointer; padding: 8px; }
.textbtn:hover { color: var(--ink); text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242,240,234,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent-ink); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } .brand-name { font-size: 15px; } }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 76px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(219,99,39,.16), rgba(201,183,136,.12) 55%, transparent);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.micro { font-size: 13px; color: var(--muted); }

/* preview "window" */
.preview {
  margin: 58px auto 0; max-width: 980px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; text-align: left;
}
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--line); display: block; }
.searchish {
  flex: 1; font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.searchish b { color: var(--accent-ink); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 6px 14px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--brown-tar); }
.chip.on { background: var(--cta); color: #fff; }
.recipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.recipe { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.recipe .ph { aspect-ratio: 4/5; position: relative; }
.recipe .tag {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--brown-tar); padding: 4px 8px; border-radius: 999px;
}
.recipe .meta { padding: 10px 12px 12px; }
.recipe .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.recipe .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) { .recipes { grid-template-columns: repeat(2, 1fr); } .recipes .recipe:nth-child(n+3) { display: none; } }

/* photo slots: RAOM gradient until a real photo is dropped into assets/photos/ */
.ph { background: linear-gradient(150deg, var(--sand-dollar), var(--silk)); overflow: hidden; }
.ph.v2 { background: linear-gradient(150deg, #e6b089, var(--wildfire)); }
.ph.v3 { background: linear-gradient(150deg, var(--silk), var(--brown-tar)); }
.ph.v4 { background: linear-gradient(150deg, #a35a4b, var(--rusty-red)); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ph .mark img { width: 30%; height: auto; opacity: .55; object-fit: contain; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-tight { padding: 8px 0 24px; }

/* stats */
.stats { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; max-width: 860px; margin: 40px auto 0; }
.stat-col { display: grid; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--wildfire); margin: 14px 0 8px; font-size: clamp(44px, 7vw, 84px); }
.stat-col .stat .v { font-size: clamp(34px, 4.5vw, 48px); }
.stat .d { color: var(--muted); font-size: 15px; }
.stats > .stat { display: flex; flex-direction: column; }
.stats > .stat .v { margin-top: auto; padding-top: 40px; }
.center { text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* tile wall */
.wall { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall-row { display: flex; gap: 14px; width: max-content; padding: 7px 0; animation: drift 60s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 70s; }
.wall:hover .wall-row { animation-play-state: paused; }
.tile { width: 150px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 6px 18px rgba(34,31,32,.12); }
.tile .ph { aspect-ratio: 9/14; position: relative; }
.tile .tag {
  position: absolute; top: 9px; left: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--cta); color: #fff; padding: 4px 8px; border-radius: 999px;
}
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 11px 11px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25;
  background: linear-gradient(to top, rgba(34,31,32,.72), transparent);
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .wall-row { animation: none; }
  .wall { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.step .n {
  width: 34px; height: 34px; border-radius: 99px; background: rgba(219,99,39,.12); color: var(--accent-ink);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* founder (dark) */
.founder { background: var(--dark); color: var(--white-smoke); padding: 96px 0; }
.founder-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; max-width: 960px; margin: 0 auto; }
.founder .eyebrow { color: var(--sand-dollar); }
.founder h2 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 22px; color: #fff; }
.founder p { color: rgba(242,240,234,.82); margin: 0 0 16px; }
.founder p.strong { color: #fff; font-weight: 600; }
.founder .sig { margin-top: 26px; }
.founder .sig b { display: block; color: #fff; font-size: 17px; }
.founder .sig span { font-size: 14px; color: rgba(242,240,234,.6); }
.portrait { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); }
@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr; gap: 36px; } .portrait { max-width: 380px; } }

/* faq */
.faq { max-width: 680px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { content: "×"; color: var(--accent-ink); }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq .a p { margin: 0 0 10px; }

/* final cta */
.final { text-align: center; padding: 24px 0 104px; }
.final .h2 { margin-bottom: 34px; }

/* footer */
footer { border-top: 1px solid var(--line); overflow: hidden; }
.wordmark {
  font-weight: 800; letter-spacing: -0.05em; line-height: .8; text-align: center; white-space: nowrap;
  font-size: clamp(64px, 17vw, 230px); margin: 34px 0 0; user-select: none; color: rgba(188,170,149,.26);
}
.wordmark::before { content: "RA"; }
.wordmark::after { content: "OM"; color: rgba(219,99,39,.14); }
.foot-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 13px; padding: 26px 20px 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 20px 34px; max-width: 640px; margin: 0 auto; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(34,31,32,.45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.modal-backdrop.open { display: flex; animation: fade .2s ease; }
.modal {
  position: relative; width: 100%; max-width: 470px; background: var(--surface); border-radius: 20px;
  padding: 38px 34px 24px; text-align: center; box-shadow: 0 30px 80px rgba(34,31,32,.35), 0 0 0 1px rgba(219,99,39,.12);
  animation: rise .25s ease;
}
.modal h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.modal p { color: var(--muted); margin: 0 0 26px; font-size: 15.5px; }
.modal .close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.modal .close:hover { background: var(--soft); color: var(--ink); }
.modal .close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.modal .textbtn { margin-top: 10px; }
.modal p.eyebrow { color: var(--accent-ink); margin: 0 0 12px; font-size: 12px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-backdrop.open { animation: none; } }

/* ---------- waitlist flow ---------- */
.flow-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.flow-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 22px; }
.flow-brand img { height: 30px; width: auto; }
.card {
  width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 30px 28px; box-shadow: var(--shadow);
}
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; width: 20%; background: var(--wildfire); border-radius: 99px; transition: width .3s ease; }
.step-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
.card .hint { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }
.input, .textarea {
  width: 100%; font: 500 16px var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px; outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { min-height: 88px; resize: vertical; margin-top: 12px; }
.input:focus, .textarea:focus { border-color: var(--wildfire); box-shadow: 0 0 0 3px rgba(219,99,39,.22); }
.input::placeholder, .textarea::placeholder { color: #a1938a; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--bg); font-weight: 600; font-size: 15px; transition: border-color .12s ease, background .12s ease;
}
.option:hover { border-color: var(--silk); }
.option input { accent-color: var(--wildfire); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.option:has(input:checked) { border-color: var(--wildfire); background: rgba(219,99,39,.07); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 20px; cursor: pointer; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--wildfire); flex: 0 0 auto; }
.consent a { color: var(--ink); }
.flow-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.flow-actions .btn { padding: 14px 24px; font-size: 15px; box-shadow: none; }
.field-error { color: var(--rusty-red); font-size: 13.5px; font-weight: 600; margin: 10px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.flow-step[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.flow-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.flow-foot a { color: var(--muted); margin: 0 8px; }
.done-mark { width: 56px; height: 56px; border-radius: 99px; background: var(--wildfire); display: flex; align-items: center; justify-content: center; margin: 0 0 20px; }
.done-mark svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .card { padding: 26px 20px 22px; } .card h1 { font-size: 23px; } }

/* ---------- phone tuning ---------- */
@media (max-width: 520px) {
  .hero { padding: 44px 0 28px; }
  .eyebrow { letter-spacing: .16em; font-size: 11px; }
  .section { padding: 64px 0; }
  .founder { padding: 64px 0; }
  .final { padding: 16px 0 72px; }
  .preview { margin-top: 40px; padding: 12px; }
  .chips .chip:nth-child(n+5) { display: none; }
  .stat { padding: 22px; }
  .nav .btn-sm { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .flow-actions.stack { flex-direction: column-reverse; align-items: stretch; }
  .flow-actions.stack .btn { width: 100%; }
}
.flow-actions a.textbtn { text-decoration: none; white-space: nowrap; text-align: center; }

/* ---------- legal pages (imprint, privacy) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 36px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li, .legal address { color: #4a3d36; font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal .meta-line { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal address { font-style: normal; }
