/* Anychef site styles */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #0B0B0D;
  --ink-soft: #585B62;
  --ink-faint: #9498A0;
  --brand: #F4303B;
  --brand-dark: #D21F2A;
  --hairline: #DDDFE5;
  --radius: 18px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

/* nav */
.navbar { background: var(--surface); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand img { height: 33px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.menu-button { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn-small { padding: 8px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff !important; }

/* layout */
.main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--ink-faint); font-weight: 400; }

/* hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
.hero h2 { font-size: clamp(18px, 3vw, 24px); color: var(--brand); margin-top: 10px; font-weight: 600; }
.hero p { max-width: 640px; margin: 18px auto 26px; color: var(--ink-soft); font-size: 17px; }
.appstore { display: inline-block; height: 54px; width: auto; margin: 6px auto 0; }
.coming-soon { display: inline-block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 10px 22px; color: var(--ink-soft); font-weight: 600; }
.screens { display: flex; gap: 18px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.screens img { width: 240px; border-radius: 28px; box-shadow: 0 18px 44px rgba(11,11,13,.14); }

/* how it works */
.how { padding: 56px 0; text-align: center; }
.how h2, .featured h2 { font-size: 30px; margin-bottom: 28px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 24px; }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.how-grid h3 { font-size: 18px; margin-bottom: 8px; }
.how-grid p { color: var(--ink-soft); font-size: 15px; }

/* featured / grids */
.featured { padding: 32px 0 56px; text-align: center; }
.featured .btn-ghost { margin-top: 26px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11,11,13,.10); }
.card img { aspect-ratio: 1; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 15px; color: var(--ink); font-weight: 600; }
.card-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }

/* hubs */
.hub { padding: 40px 0 56px; }
.hub h1 { font-size: clamp(28px, 4.5vw, 40px); }
.hub h2 { font-size: 21px; margin: 34px 0 12px; }
.hub-intro { color: var(--ink-soft); max-width: 720px; margin-top: 12px; font-size: 16.5px; }
.hub-count { color: var(--ink-faint); font-size: 14px; margin: 8px 0 18px; }
.crumbs { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.chip { background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.search { width: 100%; max-width: 560px; margin: 22px 0 10px; padding: 13px 18px; font-size: 16px; border: 1.5px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--ink); }
.search:focus { outline: none; border-color: var(--brand); }

/* recipe page */
.recipe { padding: 34px 0 56px; }
.recipe-hero { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; }
.recipe-hero > img { border-radius: var(--radius); border: 1px solid var(--hairline); }
.recipe-head h1 { font-size: clamp(26px, 4vw, 38px); }
.summary { color: var(--ink-soft); font-size: 17px; margin: 12px 0; }
.meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 12px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stats > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 16px; text-align: center; min-width: 86px; }
.stats strong { display: block; font-size: 18px; }
.stats span { font-size: 12px; color: var(--ink-faint); }
.recipe-cols { display: grid; grid-template-columns: 340px 1fr; gap: 34px; margin-top: 44px; }
.ingredients { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; align-self: start; position: sticky; top: 80px; }
.ingredients h2, .steps h2, .related h2 { font-size: 22px; margin-bottom: 14px; }
.ingredients ul { list-style: none; }
.ingredients li { padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.ingredients li:last-child { border-bottom: none; }
.mini-cta { margin-top: 18px; background: var(--bg); border-radius: 14px; padding: 16px; font-size: 14px; }
.mini-cta p { color: var(--ink-soft); margin-bottom: 12px; }
.steps ol { list-style: none; counter-reset: none; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.steps li:last-child { border-bottom: none; }
.step-num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-top: 2px; }
.steps p { color: var(--ink); font-size: 16px; }
.related { margin-top: 48px; }

/* cta band */
.cta-band { background: var(--ink); color: #fff; margin-top: 40px; }
.cta-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; text-align: center; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 36px); }
.cta-inner p { max-width: 620px; margin: 14px auto 24px; color: #C8CAD0; }
.cta-inner .coming-soon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 14px; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 3px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-blurb { color: var(--ink-faint); font-size: 14px; margin-top: 12px; max-width: 300px; }
.copyright { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 18px 0 26px; }

/* blog */
.article { padding: 40px 0 56px; max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); }
.article-date { color: var(--ink-faint); font-size: 14px; margin: 10px 0 24px; }
.article p { color: var(--ink-soft); margin: 14px 0; font-size: 16.5px; }
.article h2 { font-size: 24px; margin: 36px 0 8px; }
.article h3 { font-size: 19px; margin: 26px 0 6px; }
.article strong { color: var(--ink); }
.article ul, .article ol { margin: 14px 0 14px 22px; color: var(--ink-soft); }
.article li { margin: 6px 0; }
.rank-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; margin: 16px 0; align-items: center; }
.rank-item img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.rank-item h3 { margin: 0 0 4px; }
.rank-item .stat-line { color: var(--brand); font-weight: 700; font-size: 14px; }
.rank-item p { margin: 6px 0 0; font-size: 15px; }
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hairline); }
.data-table th { background: var(--bg); font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.post-list { margin-top: 28px; display: grid; gap: 16px; }
.post-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; align-items: center; }
.post-card img { border-radius: 12px; }
.post-card h2 { font-size: 19px; color: var(--ink); }
.post-card p { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0; }
@media (max-width: 640px) { .rank-item { grid-template-columns: 90px 1fr; } }

/* policy pages */
.policy { margin: 32px auto; max-width: 700px; text-align: left; line-height: 1.7; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 40px 36px; }
.policy h2 { font-size: 20px; margin: 28px 0 10px; }
.policy h2.app-title { font-size: 28px; margin-top: 0; margin-bottom: 4px; }
.policy p, .policy li { color: var(--ink-soft); }
.policy strong { color: var(--ink); }
.policy hr { margin: 40px 0; border: none; border-top: 1px solid var(--hairline); }

/* responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-hero, .recipe-cols { grid-template-columns: 1fr; }
  .recipe-hero > img { max-width: 440px; }
  .ingredients { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; right: 16px; top: 58px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 12px; box-shadow: 0 10px 30px rgba(11,11,13,.12); }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .screens img { width: 200px; }
}
