/* ═══════════════════════════════════════════════════════
   pquote · Field Transmission · Daylight
   Voice quote flow — paper-and-ink with dimensional depth
   ═══════════════════════════════════════════════════════ */

:root {
  /* Warm paper backdrop with progressively elevated surfaces */
  --bg:           #F5F2EA;
  --bg-elev-1:    #FFFFFF;
  --bg-elev-2:    #FAF7EE;
  --bg-elev-3:    #F0EBDD;
  --bg-recess:    #ECE6D5;

  --line:         #DDD4BD;
  --line-bright:  #BFB498;

  /* Brass-amber — slightly deeper than the dark theme so it carries on light */
  --amber:        #B8761A;
  --amber-soft:   #D49435;
  --amber-dim:    #8B5A0E;
  --amber-pale:   #F5E8C8;
  --amber-glow:   rgba(184, 118, 26, .35);

  /* Ink scale */
  --ink:          #2A2620;
  --ink-soft:     #3A352D;
  --muted:        #6E6757;
  --whisper:      #9A917D;
  --paper:        #F5F2EA;

  --sig-red:      #C44638;
  --sig-green:    #5A8B4F;

  --serif:        'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --sans:         'Nunito', 'Helvetica Neue', system-ui, sans-serif;
  --mono:         'JetBrains Mono', 'Courier New', monospace;

  --rad-sm: 4px;
  --rad-md: 10px;
  --rad-lg: 16px;
  --rad-xl: 22px;

  --easing:       cubic-bezier(.2, .9, .25, 1);

  /* Layered shadow system — soft natural depth */
  --shadow-1: 0 1px 2px rgba(60, 45, 15, .04), 0 2px 6px rgba(60, 45, 15, .03);
  --shadow-2: 0 1px 2px rgba(60, 45, 15, .04), 0 6px 16px rgba(60, 45, 15, .06), 0 14px 36px rgba(60, 45, 15, .04);
  --shadow-3: 0 2px 4px rgba(60, 45, 15, .06), 0 12px 28px rgba(60, 45, 15, .08), 0 30px 60px rgba(60, 45, 15, .06);
  --shadow-amber: 0 6px 22px rgba(184, 118, 26, .22), 0 2px 6px rgba(184, 118, 26, .12);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, .8);
}

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

/* Don't put overflow-x:hidden or max-width on html — iOS Safari kills the
   page's vertical scroll when those land on the html element. Apply both
   to body only; that's enough to contain horizontal overflow. */
html, body { background: var(--bg); color: var(--ink); }
body { overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Note: overscroll-behavior:none was here previously and was implicated in
     "can't scroll" reports on Android Chrome — removed to restore default
     vertical scroll/pull behavior. */
  position: relative;
  /* Subtle paper texture via layered radial gradients */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 250, 235, .9) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(245, 232, 200, .5) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ─── Atmospheric layers ─── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .035;
  background-image:
    radial-gradient(rgba(60, 45, 15, .8) 1px, transparent 1px),
    radial-gradient(rgba(60, 45, 15, .6) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}
.scanlines {
  /* Removed in readability pass — added visual noise without value */
  display: none;
}

/* ─── Frame header ─── */
.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(245, 242, 234, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  z-index: 50;
}
.brand {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  padding-left: 6px;
  border-left: 1px solid var(--line-bright);
  margin-left: 2px;
}

.status-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev-1);
  box-shadow: var(--shadow-1);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--whisper);
  box-shadow: 0 0 0 0 transparent;
  transition: background .2s ease, box-shadow .25s ease;
}
.status-dot[data-state="live"] {
  background: var(--sig-red);
  animation: livepulse 1.1s ease-in-out infinite;
}
.status-dot[data-state="parsing"] { background: var(--amber); }
.status-dot[data-state="received"] { background: var(--sig-green); }

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 70, 56, .6); }
  50%      { box-shadow: 0 0 0 8px rgba(196, 70, 56, 0); }
}

.status-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

/* ─── Step indicator ─── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px 0;
  max-width: 720px;
  margin: 0 auto;
}
.step {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--whisper);
  transition: color .2s ease;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev-3);
  border: 1.5px solid var(--line-bright);
  color: var(--whisper);
  font-size: 13px;
  font-weight: 800;
  transition: all .2s ease;
}
.step-label { letter-spacing: .02em; }
.step.active { color: var(--ink); }
.step.active .step-num {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #FFFFFF;
  border-color: var(--amber);
  box-shadow: var(--shadow-amber);
}
.step.done .step-num {
  background: var(--amber-pale);
  border-color: var(--amber);
  color: var(--amber);
}
.step.done .step-num::before { content: '✓'; }
.step.done .step-num span { display: none; }
.step-line {
  height: 2px;
  flex: 0 0 48px;
  background: linear-gradient(90deg, var(--line-bright), var(--line));
  border-radius: 2px;
}

/* ─── Screens ─── */
.screen { display: none; padding: 24px 22px 80px; max-width: 720px; margin: 0 auto; position: relative; }
.screen.active { display: block; animation: scanIn .55s var(--easing); }

@keyframes scanIn {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── SCREEN 1: TRANSMISSION ─── */
.q-monogram {
  position: absolute;
  top: 30px; right: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(180px, 38vw, 320px);
  line-height: .8;
  color: rgba(184, 118, 26, .08);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.05em;
  z-index: 0;
  text-shadow: 0 2px 12px rgba(184, 118, 26, .04);
}
.q-monogram .q-period { color: rgba(184, 118, 26, .25); }

.prompt-wrap { position: relative; z-index: 2; padding-top: 8px; max-width: 540px; }
.prompt-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.prompt-line {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 52px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--ink);
}
.prompt-line em {
  font-style: italic;
  color: var(--amber);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--amber-pale);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.prompt-help {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 480px;
}

/* Example prompts on Screen 1 */
.examples {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-1);
}
.examples-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
  margin-bottom: 10px;
}
.examples-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.examples-list li {
  font-family: var(--sans);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.examples-list li::before {
  content: '"';
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.mic-stage {
  position: relative;
  z-index: 2;
  margin: 56px auto 36px;
  display: flex;
  justify-content: center;
}

.mic-btn {
  --size: 200px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(circle at 30% 22%, #FFFFFF 0%, #FAF7EE 40%, #EDE6D2 100%);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  transition: transform .15s var(--easing), box-shadow .25s var(--easing), border-color .2s ease;
  /* Layered shadows give a tactile "pressed-into-paper" depth */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 4px rgba(160, 130, 70, .08),
    0 1px 2px rgba(60, 45, 15, .06),
    0 12px 28px rgba(60, 45, 15, .12),
    0 28px 50px rgba(60, 45, 15, .08);
  -webkit-tap-highlight-color: transparent;
}
.mic-btn:hover { border-color: var(--amber-dim); }
.mic-btn:active { transform: scale(.97); }
.mic-btn.recording {
  border-color: var(--amber);
  color: var(--amber);
  background:
    radial-gradient(circle at 30% 22%, #FFFFFF 0%, #FFF5DD 40%, #F5E2B0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 4px rgba(160, 130, 70, .08),
    0 1px 2px rgba(60, 45, 15, .06),
    0 12px 28px rgba(60, 45, 15, .12),
    0 28px 50px rgba(60, 45, 15, .08),
    0 0 0 6px rgba(184, 118, 26, .12),
    0 0 60px 4px var(--amber-glow);
  animation: micPulse 1.6s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      inset 0 -2px 4px rgba(160, 130, 70, .08),
      0 1px 2px rgba(60, 45, 15, .06),
      0 12px 28px rgba(60, 45, 15, .12),
      0 28px 50px rgba(60, 45, 15, .08),
      0 0 0 6px rgba(184, 118, 26, .12),
      0 0 60px 4px var(--amber-glow);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      inset 0 -2px 4px rgba(160, 130, 70, .08),
      0 1px 2px rgba(60, 45, 15, .06),
      0 12px 28px rgba(60, 45, 15, .12),
      0 28px 50px rgba(60, 45, 15, .08),
      0 0 0 12px rgba(184, 118, 26, .04),
      0 0 90px 8px var(--amber-glow);
  }
}

.mic-icon {
  width: 74px;
  height: auto;
  color: inherit;
  filter: drop-shadow(0 2px 4px rgba(60, 45, 15, .15));
}
.mic-btn.recording .mic-icon { color: var(--amber); }

.mic-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 6px;
}
.mic-btn.recording .mic-label { color: var(--amber); }

.mic-rings {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  display: none;
}
.mic-btn.recording .mic-rings { display: block; }
.mic-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--amber);
  opacity: 0;
  animation: ringExpand 2s ease-out infinite;
}
.mic-rings span:nth-child(2) { animation-delay: .6s; }
.mic-rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ringExpand {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ─── Readout ─── */
.readout {
  position: relative;
  z-index: 2;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: var(--bg-elev-1);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.readout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-3));
}
.readout-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
}
.readout-meter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}

.waveform {
  display: block;
  width: 100%;
  height: 56px;
  background:
    linear-gradient(180deg, transparent 49%, rgba(184, 118, 26, .14) 50%, transparent 51%),
    linear-gradient(180deg, var(--bg-elev-2), var(--bg-recess));
  border-bottom: 1px dashed var(--line);
}

.transcript {
  padding: 18px 18px 10px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 108px;
  white-space: pre-wrap;
  word-break: break-word;
}
.transcript:empty::before {
  content: "Your words will appear here.";
  color: var(--whisper);
  font-style: italic;
}
.transcript:not(:empty)::after {
  content: "▌";
  color: var(--amber);
  margin-left: 2px;
  animation: cursorBlink 1s steps(2) infinite;
}
@keyframes cursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.transcript-fallback {
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  background: var(--bg-elev-1);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: background .15s ease;
}
.transcript-fallback::placeholder {
  color: var(--whisper);
}
.transcript-fallback:focus {
  background: var(--amber-pale);
}

.readout-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--bg-elev-3), var(--bg-recess));
  border-top: 1px solid var(--line);
  min-height: 50px;
}
/* Turnstile mount: empty until voice.js renders the widget. Sized to give
   the iframe room without forcing a layout when inactive (env unset). */
.turnstile-mount {
  display: flex; justify-content: center;
  padding: 0 16px;
}
.turnstile-mount:empty { padding: 0; }
.turnstile-mount iframe { max-width: 100%; }
.mic-status {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  flex: 1;
}
.mic-status.error { color: var(--sig-red); font-weight: 600; }

.tx-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  border: 0;
  border-radius: var(--rad-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .12s var(--easing), box-shadow .2s ease;
  box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tx-btn:hover {
  background: linear-gradient(180deg, var(--amber), var(--amber-dim));
  box-shadow: 0 8px 28px rgba(184, 118, 26, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.tx-btn:active { transform: translateY(1px); }
.tx-btn:disabled { opacity: .55; cursor: wait; }
.tx-btn .tx-arrow {
  font-family: var(--mono);
  font-weight: 700;
  transition: transform .15s var(--easing);
}
.tx-btn:hover .tx-arrow { transform: translateX(3px); }

/* ─── Screen footer (removed in readability pass) ─── */
.screen-footer { display: none; }

/* ═══════════════════════════════════════════════════════
   SCREEN 2 — LOG ENTRY
═══════════════════════════════════════════════════════ */
.log-entry {
  border: 1px solid var(--line);
  border-radius: var(--rad-xl);
  background: var(--bg-elev-1);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-3);
  /* Hard cap so nothing inside can blow past the card edge on narrow screens */
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.log-entry, .log-entry * { box-sizing: border-box; max-width: 100%; }
.log-entry .log-section { overflow: hidden; word-wrap: break-word; }
.log-entry::before {
  /* Top brass-line accent — lifts the card off the page */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  opacity: .6;
  pointer-events: none;
}

.log-head {
  padding: 22px;
  border-bottom: 1px dashed var(--line-bright);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
}
.log-head-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.log-head-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.log-head-title em { color: var(--amber); font-style: italic; }
.log-head-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.log-head-meta span { display: block; }
.log-head-meta .meta-id { color: var(--amber); font-weight: 700; }

.log-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.log-section:last-child { border-bottom: 0; }

/* Price section gets a tinted background — it's the headline answer */
.log-section.price-headline {
  background: linear-gradient(180deg, var(--amber-pale), transparent);
  padding-top: 28px;
  padding-bottom: 28px;
}

.log-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.industry-row {
  display: flex; align-items: center; gap: 10px;
}
.industry-chip {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 36px 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 50%, var(--amber) 50%, var(--amber) 60%, transparent 60%) right 14px center / 8px 8px no-repeat,
    linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--line-bright);
  border-radius: var(--rad-md);
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.industry-chip:focus { border-color: var(--amber); box-shadow: var(--shadow-1), 0 0 0 3px var(--amber-pale); }
.confidence-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  padding: 6px 10px;
  background: var(--amber-pale);
  border-radius: 999px;
  border: 1px solid var(--amber-dim);
}

.brief {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  padding: 4px 0;
}
.brief em { color: var(--whisper); font-style: italic; }
.brief strong { color: var(--ink); font-weight: 800; }
.brief .brief-divider {
  display: inline-block;
  margin: 0 10px;
  color: var(--amber-dim);
}

.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 100%;
}
.pill {
  appearance: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 10px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  border-radius: 22px;
  cursor: pointer;
  transition: all .15s var(--easing);
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: left;
  max-width: 100%;
  line-height: 1.35;
  box-shadow: var(--shadow-1);
}
.pill:hover {
  border-color: var(--amber);
  background: var(--amber-pale);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.pill.selected {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #FFFFFF;
  border-color: var(--amber);
  box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.pill.selected::before { content: "✓ "; }
.pill.expanded {
  width: 100%;
  border: 1px solid var(--amber);
  background: var(--bg-elev-1);
  color: var(--ink);
  border-radius: var(--rad-md);
  padding: 14px 16px;
  cursor: default;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--mono);
  font-size: 14px;
  text-align: left;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: none;
}
.pill.expanded label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.pill.expanded input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  outline: none;
}
.pill.expanded input:focus { border-color: var(--amber); background: var(--bg-elev-1); }

/* ─── Price section ─── */
.price-block {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.price-loading {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.price-loading::after {
  content: " · · ·";
  animation: ellipsis 1.4s steps(4) infinite;
}
@keyframes ellipsis {
  0%   { opacity: .3; }
  50%  { opacity: 1; }
  100% { opacity: .3; }
}

.price-input-wrap {
  position: relative;
  display: flex; align-items: baseline; gap: 4px;
  border-bottom: 1px solid var(--amber);
  padding: 6px 0 8px;
}
.price-currency {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  color: var(--amber);
}
.price-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 12vw, 72px);
  color: var(--ink);
  -moz-appearance: textfield;
  letter-spacing: -.025em;
  line-height: 1;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.price-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.price-meta-label { font-weight: 600; color: var(--whisper); }
.price-meta .price-range { color: var(--amber); font-weight: 700; }

.price-reasoning {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding: 10px 14px 10px 14px;
  background: var(--bg-elev-2);
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
  /* Defense-in-depth so long words / model output can't overflow the card */
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.price-reasoning summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--amber);
}
.price-reasoning summary::-webkit-details-marker { display: none; }
.price-reasoning summary::after { content: ' ▾'; font-size: 10px; }
.price-reasoning[open] summary { margin-bottom: 8px; }
.price-reasoning[open] summary::after { content: ' ▴'; }
.price-reasoning p {
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  white-space: normal;
  display: block;
  width: 100%;
}

/* ─── Disclosure (collapsible "Improve this quote" section) ─── */
.disclosure {
  padding: 0;
}
.disclosure-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-family: var(--sans);
  transition: background .15s ease;
}
.disclosure-summary::-webkit-details-marker { display: none; }
.disclosure-summary:hover { background: var(--bg-elev-2); }
.disclosure-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.disclosure-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  padding: 4px 10px;
  background: var(--amber-pale);
  border-radius: 999px;
  border: 1px solid var(--amber-dim);
}
.disclosure-chev {
  font-size: 14px;
  color: var(--amber);
  transition: transform .2s ease;
  font-weight: 700;
}
.disclosure[open] .disclosure-chev { transform: rotate(180deg); }
.disclosure-block {
  padding: 4px 22px 18px;
}
.disclosure-block + .disclosure-block { border-top: 1px dashed var(--line); padding-top: 18px; }
.disclosure-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* ─── Action bar ─── */
.log-actions {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  background: var(--bg-elev-2);
}
.act-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  background: var(--bg-elev-3);
  color: var(--ink);
  border-radius: var(--rad-md);
  cursor: pointer;
  transition: all .15s var(--easing);
}
.act-btn:hover { border-color: var(--amber-dim); color: var(--amber); }
.act-btn.primary {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
  font-weight: 700;
}
.act-btn.primary:hover { background: var(--amber-soft); color: var(--bg); }
.act-btn.primary:disabled { opacity: .4; cursor: not-allowed; background: var(--amber-dim); }
.act-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .2em;
}
.act-btn.ghost:hover { color: var(--amber); }

/* ─── Guest-quota banner ─── */
.guest-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--amber-pale), var(--bg-elev-1));
  border-bottom: 1px dashed var(--amber);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
}
.guest-hint-icon {
  color: var(--amber);
  font-size: 16px;
  font-weight: 700;
}
.guest-hint-text { flex: 1; }
.guest-hint-text strong { font-weight: 800; color: var(--amber-dim); }
.guest-hint-text a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── iOS keyboard-mic tip (shown only on iOS via JS) ─── */
.keyboard-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--amber-pale), var(--bg-elev-1));
  border-bottom: 1px solid var(--line);
}
.keyboard-tip-icon {
  font-size: 22px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.keyboard-tip-text {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.keyboard-tip-text strong {
  display: block;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 2px;
}
.kbd-mic-glyph {
  display: inline-block;
  padding: 1px 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-size: 12px;
}

/* ─── Inline client info inputs ─── */
.client-row {
  display: grid;
  gap: 10px;
}
.client-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  background: var(--bg-elev-1);
  border: 1px solid var(--line-bright);
  border-radius: var(--rad-md);
  color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 1px 2px rgba(60, 45, 15, .04);
  outline: none;
  transition: border-color .15s var(--easing);
}
.client-input:focus {
  border-color: var(--amber);
  background: var(--bg-elev-1);
  box-shadow: var(--shadow-1), inset 0 1px 2px rgba(60, 45, 15, .04), 0 0 0 3px var(--amber-pale);
}
.client-input::placeholder { color: var(--whisper); }

/* ─── Sticky bottom action dock ─── */
.action-dock {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  gap: 12px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0)) 22px;
  background: linear-gradient(180deg, rgba(245, 242, 234, 0) 0%, var(--bg) 30%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30;
  margin-top: 28px;
  border-top: 1px solid transparent;
}
.dock-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid var(--line-bright);
  background: var(--bg-elev-1);
  color: var(--ink);
  border-radius: var(--rad-md);
  cursor: pointer;
  transition: all .15s var(--easing);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.dock-btn-icon {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.dock-btn:hover:not(:disabled) {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.dock-btn:active { transform: translateY(0) scale(.985); }
.dock-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: var(--shadow-1); }
.dock-btn.primary {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #FFFFFF;
  border-color: var(--amber);
  box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dock-btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--amber), var(--amber-dim));
  color: #FFFFFF;
  border-color: var(--amber-dim);
  box-shadow: 0 12px 32px rgba(184, 118, 26, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.dock-btn.primary:disabled {
  background: var(--bg-elev-3);
  color: var(--whisper);
  border-color: var(--line-bright);
  box-shadow: var(--shadow-1);
}

/* Quick text-link actions in the card body (talk again, full editor) */
.quick-links {
  display: flex; gap: 22px; flex-wrap: wrap;
  padding: 18px 22px 8px;
  font-family: var(--sans);
  font-size: 14px;
}
.quick-link {
  background: transparent; border: 0; padding: 8px 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  transition: color .15s ease;
}
.quick-link:hover { color: var(--amber); }

/* Inline guest-save-prompt panel */
.signin-prompt {
  margin: 0 22px 14px;
  padding: 20px 22px;
  border: 1px solid var(--amber);
  border-radius: var(--rad-md);
  background: linear-gradient(180deg, var(--amber-pale), var(--bg-elev-1));
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.signin-prompt-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.signin-prompt-actions {
  display: flex; gap: 10px; margin-top: 12px;
}
.signin-prompt-actions a,
.signin-prompt-actions button {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--rad-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--amber);
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #FFFFFF;
  box-shadow: var(--shadow-amber);
}
.signin-prompt-actions .ghost {
  background: transparent;
  color: var(--amber);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   QUOTE PREVIEW MODAL
═══════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--sans);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 32, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s var(--easing);
}
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  background: var(--bg-elev-1);
  border-radius: var(--rad-xl) var(--rad-xl) 0 0;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  animation: slideUp .35s var(--easing);
  overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-head {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
}
.modal-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.modal-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.modal-close {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-3);
  border: 1px solid var(--line-bright);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s var(--easing);
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { background: var(--amber-pale); border-color: var(--amber); color: var(--amber); }

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Line-by-line preview card */
.preview-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: var(--shadow-1);
}
.preview-section {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.preview-section:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.preview-key {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.preview-val {
  color: var(--ink);
  font-weight: 600;
}
.preview-val.dim { color: var(--ink-soft); font-weight: 500; }
.preview-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
}
.preview-line + .preview-line { border-top: 1px dashed var(--line); }
.preview-line-label { color: var(--ink-soft); flex: 1; min-width: 0; word-wrap: break-word; }
.preview-line-amount { color: var(--ink); font-weight: 700; white-space: nowrap; }
.preview-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.preview-total-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview-total-amount {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}

.modal-actions {
  display: grid;
  gap: 10px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0)) 22px;
  background: var(--bg-elev-2);
  border-top: 1px solid var(--line);
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 60px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--line-bright);
  background: var(--bg-elev-1);
  color: var(--ink);
  border-radius: var(--rad-md);
  cursor: pointer;
  text-align: left;
  transition: all .15s var(--easing);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.8);
}
.modal-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.8);
}
.modal-btn:active { transform: translateY(0) scale(.99); }
.modal-btn.primary {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #FFFFFF;
  border-color: var(--amber);
  box-shadow: var(--shadow-amber), inset 0 1px 0 rgba(255,255,255,.35);
}
.modal-btn.primary:hover {
  color: #FFFFFF;
  border-color: var(--amber-dim);
  background: linear-gradient(180deg, var(--amber), var(--amber-dim));
}
.modal-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-height: auto;
  padding: 10px 16px;
  justify-content: center;
  box-shadow: none;
  font-size: 14px;
}
.modal-btn.ghost:hover {
  color: var(--amber);
  background: var(--bg-elev-3);
  transform: none;
}
.modal-btn-icon {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.modal-btn small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
  margin-top: 2px;
}

/* Copy-success toast */
.toast {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 8px;
  box-shadow: var(--shadow-2);
  animation: toastIn .2s var(--easing);
  z-index: 10;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (min-width: 540px) {
  .modal { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: var(--rad-xl); max-height: 88dvh; }
}

/* ─── Utilities ─── */
.hidden { display: none !important; }

/* ─── Mobile tightening ─── */
@media (max-width: 480px) {
  .frame-header { padding: 14px 16px; }
  .steps { padding: 14px 16px 0; gap: 8px; }
  .step-line { flex-basis: 32px; }
  .step-label { display: none; }
  .step.active .step-label,
  .step.done .step-label { display: inline; }
  .screen { padding: 18px 16px 100px; }
  .mic-btn { --size: 168px; }
  .mic-icon { width: 62px; }
  .q-monogram { font-size: 220px; right: -10px; top: 0; opacity: .7; }
  .prompt-line { font-size: 34px; }
  .examples-list li { font-size: 14px; }
  .log-head { padding: 18px; }
  .log-head-title { font-size: 26px; }
  .log-section { padding: 18px; }
  .log-section.price-headline { padding: 22px 18px; }
  .price-input { font-size: 56px; }
  .action-dock { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0)) 16px; gap: 10px; }
  .dock-btn { min-height: 56px; font-size: 14px; padding: 14px 12px; gap: 8px; }
  .dock-btn-icon { font-size: 17px; }
  .signin-prompt { margin: 0 18px 14px; padding: 18px; }
  .signin-prompt-actions { flex-direction: column; }
  .quick-links { padding: 16px 18px 6px; gap: 18px; }
  .disclosure-summary { padding: 16px 18px; }
  .disclosure-block { padding: 4px 18px 16px; }
}

/* ═══════════════════════════════════════════════════════
   PRINT-ONLY: download-quote document
   Hidden on screen; rendered cleanly when window.print() runs
═══════════════════════════════════════════════════════ */
.print-quote {
  display: none;
}

@media print {
  /* Hide everything except the quote document */
  body > *:not(.print-quote) { display: none !important; }
  body { background: white; color: black; padding: 0; margin: 0; max-width: none; }
  .print-quote {
    display: block;
    padding: 48px 56px;
    font-family: 'Georgia', serif;
    color: #1a1a1a;
    background: white;
  }
  @page { margin: 0.5in; size: letter; }
}

/* Print-quote internal styles (also applied via @media print so they cascade) */
@media print {
  .pq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 32px;
  }
  .pq-brand-mark {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .pq-brand-sub {
    font-family: 'Helvetica', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #555;
    margin-top: 4px;
  }
  .pq-meta {
    text-align: right;
    font-family: 'Helvetica', sans-serif;
    font-size: 12px;
    line-height: 1.6;
  }
  .pq-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #777;
    margin-right: 8px;
  }
  .pq-parties {
    display: flex;
    gap: 64px;
    margin-bottom: 36px;
  }
  .pq-party-label {
    font-family: 'Helvetica', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #777;
    margin-bottom: 6px;
  }
  .pq-party-name {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
  }
  .pq-divider {
    border-top: 1px solid #ddd;
    margin: 32px 0;
  }
  .pq-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Helvetica', sans-serif;
  }
  .pq-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #777;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
  }
  .pq-table td {
    padding: 12px;
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
  }
  .pq-amt { text-align: right; }
  .pq-total-label {
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: #777;
    padding-top: 16px;
  }
  .pq-total {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 16px;
  }
  .pq-terms {
    font-family: 'Helvetica', sans-serif;
    font-size: 11px;
    line-height: 1.7;
    color: #555;
    margin-top: 24px;
  }
  .pq-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-family: 'Helvetica', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #999;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Tier-up gate (anon hits the wall) ────────────────────────────────
   Two side-by-side cards: email-only path on the left, full signup on
   the right. Each lists what the user gets AND what they don't get —
   the asymmetry between tiers is the whole conversion lever. */
.tier-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--bg-elev-2); border: 1px solid var(--line);
  border-radius: var(--rad-md); padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.tier-card--full { border-color: var(--amber); background: var(--amber-pale, #fff8e0); }
.tier-card-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-soft);
}
.tier-card-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.15;
}
.tier-card-list {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; color: var(--ink);
}
.tier-card-list li::before {
  content: "✓"; color: var(--amber); font-weight: 700;
  margin-right: 8px;
}
.tier-card-list--muted li { color: var(--ink-soft); font-size: 13px; }
.tier-card-list--muted li::before { content: ""; margin: 0; }
.tier-card-list--muted .tier-x::before {
  content: "✗"; color: #b85b5b; font-weight: 700; margin-right: 8px;
}
.tier-card-list--muted .tier-check::before {
  content: "✓"; color: var(--amber); font-weight: 700; margin-right: 8px;
}
.tier-form { display: flex; gap: 6px; margin-top: 6px; }
.tier-form-input {
  flex: 1; min-width: 0;
  padding: 12px 14px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: var(--rad-sm);
  background: var(--bg-elev-1); color: var(--ink);
}
.tier-form-input:focus {
  outline: none; border-color: var(--amber); background: #fff;
}
.tier-form-btn {
  padding: 12px 14px; font-family: var(--mono); font-size: 13px;
  font-weight: 600; letter-spacing: .3px;
  background: var(--ink); color: var(--bg-elev-1);
  border: 1px solid var(--ink); border-radius: var(--rad-sm);
  cursor: pointer; text-decoration: none; text-align: center;
  white-space: nowrap;
}
.tier-form-btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.tier-form-btn:disabled { opacity: .6; cursor: not-allowed; }
.tier-form-btn--primary {
  background: var(--amber); color: #fff; border-color: var(--amber);
  width: 100%; padding: 14px; font-size: 14px;
}
.tier-form-btn--primary:hover { background: #c57a16; border-color: #c57a16; }
.tier-form-msg {
  font-size: 12px; color: #b85b5b; min-height: 14px;
}
.tier-link {
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  text-decoration: none; text-align: center;
}
.tier-link:hover { text-decoration: underline; }

/* ─── Price-blurred state (non-full tier on result screen) ───────────── */
.price-blurred { padding: 4px 0; }
.price-blurred-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 4px;
}
.price-blurred-amount {
  font-family: var(--serif); font-size: 32px; font-weight: 800;
  color: var(--ink); line-height: 1.1;
  letter-spacing: -.5px;
}
.price-blurred-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.price-blurred-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; font-family: var(--mono); font-size: 13px;
  font-weight: 600; letter-spacing: .3px;
  background: var(--amber); color: #fff;
  border: 1px solid var(--amber); border-radius: var(--rad-sm);
  text-decoration: none;
}
.price-blurred-btn:hover { background: #c57a16; border-color: #c57a16; }
.price-blurred-help {
  font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
  line-height: 1.5; text-align: center;
}
