/* ════════════════════════════════════════════════════════════════════════
   BACKWAITER — landing page styles
   Brand core (tokens, wordmark, buttons) is documented in internal/DESIGN.md.
   Light theme only, matching app.backwaiter.com.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── palette ───────────────────────────────────────────────────── */
  --bg:         #F7EFE2;
  --surface:    #FFFEFB;
  --surface-2:  #F1E4CF;
  --ink:        #261218;
  --wine:       #6E2233;
  --wine-deep:  #561A28;
  --gold:       #A8772E;
  --gold-deep:  #8A6224;
  --panel:      #25121A;

  /* ── derived ───────────────────────────────────────────────────── */
  --border: color-mix(in srgb, var(--ink) 14%, transparent);
  --muted:  color-mix(in srgb, var(--ink) 58%, transparent);
  --gold-subtle: color-mix(in srgb, var(--gold) 16%, var(--bg));

  /* ── type ──────────────────────────────────────────────────────── */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* ── shape & rhythm ────────────────────────────────────────────── */
  --radius:    18px;
  --radius-lg: 28px;
  --pill:      999px;
  --maxw:      1120px;
}

/* ── reset & base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ── wordmark: { backwaiter } ────────────────────────────────────── */
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
/* lighter braces frame the word rather than compete with it */
.brand__brace { color: var(--gold-deep); font-weight: 400; }
.brand__word  { margin: 0 0.22em; }

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn--primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.btn--small { padding: 0.55rem 1.15rem; font-size: 0.95rem; }
.btn--on-dark { background: #fff; color: var(--panel); border-color: #fff; }
.btn--on-dark:hover { background: #F1E4D6; border-color: #F1E4D6; }

/* the demo is deliberately quieter than "Request info": an underlined text link */
.link-quiet {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}
.link-quiet:hover { color: var(--wine); }
.link-quiet--on-dark { color: #F1E4D6; }
.link-quiet--on-dark:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ════ NAV ════════════════════════════════════════════════════════ */
.nav { border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .brand { font-size: 1.45rem; }
.nav__actions { display: flex; align-items: center; gap: 1.5rem; }

/* ════ SECTIONS ═══════════════════════════════════════════════════ */
.section { padding: 5.5rem 0; }
.section--tight { padding-top: 1rem; }
.section--quiet { background: var(--surface-2); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.01em;
  max-width: 24ch;
  margin-bottom: 2.25rem;
}
.section__aside { margin-top: 2.5rem; color: var(--muted); }
.section__aside a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }

.cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-row--center { justify-content: center; }

/* ════ HERO ═══════════════════════════════════════════════════════ */
.hero { padding: 5rem 0 5rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.hero__sub { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.15rem, 2vw, 1.35rem); }

/* the signature: what the manager types, and the card staff get (mirrors the app) */
.flow { margin: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 380px; justify-self: end; width: 100%; }
.flow__msg {
  align-self: flex-end; max-width: 90%;
  background: var(--wine); color: #fff;
  border-radius: var(--radius); border-bottom-right-radius: 6px;
  padding: 0.75rem 1.1rem; font-size: 1rem; line-height: 1.45;
}
.flow__who { display: block; font-size: 0.8rem; font-weight: 700; opacity: 0.75; margin-bottom: 0.1rem; }
.flow__note { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

.wine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--ink) 45%, transparent);
}
.wine-card__thumb {
  width: 100%; height: 190px; object-fit: contain;
  background: var(--surface-2); border-radius: 12px;
  margin-bottom: 0.6rem;
}
.wine-card__type {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: var(--pill);
  background: var(--gold-subtle); color: var(--gold-deep);
}
.wine-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.wine-card__producer { font-weight: 600; }
.wine-card__meta, .wine-card__notes { font-size: 0.92rem; color: var(--muted); }
.wine-card__notes { font-style: italic; }
.wine-card__price { margin-top: 0.35rem; font-weight: 700; color: var(--wine-deep); }

/* ════ VIDEO ══════════════════════════════════════════════════════ */
.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ════ HOW IT WORKS ═══════════════════════════════════════════════ */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.role { border-top: 2px solid var(--wine); padding-top: 1.25rem; }
.role__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.6rem; }
.role p { max-width: 46ch; }

/* ════ OUTCOMES ═══════════════════════════════════════════════════ */
.outcomes { display: grid; gap: 0; }
.outcome {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}
.outcome:last-child { border-bottom: 1px solid var(--border); }
.outcome dt { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.25; }
.outcome dd { color: var(--muted); max-width: 48ch; }

/* ════ CLOSING CTA ════════════════════════════════════════════════ */
.closing { background: var(--panel); color: #F1E4D6; padding: 6rem 0; text-align: center; }
.closing__line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.015em;
  max-width: 22ch; margin: 0 auto;
}
.closing__sub { margin-top: 1.1rem; color: #D6C8BC; }

/* ════ FOOTER ═════════════════════════════════════════════════════ */
.footer { padding: 2.5rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.brand--small { font-size: 1.15rem; }
.footer__fine { font-size: 0.9rem; color: var(--muted); }

/* ════ REQUEST INFO DIALOG ════════════════════════════════════════ */
.request {
  width: min(520px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
}
.request::backdrop { background: color-mix(in srgb, #190E11 60%, transparent); }
.request__close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--muted);
}
.request__close:hover { color: var(--ink); }
.request__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; }
.request__intro { margin: 0.4rem 0 1.5rem; color: var(--muted); font-size: 1rem; }
.request__form { display: flex; flex-direction: column; gap: 1rem; }
.request__submit { align-self: flex-start; margin-top: 0.5rem; }
.request__status { font-size: 0.95rem; color: var(--wine); min-height: 1.4em; }
.request__done .btn { margin-top: 0.5rem; }
.request [hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; font-weight: 500; flex: 1; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-row { display: flex; gap: 1rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.hp { position: absolute; left: -9999px; }

/* ════ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero { padding: 3rem 0 3.5rem; }
  .flow { justify-self: start; }
  .hero__grid, .roles { grid-template-columns: 1fr; gap: 2.5rem; }
  .outcome { grid-template-columns: 1fr; gap: 0.4rem; }
  .section { padding: 4rem 0; }
  .section--tight { padding-top: 0.5rem; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 1rem; }
  .nav__actions { gap: 1rem; }
  .field-row { flex-direction: column; }
  .request { padding: 1.75rem 1.25rem; }
}

