/* Egg & Bunz — Tasting Nº2 · RSVP page
   Production styles. Recreates the design-system components used by the
   RSVP screen (Button, TextInput, Card, Badge) plus page-specific pieces,
   all driven by the shared tokens in styles/tokens/. Mobile-first. */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--eb-charcoal-800);
  -webkit-font-smoothing: antialiased;
  /* Warm morning stage — the phone letterbox becomes a natural web backdrop */
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(255,190,55,0.25), transparent 60%),
    var(--eb-bun-beige, #E2D2B6);
}

/* ── Page column ─────────────────────────────────────────────
   Phone-first: full width on mobile, centered card on larger screens. */
.stage {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}
.rsvp {
  width: 100%;
  max-width: 440px;
  background: var(--eb-warm-white);
  min-height: 100dvh;
}
@media (min-width: 480px) {
  .stage { align-items: flex-start; padding: 28px 16px; }
  .rsvp {
    min-height: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--eb-grape);
  background-image: url('../assets/pattern-purple.png');
  background-size: 240px;
  padding: 70px 24px 26px;
  text-align: center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(139,0,191,0.58), rgba(90,0,124,0.86));
}
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero__logo { height: 76px; width: auto; filter: drop-shadow(0 5px 12px rgba(0,0,0,0.4)); }

/* Bubble accent word (Chewy) */
.bubble {
  font-family: var(--font-accent);
  font-weight: 400;
  line-height: 1;
  color: var(--eb-egg-yellow);
  -webkit-text-stroke: 2.6px var(--eb-charcoal-800);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
  text-shadow: 3px 4px 0 rgba(139,0,191,0.28);
}
.bubble--rsvp { font-size: 58px; }
.bubble--thanks { font-size: 62px; }

/* Sticker badge */
.sticker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  color: var(--eb-charcoal-800); background: var(--eb-egg-yellow);
  border: 2.5px solid var(--eb-charcoal-800); border-radius: 999px;
  padding: 6px 16px; transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--eb-charcoal-800); white-space: nowrap;
}

/* Hero detail strip */
.hero__details {
  width: 100%; margin-top: 8px; display: flex; gap: 8px;
  background: rgba(0,0,0,0.28); border-radius: var(--radius-lg); padding: 14px;
}
.hero-detail { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.hero-detail__label {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,248,231,0.6);
}
.hero-detail__value {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--eb-warm-white); line-height: 1.15;
}

/* ── Body ────────────────────────────────────────────────────── */
.body { padding: 24px 20px 36px; display: flex; flex-direction: column; gap: 26px; }
.intro {
  font-family: var(--font-body); font-weight: 500; font-size: 15.5px;
  line-height: 1.55; color: var(--eb-charcoal-700); margin: 0;
  text-align: center; text-wrap: pretty;
}
.intro strong, .lede strong { font-weight: 700; color: var(--eb-charcoal-800); }

/* Callout (arrive-early) */
.callout {
  display: flex; align-items: center; gap: 12px;
  background: var(--eb-yellow-100); border: 2px solid var(--eb-charcoal-800);
  border-radius: var(--radius-lg); padding: 12px 16px;
  box-shadow: 3px 3px 0 var(--eb-charcoal-800);
}
.callout__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.callout__text {
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  line-height: 1.4; color: var(--eb-charcoal-800); text-wrap: pretty;
}
.callout__text strong { font-weight: 800; }

/* Section groups */
.section { display: flex; flex-direction: column; gap: 14px; }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.section-label__step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: var(--eb-egg-yellow); border: 2px solid var(--eb-charcoal-800);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--eb-charcoal-800);
}
.section-label__text {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.01em; color: var(--eb-charcoal-800);
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ── Field / TextInput (recreated from DS) ───────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--eb-charcoal-800);
}
.field__label .req { color: var(--eb-cheddar-orange); }
.input {
  width: 100%; height: var(--control-h-md); padding: 0 16px;
  background: var(--surface-card); border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 500;
  color: var(--eb-charcoal-800); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.textarea {
  width: 100%; resize: none; padding: 12px 16px; line-height: 1.5;
  background: var(--surface-card); border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--eb-charcoal-800); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.input:focus, .textarea:focus {
  border-color: var(--eb-cheddar-orange);
  box-shadow: 0 0 0 3px rgba(242,158,46,0.18);
}
.input::placeholder, .textarea::placeholder { color: var(--eb-charcoal-400); opacity: 1; }
.field--error .input { border-color: var(--status-error); }
.field__msg {
  font-family: var(--font-body); font-size: var(--fs-body-sm); color: var(--text-muted);
}
.field--error .field__msg { color: var(--status-error); }

/* ── Attend yes/no choice ────────────────────────────────────── */
.attend { display: flex; gap: 12px; }
.attend__opt {
  flex: 1; cursor: pointer; text-align: left; font: inherit;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: var(--radius-lg);
  border: 2.5px solid var(--eb-charcoal-800); background: var(--surface-card);
  box-shadow: none; transform: none;
  transition: all var(--dur-fast) var(--ease-bounce);
}
.attend__opt:hover { transform: translateY(-1px); }
.attend__opt[aria-pressed="true"] { box-shadow: 3px 4px 0 var(--eb-charcoal-800); transform: translateY(-1px); }
.attend__opt[data-val="yes"][aria-pressed="true"] { background: var(--eb-egg-yellow); }
.attend__opt[data-val="no"][aria-pressed="true"]  { background: var(--eb-bun-beige); }
.attend__emoji { font-size: 22px; line-height: 1; }
.attend__title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--eb-charcoal-800); }
.attend__sub   { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--eb-charcoal-700); }

/* ── Dish picks ──────────────────────────────────────────────── */
.pick-count {
  font-family: var(--font-display); font-weight: 800; font-size: 13px; white-space: nowrap;
  color: var(--eb-charcoal-500); background: transparent;
  border: 2px solid var(--eb-charcoal-400); border-radius: 999px; padding: 3px 11px;
}
.pick-count.is-full {
  color: var(--eb-charcoal-800); background: var(--eb-egg-yellow); border-color: var(--eb-charcoal-800);
}
.pick-hint {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  color: var(--eb-charcoal-500); margin: -6px 0 0;
}
.pick-hint.is-error { color: var(--status-error); }
.picks { display: flex; flex-direction: column; gap: 9px; }
.dish {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; font: inherit;
  cursor: pointer; padding: 10px; border-radius: var(--radius-lg);
  border: 2px solid var(--border-soft); background: var(--surface-card);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.dish[aria-pressed="true"] { border-color: var(--eb-egg-yellow); background: var(--eb-yellow-100); }
.dish[data-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.dish__img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--eb-charcoal-800); box-shadow: 2px 2px 0 var(--eb-charcoal-800); display: block;
}
.dish__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dish__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--eb-charcoal-800); line-height: 1.15; }
.dish__tag  { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--eb-charcoal-700); }
.dish__check {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: var(--radius-xs);
  border: 2px solid var(--eb-charcoal-400); background: transparent;
  color: var(--eb-charcoal-800); font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1;
  transition: all var(--dur-base) var(--ease-bounce);
}
.dish[aria-pressed="true"] .dish__check {
  border-color: var(--eb-cheddar-orange); background: var(--eb-cheddar-orange);
}

/* ── Card (recreated from DS) ────────────────────────────────── */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card--accent  { background: var(--surface-accent);  color: var(--text-on-yellow); border: none; }
.card--natural { background: var(--surface-natural); color: var(--text-body); border: none; }

/* ── Button (recreated from DS) ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-heading);
  line-height: 1; border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(var(--press-scale)); }
.btn--block { display: flex; width: 100%; }
.btn--lg { height: var(--control-h-lg); padding: 0 36px; font-size: var(--fs-body-lg); }
.btn--sm { height: var(--control-h-sm); padding: 0 18px; font-size: var(--fs-body-sm); }
.btn--primary { background: var(--action-primary); color: var(--action-primary-text); }
.btn--primary:hover { background: var(--action-primary-hover); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--text-strong); }
.btn--ghost:hover { background: var(--eb-light-gray); }

.submit-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.submit-note {
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--eb-charcoal-400);
  text-align: center; margin: 0;
}

/* ── Thank-you screen ────────────────────────────────────────── */
.thanks-hero { padding: 96px 28px 52px; }
.thanks-hero .hero__logo { height: 92px; }
.thanks-body { padding: 32px 24px 40px; display: flex; flex-direction: column; gap: 22px; }
.thanks-lede {
  font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.55;
  color: var(--eb-charcoal-700); margin: 0; text-align: center; text-wrap: pretty;
}
.thanks-when {
  border-radius: var(--radius-lg); padding: 20px 22px;
  background: var(--surface-accent); color: var(--text-on-yellow); box-shadow: var(--shadow-sm);
}
.thanks-when__row { display: flex; gap: 18px; }
.thanks-when__cell { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.thanks-when__label {
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--eb-charcoal-800); opacity: 0.55;
}
.thanks-when__value { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--eb-charcoal-800); }
.board { display: flex; flex-direction: column; gap: 10px; }
.board__label {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--eb-charcoal-700); text-align: center;
}
.board__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.board__chip {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--eb-charcoal-800);
  background: var(--eb-yellow-100); border: 2px solid var(--eb-charcoal-800); border-radius: 999px; padding: 5px 13px;
}
.thanks-fine {
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.5;
  color: var(--eb-charcoal-500); margin: 0; text-align: center; text-wrap: pretty;
}
.thanks-note {
  border-radius: var(--radius-lg); padding: 22px 24px;
  background: var(--surface-natural); color: var(--text-body); box-shadow: var(--shadow-sm);
}
.thanks-note p {
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.5;
  color: var(--eb-charcoal-800); margin: 0; text-align: center; text-wrap: pretty;
}
.edit-wrap { display: flex; justify-content: center; margin-top: 4px; }

/* Utility */
[hidden] { display: none !important; }
.is-hidden { display: none !important; }
