/* QuickSolver — marketing landing page. Self-contained: does not depend on
 * core.css, so editing the app shell never risks this page. */

:root {
  --bg: #0a1119; --bg-2: #0e1621;
  --panel: #131d2b; --panel-2: #1a2637; --panel-3: #223047;
  --line: #223044; --line-2: #31445e;
  --text: #e8eff8; --muted: #93a4bb; --dim: #64778f;
  --brand: #29b6ff; --brand-2: #7c5cff; --gold: #f5b942;
  --fold: #4a90d9; --call: #37b95c; --raise: #e8543a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.hidden { display: none !important; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(41, 182, 255, .10), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(124, 92, 255, .10), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: #7fd4ff; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace; }

/* ── Nav ─────────────────────────────────────────────────── */
.lnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 17, 25, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; }
.mark {
  position: relative; overflow: hidden;
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(155deg, #3fc6ff 0%, #2f9bff 55%, #7c5cff 100%);
  color: #051019;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 6px 16px rgba(47, 155, 255, .28);
}
/* A soft top sheen, not a corner label — glossy and quiet rather than a
   gimmick riding on top of the mark. */
.mark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 55%);
}
.mark-sym { font-size: 15px; font-weight: 900; letter-spacing: -.4px; line-height: 1; }
.brand-name { font-size: 16px; letter-spacing: .1px; font-weight: 500; }
.brand-name b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.navlink { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.navlink:hover { color: var(--text); }
button.navlink { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
span.navlink { cursor: default; }
@media (max-width: 700px) {
  .lnav { padding: 14px 16px; }
  .navlink:not(.always) { display: none; }
}

/* ── Account menu: email trigger + dropdown, logout lives inside it ─── */
.account-menu { position: relative; }
.account-trigger {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--muted); border-radius: 6px; transition: color .15s ease;
}
.account-trigger:hover { color: var(--text); }
.account-caret { font-size: 9px; opacity: .7; transform: translateY(1px); }
.account-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 45;
  min-width: 150px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}
.account-item {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 7px;
  padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.account-item:hover { background: var(--bg-2); color: var(--text); }

/* ── Buttons / pills ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0;
  background: linear-gradient(180deg, var(--brand), #0d8ed1);
  color: #041824; font-weight: 900; font-size: 15px; letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(41, 182, 255, .28);
}
.btn-primary:hover { filter: brightness(1.05); color: #041824; }
.hero-cta-big {
  padding: 19px 36px; border-radius: 14px; font-size: 19px;
  box-shadow: 0 12px 36px rgba(41, 182, 255, .42);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--muted); font-weight: 700; font-size: 14px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(41, 182, 255, .10); border: 1px solid rgba(41, 182, 255, .35);
  color: #7fd4ff; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase;
}
.pill.violet { background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .35); color: #c7b9ff; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); display: inline-block; }

/* ── Sections ────────────────────────────────────────────── */
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -.8px; line-height: 1.12; }
.accent { color: var(--brand); }
.eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--brand); text-transform: uppercase; }
.soon-tag {
  display: inline-flex; align-items: center; margin-left: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(240, 160, 46, .12); border: 1px solid rgba(240, 160, 46, .4);
  color: #f0a02e; font-size: 10px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; vertical-align: middle;
}
.swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.bracket { position: relative; margin: 0 24px; height: 1px; background: var(--line); }
.bracket i { position: absolute; top: -6px; width: 12px; height: 12px; border-top: 1.5px solid var(--brand); opacity: .55; display: block; }
.bracket i.l { left: 0; border-left: 1.5px solid var(--brand); }
.bracket i.r { right: 0; border-right: 1.5px solid var(--brand); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { display: flex; align-items: center; gap: 56px; padding: 88px 0; flex-wrap: wrap; }
.hero-copy { flex: 1 1 480px; min-width: 300px; }
.hero-copy h1 { margin: 22px 0 18px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 900; letter-spacing: -1.4px; }
.hero-copy p.lede { margin: 0 0 30px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 480px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-fine { margin: 22px 0 0; font-size: 12.5px; color: var(--dim); }
.hero-visual { flex: 1 1 400px; min-width: 300px; display: flex; justify-content: center; }

.verdict {
  width: 100%; max-width: 380px; position: relative; border-radius: 18px; padding: 22px 22px 20px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-left: 5px solid var(--raise); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transition: border-left-color .4s ease;
  animation: verdict-float 4s ease-in-out infinite;
}
@keyframes verdict-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.verdict-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.verdict-act { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: var(--raise); transition: color .4s ease; }
.verdict-freq { font-size: 12px; font-weight: 800; color: var(--muted); }
.verdict-sub { font-size: 12px; color: var(--dim); margin-bottom: 16px; }
.mixbar { display: flex; gap: 3px; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.mixbar > div { transition: flex-basis .5s ease; }
.mix-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--muted); }
.mix-legend span { display: flex; align-items: center; gap: 5px; }
.mix-legend b { color: var(--text); }

/* ── Quota gate: the same popup the app shows once the free solve is
   spent, reproduced here so a visitor already out for today never has to
   land on a Flash shell that can only refuse them — this page stays put
   underneath, blurred, and the register form is right here instead. ───── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 13, .28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: modal-in .18s ease-out;
}
.modal-backdrop.hidden { display: none; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.quota-card {
  position: relative;
  display: flex; width: 100%; max-width: 780px; overflow: hidden;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  max-height: calc(100vh - 40px); overflow-y: auto;
  animation: quota-in .35s ease-out;
}
@keyframes quota-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.quota-dismiss {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 18px; line-height: 1;
}
.quota-dismiss:hover { color: var(--text); border-color: var(--brand); }
.quota-visual {
  flex: 1 1 320px; min-width: 0; display: none;
  align-items: center; justify-content: center; padding: 36px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(41, 182, 255, .14), transparent 60%),
    var(--bg-2);
}
.quota-form-wrap { flex: 1 1 340px; min-width: 0; padding: 40px; }
.quota-icon { font-size: 30px; margin-bottom: 8px; }
.quota-title { font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.quota-body { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 22px; }
.quota-alt { text-align: center; font-size: 12.5px; color: var(--dim); margin: 14px 0 0; }
.linklike {
  background: none; border: 0; padding: 0; color: var(--brand);
  font-size: inherit; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
@media (min-width: 640px) { .quota-visual { display: flex; } }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.afield { display: flex; flex-direction: column; gap: 6px; }
.afield span { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--dim); }
.afield input {
  min-height: 52px; padding: 0 14px; font-size: 16px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--text); font: inherit;
}
.afield input:focus { outline: none; border-color: var(--brand); }
.afield-check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--muted); line-height: 1.4;
}
.afield-check input { margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.auth-error {
  margin: 0; padding: 10px 12px;
  background: rgba(232, 84, 58, .1); border: 1px solid rgba(232, 84, 58, .35);
  border-left-width: 3px; border-radius: 8px;
  color: #ffc4ba; font-size: 13px;
}
.quota-form-wrap .btn-primary {
  border: 0; width: 100%; justify-content: center; min-height: 56px; font-size: 17px; cursor: pointer;
}

/* ── Modes ───────────────────────────────────────────────── */
.modes-intro { padding: 88px 0 56px; max-width: 900px; margin: 0 auto; text-align: center; }
.modes-intro p.sub { margin: 16px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.mode-row { display: flex; align-items: center; gap: 64px; padding: 40px 0; flex-wrap: wrap; }
.mode-row.rev { flex-direction: row-reverse; }
.mode-copy { flex: 1 1 440px; min-width: 300px; }
.mode-copy h3 { margin: 0 0 14px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; letter-spacing: -.6px; }
.mode-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 420px; }
.mode-visual { flex: 1 1 440px; min-width: 300px; display: flex; justify-content: center; }
.mock-card {
  position: relative;
  width: 100%; max-width: 400px; border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  overflow: hidden;
}

/* Flash mock */
.felt-round {
  position: relative; width: 250px; height: 250px; margin: 0 auto;
  border-radius: 50%; background: radial-gradient(120% 120% at 50% 30%, #1d3a4d 0%, #142737 45%, #0d1b27 100%);
  border: 2px solid #24405a;
}
.fseat {
  position: absolute; padding: 6px 0; width: 72px; border-radius: 10px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; color: var(--muted);
  transition: border-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.fseat.is-hero-seat { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(41, 182, 255, .3); color: var(--text); width: 80px; padding: 7px 0; }
.fdealer {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: #f2f6fb; color: #10161f; font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* Solver mock */
.felt-oval {
  position: relative; width: 100%; height: 150px; margin-bottom: 16px; border-radius: 50% / 40%;
  background: radial-gradient(120% 140% at 50% 30%, #1d3a4d 0%, #142737 45%, #0d1b27 100%); border: 2px solid #24405a;
}
.oseat { position: absolute; font-size: 11px; font-weight: 800; color: var(--muted); }
.oseat.is-hero-seat { color: var(--brand); font-weight: 900; }
.chiprow { display: flex; gap: 7px; }
.chip-mock {
  flex: 1; padding: 8px 0; text-align: center; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.chip-mock.on { background: rgba(41, 182, 255, .14); border-color: var(--brand); color: #7fd4ff; font-weight: 800; }

/* Study mock */
.rangegrid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.rangegrid div { height: 14px; border-radius: 2px; transition: transform .3s ease, box-shadow .3s ease; }

/* Train mock */
.tcard {
  width: 38px; height: 52px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; background: linear-gradient(170deg, #ffffff, #dfe8f3);
}

/* ── Mock demo animations: each mock highlights the one element its copy is
   about, in an 8s loop — a plain background/border/opacity change on the
   real element, not a synthetic cursor moving to a hardcoded pixel spot.
   That was the fragile part: coordinates tuned for the desktop-width card
   landed nowhere near the target once the card resized for mobile. A
   highlight on the element itself scales correctly at any width, on any
   mock, with no per-breakpoint math. Everything still shares the same
   0%/30%/36%/85%/95%/100% timeline so the whole row of mocks stays in
   step. ─────────────────────────────────────────────────────────────── */

/* Flash mock: the CO seat lights up. */
#fm-co-seat { animation: fm-seat-highlight 8s ease-in-out infinite; }
@keyframes fm-seat-highlight {
  0%, 30%, 95%, 100% { border-color: var(--line-2); box-shadow: none; color: var(--muted); }
  36%, 85%           { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41, 182, 255, .25); color: var(--text); }
}

/* Solver mock: the pick moves off the 75% chip and onto Jam instead. */
#sv-chip-mid { animation: sv-chip-mid-fade 8s ease-in-out infinite; }
@keyframes sv-chip-mid-fade {
  0%, 30%, 95%, 100% { background: rgba(41, 182, 255, .14); border-color: var(--brand); color: #7fd4ff; font-weight: 800; }
  36%, 85%           { background: var(--panel-2); border-color: var(--line-2); color: var(--muted); font-weight: 700; }
}
#sv-chip-jam { animation: sv-chip-jam-highlight 8s ease-in-out infinite; }
@keyframes sv-chip-jam-highlight {
  0%, 30%, 95%, 100% { background: var(--panel-2); border-color: var(--line-2); color: var(--muted); font-weight: 700; }
  36%, 85%           { background: rgba(41, 182, 255, .14); border-color: var(--brand); color: #7fd4ff; font-weight: 800; }
}

/* Study mock: one hand in the grid pulses. */
#sm-cell { position: relative; z-index: 2; transform-origin: center; animation: sm-cell-pulse 8s ease-in-out infinite; }
@keyframes sm-cell-pulse {
  0%, 30%, 95%, 100% { transform: scale(1); box-shadow: none; }
  36%, 85%           { transform: scale(1.4); box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(41, 182, 255, .7); }
}

/* Train mock: the pick moves from Raise to Fold, the feedback swaps with it. */
#tm-btn-raise { animation: tm-raise-fade 8s ease-in-out infinite; }
@keyframes tm-raise-fade {
  0%, 30%, 95%, 100% { background: rgba(232, 84, 58, .14); border-color: var(--raise); color: #ff9c8b; }
  36%, 85%           { background: var(--panel-2); border-color: var(--line-2); color: var(--muted); }
}
#tm-btn-fold { animation: tm-fold-highlight 8s ease-in-out infinite; }
@keyframes tm-fold-highlight {
  0%, 30%, 95%, 100% { background: var(--panel-2); border-color: var(--line-2); color: var(--muted); }
  36%, 85%           { background: rgba(74, 144, 217, .14); border-color: var(--fold); color: #9cc4f0; }
}
#tm-fb-raise { transition: opacity .3s ease; animation: tm-fb-raise-fade 8s ease-in-out infinite; }
@keyframes tm-fb-raise-fade {
  0%, 30%, 95%, 100% { opacity: 1; }
  36%, 85%           { opacity: 0; }
}
#tm-fb-fold { transition: opacity .3s ease; animation: tm-fb-fold-fade 8s ease-in-out infinite; }
@keyframes tm-fb-fold-fade {
  0%, 30%, 95%, 100% { opacity: 0; }
  36%, 85%           { opacity: 1; }
}

/* ── Mobile app mock: a phone frame with a tap animating on it ────────── */
.phone-mock {
  width: 230px; margin: 0 auto; padding: 16px 11px 22px;
  border-radius: 38px; background: linear-gradient(160deg, #1b2534, #0d1420);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone-notch { width: 64px; height: 7px; margin: 0 auto 12px; border-radius: 4px; background: #05080d; }
.phone-screen {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 16px 14px 18px; display: flex; flex-direction: column; align-items: center;
}
.phone-topbar {
  display: flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 16px;
}
.phone-felt {
  position: relative; width: 176px; height: 176px; margin: 0 auto;
  border-radius: 50%; background: radial-gradient(120% 120% at 50% 30%, #1d3a4d 0%, #142737 45%, #0d1b27 100%);
  border: 2px solid #24405a;
}
.phone-felt .fseat {
  position: absolute; padding: 4px 0; width: 48px; border-radius: 8px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line-2); font-size: 9px; font-weight: 800; color: var(--muted);
  transition: border-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.phone-felt .fseat.is-hero-seat { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(41, 182, 255, .3); color: var(--text); width: 54px; }
.phone-felt .fdealer { width: 12px; height: 12px; font-size: 6.5px; }
.phone-cta {
  margin-top: 16px; width: 100%; padding: 11px 0; text-align: center; border-radius: 12px;
  font-size: 13px; font-weight: 800; color: #04121d;
  background: linear-gradient(180deg, var(--brand), #0d8ed1);
}
#pm-co-seat { animation: fm-seat-highlight 8s ease-in-out infinite; }

/* ── Why trust it ────────────────────────────────────────── */
.trust { padding: 88px 0; }
.trust-lede { max-width: 640px; margin: 0 0 40px; }
.trust-lede p { margin: 16px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-step { flex: 1 1 220px; min-width: 200px; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.flow-step:first-child { border-radius: 14px 0 0 14px; }
.flow-step.final { background: var(--panel-2); border-color: var(--brand); border-left: none; border-radius: 0 14px 14px 0; }
.flow-tag { font-size: 10.5px; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; }
.flow-step.final .flow-tag { color: var(--gold); }
.flow-title { font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
.flow-sub { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.flow-arrow { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Infra strip ─────────────────────────────────────────── */
.infra { padding: 46px 0; text-align: center; }
.infra-label { margin: 0 0 26px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
.infra-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.infra-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
/* Real marks, held to one muted tone so four very different brand palettes
 * (AMD black, NVIDIA green, AWS orange/navy, Hetzner red) read as one calm
 * row instead of competing for attention — brightening only on hover. */
.infra-logo {
  height: 22px; width: auto; max-width: 100px;
  filter: brightness(0) invert(58%);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}
.infra-logo:hover { filter: brightness(0) invert(85%); opacity: 1; }

/* ── Beta callout ────────────────────────────────────────── */
.beta-wrap { padding: 30px 0 90px; }
.beta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(41, 182, 255, .10), rgba(124, 92, 255, .08)), var(--panel);
  border: 1px solid var(--line-2);
}
.beta-panel h2 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; letter-spacing: -.5px; }
.beta-panel p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 460px; }

/* ── Footer ──────────────────────────────────────────────── */
.lfooter { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.lfooter .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lfooter-brand { display: flex; align-items: center; gap: 9px; }
.lfooter-brand .mark { width: 24px; height: 24px; border-radius: 7px; }
.lfooter-brand .mark-sym { font-size: 11px; }
.mark-mini { width: 16px; height: 16px; border-radius: 5px; }
.mark-mini .mark-sym { font-size: 8px; }
.lfooter-brand span.copy { font-size: 12.5px; color: var(--dim); }
.lfooter-links { display: flex; align-items: center; gap: 22px; }

@media (max-width: 860px) {
  .mode-row, .mode-row.rev { flex-direction: column; }
  .mode-copy, .mode-visual { max-width: 440px; }
}

/* Every section below was spaced for a desktop-height viewport — 88-90px of
 * padding either side reads as a beat of breathing room on a 900px-tall
 * screen, but on a phone it is most of a scroll. Shrink the vertical rhythm
 * so scrolling the page covers content, not gaps between it. */
@media (max-width: 700px) {
  .hero { padding: 44px 0; gap: 32px; }
  .hero-copy h1 { margin: 16px 0 12px; }
  .hero-copy p.lede { margin-bottom: 22px; }
  .modes-intro { padding: 44px 0 26px; }
  .mode-row { padding: 22px 0; gap: 26px; }
  .trust { padding: 44px 0; }
  .trust-lede { margin-bottom: 28px; }
  .infra { padding: 28px 0; }
  .beta-wrap { padding: 14px 0 44px; }
  .beta-panel { padding: 26px 22px; gap: 20px; }
  .lfooter { padding: 24px 0 30px; }
  /* Two dividers carry a desktop-sized inline margin (64px/40px) — beats
     the section padding above by cascade order alone, so it needs !important
     to actually shrink on a phone. */
  .bracket { margin-top: 24px !important; }
}

/* A deliberately un-pretty affordance — dashed and orange so it reads as
 * scaffolding, not a real feature. Only ever shown when the server confirms
 * this is localhost (see /api/me's dev_mode). */
.dev-login {
  /* Below the landing nav, not on top of it — at top:10 this sat right over
     the real "Log in" / "Register free" buttons instead of clear of them. */
  position: fixed; top: 80px; right: 10px; z-index: 50;
  padding: 6px 11px; border-radius: 7px;
  background: rgba(240, 160, 46, .1); border: 1px dashed rgba(240, 160, 46, .5);
  color: #f0a02e; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.dev-login:hover { background: rgba(240, 160, 46, .18); }
.dev-login.hidden { display: none; }
.dev-login.dev-mode { top: 114px; }
.dev-login.dev-mode.on {
  background: rgba(240, 160, 46, .28); border-style: solid;
  color: #fff2df;
}
.dev-login.dev-reset { top: 148px; }
