/* Harbor Eats consumer — visual + voice v2.1 + responsive web 2026-09-28 (Thomas lock via Cora)
   Bright white / Plus Jakarta / vibrant accents. Mobile phone-frame + large-screen web shell. */
:root {
  /* Locked brand roles */
  --ink: #10262C;
  --tide: #5B4DFF;
  --brass: #FFB020;
  --canvas: #F5F2EA; /* legacy cream — use sparingly */
  --fog: #E8E8F0;
  --eats: #FF3366;
  --white: #FFFFFF;

  /* Bright surface system (v2) */
  --surface-page: #FFFFFF;
  --surface-muted: #F5F5F7;
  --surface-elevated: #FFFFFF;
  --hairline: rgba(16, 38, 44, 0.08);

  /* Expanded system */
  --ink-soft: #1a3a42;
  --tide-deep: #3F32D9;
  --tide-bright: #7A6FFF;
  --brass-soft: #FFC95C;
  --brass-deep: #D99400;
  --eats-deep: #E0114D;
  --eats-bright: #FF6B8A;
  --fog-cool: #E8E8F0;
  --muted: #5c6570;
  --muted-soft: #7a8490;

  /* Gradients — energetic, not parchment */
  --grad-tide-eats: linear-gradient(135deg, var(--tide) 0%, var(--tide-deep) 42%, var(--eats) 100%);
  --grad-mark: linear-gradient(145deg, var(--tide-bright) 0%, var(--tide) 45%, var(--ink) 100%);
  --grad-page: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%);
  --grad-brass-glow: linear-gradient(135deg, rgba(255, 176, 32, 0.16), rgba(255, 51, 102, 0.06));
  --grad-hero-food: linear-gradient(160deg, #FFF0F5 0%, #F0F0FF 48%, #FFF5F0 100%);
  --grad-cta: linear-gradient(135deg, var(--eats-bright) 0%, var(--eats) 55%, var(--eats-deep) 100%);
  --grad-cta-brass: linear-gradient(135deg, var(--eats) 0%, var(--brass) 100%);
  --grad-stage: radial-gradient(ellipse at 20% 0%, rgba(91, 77, 255, 0.08), transparent 45%),
                radial-gradient(ellipse at 90% 100%, rgba(255, 51, 102, 0.07), transparent 40%),
                linear-gradient(165deg, #F5F5F7 0%, #EEF0F5 100%);

  /* Soft modern elevation (Apple-class, not heavy frames) */
  --shadow-sm: 0 1px 2px rgba(16, 38, 44, 0.04), 0 1px 3px rgba(16, 38, 44, 0.03);
  --shadow-md: 0 4px 16px rgba(16, 38, 44, 0.06), 0 1px 3px rgba(16, 38, 44, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 38, 44, 0.1), 0 2px 8px rgba(16, 38, 44, 0.05);
  --shadow-phone: 0 24px 56px rgba(16, 38, 44, 0.14), 0 4px 16px rgba(16, 38, 44, 0.06);
  --shadow-cta: 0 6px 20px rgba(255, 51, 102, 0.28);

  /* Radii */
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-btn: 999px;
  --radius-chip: 999px;
  --radius-score: 12px;

  /* Type — modern geometric sans only (no serif display) */
  --font: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Surfaces */
  --bg: var(--surface-page);
  --fg: var(--ink);
  --surface: var(--surface-elevated);
  --surface-soft: var(--surface-muted);
  --border: var(--hairline);
  --border-strong: rgba(16, 38, 44, 0.14);

  /* Kitchen follows system appearance */
  --kitchen-bg: var(--surface-page);
  --kitchen-fg: var(--ink);
  --kitchen-muted: var(--muted);
  --kitchen-surface: var(--surface-muted);
  --kitchen-btn: var(--eats);
  --kitchen-btn-fg: #FFFFFF;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-enter: 280ms;

  /* Responsive shell */
  --shell-pad: 16px;
  --content-max: 720px;
  --focus-ring: 0 0 0 3px rgba(91, 77, 255, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a1e;
    --fg: #F5F5F7;
    --surface: #143038;
    --surface-soft: #1a383e;
    --surface-page: #0c1a1e;
    --surface-muted: #143038;
    --surface-elevated: #1a383e;
    --muted: #a8bdb8;
    --muted-soft: #8aa09b;
    --border: rgba(245, 245, 247, 0.1);
    --border-strong: rgba(245, 245, 247, 0.18);
    --hairline: rgba(245, 245, 247, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-phone: 0 28px 64px rgba(0, 0, 0, 0.55);
    --shadow-cta: 0 6px 18px rgba(255, 51, 102, 0.4);
    --grad-page: linear-gradient(180deg, #0e1f24 0%, #0c1a1e 100%);
    --grad-hero-food: linear-gradient(160deg, #10262C 0%, #1a383e 50%, #2a2818 100%);
    --grad-stage: radial-gradient(ellipse at 30% 20%, rgba(91, 77, 255, 0.2), transparent 50%),
                  radial-gradient(ellipse at 80% 80%, rgba(255, 51, 102, 0.12), transparent 45%),
                  linear-gradient(165deg, #071014, #0a1214 60%, #12100c);
    --kitchen-bg: #0c1a1e;
    --kitchen-fg: #F5F5F7;
    --kitchen-muted: #a8bdb8;
    --kitchen-surface: #1a383e;
  }
}

* { box-sizing: border-box; }
html {
  margin: 0;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0; min-height: 100%;
  min-height: 100dvh;
  background: var(--grad-stage);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "ss01" on, "kern" on;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--tide); }

/* Global focus rings (keyboard / a11y) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}
.btn:focus-visible,
.tab:focus-visible,
.score:focus-visible,
.chip-tog:focus-visible,
.channel-chip:focus-visible,
.option-card:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 3px;
}
.btn-primary:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.45), var(--shadow-cta);
}

/* —— Stage / phone frame —— */
.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px 12px 28px;
  gap: 8px;
}
.stage-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6a7a76;
}
.nav-hint {
  margin: 0;
  font-size: 11px;
  color: #6a7a76;
  text-align: center;
  max-width: 375px;
  line-height: 1.35;
}
.screen-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  max-width: 390px;
  opacity: 0.72;
}
.screen-nav button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.screen-nav button.is-on { background: var(--tide); color: #fff; opacity: 1; }
@media (prefers-color-scheme: dark) {
  .stage-label, .nav-hint { color: #8aa09b; }
  .screen-nav button { background: #1a383e; color: #F5F5F7; }
}

.phone {
  width: 375px;
  height: 812px;
  background: var(--grad-page);
  color: var(--fg);
  border-radius: 40px;
  box-shadow: var(--shadow-phone);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 38, 44, 0.06);
}
@media (prefers-color-scheme: dark) {
  .phone { border-color: rgba(245, 245, 247, 0.06); }
}

/* —— Topbar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  background: transparent;
  z-index: 2;
  flex: none;
}
.topbar.hidden { display: none; }
.brand { display: flex; gap: 10px; align-items: center; }
.mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-mark);
  box-shadow: 0 2px 8px rgba(91, 77, 255, 0.28);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(255,255,255,0.35), transparent 60%);
}
.brand-name {
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-sub { font-size: 11px; color: var(--muted); }
.diners { display: flex; gap: 6px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-soft); color: var(--fg);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out);
}
.avatar.active {
  outline: 2px solid var(--eats);
  outline-offset: 2px;
  background: var(--grad-tide-eats);
  color: #fff;
  box-shadow: none;
}

/* —— Views —— */
.view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.view.is-active {
  display: flex;
  animation: he-enter var(--dur-enter) var(--ease-out) both;
}
@keyframes he-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll {
  flex: 1;
  overflow: auto;
  padding: 4px 20px 110px;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { width: 0; }
.scroll.welcome-pad { padding-top: 28px; }

.progress-dots {
  display: flex; gap: 6px; justify-content: center;
  margin: 0 0 20px;
}
.progress-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(16, 38, 44, 0.12);
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out), border-radius var(--dur) var(--ease-out);
}
.progress-dots span.is-on {
  background: var(--eats);
  width: 16px; border-radius: 4px;
}
.progress-dots span.is-done { background: var(--tide); }
@media (prefers-color-scheme: dark) {
  .progress-dots span { background: rgba(245, 245, 247, 0.18); }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tide);
  text-transform: none;
}
.title {
  margin: 0 0 10px;
  font-size: 28px; line-height: 1.1;
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--fg);
  font-family: var(--font-display);
}
.title.display, .title.hero {
  font-family: var(--font-display);
  font-weight: 700;
}
.title.hero { font-size: 34px; line-height: 1.05; letter-spacing: -0.035em; }
.lede { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.section-h {
  margin: 20px 0 10px;
  font-size: 13px;
  letter-spacing: -0.01em; color: var(--muted); font-weight: 600;
  text-transform: none;
}

/* —— Cards / surfaces — reduced chrome, more air —— */
.status-card, .card, .option-card, .invite, .member-row, .rater-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}
.card.soft, .status-card {
  background: var(--surface-muted);
  border-color: transparent;
  box-shadow: none;
}
.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.status-copy { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.card-kicker {
  font-size: 12px; font-weight: 600;
  color: var(--tide); margin-bottom: 6px;
  text-transform: none; letter-spacing: 0;
}
.card-title {
  margin: 0 0 4px; font-size: 20px;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.025em;
}
.meta { font-size: 12px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
}
.pill-tide { background: var(--tide); color: #fff; }
.pill-brass {
  background: rgba(255, 176, 32, 0.18); color: var(--brass-deep);
}
.pill-eats { background: rgba(255, 51, 102, 0.14); color: var(--eats); }
.pill-fog { background: var(--surface-soft); color: var(--muted); }
@media (prefers-color-scheme: dark) { .pill-brass { color: var(--brass-soft); } }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius-btn);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.015em;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(255, 51, 102, 0.28);
}
.btn-secondary {
  background: var(--surface);
  color: var(--tide);
  box-shadow: inset 0 0 0 1.5px rgba(91, 77, 255, 0.35);
}
.btn-secondary:active { transform: scale(0.98); background: var(--surface-muted); }
.btn-ghost {
  background: transparent; color: var(--tide);
  font-weight: 650; min-height: 44px;
}
.btn-ghost:active { opacity: 0.75; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }
.status-card .btn, .card .btn { width: 100%; margin-top: 8px; }

.invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-muted);
  box-shadow: none;
}
.invite p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.why-strip {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px;
  background: var(--grad-brass-glow);
  border-radius: 14px;
  font-size: 13px; line-height: 1.4; color: #4a3a22;
  border: none;
}
@media (prefers-color-scheme: dark) {
  .why-strip { color: #e8d4b0; }
}
.brass-dot {
  width: 8px; height: 8px; margin-top: 5px; border-radius: 50%;
  background: var(--eats); flex: none;
}

/* —— Choice cards (A/B/C) —— */
.option-card {
  display: grid;
  grid-template-columns: 64px 1fr 16px;
  gap: 12px;
  align-items: start;
  text-align: left;
  width: 100%;
  cursor: pointer;
  padding: 14px;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  border: 1px solid var(--hairline);
}
.option-card.is-pickable:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 77, 255, 0.2);
}
.option-card.is-pickable:active { transform: scale(0.985); }
.option-card.selected-mark {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--eats), var(--shadow-md);
  background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--eats) 6%, #fff) 100%);
}
.option-plate {
  width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 28px; line-height: 1;
  position: relative;
  overflow: hidden;
  flex: none;
}
.option-plate::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--plate-grad, var(--grad-hero-food));
  z-index: 0;
}
.option-plate > * { position: relative; z-index: 1; }
.option-plate.tone-a { --plate-grad: linear-gradient(145deg, #f0c9a8, #e8a070 40%, #c45a3a); }
.option-plate.tone-b { --plate-grad: linear-gradient(145deg, #b8ddd8, #5aa8a0 45%, #2a6b68); }
.option-plate.tone-c { --plate-grad: linear-gradient(145deg, #f2e0b8, #d4a85a 40%, #b85f35); }
.option-plate .letter-mini {
  position: absolute; top: 5px; left: 6px; z-index: 2;
  font-size: 10px; font-weight: 800; color: rgba(16, 38, 44, 0.5);
  letter-spacing: 0.02em;
}
@media (prefers-color-scheme: dark) {
  .option-plate .letter-mini { color: rgba(245, 245, 247, 0.7); }
}
.letter {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--grad-tide-eats); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 8px rgba(91, 77, 255, 0.28);
}
.option-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.why { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pers-chip {
  display: inline-flex; align-items: center;
  margin-top: 8px; margin-right: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  background: rgba(91, 77, 255, 0.1); color: var(--tide);
}
.pers-chip.new { background: rgba(255, 176, 32, 0.16); color: var(--brass-deep); }
.pers-chip.improved { background: rgba(255, 51, 102, 0.12); color: var(--eats); }
.pers-chip.favorite { background: rgba(91, 77, 255, 0.16); color: var(--tide); }
@media (prefers-color-scheme: dark) { .pers-chip.new { color: var(--brass-soft); } }
.chev {
  color: var(--muted); font-size: 22px; line-height: 1;
  padding-top: 18px; font-weight: 300;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.option-card.selected-mark .chev { color: var(--eats); transform: translateX(2px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: var(--radius-chip);
  background: var(--surface-soft); color: var(--fg);
  font-size: 12px; font-weight: 550;
  min-height: 32px;
}
.chip-lock {
  background: rgba(91, 77, 255, 0.12); color: var(--tide); font-weight: 700;
}
.chip-tog {
  cursor: pointer; min-height: 44px;
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--surface);
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.chip-tog:active { transform: scale(0.97); }
.chip-tog.is-on {
  background: var(--grad-tide-eats); color: #fff; box-shadow: var(--shadow-sm);
}
.spark-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.spark-grid .chip-tog { font-size: 14px; padding: 10px 14px; }

.back {
  margin: 0 0 12px;
  min-height: 44px;
  font-size: 14px; font-weight: 650; color: var(--tide);
  display: inline-flex; align-items: center;
}

/* —— Food imagery slots —— */
.hero-ph {
  height: 160px; border-radius: var(--radius-card);
  margin-bottom: 16px;
  background: var(--grad-hero-food);
  background-image:
    radial-gradient(circle at 28% 40%, rgba(255, 51, 102, 0.4), transparent 48%),
    radial-gradient(circle at 72% 58%, rgba(91, 77, 255, 0.32), transparent 44%),
    radial-gradient(circle at 55% 20%, rgba(255, 176, 32, 0.25), transparent 40%),
    linear-gradient(160deg, #FFF0F5, #F0F0FF 50%, #FFF5F0);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-ph .food-emoji {
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(16, 38, 44, 0.14));
  z-index: 1;
}
.hero-ph span:not(.food-emoji) {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-mark); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  .hero-ph {
    background-image:
      radial-gradient(circle at 28% 40%, rgba(255, 51, 102, 0.5), transparent 48%),
      radial-gradient(circle at 72% 58%, rgba(91, 77, 255, 0.42), transparent 44%),
      linear-gradient(160deg, #10262C, #1a383e);
  }
}
.welcome-mark {
  width: 68px; height: 68px; border-radius: 20px;
  margin: 4px auto 24px;
  background: var(--grad-mark);
  box-shadow: 0 8px 24px rgba(91, 77, 255, 0.28);
  position: relative;
}
.welcome-mark::after {
  content: "🍽";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 28px;
  filter: grayscale(0.15) brightness(1.15);
}

.ing { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.sticky-actions {
  display: flex; gap: 8px;
  margin-top: 20px;
  flex-direction: column;
}
.sticky-actions.row { flex-direction: row; }
.sticky-actions .btn { width: 100%; }

.field { display: grid; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 14px; padding: 14px;
  background: var(--surface-muted); resize: vertical;
  line-height: 1.4; font-weight: 400; color: var(--fg);
  box-shadow: inset 0 0 0 1px transparent;
  min-height: 48px;
  transition: box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--tide), 0 0 0 4px rgba(91, 77, 255, 0.12);
}
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 14px; line-height: 1.45; }

.member-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  background: var(--surface-muted);
  box-shadow: none;
}
.member-row .grow { flex: 1; }
.member-row .name { font-weight: 700; font-size: 15px; }
.member-row .role { font-size: 12px; color: var(--muted); }

.constraint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.constraint-grid label {
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; cursor: pointer;
  background: var(--surface-muted);
  border-radius: var(--radius-card);
  padding: 12px;
  box-shadow: none;
  border: 1.5px solid transparent;
  font-size: 13px; font-weight: 550;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.constraint-grid label:active { transform: scale(0.98); }
.constraint-grid input { width: 18px; height: 18px; accent-color: var(--tide); }
.constraint-grid label.is-on {
  border-color: var(--tide);
  background: rgba(91, 77, 255, 0.08);
}

.channel-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 14px;
}
.channel-chip {
  min-height: 36px; padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font-size: 12px; font-weight: 650;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.channel-chip:active { transform: scale(0.97); }
.channel-chip.is-on {
  background: var(--grad-tide-eats); color: #fff;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700; letter-spacing: 0.08em;
  padding: 14px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-align: center;
  margin-bottom: 8px;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) { .code-block { color: #F5F5F7; } }
.attr-meta {
  font-size: 12px; color: var(--muted);
  word-break: break-all;
  margin: 0 0 12px;
  font-family: var(--font);
}
.attr-meta.mono { font-family: var(--font-mono); font-size: 11px; }

.demo-pair {
  display: grid; gap: 8px; margin-bottom: 12px;
}
.demo-diner {
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: none;
}
.demo-diner strong { display: block; margin-bottom: 4px; }

/* —— Kitchen (system appearance) —— */
.view-cook { background: var(--kitchen-bg); color: var(--kitchen-fg); }
.view-cook .scroll { padding-bottom: 120px; }
.cook-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; flex: none;
}
.cook-chrome .exit {
  min-height: 44px; min-width: 44px;
  font-weight: 650; color: var(--kitchen-muted); font-size: 14px;
}
.cook-progress {
  display: flex; gap: 6px; align-items: center; justify-content: center;
  padding: 0 16px 12px;
}
.cook-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kitchen-surface);
  transition: width var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.cook-progress .dot.is-on { background: var(--eats); width: 18px; border-radius: 4px; }
.cook-progress .dot.is-done { background: var(--tide); }
.cook-step-label {
  margin: 0 0 8px; font-size: 12px; font-weight: 650;
  color: var(--kitchen-muted);
  text-transform: none; letter-spacing: 0;
}
.cook-step-title {
  margin: 0 0 16px; font-size: 28px; line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.03em;
}
.cook-step-body {
  margin: 0 0 20px; font-size: 18px; line-height: 1.5;
}
.cook-ings {
  background: var(--kitchen-surface);
  border-radius: var(--radius-card);
  padding: 14px 16px; margin-bottom: 16px;
}
.cook-ings h4 {
  margin: 0 0 8px; font-size: 12px;
  color: var(--kitchen-muted); font-weight: 650;
  text-transform: none; letter-spacing: 0;
}
.cook-ings ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.55; }
.cook-nav {
  position: absolute; left: 12px; right: 12px; bottom: 16px;
  display: flex; gap: 8px; z-index: 3;
}
.cook-nav .btn { flex: 1; min-height: 52px; font-size: 16px; }
.cook-nav .btn-prev {
  background: var(--kitchen-surface); color: var(--kitchen-fg); flex: 0.55;
  box-shadow: none;
}
.cook-nav .btn-next, .cook-nav .btn-finish {
  background: var(--grad-cta); color: #fff;
  box-shadow: var(--shadow-cta);
}

.confirm-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-tide-eats);
  color: #fff;
  display: grid; place-items: center;
  font-size: 32px;
  margin: 28px auto 18px;
  box-shadow: 0 8px 24px rgba(91, 77, 255, 0.25);
}
.center-block { text-align: center; padding: 8px 8px 0; }

/* —— Rating 1–10 —— */
.rater-card { padding: 16px; background: var(--surface-muted); box-shadow: none; }
.rater-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.rater-head .avatar { width: 40px; height: 40px; font-size: 14px; }
.rater-name { font-weight: 700; font-size: 16px; }
.rater-status { font-size: 12px; color: var(--muted); }
.rater-status.done { color: var(--tide); font-weight: 700; }
.score-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.score {
  min-height: 46px;
  border-radius: var(--radius-score);
  background: var(--surface);
  font-size: 14px; font-weight: 800;
  border: 1px solid var(--hairline);
  transition:
    transform var(--dur-fast) var(--ease-spring),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.score:hover { border-color: rgba(255, 51, 102, 0.35); }
.score:active { transform: scale(0.94); }
.score.is-picked {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-cta);
  transform: scale(1.04);
}
.score[data-score="1"].is-picked,
.score[data-score="2"].is-picked {
  background: linear-gradient(135deg, #8a3a28, var(--eats-deep));
}
.score[data-score="9"].is-picked,
.score[data-score="10"].is-picked {
  background: linear-gradient(135deg, var(--brass-soft), var(--eats));
  box-shadow: 0 6px 18px rgba(255, 176, 32, 0.35);
}
.anchors {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted); font-weight: 600;
  margin-bottom: 10px; padding: 0 2px;
}

.loop-check {
  list-style: none; padding: 0; margin: 16px 0; text-align: left;
}
.loop-check li {
  padding: 12px 14px; margin-bottom: 8px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: none;
  box-shadow: none;
  font-size: 14px; display: flex; gap: 10px; align-items: center;
}
.loop-check .ok { color: var(--tide); font-weight: 800; }

.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  z-index: 2;
}
.tabbar.hidden { display: none; }
.tab {
  min-height: 44px; border-radius: 12px;
  font-size: 11px; font-weight: 650; color: var(--muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tab.is-on {
  background: var(--surface-muted);
  color: var(--fg);
}

.debug {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  background: rgba(16,38,44,0.72);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 10;
  pointer-events: none;
  max-width: 170px;
  line-height: 1.3;
}

.toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 72px;
  background: var(--ink); color: #fff;
  padding: 12px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 650;
  text-align: center;
  z-index: 20;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transform: translateY(6px);
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateY(0); }

.guest-banner {
  background: var(--grad-brass-glow);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
  border: none;
}

/* Progressive disclosure helpers */
.optional-block { margin-top: 8px; }
.optional-block[hidden] { display: none !important; }

/* Visual direction fingerprint v2 + responsive (deploy verify) */
.he-visual-20260928-v2 { --he-visual-lock: "thomas-cora-2026-09-28-v2"; }
.he-responsive-20260928 { --he-responsive-lock: "thomas-cora-2026-09-28-responsive"; }

/* Alpha: hide internal stage chrome (QA: ?qa=1 shows via .qa-on) */
.alpha-hide { display: none !important; }
body.qa-on .alpha-hide { display: flex !important; }
body.qa-on .stage-label.alpha-hide,
body.qa-on .nav-hint.alpha-hide { display: block !important; }
body.qa-on .screen-nav.alpha-hide { display: flex !important; }
.debug { display: none; }
body.qa-on .debug { display: block; }

#shareUrlField input,
#inviteUrlField input,
.share-url-field input {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  cursor: text;
}
.share-url-field {
  margin: 8px 0 10px;
}
.share-url-field span {
  font-size: 12px;
  color: var(--muted);
}

/* Meal meta (time / effort) — used on choice cards */
.option-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.option-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}

/* Recipe split (ingredients || steps) — stacks on phone */
.recipe-split {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.recipe-panel {
  background: var(--surface-muted);
  border-radius: var(--radius-card);
  padding: 16px;
}
.recipe-panel h3.section-h { margin-top: 0; }
.recipe-steps { margin: 0; padding-left: 0; list-style: none; }
.recipe-steps li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 14px; line-height: 1.45; color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.recipe-steps li:last-child { border-bottom: 0; }
.recipe-steps li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 10px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--surface); color: var(--tide);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* Members: Add person secondary to Continue */
.members-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
}
.members-actions .btn-secondary { order: 2; }
.members-actions .sticky-actions { order: 1; margin-top: 4px; }

/* Score row a11y: slightly taller touch */
.score { min-height: 44px; min-width: 44px; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— Responsive: phone → tablet → laptop → large desktop —— */
/* Mobile (<768): keep phone-frame excellence */
@media (max-width: 767.98px) {
  .stage {
    padding: 12px 10px 24px;
  }
  .phone {
    width: min(100%, 390px);
    height: min(812px, calc(100dvh - 48px));
    max-height: 900px;
  }
}

/* Tablet ≥768: leave floating phone; real web shell */
@media (min-width: 768px) {
  body {
    background: var(--surface-muted);
    background-attachment: scroll;
  }
  .stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
    max-width: none;
  }
  .stage-label, .nav-hint { display: none; }
  body.qa-on .stage-label { display: block; padding: 12px 24px 0; }
  body.qa-on .screen-nav {
    max-width: 960px; margin: 8px auto; padding: 0 24px;
  }
  .phone {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: var(--grad-page);
  }
  .topbar {
    padding: 16px clamp(20px, 4vw, 48px) 12px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
  }
  .scroll {
    padding: 8px clamp(20px, 4vw, 48px) 120px;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
  }
  .tabbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 32px));
  }
  .toast {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(6px);
    width: min(420px, calc(100% - 32px));
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* Choice grid: 3 side-by-side on tablet+ */
  #choiceCards,
  #guestChoiceCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
  }
  .option-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-height: 100%;
    padding: 16px;
    margin-bottom: 0;
  }
  .option-card .chev { display: none; }
  .option-plate {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    font-size: 40px;
  }
  .option-plate .letter-mini {
    font-size: 12px; top: 8px; left: 10px;
  }
  .option-body h2 { font-size: 15px; }

  /* Taste sparks use horizontal space */
  .spark-grid { gap: 10px; }
  .spark-grid .chip-tog { min-height: 48px; padding: 12px 16px; }

  /* Ratings: full 1–10 row */
  .score-row {
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
  }
  .score { min-height: 48px; font-size: 15px; }

  /* Constraint grid wider */
  .constraint-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Demo pair side-by-side */
  .demo-pair {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Recipe: ingredients || overview steps */
  .recipe-split {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .hero-ph { height: 200px; }

  /* Cook: iPad-friendly */
  .view-cook .scroll {
    max-width: 720px;
    padding-bottom: 140px;
  }
  .cook-chrome,
  .cook-progress {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
  }
  .cook-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 32px));
  }
  .cook-step-title { font-size: 32px; }
  .cook-step-body { font-size: 19px; }
}

/* Laptop ≥1024: richer web shell */
@media (min-width: 1024px) {
  .scroll {
    max-width: 1040px;
    padding-left: 40px;
    padding-right: 40px;
  }
  .topbar {
    max-width: 1040px;
    padding-left: 40px;
    padding-right: 40px;
  }
  #choiceCards,
  #guestChoiceCards {
    gap: 18px;
  }
  .option-plate { height: 148px; font-size: 48px; }
  .option-body h2 { font-size: 17px; }
  .option-card { padding: 18px; }

  /* Two-column useful screens: home status + invite */
  .view[data-view="home"] .scroll {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "eye eye"
      "title title"
      "lede lede"
      "status invite"
      "demo demo";
    column-gap: 24px;
    align-items: start;
  }
  .view[data-view="home"] .eyebrow { grid-area: eye; }
  .view[data-view="home"] .title { grid-area: title; }
  .view[data-view="home"] .lede { grid-area: lede; }
  .view[data-view="home"] .status-card { grid-area: status; margin-bottom: 0; }
  .view[data-view="home"] .invite { grid-area: invite; margin-bottom: 0; align-self: stretch; }
  .view[data-view="home"] .scroll > .btn-ghost.wide { grid-area: demo; margin-top: 16px; max-width: 320px; }

  /* Choices header + cards use width */
  .view[data-view="choices"] .scroll,
  .view[data-view="shareGuest"] .scroll {
    max-width: 1100px;
  }
  #shareCard {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    align-items: center;
  }
  #shareCard .card-kicker { grid-column: 1 / -1; }
  #shareCard > p { margin: 0; }
  #shareCard .btn { width: auto; margin-top: 0; min-width: 200px; }

  /* Rate: two raters side-by-side when space */
  #raterList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  #raterList .rater-card { margin-bottom: 0; }

  /* Invite / onboarding content max readable */
  .view[data-view="welcome"] .scroll,
  .view[data-view="create"] .scroll,
  .view[data-view="members"] .scroll,
  .view[data-view="constraints"] .scroll,
  .view[data-view="taste"] .scroll,
  .view[data-view="invite"] .scroll,
  .view[data-view="join"] .scroll {
    max-width: 560px;
  }
  .view[data-view="welcome"] .scroll {
    max-width: 480px;
    text-align: center;
  }
  .view[data-view="welcome"] .sticky-actions { align-items: stretch; }

  .title.hero { font-size: clamp(34px, 4vw, 42px); }

  /* Cook kitchen chrome — Crouton-like persistent progress */
  .cook-progress {
    max-width: 880px;
    gap: 8px;
  }
  .cook-progress .dot {
    flex: 1;
    height: 6px;
    width: auto;
    border-radius: 4px;
    max-width: none;
  }
  .cook-progress .dot.is-on {
    width: auto;
    background: var(--eats);
  }
  .view-cook .scroll,
  .cook-chrome {
    max-width: 880px;
  }
  .cook-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
  }
  .cook-ings { margin-bottom: 0; }
}

/* Large desktop ≥1280: max-width content, generous padding */
@media (min-width: 1280px) {
  .scroll {
    max-width: 1180px;
    padding-left: 56px;
    padding-right: 56px;
  }
  .topbar {
    max-width: 1180px;
    padding-left: 56px;
    padding-right: 56px;
  }
  .view[data-view="choices"] .scroll,
  .view[data-view="shareGuest"] .scroll {
    max-width: 1180px;
  }
  #choiceCards,
  #guestChoiceCards {
    gap: 22px;
  }
  .option-plate { height: 168px; font-size: 56px; border-radius: 16px; }
  .option-body h2 { font-size: 18px; }
  .option-card { padding: 20px; border-radius: 18px; }
  .why { font-size: 13px; }

  .view[data-view="detail"] .scroll {
    max-width: 1080px;
  }
  .view[data-view="detail"] .hero-ph {
    height: 240px;
  }
  .recipe-split { gap: 28px; }

  .view-cook .scroll,
  .cook-chrome,
  .cook-progress {
    max-width: 960px;
  }
  .cook-nav {
    width: min(720px, calc(100% - 48px));
  }
}

/* Prevent stretched full-bleed controls on wide shells */
@media (min-width: 768px) {
  .sticky-actions .btn.wide,
  .btn.wide {
    max-width: 420px;
  }
  .view[data-view="welcome"] .sticky-actions .btn.wide,
  .view[data-view="choices"] #shareCard .btn.wide,
  .status-card .btn {
    max-width: none;
  }
  .view[data-view="choices"] #shareCard .btn.wide {
    width: auto;
  }
  /* Onboarding forms: don't stretch inputs endlessly */
  .view[data-view="create"] .field,
  .view[data-view="members"] .field,
  .view[data-view="join"] .field {
    max-width: 420px;
  }
  .view[data-view="create"] .btn.wide,
  .view[data-view="members"] .btn.wide,
  .view[data-view="constraints"] .btn.wide,
  .view[data-view="taste"] .btn.wide,
  .view[data-view="invite"] .btn.wide,
  .view[data-view="join"] .btn.wide {
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .view.is-active { animation: none; }
  .btn:active, .option-card.is-pickable:active, .score:active,
  .chip-tog:active, .channel-chip:active, .constraint-grid label:active {
    transform: none;
  }
  .score.is-picked { transform: none; }
  .toast, .toast.show { transform: none; }
  @media (min-width: 768px) {
    .toast, .toast.show { transform: translateX(-50%); }
  }
}
