/* ═══════════════════════════════════════════════════════════
   FNXLetter — AI Customer Reactivation Platform
   The Return Grid · Return Sky + Revival Orange + Phoenix Plum
   Distinct from Gryphub (ivory/docket) and RelayLum (tunnel)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #DDF4FF;
  --bg-card: #F9FDFF;
  --bg-dark: #24142C;
  --bg-dark-card: #34203C;
  --line: #B8D7E6;
  --orange: #FF5B35;
  --blue: #3366FF;
  --green: #20A978;
  --amber: #F2B63D;
  --risk: #E4485F;
  --ai: #A765E8;
  --fg: #17212B;
  --muted: #536875;
  --faint: #7A919E;

  --display: "Syne", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --r: 10px;
  --r-lg: 16px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255,91,53,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(51,102,255,0.1), transparent);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
[data-site-header], [data-site-footer] { display: contents; }

.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
}
.kicker::before { content: ""; width: 14px; height: 2px; background: var(--orange); border-radius: 1px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; color: var(--fg); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.1rem; }
.lead { font-size: 1.02rem; color: var(--muted); max-width: 48ch; }
.mono-label { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e84e2c; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-line { background: var(--bg-card); border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-green { background: rgba(32,169,120,0.12); border-color: var(--green); color: var(--green); }
.btn-amber { background: rgba(242,182,61,0.15); border-color: var(--amber); color: #b8860b; }
.btn-risk { background: rgba(228,72,95,0.1); border-color: var(--risk); color: var(--risk); }
.btn-ai { background: rgba(167,101,232,0.12); border-color: var(--ai); color: var(--ai); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-lg { padding: 12px 20px; font-size: 0.95rem; }
.btn-full { width: 100%; }

.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em;
}
.tag--orange { background: rgba(255,91,53,0.14); color: var(--orange); }
.tag--green { background: rgba(32,169,120,0.14); color: var(--green); }
.tag--blue { background: rgba(51,102,255,0.12); color: var(--blue); }
.tag--amber { background: rgba(242,182,61,0.18); color: #b8860b; }
.tag--risk { background: rgba(228,72,95,0.12); color: var(--risk); }
.tag--ai { background: rgba(167,101,232,0.14); color: var(--ai); }
.tag--muted { background: rgba(83,104,117,0.1); color: var(--muted); }

/* ── announce (fixed color — never follows risk/interaction) ── */
.site-top { position: sticky; top: 0; z-index: 80; }
.announce-bar {
  background: var(--bg-dark);
  color: #E8DFF0;
  font-size: 0.84rem;
}
.announce-bar-inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0; text-align: center;
}
.announce-text { margin: 0; font-weight: 500; max-width: 54rem; }
.announce-cta {
  margin-left: 8px; color: var(--orange); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.announce-cta:hover { color: #ff7a5a; }

.site-header {
  background: rgba(221, 244, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 215, 230, 0.75);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.brand-text span { font-size: 0.68rem; color: var(--muted); }
.pronounce { color: var(--orange); font-weight: 600; }
.nav-main { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 12px; }
.nav-link {
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
  padding: 4px 2px; border-radius: 4px;
}
.nav-link:hover, .nav-link.is-active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; font-size: 1.3rem; padding: 4px 8px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 10px;
  padding: 12px 0 16px; border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a, .mobile-nav button { text-align: left; font-weight: 500; color: var(--muted); }
.user-menu { position: relative; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 200px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 32px rgba(23,33,43,0.12); padding: 8px; z-index: 90;
}
.user-dropdown.is-open { display: flex; flex-direction: column; }
.user-dropdown a, .user-dropdown button {
  padding: 8px 10px; text-align: left; font-size: 0.88rem; color: var(--muted); border-radius: 6px;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg); color: var(--fg); }
.user-workspace-label {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--faint); padding: 6px 10px 4px;
}

.site-footer { background: var(--bg-dark); color: #C9B8D4; margin-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding: 48px 0 36px; width: min(100% - 40px, var(--max)); margin-inline: auto;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8A7A96; margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 0.9rem; color: #C9B8D4; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid #3d2a48; padding: 22px 0 28px; }
.footer-bar .container { text-align: center; }
.footer-tag { font-size: 0.88rem; color: #8A7A96; max-width: 56ch; margin-inline: auto; }
.footer-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px;
  margin-top: 14px; font-size: 0.82rem; color: #6E5C78;
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: #fff; }

.section { padding: 52px 0; }
.section--tight { padding: 32px 0; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head .lead { margin: 10px auto 0; }
.page-hero { padding: 44px 0 24px; text-align: center; }
.page-hero-inner { max-width: 640px; margin-inline: auto; }
.page-hero .lead { margin: 12px auto 0; }
.page-hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px;
}
.panel {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.prose { max-width: 68ch; margin-inline: auto; color: var(--muted); }
.prose h3 { margin: 28px 0 10px; color: var(--fg); }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 12px; }
.cta-band {
  text-align: center; padding: 48px 24px; max-width: 880px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lead { margin: 12px auto 0; }

/* ════════════════ HOME — COMEBACK LETTER ════════════════ */
.letter-hero {
  position: relative;
  min-height: min(94dvh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 0 0;
}
.letter-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 78% 28%, rgba(255,91,53,0.22), transparent 58%),
    radial-gradient(ellipse 40% 45% at 12% 70%, rgba(167,101,232,0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 40% 0%, rgba(51,102,255,0.1), transparent 50%),
    linear-gradient(165deg, #F4FBFF 0%, #DDF4FF 42%, #E8D8F2 100%);
  pointer-events: none;
}
.letter-sky::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 40px,
    rgba(184,215,230,0.22) 40px 41px
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  opacity: 0.7;
}
.ember {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255,91,53,0.55);
  animation: emberDrift 9s ease-in-out infinite;
  opacity: 0.55;
}
.ember.e1 { left: 12%; top: 22%; animation-delay: 0s; }
.ember.e2 { left: 28%; top: 58%; width: 4px; height: 4px; animation-delay: -2s; background: var(--ai); }
.ember.e3 { left: 62%; top: 18%; animation-delay: -4s; }
.ember.e4 { left: 84%; top: 48%; width: 5px; height: 5px; animation-delay: -1.5s; background: var(--amber); }
.ember.e5 { left: 72%; top: 72%; animation-delay: -6s; }
@keyframes emberDrift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-18px) scale(1.15); opacity: 0.75; }
}

.letter-hero-layout {
  position: relative; z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 32px;
}
.letter-hero-copy { max-width: 34rem; }
.letter-brand {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -0.03em; color: var(--fg);
  line-height: 0.95;
}
.letter-pronounce {
  margin-top: 12px; font-size: 0.92rem; color: var(--muted); max-width: 36ch;
}
.letter-pronounce b { color: var(--orange); }
.letter-hero h1 {
  margin-top: 20px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  max-width: 14ch;
  line-height: 1.12;
}
.letter-lead {
  margin: 14px 0 0; max-width: 40ch;
  font-size: 1.05rem; color: var(--muted);
}
.letter-cta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.letter-cta-links {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 16px; font-size: 0.9rem;
}
.letter-cta-links a {
  color: var(--blue); font-weight: 600;
  border-bottom: 1px solid transparent;
}
.letter-cta-links a:hover { border-bottom-color: var(--blue); }
.hero-proof {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-proof li {
  font-size: 0.88rem; color: var(--muted);
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.hero-proof b { color: var(--fg); font-weight: 700; }

/* Opened letter plane — visual anchor, not a centered marketing card */
.hero-letterplane {
  position: relative;
  min-height: 420px;
}
.plane-sheet {
  position: relative;
  height: 100%;
  min-height: 420px;
  padding: 28px 28px 32px;
  background:
    linear-gradient(180deg, #FFFEFA 0%, #F9FDFF 100%);
  border: 1px solid var(--line);
  border-radius: 2px 18px 4px 2px;
  box-shadow:
    -18px 24px 0 rgba(36,20,44,0.06),
    0 28px 60px rgba(36,20,44,0.1);
  transform: rotate(1.2deg);
  overflow: hidden;
  animation: planeSettle 8s ease-in-out infinite;
}
@keyframes planeSettle {
  0%, 100% { transform: rotate(1.2deg) translateY(0); }
  50% { transform: rotate(0.4deg) translateY(-6px); }
}
.plane-ruled {
  position: absolute; inset: 72px 24px 24px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 27px,
    rgba(51,102,255,0.1) 27px 28px
  );
  pointer-events: none;
}
.plane-fold {
  position: absolute; top: 0; right: 0;
  width: 56px; height: 56px;
  background: linear-gradient(225deg, #DDF4FF 50%, transparent 50%);
  border-left: 1px solid rgba(184,215,230,0.6);
  border-bottom: 1px solid rgba(184,215,230,0.6);
}
.plane-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 28px;
}
.plane-stamp {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--orange);
  border: 2px solid var(--orange); padding: 4px 8px;
  transform: rotate(-6deg);
}
.plane-acct {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.plane-line {
  position: relative; z-index: 1;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--fg);
  margin: 0 0 6px;
  max-width: 32ch;
}
.plane-line.is-write {
  clip-path: inset(0 100% 0 0);
  animation: inkWrite 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.plane-l1 { animation-delay: 0.15s; }
.plane-l2 { animation-delay: 0.55s; }
.plane-l3 { animation-delay: 0.95s; font-weight: 700; color: var(--orange); }
@keyframes inkWrite {
  to { clip-path: inset(0 0 0 0); }
}
.plane-avoid {
  position: relative; z-index: 1;
  margin-top: 22px;
  font-size: 0.78rem; color: var(--risk); font-weight: 600;
  opacity: 0; animation: fadeIn 0.5s 1.4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.plane-ink {
  position: absolute; right: 18%; bottom: 14%;
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(36,20,44,0.35), transparent 70%);
  filter: blur(1px); opacity: 0.35;
}

.plane-signals {
  position: absolute;
  left: -12px; bottom: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: min(100%, 280px);
  z-index: 2;
}
.sig {
  background: rgba(249,253,255,0.92);
  border: 1px solid var(--line);
  padding: 8px 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(36,20,44,0.06);
  animation: sigPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sig:nth-child(1) { animation-delay: 0.3s; }
.sig:nth-child(2) { animation-delay: 0.5s; }
.sig:nth-child(3) { animation-delay: 0.7s; }
.sig:nth-child(4) { animation-delay: 0.9s; }
@keyframes sigPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sig span {
  display: block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); font-weight: 700;
}
.sig strong {
  display: block; font-family: var(--display); font-size: 1.05rem;
  margin-top: 2px; color: var(--fg); line-height: 1.1;
}
.sig small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.sig--fade strong { color: var(--amber); }
.sig--risk strong { color: var(--risk); }
.sig--ai strong { color: var(--ai); }
.sig--ok strong { color: var(--green); }

.hero-flow {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 8px;
  padding: 16px 12px 22px;
  border-top: 1px solid rgba(184,215,230,0.65);
  background: linear-gradient(180deg, transparent, rgba(249,253,255,0.55));
}
.hf-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  padding: 4px 2px; white-space: nowrap;
  transition: color 0.25s;
}
.hf-step i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); display: block;
  transition: background 0.25s, box-shadow 0.25s;
}
.hf-step.is-on { color: var(--fg); }
.hf-step.is-on i {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,91,53,0.18);
}
.hf-step.is-done { color: var(--green); }
.hf-step.is-done i { background: var(--green); }
.hf-line {
  width: clamp(16px, 3vw, 36px); height: 2px;
  background: var(--line); margin: 0 4px;
  flex-shrink: 0;
}

.letter-stage-section { padding: 20px 0 56px; }
.stage-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.stage-head .lead { margin: 10px auto 0; }
.stage-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px;
}
.scan-hint {
  margin-top: 12px; font-size: 0.85rem; color: var(--blue); font-weight: 500;
  padding: 8px 12px; background: rgba(51,102,255,0.08); border-radius: 8px;
}
.scan-hint[hidden] { display: none !important; }

.comeback-stage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  max-width: 960px; margin: 0 auto;
  align-items: start;
}
.context-rail {
  background: var(--bg-dark); color: #C9B8D4;
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.context-rail .mono-label { color: #8A7A96; margin-bottom: 4px; }
.ctx-chip {
  text-align: left; padding: 8px 10px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,0.04); color: #C9B8D4;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ctx-chip:hover { background: rgba(255,255,255,0.08); }
.ctx-chip.is-on {
  background: rgba(255,91,53,0.18); border-color: var(--orange); color: #fff;
}
.ctx-detail {
  margin-top: 8px; font-size: 0.78rem; line-height: 1.45; color: #8A7A96;
  min-height: 4.5em;
}

.comeback-letter {
  background: #F9FDFF; border: 1px solid var(--line);
  border-radius: 2px 12px 12px 2px;
  padding: 28px 32px;
  box-shadow: 8px 12px 0 rgba(36,20,44,0.06);
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
}
.comeback-letter.is-writing { transform: translateY(-2px); }
.comeback-letter.is-ready { box-shadow: 8px 12px 0 rgba(255,91,53,0.12); }
.comeback-letter.is-restored {
  box-shadow: 8px 12px 0 rgba(32,169,120,0.18);
  border-color: rgba(32,169,120,0.45);
}
.cl-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 12px;
}
.cl-subject {
  font-family: var(--display); font-size: 1.25rem; margin-bottom: 18px;
}
.cl-body p {
  margin-bottom: 12px; font-size: 1rem; line-height: 1.55; color: var(--fg);
  transition: opacity 0.35s, color 0.35s;
}
.cl-body p.is-dim { opacity: 0.35; color: var(--faint); font-style: italic; }
.cl-body p.is-in { opacity: 1; font-style: normal; }
.cl-avoid { font-size: 0.88rem !important; color: var(--risk) !important; }
.cl-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end;
}
.cl-foot label {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--faint);
}
.cl-foot select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  font: inherit; background: #fff;
}
.cl-next { display: flex; flex-wrap: wrap; gap: 6px; }

.reply-strip {
  grid-column: 1 / -1;
  margin-top: 4px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.reply-path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px;
}
.rp {
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: rgba(83,104,117,0.08); color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.rp.is-lit { background: rgba(255,91,53,0.14); color: var(--orange); }
.rp-out.is-lit { background: rgba(32,169,120,0.16); color: var(--green); }
.rp-arrow { color: var(--faint); }

.path-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 1000px; margin: 0 auto 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--line);
}
.path-step {
  background: var(--bg-card); padding: 20px 16px; text-align: left; cursor: pointer;
  border-right: 1px solid var(--line); transition: background 0.2s;
}
.path-step:last-child { border-right: none; }
.path-step span {
  font-family: var(--mono); font-size: 0.68rem; color: var(--orange); font-weight: 600;
}
.path-step strong { display: block; margin: 8px 0 6px; font-family: var(--display); font-size: 1.05rem; }
.path-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.path-step.is-active {
  background: linear-gradient(180deg, rgba(255,91,53,0.1), var(--bg-card));
  box-shadow: inset 0 -3px 0 var(--orange);
}

.question-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; max-width: 1000px; margin: 0 auto 20px;
}
.q-item {
  background: var(--bg-card); padding: 14px 12px; text-align: left;
}
.q-no {
  font-family: var(--mono); font-size: 0.62rem; color: var(--orange); font-weight: 600;
}
.q-item p { margin-top: 6px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.lock-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.58rem; background: rgba(51,102,255,0.12); color: var(--blue);
}
.studio-line.is-locked { border-bottom-width: 3px; }
.river-merge {
  margin-top: 12px; padding: 12px 14px; text-align: left;
  background: rgba(167,101,232,0.1); border: 1px solid rgba(167,101,232,0.35);
  border-radius: var(--r); font-size: 0.88rem; color: var(--muted);
}
.river-merge[hidden] { display: none !important; }

/* ════════════════ PLATFORM — LIFECYCLE SCROLL ════════════════ */
.lifecycle {
  max-width: 1000px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.lifecycle-stages {
  display: flex; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
}
.lifecycle-stages span {
  flex: 1; text-align: center; padding: 10px 4px; color: var(--muted);
  border-right: 1px solid var(--line);
}
.lifecycle-stages span:last-child { border-right: none; color: var(--orange); font-weight: 600; }
.lifecycle-chart {
  position: relative; height: 220px; padding: 24px 16px 40px;
  background: linear-gradient(180deg, #F9FDFF, #E8F6FC);
}
.band {
  position: absolute; left: 16px; right: 16px; border-radius: 4px;
  opacity: 0.85; transition: clip-path 0.4s;
}
.band-1 { top: 28px; height: 28px; background: var(--blue); clip-path: polygon(0 0, 55% 0, 62% 100%, 48% 100%, 0 100%); }
.band-2 { top: 64px; height: 36px; background: var(--green); clip-path: polygon(0 0, 58% 0, 70% 40%, 52% 100%, 0 100%); }
.band-3 { top: 108px; height: 24px; background: var(--amber); clip-path: polygon(0 0, 50% 0, 65% 80%, 45% 100%, 0 100%); }
.band-4 { top: 140px; height: 32px; background: var(--ai); clip-path: polygon(0 0, 60% 0, 75% 30%, 55% 100%, 0 100%); }
.lifecycle.is-dip .band-1 { clip-path: polygon(0 0, 40% 0, 55% 20%, 70% 90%, 48% 100%, 0 100%); }
.lifecycle.is-dip .band-2 { clip-path: polygon(0 0, 42% 0, 58% 10%, 72% 95%, 50% 100%, 0 100%); }
.lifecycle.is-dip .band-3 { clip-path: polygon(0 0, 38% 0, 60% 50%, 68% 100%, 42% 100%, 0 100%); }
.lifecycle.is-dip .band-4 { clip-path: polygon(0 0, 45% 0, 62% 15%, 78% 85%, 52% 100%, 0 100%); }
.dip-callout {
  position: absolute; right: 28px; top: 36px; max-width: 200px;
  background: var(--bg-card); border: 1px solid var(--risk); border-radius: var(--r);
  padding: 10px; font-size: 0.78rem; color: var(--muted);
  box-shadow: 0 8px 20px rgba(228,72,95,0.12);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lifecycle.is-dip .dip-callout { opacity: 1; }
.lifecycle-ruler {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-dark); color: #C9B8D4; font-size: 0.82rem;
}
.lifecycle-ruler input { flex: 1; accent-color: var(--orange); }

/* ════════════════ DORMANCY TOPO MAP ════════════════ */
.topo {
  max-width: 960px; margin: 0 auto;
  background: linear-gradient(160deg, #1a3a4a 0%, #24142C 50%, #2a1a35 100%);
  border-radius: var(--r-lg); padding: 20px; position: relative; min-height: 420px;
  overflow: hidden;
}
.topo-svg { width: 100%; height: 340px; }
.topo-zone {
  cursor: pointer; transition: opacity 0.2s, filter 0.2s;
}
.topo-zone:hover, .topo-zone.is-active { filter: brightness(1.15); opacity: 1; }
.topo-zone:not(.is-active) { opacity: 0.85; }
.topo-label {
  fill: #fff; font-family: var(--mono); font-size: 11px; pointer-events: none;
}
.topo-panel {
  margin-top: 14px; background: var(--bg-dark-card); color: #C9B8D4;
  border-radius: var(--r); padding: 14px 16px; font-size: 0.88rem; text-align: left;
}
.topo-slider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  color: #C9B8D4; font-size: 0.85rem;
}
.topo-slider input { flex: 1; accent-color: var(--orange); }

/* ════════════════ REVIVAL BRIEF POSTER ════════════════ */
.poster {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(23,33,43,0.08);
  text-align: left;
}
.poster-head {
  padding: 32px 36px 24px;
  background: linear-gradient(135deg, #24142C, #3d2450);
  color: #fff;
}
.poster-head h2 { color: #fff; font-size: 1.8rem; }
.poster-head .ai-sum { margin-top: 10px; color: #C9B8D4; font-size: 1.05rem; font-style: italic; }
.poster-nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.poster-nums > div { background: var(--bg-card); padding: 22px 16px; text-align: center; }
.poster-nums strong {
  display: block; font-family: var(--display); font-size: 1.85rem; color: var(--orange);
}
.poster-nums span { font-size: 0.75rem; color: var(--muted); }
.poster-body { padding: 28px 36px 36px; }
.poster-p { margin-bottom: 18px; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.poster-p b { color: var(--fg); display: block; font-family: var(--display); font-size: 0.95rem; margin-bottom: 4px; }
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 0.58rem; font-weight: 700;
  vertical-align: super; margin-left: 3px; cursor: pointer;
}
.cite.is-on { background: var(--orange); }
.source-drawer {
  position: fixed; top: 0; right: 0; width: min(340px, 92vw); height: 100dvh;
  background: var(--bg-dark); color: #C9B8D4; z-index: 100;
  padding: 28px 22px; transform: translateX(100%);
  transition: transform 0.35s ease; box-shadow: -12px 0 40px rgba(0,0,0,0.3);
}
.source-drawer.is-open { transform: none; }
.source-drawer h3 { color: #fff; margin-bottom: 12px; }
.source-drawer p { font-size: 0.88rem; line-height: 1.5; }

/* ════════════════ SEQUENCE COMPOSER ════════════════ */
.sequencer {
  max-width: 1000px; margin: 0 auto;
  background: #1a0f22; border-radius: var(--r-lg); padding: 16px;
  color: #C9B8D4;
}
.seq-transport {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 14px;
  border-bottom: 1px solid #3d2a48; font-family: var(--mono); font-size: 0.75rem;
}
.seq-grid {
  display: grid; grid-template-columns: 110px 1fr; gap: 0; margin-top: 12px;
}
.seq-track-label {
  font-family: var(--mono); font-size: 0.68rem; padding: 14px 8px;
  border-bottom: 1px solid #3d2a48; color: #8A7A96;
}
.seq-lane {
  position: relative; height: 52px; border-bottom: 1px solid #3d2a48;
  background: repeating-linear-gradient(90deg, transparent, transparent calc(100%/30 - 1px), #2a1a35 calc(100%/30 - 1px), #2a1a35 calc(100%/30));
}
.seq-block {
  position: absolute; top: 8px; height: 36px; border-radius: 4px;
  display: flex; align-items: center; padding: 0 8px;
  font-size: 0.68rem; font-weight: 600; cursor: grab; color: #fff;
  transition: background 0.2s, opacity 0.3s, filter 0.2s;
}
.seq-block.is-selected { outline: 2px solid #fff; outline-offset: 2px; }
.seq-block.is-muted { filter: grayscale(1); opacity: 0.35; }
.seq-block--email { background: var(--blue); }
.seq-block--cs { background: var(--orange); }
.seq-block--app { background: var(--ai); }
.seq-block--stop { background: var(--risk); }
.seq-days {
  grid-column: 2; display: flex; font-family: var(--mono); font-size: 0.58rem;
  color: #6E5C78; padding-top: 6px;
}
.seq-days span { flex: 1; text-align: center; }

/* ════════════════ LETTER STUDIO ════════════════ */
.studio {
  max-width: 960px; margin: 0 auto; position: relative;
  min-height: 480px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px 40px;
}
.studio-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px;
}
.studio-tag {
  padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: rgba(51,102,255,0.1); color: var(--blue); border: 1px dashed var(--blue);
  cursor: grab;
}
.studio-tag.is-in { background: var(--blue); color: #fff; border-style: solid; }
.studio-canvas {
  max-width: 560px; margin: 0 auto; min-height: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 32px; text-align: left;
}
.studio-canvas .from { font-size: 0.78rem; color: var(--faint); margin-bottom: 16px; }
.studio-line {
  margin-bottom: 12px; font-size: 0.95rem; color: var(--fg); line-height: 1.5;
  border-bottom: 2px solid transparent; padding-bottom: 4px;
}
.studio-line[data-src="account"] { border-bottom-color: var(--blue); }
.studio-line[data-src="product"] { border-bottom-color: var(--orange); }
.studio-line[data-src="manual"] { border-bottom-color: var(--amber); }
.studio-line[data-src="ai"] { border-bottom-color: var(--ai); }
.studio-modes { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.studio-modes button {
  padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg-card);
}
.studio-modes button.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ════════════════ REPLY RIVER ════════════════ */
.river {
  max-width: 1000px; margin: 0 auto; overflow-x: auto;
  background: linear-gradient(90deg, #DDF4FF, #E8F0FF 40%, #F5E8FF);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 20px;
}
.river-flow {
  display: flex; align-items: stretch; gap: 0; min-width: 860px;
}
.river-source {
  width: 140px; background: var(--blue); color: #fff; border-radius: var(--r);
  padding: 16px; display: flex; flex-direction: column; justify-content: center;
  font-size: 0.85rem; font-weight: 600;
}
.river-branches {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 12px;
  justify-content: center;
}
.river-branch {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-card); border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.river-branch.is-active { border-color: var(--orange); background: rgba(255,91,53,0.08); }
.river-branch .rb-name { font-weight: 700; min-width: 100px; }
.river-branch--neg { border-color: rgba(228,72,95,0.4); }
.river-terminus {
  width: 120px; background: var(--bg-dark); color: #C9B8D4; border-radius: var(--r);
  padding: 16px; font-size: 0.8rem; display: flex; align-items: center; text-align: center;
}
.river-detail {
  margin-top: 16px; text-align: left; font-size: 0.9rem; color: var(--muted);
  padding: 14px; background: var(--bg-card); border-radius: var(--r); border: 1px solid var(--line);
}

/* ════════════════ VALUE MATCH SHELF ════════════════ */
.shelf-wrap { max-width: 920px; margin: 0 auto; }
.shelf {
  background: linear-gradient(180deg, #3d2a20, #2a1c16);
  border: 4px solid #1a120e; border-radius: 4px; padding: 12px;
}
.shelf-row {
  background: linear-gradient(180deg, #5a4030, #4a3428);
  margin-bottom: 8px; padding: 10px 12px; border-radius: 2px;
  min-height: 56px;
}
.shelf-row h4 { color: #E8D4C4; font-family: var(--sans); font-size: 0.78rem; margin-bottom: 6px; }
.shelf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shelf-tag {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 8px; font-size: 0.72rem; cursor: grab; color: var(--fg);
}
.shelf-tag small { display: block; color: var(--faint); font-size: 0.6rem; }
.needs-tray {
  margin-top: 16px; background: var(--bg-card); border: 2px dashed var(--orange);
  border-radius: var(--r-lg); padding: 16px; min-height: 120px; text-align: left;
}
.needs-tray h4 { margin-bottom: 8px; }
.tray-items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.fit-note {
  margin-top: 10px; font-size: 0.85rem; color: var(--muted);
  padding: 10px; background: rgba(167,101,232,0.08); border-radius: 6px;
  display: none;
}
.fit-note.is-show { display: block; }

/* ════════════════ EXPERIMENT CHESSBOARD ════════════════ */
.chess-wrap {
  max-width: 900px; margin: 0 auto; perspective: 900px;
  padding: 20px 0 40px;
}
.chessboard {
  transform: rotateX(48deg) rotateZ(-18deg);
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: 100px repeat(5, 1fr);
  gap: 4px;
  max-width: 720px; margin: 0 auto;
}
.chess-corner, .chess-h, .chess-v {
  font-family: var(--mono); font-size: 0.62rem; color: var(--muted);
  display: grid; place-items: center; padding: 6px;
}
.chess-cell {
  aspect-ratio: 1; border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, background 0.2s;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--muted);
}
.chess-cell:hover, .chess-cell.is-active {
  transform: translateZ(12px) scale(1.05);
  background: rgba(255,91,53,0.2); border-color: var(--orange); color: var(--orange);
}
.chess-cell--win { background: rgba(32,169,120,0.2); border-color: var(--green); color: var(--green); }
.obs-window {
  max-width: 720px; margin: 0 auto 16px;
  display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted);
}
.obs-window input { flex: 1; accent-color: var(--orange); }

/* ════════════════ DEVELOPERS WORKBENCH ════════════════ */
.workbench {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 200px; gap: 12px;
}
.wb-main { display: flex; flex-direction: column; gap: 12px; }
.drawers { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-tab {
  flex: 1; min-width: 90px; background: var(--bg-dark-card); color: #C9B8D4;
  border-radius: var(--r) var(--r) 0 0; padding: 10px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
}
.drawer-tab.is-open { background: var(--bg-card); color: var(--fg); border-color: var(--line); border-bottom-color: var(--bg-card); }
.drawer-body {
  display: none; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 0 var(--r) var(--r) var(--r); padding: 14px; font-size: 0.85rem; color: var(--muted); text-align: left;
}
.drawer-body.is-open { display: block; }
.wb-editor {
  background: var(--bg-dark); color: #C9E8FF; border-radius: var(--r);
  padding: 14px; font-family: var(--mono); font-size: 0.78rem; min-height: 140px; text-align: left;
}
.wb-outputs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.wb-out {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; font-size: 0.8rem; text-align: left; min-height: 100px;
}
.wb-out h4 { font-size: 0.75rem; margin-bottom: 6px; color: var(--orange); }
.ticker {
  background: var(--bg-dark); color: #8A7A96; border-radius: var(--r);
  padding: 12px; font-family: var(--mono); font-size: 0.65rem;
  max-height: 480px; overflow: hidden; text-align: left;
}
.ticker h4 { color: #C9B8D4; margin-bottom: 10px; font-size: 0.7rem; }
.ticker li { padding: 6px 0; border-bottom: 1px solid #3d2a48; animation: tickIn 0.4s ease; }
@keyframes tickIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ════════════════ PRICING RUNWAY ════════════════ */
.runway-wrap { max-width: 880px; margin: 0 auto; }
.runway-inputs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px;
}
.runway-inputs label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--faint);
}
.runway-inputs input {
  border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--r);
  font: inherit; background: var(--bg-card);
}
.runway {
  position: relative; height: 72px;
  background: linear-gradient(90deg, rgba(51,102,255,0.15), rgba(255,91,53,0.2), rgba(32,169,120,0.2));
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 8px;
}
.runway-marks {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; margin-bottom: 20px;
}
.runway-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(255,91,53,0.4);
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  left: 16%;
}
.plan-expand {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; text-align: left;
}
.plan-expand h3 { margin-bottom: 8px; }
.compare-scale { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.compare-row {
  display: grid; grid-template-columns: 1fr repeat(3, 80px); gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem;
}
.compare-row span:first-child { color: var(--muted); }
.compare-scale[hidden] { display: none !important; }

/* about / forms / auth */
.kw-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0; }
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; text-align: left;
}
.form-panel { max-width: 480px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); padding: 10px 12px;
  font: inherit; background: var(--bg-card); border-radius: var(--r);
}
.field textarea { min-height: 110px; resize: vertical; }
.status-list { max-width: 640px; margin: 0 auto; }
.status-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 0.92rem;
}

.auth-page {
  min-height: 100dvh; display: grid; place-items: center;
  background: var(--bg-dark); padding: 32px 16px;
}
.auth-card {
  width: min(100%, 400px); background: var(--bg-card);
  border: 1px solid var(--line); padding: 32px 28px; border-radius: var(--r-lg);
  text-align: center;
}
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-lead { color: var(--muted); font-size: 0.92rem; margin: 8px 0 20px; }
.auth-card .field { text-align: left; }
.auth-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 16px; color: var(--muted); }
.auth-row a { color: var(--orange); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 0.78rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-new { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.auth-new a { color: var(--orange); font-weight: 600; }

.toast-line {
  text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); min-height: 1.4em;
}

@media (max-width: 960px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .letter-hero-layout {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }
  .letter-hero h1 { max-width: 18ch; }
  .hero-letterplane { order: -1; min-height: 360px; }
  .plane-sheet { transform: rotate(0.4deg); min-height: 360px; }
  .plane-signals { left: 0; bottom: -8px; }
  .comeback-stage { grid-template-columns: 1fr; }
  .path-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .workbench { grid-template-columns: 1fr; }
  .runway-inputs { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .poster-nums { grid-template-columns: 1fr; }
  .chessboard { transform: none; grid-template-columns: 80px repeat(5, 1fr); }
  .wb-outputs { grid-template-columns: 1fr; }
  .question-rail { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .question-rail { grid-template-columns: 1fr; }
  .path-band { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .runway-inputs { grid-template-columns: 1fr; }
  .letter-hero-layout { width: calc(100% - 32px); }
  .plane-signals { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 12px; }
  .hero-letterplane { min-height: 0; }
  .plane-sheet { min-height: 340px; transform: none; animation: none; }
  .hero-flow { width: calc(100% - 32px); justify-content: flex-start; overflow-x: auto; }
}
