/* NExT FORUM 2026 · Quick Check — tokens */
:root {
  --navy: #0b2545;
  --navy-deep: #06162b;
  --navy-lift: #13335c;
  --gold: #e8b94a;
  --gold-soft: #f6dc95;
  --ink: #f5f2ea;
  --ink-2: #c3cddd;
  --ink-3: #94a3bb;
  --line: rgb(245 242 234 / 0.14);

  --thrive: #34d399;
  --transition: #fbbf24;
  --survive: #ff6b4a;

  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(1.25rem, 5vw, 1.75rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 85% -10%, rgb(232 185 74 / 0.22), transparent 55%),
    radial-gradient(90% 60% at -10% 110%, rgb(92 200 255 / 0.12), transparent 60%),
    linear-gradient(170deg, var(--navy-lift) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* band-coloured light that blooms behind the verdict */
.bloom {
  position: fixed;
  inset: -20% -30% auto;
  height: 70vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease), background 600ms;
}
body[data-screen='reveal'] .bloom { opacity: 1; }

button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
h1:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 2rem; }

#app { position: relative; z-index: 1; }

.screen {
  max-width: 34rem;
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(env(safe-area-inset-top), 0.9rem) var(--pad) max(env(safe-area-inset-bottom), 1.1rem);
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
}
.lockup { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.lockup-year { color: var(--gold); }
.lang {
  display: inline-flex;
  padding: 3px;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(6 22 43 / 0.5);
  cursor: pointer;
  flex: none;
}
.lang span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
  transition: background 200ms, color 200ms;
}
.lang span.on { background: var(--gold); color: var(--navy-deep); }

/* ---------- intro ---------- */
.event-line { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--gold-soft); opacity: 0.9; }
.intro-hero { margin-top: clamp(1.4rem, 5vh, 2.6rem); }
.kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-soft);
  border: 1px solid rgb(232 185 74 / 0.4);
  border-radius: 999px;
  background: rgb(232 185 74 / 0.08);
}
.headline {
  margin: 0;
  font-size: clamp(2.3rem, 10.5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.headline span { display: block; }
.headline span:nth-child(2) {
  background: linear-gradient(95deg, var(--gold-soft), var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.headline-tail {
  margin-top: 0.45rem;
  font-size: 0.56em;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}
.support { margin: 0.9rem 0 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; max-width: 34ch; }

.topics { list-style: none; margin: clamp(1.4rem, 4vh, 2.2rem) 0 0; padding: 0; display: grid; gap: 0.75rem; }
.topic {
  position: relative;
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1rem 0.95rem 0.95rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%),
    rgb(6 22 43 / 0.55);
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms var(--ease), border-color 200ms, box-shadow 200ms;
  animation: rise 640ms var(--ease) both;
  animation-delay: calc(120ms + var(--i) * 80ms);
  -webkit-tap-highlight-color: transparent;
}
.topic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.topic:active { transform: scale(0.975); }
@media (hover: hover) {
  .topic:hover { border-color: var(--accent); box-shadow: 0 14px 40px -16px var(--accent), inset 0 1px 0 rgb(255 255 255 / 0.08); }
}
.topic-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.topic-icon svg { width: 26px; height: 26px; }
.topic-text { display: grid; gap: 0.2rem; min-width: 0; }
.topic-title { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.25; }
.topic-sub { font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); }
.topic-go {
  flex: none;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- footer ---------- */
.foot { margin-top: auto; padding-top: 1.6rem; display: grid; gap: 0.6rem; }
.attribution { margin: 0; font-size: 0.72rem; line-height: 1.5; color: var(--ink-3); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--ink-3); }
.newing { font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; }
.credit { text-decoration: none; opacity: 0.8; padding: 0.6rem 0; }
.credit:hover { text-decoration: underline; }

/* ---------- question ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.6rem 0 0.25rem;
  margin-left: -0.35rem;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  cursor: pointer;
  flex: none;
}
.back svg { width: 22px; height: 22px; }
.progress { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 9rem; }
.seg { height: 5px; border-radius: 3px; background: rgb(245 242 234 / 0.16); position: relative; overflow: hidden; }
.seg.done { background: var(--accent); }
.seg.now::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform-origin: left;
  animation: fill 520ms var(--ease) both;
}

.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 1.25rem 1rem; }
.q-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.4rem; font-size: 0.82rem; color: var(--ink-3); }
.q-topic { color: var(--accent); font-weight: 700; }
.eyebrow {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; flex: none; }
.statement {
  margin: 0;
  font-size: clamp(1.6rem, 7.4vw, 2.15rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.statement.is-long { font-size: clamp(1.3rem, 5.9vw, 1.75rem); line-height: 1.34; }

.answer { padding-bottom: 0.6rem; }
.scale-hint { margin: 0 0 0.7rem; font-size: 0.8rem; color: var(--ink-3); text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 2vw, 10px); }
.tile {
  position: relative;
  min-height: 64px;
  aspect-ratio: 1 / 1.08;
  border-radius: 16px;
  border: 1px solid rgb(245 242 234 / 0.2);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  font-size: clamp(1.45rem, 6.5vw, 1.8rem);
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms var(--ease), background 220ms, border-color 220ms, box-shadow 260ms, color 220ms;
  -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: scale(0.92); }
.tile.is-current { border-color: var(--accent); color: var(--accent); }
.tile.is-picked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 10px 34px -4px var(--accent);
  animation: pick 380ms var(--ease);
}

/* ---------- reveal ---------- */
.band-thrive { --band: var(--thrive); }
.band-transition { --band: var(--transition); }
.band-survive { --band: var(--survive); }
body[data-screen='reveal'] .bloom { background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--bandc, #e8b94a) 30%, transparent), transparent 70%); }

.verdict { margin-top: clamp(1.2rem, 4vh, 2.2rem); }
.r-topic { margin: 0 0 1.4rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; font-size: 1rem; }
.r-kicker { font-weight: 500; font-size: 0.8rem; color: var(--ink-3); }

.gauge { position: relative; padding-top: 22px; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.zone { display: grid; gap: 0.5rem; }
.zone-bar {
  position: relative;
  height: 14px;
  border-radius: 4px;
  background-size: 300% 100%;
  background-image: linear-gradient(90deg, var(--survive) 0%, #ff8a3d 22%, var(--transition) 50%, #a3d65c 72%, var(--thrive) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -3px 6px rgb(0 0 0 / 0.25);
  transition: transform 500ms var(--ease), filter 500ms;
  filter: saturate(0.55) brightness(0.5);
}
.z-0 .zone-bar { background-position: 0% 0; }
.z-1 .zone-bar { background-position: 50% 0; }
.z-2 .zone-bar { background-position: 100% 0; }
.zone:first-child .zone-bar { border-radius: 8px 4px 4px 8px; }
.zone:last-child .zone-bar { border-radius: 4px 8px 8px 4px; }
.zone-name { font-size: 0.76rem; color: var(--ink-3); line-height: 1.25; }
.z-1 .zone-name { text-align: center; }
.z-2 .zone-name { text-align: right; }
.zone.is-hit .zone-bar { filter: none; transform: scaleY(1.35); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 0 22px color-mix(in srgb, var(--band) 70%, transparent); }
.zone.is-hit .zone-name { color: var(--band); font-weight: 700; }
.marker {
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
}
.marker::before {
  /* pointer */
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--ink);
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5));
}
.marker-dot {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink);
  border: 5px solid var(--band);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--band) 30%, transparent), 0 0 26px var(--band);
}

.band-title {
  margin: 1.6rem 0 0;
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--band);
  text-shadow: 0 0 40px color-mix(in srgb, var(--band) 45%, transparent);
  text-wrap: balance;
}
.score { margin: 0.55rem 0 0; font-size: 0.85rem; color: var(--ink-3); }
.read { margin-top: 1.1rem; display: grid; gap: 0.7rem; }
.read p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.read .sting {
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  padding-left: 0.9rem;
  border-left: 3px solid var(--band);
}

.caveat {
  margin-top: 1.6rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgb(245 242 234 / 0.06);
  border: 1px dashed rgb(245 242 234 / 0.24);
}
.caveat p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
.caveat .caveat-title { color: var(--ink); font-weight: 700; margin-bottom: 0.35rem; }

.actions { margin-top: 1.3rem; display: grid; gap: 0.35rem; }
.cta {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 14px 34px -12px rgb(232 185 74 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.5);
  transition: transform 140ms var(--ease), box-shadow 200ms;
}
.cta:active { transform: scale(0.98); }
.again {
  min-height: 48px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(245 242 234 / 0.35);
  cursor: pointer;
}

/* reveal choreography: marker slides in, verdict lands, the read follows */
.reveal.animate .marker { animation: slide 1100ms var(--ease) 450ms both; }
.reveal.animate .zone.is-hit .zone-bar { animation: lightup 500ms ease 1350ms both; }
.reveal.animate .zone.is-hit .zone-name { animation: fadein 400ms ease 1350ms both; }
.reveal.animate .band-title { animation: land 700ms var(--ease) 1400ms both; }
.reveal.animate .score { animation: fadein 500ms ease 1700ms both; }
.reveal.animate .read p:first-child { animation: rise 600ms var(--ease) 1850ms both; }
.reveal.animate .read .sting { animation: rise 600ms var(--ease) 2100ms both; }
.reveal.animate .caveat,
.reveal.animate .actions,
.reveal.animate .foot { animation: rise 600ms var(--ease) 2400ms both; }
.reveal.animate .r-topic,
.reveal.animate .gauge .zones { animation: fadein 400ms ease both; }

/* ---------- screen transitions ---------- */
.in-fwd .bar ~ * { animation: slidein 420ms var(--ease) both; }
.in-back .bar ~ * { animation: slideback 420ms var(--ease) both; }
.reveal.in-fwd .bar ~ * { animation: none; }
.out > :not(.bar) { transition: opacity 220ms ease, transform 220ms ease; opacity: 0; transform: translateY(-8px); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pick { 0% { transform: scale(0.9); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes slidein { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { left: 0%; opacity: 0; } 15% { opacity: 1; } to { left: var(--pos); opacity: 1; } }
@keyframes lightup { from { filter: saturate(0.55) brightness(0.5); transform: none; box-shadow: none; } }
@keyframes land { from { opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* short phones (e.g. 360×640): tighten the intro so the three topics stay in view */
@media (max-height: 700px) {
  .intro-hero { margin-top: 1rem; }
  .headline { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .support { font-size: 0.9rem; margin-top: 0.6rem; }
  .topics { margin-top: 1.1rem; gap: 0.6rem; }
  .topic { min-height: 74px; padding-block: 0.75rem; }
  .q-meta { margin-bottom: 0.9rem; }
}

/* ---------- event Q&A ("Hỏi BTC") ---------- */
/* intro: a quiet row under the topics, deliberately lighter than the topic cards */
.qa-entry {
  margin-top: 1rem;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border: 1px dashed rgb(245 242 234 / 0.24);
  border-radius: 14px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms, background 200ms;
}
.qa-entry:active { background: rgb(245 242 234 / 0.05); }
@media (hover: hover) { .qa-entry:hover { border-color: rgb(232 185 74 / 0.6); } }
.qa-entry-icon { flex: none; color: var(--gold); display: grid; }
.qa-entry-icon svg { width: 24px; height: 24px; }
.qa-entry-text { display: flex; flex-wrap: wrap; column-gap: 0.4rem; font-size: 0.92rem; line-height: 1.4; }
.qa-entry-lead { color: var(--ink-2); }
.qa-entry-go { font-weight: 700; color: var(--gold-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(232 185 74 / 0.45); }

/* reveal: a small link under "pick another topic" */
.qa-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.qa-link svg { width: 20px; height: 20px; flex: none; }

.qa-head { margin-top: 0.9rem; }
.qa-title { margin: 0; font-size: clamp(1.9rem, 8.5vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.qa-intro { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; max-width: 40ch; }

.qa-log { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.qa-log:empty { display: none; }
.qa-item { display: grid; gap: 0.55rem; scroll-margin-top: 1rem; }
.qa-q {
  justify-self: end;
  max-width: 85%;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 16px 16px 4px 16px;
  background: rgb(245 242 234 / 0.1);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.qa-a {
  padding: 0.85rem 1rem 0.9rem 1.05rem;
  border-radius: 4px 16px 16px 16px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgb(232 185 74 / 0.1), rgb(6 22 43 / 0.55));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.qa-a p { margin: 0; font-size: 0.98rem; line-height: 1.6; overflow-wrap: anywhere; }
.qa-a .qa-who { margin-bottom: 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--gold); }
.qa-a a { color: var(--gold-soft); text-underline-offset: 3px; }
.is-fallback .qa-a { border-left-color: var(--ink-3); background: rgb(245 242 234 / 0.06); }
.is-fallback .qa-who { color: var(--ink-2); }
.qa-item.is-new .qa-a { animation: rise 420ms var(--ease) both; }

.qa-sub { margin: 1.5rem 0 0.65rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-3); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(232 185 74 / 0.4);
  border-radius: 999px;
  background: rgb(232 185 74 / 0.06);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 180ms, border-color 180ms, transform 140ms var(--ease);
}
.chip:active { transform: scale(0.97); background: rgb(232 185 74 / 0.18); }
@media (hover: hover) { .chip:hover { border-color: var(--gold); } }

.qa-form {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(6 22 43 / 0.6);
}
.qa-form:focus-within { border-color: rgb(232 185 74 / 0.6); }
.qa-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 0.7rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zooming on focus */
}
.qa-input::placeholder { color: var(--ink-3); }
.qa-input:focus-visible { outline: none; }
.qa-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
  cursor: pointer;
}
.qa-send svg { width: 22px; height: 22px; }
.qa-send:active { transform: scale(0.95); }

/* ---------- Q&A-first entry (root URL) + the bridge into the quick check ---------- */
.qa-head.is-home { margin-top: 0.7rem; }
.qa-home .qa-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
.qa-home .qa-intro { margin-top: 0.4rem; }
/* secondary to the ask box, but unmistakably a way in: outlined gold, never the solid CTA */
.qc-btn {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.05rem 0.55rem 0.85rem;
  border: 1.5px solid rgb(232 185 74 / 0.7);
  border-radius: 999px;
  background: rgb(232 185 74 / 0.08);
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms, border-color 200ms;
}
.qc-btn svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.qc-btn:active { background: rgb(232 185 74 / 0.16); }
@media (hover: hover) { .qc-btn:hover { background: rgb(232 185 74 / 0.14); border-color: var(--gold); } }

/* after a miss / not-yet-answered row: the honest reply, then a route forward */
.qa-bridge.is-strong {
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid rgb(232 185 74 / 0.32);
  border-radius: 16px;
  background: rgb(232 185 74 / 0.05);
}
.qa-bridge p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.qa-bridge .qc-btn { margin-top: 0.6rem; }
.qa-item.is-new .qa-bridge, .qa-item.is-new .qa-bridge-quiet { animation: rise 420ms 120ms var(--ease) both; }
/* after a real answer: one quiet line */
.qa-bridge-quiet {
  justify-self: start;
  min-height: 44px;
  padding: 0 0.1rem;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(232 185 74 / 0.45);
  cursor: pointer;
}
/* the home order: ask box first, then answers, then suggestions */
.qa-home .qa-form { margin-top: 1.2rem; }
.qa-home .qa-log { margin-top: 1.1rem; }
/* room under the footer for the platform's floating badge (fixed, bottom-right), so it can
   never sit on top of the send button once the guest scrolls to the end */
.screen.qa { padding-bottom: calc(max(env(safe-area-inset-bottom), 1.1rem) + 6.5rem); }
