:root {
  --tomato: #C8331F;
  --tomato-deep: #A12916;
  --ink: #1B1210;
  --muted: #6B5A55;
  --blush: #FFF5F0;
  --line: #F2E6E0;
  --white: #FFFFFF;
  --display: "Fredoka", "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--tomato-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 28px;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand img { width: 40px; height: 40px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-header nav a:hover { color: var(--tomato-deep); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--text); font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn-primary { background: var(--tomato); color: var(--white); }
.btn-primary:hover { background: var(--tomato-deep); }
.btn-soon { border: 2px dashed #D9C4BC; color: var(--muted); cursor: default; }
.btn-light { background: var(--white); color: var(--tomato-deep); }
.btn-light:hover { background: var(--blush); }
.btn-ghost-light { border: 2px dashed rgba(255,255,255,.55); color: rgba(255,255,255,.9); cursor: default; }

/* Hero */
.hero { background: var(--blush); padding: 8px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 40px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin: 0 0 20px;
}
.lede { font-size: 20px; color: var(--muted); max-width: 30em; margin: 0; }
.small-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* Reel → recipe demo */
.demo { display: grid; justify-items: start; }
.reel {
  width: min(330px, 92%);
  background: var(--ink); color: #F3E6E1;
  border-radius: 20px; padding: 18px 20px 20px;
  font-size: 15px; line-height: 1.55;
  transform: rotate(2.5deg);
}
.reel-handle { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.reel-handle span { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #F6B37F, var(--tomato)); }
.reel p { margin: 0; }
.reel .tags { color: #B9A39C; margin-top: 8px; }

.recipe {
  justify-self: end;
  width: min(360px, 96%);
  margin-top: -14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: 0 24px 48px -28px rgba(161, 41, 22, .45);
  position: relative;
}
.recipe-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recipe h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0; line-height: 1.2; }
.servings { font-size: 14px; color: var(--muted); white-space: nowrap; }
.recipe h4 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; color: var(--muted); }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.ingredients li:last-child { border-bottom: 0; }
.qty {
  background: var(--blush); color: var(--tomato-deep);
  font-weight: 600; font-size: 14px; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.steps-mini { margin: 0; padding-inline-start: 20px; font-size: 15px; }
.steps-mini li { margin: 4px 0; }
.credit { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .ingredients li { opacity: 0; transform: translateY(6px); animation: settle .45s ease-out forwards; }
  .ingredients li:nth-child(1) { animation-delay: .35s; }
  .ingredients li:nth-child(2) { animation-delay: .5s; }
  .ingredients li:nth-child(3) { animation-delay: .65s; }
  .ingredients li:nth-child(4) { animation-delay: .8s; }
  .ingredients li:nth-child(5) { animation-delay: .95s; }
}
@keyframes settle { to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 80px 0; }
.section h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 32px;
}
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.how li { counter-increment: step; }
.how li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 56px; line-height: 1; color: var(--tomato); margin-bottom: 12px;
}
.how h3, .features h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.how p, .features p { margin: 0; color: var(--muted); }

.features-section { border-top: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; max-width: 880px; }
.trust { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); max-width: 44em; }

.download { background: var(--tomato); color: var(--white); padding: 72px 0; }
.download h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); margin: 0 0 10px; line-height: 1.1; }
.download p { margin: 0; font-size: 19px; color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--tomato-deep); }

/* Document pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; background: var(--blush); }
.doc .callout { background: var(--blush); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 16px; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .lede { font-size: 18px; }
  .btn { width: 100%; }
  .site-header nav { display: none; }
}
