/* Shared design-system tokens (single source of truth). */
@import "../design-system/tokens.css";

/**
 * Local aliases map the design-system tokens onto the short names this
 * stylesheet already uses. Add new styling with the design-system tokens
 * directly (var(--color-brand), var(--space-md), …); these aliases exist so
 * existing rules keep working against one shared palette.
 */
:root {
  --bg: var(--color-bg);
  --bg-alt: var(--color-bg-alt);
  --ink: var(--color-ink);
  --ink-soft: var(--color-ink-soft);
  --brand: var(--color-brand);
  --brand-dark: var(--color-brand-dark);
  --accent: var(--color-accent);
  --accent-soft: var(--color-accent-soft);
  --ok: var(--color-success);
  --warn: var(--color-warning);
  --card: var(--color-surface);
  --border: var(--color-border);
  --shadow: var(--shadow-lg);
  --radius: var(--radius-lg);
  --maxw: var(--layout-maxw);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; margin: 0; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.75rem;
}
.center { text-align: center; }

.accent { color: var(--brand); }
.accent--gold { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--color-on-brand); box-shadow: 0 10px 20px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--dark { background: var(--brand); color: var(--color-on-brand); }
.btn--dark:hover { background: var(--brand-dark); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 246, 235, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 700; }
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 14px -8px var(--brand-dark);
  display: block;
}
.brand__name { font-family: "Fraunces", serif; font-size: 1.25rem; }
.brand__name b { color: var(--brand); font-weight: inherit; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--brand); }
.nav__cta { margin-left: 0.5rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: radial-gradient(120% 120% at 80% 0%, var(--bg-alt) 0%, var(--bg) 55%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; margin-bottom: 1.2rem; }
.hero__title .accent {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  background-repeat: no-repeat;
  padding: 0 0.05em;
}
.hero__sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.6rem; }
.hero__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero__form input {
  flex: 1 1 240px;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  background: #fff;
}
.hero__form input:focus { outline: none; border-color: var(--brand); }
.hero__note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* Phone mock */
.hero__visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 600;
  background: var(--c-teal-900);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: var(--c-teal-900); border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { height: 100%; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); border-radius: 28px; padding: 2.4rem 0.9rem 1rem; overflow: hidden; }
.scan-badge { display: inline-block; background: var(--ink); color: var(--color-on-ink); font-size: 0.72rem; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.dish-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem; display: flex; gap: 0.7rem; margin-bottom: 0.7rem; box-shadow: 0 8px 18px -14px rgba(0,0,0,0.4); }
.dish-card--dim { opacity: 0.55; }
.dish-card__img { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 10px; flex-shrink: 0; }
.dish-card__names strong { display: block; font-size: 0.9rem; }
.dish-card__names span { font-size: 0.75rem; color: var(--ink-soft); }
.dish-card__desc { font-size: 0.72rem; color: var(--ink-soft); margin: 0.35rem 0; line-height: 1.4; }
.tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tag { font-size: 0.62rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.tag--warn { background: var(--color-warning-bg); color: var(--warn); }
.tag--ok { background: var(--color-success-bg); color: var(--ok); }

/* Strip */
.strip { background: var(--ink); color: var(--color-on-ink); }
.strip__inner { padding: 1.4rem 0; text-align: center; font-size: 1.05rem; }
.strip strong { color: var(--accent); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; margin-bottom: 2.2rem; }

/* Grids */
.grid { display: grid; gap: 1.4rem; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--steps { grid-template-columns: repeat(3, 1fr); }
.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.step { text-align: center; padding: 1rem; }
.step__num { width: 46px; height: 46px; margin: 0 auto 0.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 700; font-family: "Fraunces", serif; font-size: 1.2rem; box-shadow: 0 8px 18px -10px rgba(0,0,0,0.45); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Pricing */
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.price--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.price__badge { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--color-on-brand); font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.8rem; border-radius: 999px; }
.price h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.price__amount { font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 600; margin: 0 0 1rem; }
.price__amount span { font-size: 0.95rem; font-family: "Inter", sans-serif; color: var(--ink-soft); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.price li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: var(--ink-soft); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.price li:last-child { border-bottom: none; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price .btn { width: 100%; }

/* Restaurants */
.restaurants { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.restaurants__copy p { color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before { content: "🍽️"; position: absolute; left: 0; }
.restaurants__card { background: var(--ink); color: var(--color-on-ink); border-radius: var(--radius); padding: 2.5rem; text-align: center; box-shadow: var(--shadow); }
.verified { font-size: 1.4rem; font-family: "Fraunces", serif; }
.verified__sub { color: var(--c-teal-100); font-size: 0.9rem; margin: 0.4rem 0 0; }

/* Waitlist */
.waitlist__inner { max-width: 620px; margin-inline: auto; }
.waitlist__form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.waitlist__form input, .waitlist__form select {
  flex: 1 1 200px;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  background: #fff;
}
.waitlist__form input:focus, .waitlist__form select:focus { outline: none; border-color: var(--brand); }
.waitlist__note { text-align: center; margin-top: 1rem; font-weight: 600; min-height: 1.4rem; }
.waitlist__note--ok { color: var(--ok); }
.waitlist__note--err { color: var(--brand-dark); }

/* Footer */
.footer { background: var(--ink); color: var(--color-bg); padding: 2.5rem 0; }
.footer__inner { text-align: center; }
.footer .brand { justify-content: center; color: var(--color-on-ink); }
.footer .brand__logo { box-shadow: none; }
.footer .brand__name b { color: var(--accent); }
.footer__tag { color: var(--accent); font-family: "Fraunces", serif; margin: 0.6rem 0 0.3rem; }
.footer__copy { color: var(--c-teal-200); font-size: 0.85rem; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .grid--features, .grid--steps, .grid--pricing { grid-template-columns: 1fr; }
  .restaurants { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.4);
  animation: cookie-rise 0.25s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 320px; }
.cookie-banner__title { font-weight: 700; margin: 0 0 0.2rem; color: var(--ink); }
.cookie-banner__desc { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-banner__link { color: var(--brand); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; margin-left: auto; }
.cookie-banner__actions .btn { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

@keyframes cookie-rise {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 620px) {
  .cookie-banner__actions { margin-left: 0; width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
