/* MenuRankAI — public website. Light, warm, premium, Apple-style consumer feel. */
:root {
  --bg:        #FFF7E8;   /* warm cream — matches the app background */
  --bg-soft:   #FFFDF7;   /* lighter cream — alternating sections */
  --card:      #FFFFFF;
  --text:      #1E140D;   /* warm near-black — app primary text */
  --muted:     #6F6257;   /* warm gray — app secondary text */
  --brand:     #D85A30;   /* terracotta / warm orange — primary accent (matches app) */
  --brand-700: #B84A26;   /* deeper terracotta for hover/press */
  --brand-50:  #FDECE1;   /* soft peach tint for badges/icon chips */
  --green:     #073D25;   /* deep green — headings / dark surfaces */
  --gold:      #D9A62E;   /* gold accent */
  --gold-bd:   #C99A3A;   /* gold border */
  --peach:     #FFE1C7;   /* soft peach surface */
  --coral:     #E9795F;   /* secondary accent — sparingly */
  --border:    #EAD8B8;   /* warm beige border (matches app) */
  --amber-bg:  #FFF8E6;
  --amber-bd:  #F1E2B5;
  --amber-tx:  #8A6A1F;
  --shadow:    0 1px 2px rgba(30,20,13,.04), 0 8px 24px rgba(30,20,13,.07);
  --shadow-sm: 0 1px 2px rgba(30,20,13,.05), 0 2px 8px rgba(30,20,13,.05);
  --maxw:      1080px;
  --radius:    18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(216,90,48,.35); outline-offset: 3px; border-radius: 10px;
}
img, svg { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,247,232,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; display: block; box-shadow: var(--shadow-sm); }
.brand .ai { color: var(--brand); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 620px) { .nav-links { gap: 16px; } .nav-links a { font-size: .85rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 13px; font-weight: 600; font-size: 1rem;
  min-height: 48px; border: 1.5px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(216,90,48,.22); }
.btn-primary:hover { background: var(--brand-700); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: var(--brand); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); text-decoration: none; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-50); color: var(--brand-700);
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .01em;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.08; margin: 20px 0 16px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.appstore-note { margin-top: 16px; color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
  .hero { padding: 48px 0 36px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
}

/* App-preview mock card */
.preview {
  background: linear-gradient(160deg, #FFFFFF, #FFF6EC);
  border: 1px solid var(--border); border-radius: 26px; padding: 22px;
  box-shadow: var(--shadow); max-width: 380px; margin: 0 auto;
}
.preview .ph-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.preview .ph-title { font-weight: 800; font-size: 1.05rem; }
.dish {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.dish:last-child { margin-bottom: 0; }
.dish .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dish .name { font-weight: 700; font-size: .98rem; }
.rank-pill { background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.rank-pill.alt { background: var(--brand-50); color: var(--brand-700); }
.score { height: 7px; background: #EEF2F1; border-radius: 999px; margin-top: 10px; overflow: hidden; }
.score > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 999px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: .68rem; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: 3px 8px; border-radius: 7px; }
.tag.coral { color: #B4452E; background: #FCEAE4; }

/* Sections */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); text-align: center; margin: 0 0 10px; }
.section .sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }

/* Feature grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-chip {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand);
  display: inline-grid; place-items: center; margin-bottom: 14px;
}
.icon-chip svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.step .num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff;
  display: inline-grid; place-items: center; font-weight: 800; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(216,90,48,.25);
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Safety callout — soft amber */
.callout {
  background: var(--amber-bg); border: 1px solid var(--amber-bd); border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.callout .ic { color: var(--amber-tx); flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0; color: #5C4A1E; font-size: .95rem; }
.callout strong { color: var(--amber-tx); }

/* Legal / content pages — readable white card */
.content-wrap { padding: 48px 0 24px; }
.content {
  max-width: 760px; margin: 44px auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 22px; padding: 40px 44px; box-shadow: var(--shadow-sm);
}
.content h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: 0 0 6px; }
.content .updated { color: var(--muted); font-size: .9rem; margin: 0 0 26px; }
.content h2 { font-size: 1.22rem; margin: 28px 0 8px; }
.content h3 { font-size: 1.04rem; margin: 18px 0 6px; }
.content p, .content li { color: #3A4750; }
.content ul { padding-left: 22px; }
.placeholder {
  display: inline-block; background: var(--amber-bg); color: var(--amber-tx);
  border: 1px dashed var(--amber-bd); border-radius: 7px; padding: 1px 8px; font-size: .92em; font-weight: 600;
}
@media (max-width: 560px) { .content { padding: 28px 22px; border-radius: 18px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 38px 0 48px; color: var(--muted); background: var(--bg-soft); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-small { font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover, .card:hover { transform: none; }
}

/* App Store badge (placeholder — link activates at launch) */
.store-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #1E140D; color: #fff; padding: 10px 18px; border-radius: 14px;
  min-height: 52px; box-shadow: var(--shadow-sm); cursor: default;
}
.appstore-badge:hover { text-decoration: none; color: #fff; }
.appstore-badge svg { width: 22px; height: 22px; flex: 0 0 auto; }
.appstore-badge .l1 { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .03em; opacity: .85; text-transform: uppercase; line-height: 1.15; }
.appstore-badge .l2 { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.store-soon { font-size: .74rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 820px) { .store-row { justify-content: center; } }

/* Plans / pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-align: left;
}
.plan.featured { border-color: var(--gold-bd); box-shadow: 0 2px 10px rgba(217,166,46,.18), var(--shadow-sm); }
.plan .plan-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  color: #fff; background: var(--brand); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.plan.featured .plan-tag { background: var(--gold); color: #3A2C06; }
.plan h3 { margin: 0 0 4px; font-size: 1.24rem; color: var(--green); }
.plan .price { font-size: .95rem; color: var(--muted); margin: 0 0 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 6px 0 6px 26px; color: #3A2C22; font-size: .95rem; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: 11px; width: 11px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.plan .plan-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
