/* Palette lifted straight from the app's theme.dart */
:root {
  --orange: #ffa726;
  --orange-deep: #e65100;
  --bg: #fcfaf8;
  --surface: #ffffff;
  --surface-low: #faf6f2;
  --surface-chip: #f5f0eb;
  --text: #1f1a16;
  --muted: #7c716a;
  --border: #e8e0d8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1614;
    --surface: #252120;
    --surface-low: #1e1a18;
    --surface-chip: #302b28;
    --text: #efe7e0;
    --muted: #a99e96;
    --border: #3a332e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-deep); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: var(--orange); } }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* nav */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links a { color: var(--text); margin-left: 24px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--orange-deep); text-decoration: none; }

/* buttons — StadiumBorder pill, like the app's FilledButton */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: .2px; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: .93; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { text-decoration: none; border-color: var(--muted); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--orange-deep);
  background: color-mix(in srgb, var(--orange) 20%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--orange), var(--orange-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 500px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 16px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-wrap { margin-top: 20px; }
}

/* ---- phone mockup (recreates the app's Recipes screen) ---- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: #14110f; box-shadow: 0 30px 70px rgba(0,0,0,.28), 0 0 0 2px rgba(0,0,0,.15);
}
.screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: #fcfaf8; color: #1f1a16; display: flex; flex-direction: column;
  font-size: 13px;
}
.s-status { display: flex; justify-content: space-between; align-items:center; padding: 10px 20px 4px; font-size: 11px; font-weight: 700; color:#1f1a16; }
.s-appbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; }
.s-appbar h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.s-appbar .icons { display:flex; gap:14px; color:#7c716a; }
.s-search {
  margin: 4px 16px 10px; display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid #e8e0d8; border-radius:12px; padding:9px 12px; color:#9a8f86; font-size:12px;
}
.s-chips { display:flex; gap:7px; padding: 0 16px 10px; }
.s-chip { font-size:11px; font-weight:600; padding:5px 12px; border-radius:999px; background:#f5f0eb; color:#7c716a; }
.s-chip.active { background: color-mix(in srgb, #ffa726 22%, transparent); color:#e65100; }
.s-list { flex:1; overflow:hidden; padding: 0 16px; display:flex; flex-direction:column; gap:12px; }
.r-card { background:#fff; border:1px solid #efe7de; border-radius:16px; overflow:hidden; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.r-thumb { height:78px; display:flex; align-items:center; justify-content:center; font-size:30px; }
.r-body { padding: 9px 12px 11px; }
.r-title { display:flex; justify-content:space-between; align-items:center; }
.r-title b { font-size:13.5px; font-weight:700; }
.r-heart { color:#e0574f; }
.r-heart.off { color:#c8bdb4; }
.r-meta { display:flex; align-items:center; gap:10px; margin-top:6px; color:#9a8f86; font-size:11px; }
.r-meta .tag { background:#f5f0eb; color:#8a7f76; padding:2px 8px; border-radius:999px; font-weight:600; }
.s-nav { display:flex; border-top:1px solid #ece3da; background:#fff; padding:8px 0 12px; }
.s-nav div { flex:1; text-align:center; color:#9a8f86; font-size:10px; font-weight:600; display:flex; flex-direction:column; align-items:center; gap:3px; }
.s-nav div.active { color:#e65100; }

/* features */
section { padding: 66px 0; }
.section-head { text-align:center; margin-bottom: 44px; }
h2.section-title { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-deep);
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* platforms strip */
.platforms { text-align: center; }
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 11px 22px; font-weight: 600; display:inline-flex; gap:8px; align-items:center; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items:center; }
footer .foot-links a { color: var(--muted); margin-left: 18px; }

/* legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: .2rem; letter-spacing:-.02em; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: 0; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal code { background: var(--surface-chip); padding: .1em .4em; border-radius: 5px; }

svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
