/* Codewords: night-ops briefing room: ink navy table, paper index cards,
   rubber-stamp reveals. Display face: Special Elite (typewriter, local). */

@font-face {
  font-family: 'Special Elite';
  src: url('fonts/special-elite.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #101823;        /* table surface */
  --ink-2: #18232f;      /* raised panels */
  --ink-3: #22303f;      /* borders on ink */
  --paper: #ede4cf;      /* index card */
  --paper-dim: #d8ccb2;
  --paper-ink: #2b2417;  /* text on paper */
  --red: #c23a2e;
  --red-deep: #8e241b;
  --blue: #2f63b7;
  --blue-deep: #1f4585;
  --neutral: #b3a17c;
  --assassin: #07070a;
  --text: #e8edf4;
  --muted: #8fa1b3;
  --danger: #e06a5e;
  --display: 'Special Elite', 'Courier New', monospace;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --ctl-h: 48px;         /* one height for every single-line control */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, #1b2836 0%, var(--ink) 60%);
  color: var(--text);
  font-family: var(--body);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

#app { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }
#app.wide { max-width: 780px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }

a { color: var(--text); }

/* ---- eyebrow labels: dossier field names ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- brand ---- */
.brand { text-align: center; margin: 28px 0 20px; }
.brand h1 { font-size: 38px; }
.brand h1 .red { color: var(--red); }
.brand h1 .blue { color: #6f9be0; }
.brand .eyebrow { margin-top: 6px; }

/* ---- panels ---- */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}

/* ---- forms: selects share --ctl-h with inputs (fleet rule) ---- */
label { display: block; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%;
  height: var(--ctl-h);
  padding: 0 12px;
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  font-family: var(--body);
  appearance: none;
  -webkit-appearance: none;
}
textarea {
  width: 100%;
  min-height: 200px;
  padding: 10px 12px;
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  font-family: var(--mono);
  text-transform: uppercase;
  resize: vertical;
}
input:focus, select:focus, textarea:focus, button:focus-visible, .card:focus-visible {
  outline: 2px solid #6f9be0;
  outline-offset: 2px;
}
input::placeholder { color: #5c6c7d; }

/* ---- buttons ---- */
.btn {
  display: block;
  width: 100%;
  height: var(--ctl-h);
  border: none;
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 12px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--ink-3);
}
.btn.small { height: 36px; font-size: 14px; width: auto; padding: 0 14px; display: inline-block; }
.btn.red  { background: var(--red);  color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost-red  { background: transparent; border: 1px solid var(--red);  color: #e58b82; }
.btn.ghost-blue { background: transparent; border: 1px solid var(--blue); color: #8db1e8; }

.link-btn {
  background: none; border: none; color: var(--muted);
  font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 10px;
  min-height: 18px;
}
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; letter-spacing: .15em;
  margin: 18px 0 6px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--ink-3); }

/* Social sign-in: both buttons share the Sign In button's exact footprint */
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: var(--ctl-h); margin-top: 12px;
  border-radius: 8px; font-size: 16px; font-weight: 500;
  font-family: var(--body); cursor: pointer;
}
.social-btn:active { transform: translateY(1px); }
.social-btn svg { width: 18px; height: 18px; flex: none; }
.social-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.social-btn.apple  { background: #000; color: #fff; border: 1px solid #333; }

/* ---- receipt / code tape: coded messages off the field printer ---- */
.tape {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(43,36,23,.05) 0, rgba(43,36,23,.05) 1px, transparent 1px, transparent 5px),
    linear-gradient(175deg, #f6efdd 0%, var(--paper) 55%, #e6dbc1 100%);
  color: var(--paper-ink);
  font-family: var(--mono);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
/* tractor-feed punch holes down both edges */
.tape.punched::before, .tape.punched::after {
  content: '';
  position: absolute; top: 4px; bottom: 4px; width: 20px;
  background-image: radial-gradient(circle 3.5px at 50% 50%, var(--ink) 3.4px, rgba(43,36,23,.3) 4px, transparent 4.8px);
  background-size: 20px 16px;
  background-repeat: repeat-y;
  background-position: center;
}
.tape.punched::before { left: 2px; border-right: 1px dashed rgba(43,36,23,.25); }
.tape.punched::after  { right: 2px; border-left: 1px dashed rgba(43,36,23,.25); }

.room-tape {
  font-size: clamp(17px, 4.5vw, 24px); font-weight: 700; letter-spacing: .12em;
  padding: 13px 32px 13px 38px;
  margin: 8px 0 2px;
  transform: rotate(-1.2deg);
  white-space: nowrap;
}

.clue-tape {
  padding: 8px 20px;
  font-size: 19px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-.8deg);
}
.clue-tape .lbl {
  display: block; text-align: center;
  font-size: 10px; font-weight: 400; letter-spacing: .3em; color: #8a7a58;
  margin-bottom: 2px;
}

/* ---- lobby rosters ---- */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.team-col { border-radius: 10px; padding: 12px; border: 1px solid var(--ink-3); background: var(--ink-2); }
.team-col.red  { border-top: 3px solid var(--red); }
.team-col.blue { border-top: 3px solid var(--blue); }
.team-col h3 { font-size: 16px; margin-bottom: 8px; }
.team-col.red h3  { color: #e58b82; }
.team-col.blue h3 { color: #8db1e8; }
.roster { list-style: none; font-size: 14px; }
.roster li { padding: 5px 0; display: flex; align-items: center; gap: 6px; }
.roster .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  border: 1px solid var(--muted); color: var(--muted);
  border-radius: 4px; padding: 1px 5px; text-transform: uppercase;
}
.roster .me { font-weight: 700; }
.unassigned { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---- game header ---- */
.game-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.score { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 20px; font-weight: 700; }
.score .r { color: #e58b82; }
.score .b { color: #8db1e8; }
.score .sep { color: var(--muted); font-size: 14px; }

.turn-banner {
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
  font-family: var(--display); font-size: 16px; text-align: center;
  border: 1px solid var(--ink-3); background: var(--ink-2);
}
.turn-banner.red  { border-color: var(--red);  box-shadow: inset 3px 0 0 var(--red); }
.turn-banner.blue { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }

/* ---- turn timer ---- */
.timer-setup { margin-top: 4px; }
.timer-setup .seg {
  display: flex; gap: 6px; margin: 8px 0 12px;
}
.seg-btn {
  flex: 1; height: 40px; border: 1px solid var(--ink-3); background: var(--ink);
  color: var(--text); font-family: var(--display); font-size: 14px; border-radius: 8px;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.seg-btn:hover { border-color: var(--paper-dim); }
.seg-btn.on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.timer-setup .check {
  display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text);
  cursor: pointer; margin-bottom: 6px;
}
.timer-setup .check.disabled { color: var(--muted); cursor: default; }
.timer-setup .check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }

.countdown-wrap { text-align: center; margin-bottom: 12px; }
.countdown {
  display: inline-block; min-width: 92px; padding: 4px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .04em;
  color: var(--paper); background: var(--ink-2); border: 1px solid var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.countdown.soft { color: var(--muted); }
.countdown.urgent {
  color: #fff; background: var(--red-deep); border-color: var(--red);
  animation: countdown-pulse 1s ease-in-out infinite;
}
.countdown.done { color: #fff; background: var(--red); border-color: var(--red); font-size: 16px; }
@keyframes countdown-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .countdown.urgent { animation: none; } }

.clue-line { text-align: center; margin-bottom: 12px; }

/* ---- the board ---- */
.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.card {
  position: relative;
  aspect-ratio: 5 / 3.4;
  border: none;
  border-radius: 7px;
  background: var(--paper);
  background-image: linear-gradient(175deg, #f4ecd9 0%, var(--paper) 55%, #e2d7bd 100%);
  color: var(--paper-ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 14px);
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: default;
  padding: 3px;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.card.tappable { cursor: pointer; }
.card.tappable:active { transform: scale(.97); }

/* spymaster key hints on unrevealed cards */
.card.hint-red      { box-shadow: inset 0 -4px 0 var(--red),  0 1px 2px rgba(0,0,0,.4); }
.card.hint-blue     { box-shadow: inset 0 -4px 0 var(--blue), 0 1px 2px rgba(0,0,0,.4); }
.card.hint-neutral  { box-shadow: inset 0 -4px 0 var(--neutral), 0 1px 2px rgba(0,0,0,.4); }
.card.hint-assassin { box-shadow: inset 0 0 0 3px var(--assassin), 0 1px 2px rgba(0,0,0,.4); }

/* selected (first tap) */
.card.selected { outline: 3px solid var(--paper); outline-offset: 2px; }

/* the signature: revealed cards take a rotated rubber-stamp mark */
.card.revealed { color: rgba(43,36,23,.35); cursor: default; }
.card .stamp {
  position: absolute; inset: 12%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid;
  border-radius: 6px;
  font-family: var(--display);
  font-size: clamp(8px, 2.4vw, 13px);
  letter-spacing: .18em;
  transform: rotate(-6deg);
  animation: stamp-in .28s cubic-bezier(.2, 1.6, .4, 1);
  pointer-events: none;
}
.card:nth-child(even) .stamp { transform: rotate(5deg); }
.card .stamp.red      { color: var(--red-deep);  border-color: var(--red-deep);  background: rgba(194,58,46,.28); }
.card .stamp.blue     { color: var(--blue-deep); border-color: var(--blue-deep); background: rgba(47,99,183,.28); }
.card .stamp.neutral  { color: #6d5f43; border-color: #6d5f43; background: rgba(179,161,124,.35); }
.card.revealed.was-assassin { background: var(--assassin); background-image: none; }
.card .stamp.assassin { color: #e8edf4; border-color: #e8edf4; background: rgba(255,255,255,.06); }

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-6deg) scale(2.1); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .card .stamp { animation: none; }
}

/* ---- clue form / action bar ---- */
.action-bar { display: flex; gap: 8px; align-items: flex-end; }
.action-bar .grow { flex: 1; }
.action-bar select.num { width: 84px; flex: none; }
.action-bar .btn { margin-top: 0; width: auto; padding: 0 18px; flex: none; }

/* ---- mission log: printed receipt with a torn bottom edge ---- */
.receipt {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(43,36,23,.04) 0, rgba(43,36,23,.04) 1px, transparent 1px, transparent 5px),
    linear-gradient(178deg, #f6efdd 0%, var(--paper) 70%, #eadfc6 100%);
  color: var(--paper-ink);
  border-radius: 2px 2px 0 0;
  padding: 16px 18px 18px;
  margin-bottom: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.receipt::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: conic-gradient(from 135deg at 50% 0, #eadfc6 90deg, transparent 0);
  background-size: 16px 8px;
  background-repeat: repeat-x;
}
.receipt .eyebrow { color: #8a7a58; }

.log { font-size: 13px; font-family: var(--mono); color: #4a4030; }
.log ul { list-style: none; }
.log li { padding: 5px 0; border-bottom: 1px dashed rgba(43,36,23,.25); }
.log li:last-child { border-bottom: none; }
.log .t-red  { color: var(--red-deep); }
.log .t-blue { color: var(--blue-deep); }
.log b { color: var(--paper-ink); font-weight: 700; }

/* ---- game over ---- */
.gameover {
  text-align: center; padding: 26px 18px; border-radius: 10px; margin-bottom: 14px;
  border: 2px solid; background: var(--ink-2);
}
.gameover.red  { border-color: var(--red); }
.gameover.blue { border-color: var(--blue); }
.gameover h2 { font-size: 30px; margin-bottom: 6px; }
.gameover.red h2  { color: #e58b82; }
.gameover.blue h2 { color: #8db1e8; }

/* ---- home lists: name | count/status | actions, columns aligned ---- */
.game-list { list-style: none; }
/* Flex + wrap, not a fixed grid: on phone widths the code + status + action
   buttons exceed the panel, and a grid `1fr` won't shrink below its content,
   so the actions overflowed and clipped. Here they drop to a second line and
   stay right-aligned instead. */
.game-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--ink-3); font-size: 15px;
}
.game-list li > .hint { margin: 0; }
.game-list .code { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.game-list .row-actions { display: flex; gap: 6px; margin-left: auto; }
.game-list li > button { margin-left: auto; }

.topbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.topbar .who { font-size: 13px; color: var(--muted); }

.icon { width: 18px; height: 18px; vertical-align: -3px; }

@media (min-width: 700px) {
  .card { font-size: 15px; }
  .card .stamp { font-size: 14px; }
}

/* ---- confirm modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(7, 10, 14, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: modal-fade .15s ease;
}
.modal {
  width: 100%; max-width: 400px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .6);
  animation: modal-pop .18s cubic-bezier(.2, 1.4, .4, 1);
}
.modal.danger { border-top: 3px solid var(--red); }
.modal-msg {
  font-family: var(--display);
  font-size: 17px; line-height: 1.45;
  margin-bottom: 18px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions .btn { width: auto; padding: 0 18px; margin-top: 0; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { transform: scale(.92); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { animation: none; }
}

/* ---- topic helper chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip.added {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper);
}

/* ---- site footer ---- */
.site-footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 34px;
  text-align: center;
}
.footer-tape {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .08em;
  padding: 6px 16px;
  transform: rotate(-1deg);
  margin-bottom: 10px;
}
.footer-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---- brand logo ---- */
.brand-logo {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 34px; height: 34px; }

/* ---- Wide screens (iPad) ----------------------------------------------------
   The 5x5 board is the whole game and it was pinned at #app.wide{max-width:780}
   with card text capped at 14px, so on an iPad it sat as a small grid in the
   middle of the screen with dead rails and undersized, hard-to-tap cards.

   The board screen (#app.wide, set by game.js) grows with the viewport and the
   card + stamp type scale up with it so the cards stay filled, not tiny text in
   a big tile. The lobby / join / sign-in screens use the default #app and stay
   a narrow column on purpose — only the board wants the room.

   768 = iPad portrait (9.7"=768 ... 11"=834); 1024 = landscape / 12.9". */
@media (min-width: 768px) {
  #app.wide { max-width: 900px; }
  .board .card       { font-size: clamp(14px, 2vw, 20px); }
  .board .card .stamp { font-size: clamp(12px, 1.8vw, 18px); }
}
@media (min-width: 1024px) {
  #app.wide { max-width: 1040px; }
  .board .card       { font-size: clamp(17px, 1.7vw, 23px); }
  .board .card .stamp { font-size: clamp(15px, 1.5vw, 20px); }
}

/* Native shell (contentInset:never): the web owns the top safe area.
   env() is 0 in desktop browsers and the old inset builds, so this is inert
   everywhere except the full-bleed native shell, where it drapes the page
   below the notch. */
body { padding-top: env(safe-area-inset-top); }

/* ─── Marketing landing (logged-out visitors only) ───────────────────────────
   Codewords used to show a bare sign-in form at "/", which told a stranger
   nothing about the game. App.showAuth() now renders this above the sign-in
   panel; signed-in players never see it. */
.land {
  /* #app is capped at 560px for the game UI. The landing needs the full width,
     so break out of it and re-centre at its own max. */
  width: 100vw; max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0 20px;
}
.land > * { max-width: 1080px; margin-inline: auto; }
.land-hero { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center;
  text-align: center; padding: 18px 0 8px; }
.land-hero h1 { font-family: var(--display); font-size: clamp(34px, 7vw, 58px); line-height: 1.02;
  margin: 12px 0 0; letter-spacing: -.01em; }
.land-hero h1 .red { color: var(--red); }
.land-hero h1 .blue { color: #6f9be0; }
.land-hero p.lede { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 16px auto 0; max-width: 40ch; }
/* Hero CTA: the App Store badge leads, the browser is the fallback text link.
   Apple's badge guidelines: 52px tall, clear space of 10% of the height on all
   sides. Padding plus an equal negative margin keeps the row from shifting. */
.land-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 22px; }
.appbadge { display: inline-flex; padding: 5px; margin: -5px; }
.appbadge img { display: block; height: 52px; width: auto; }
.land-web { font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.land-web:hover { color: var(--paper); }
.land-marks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.land-marks span { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--ink-3); border-radius: 999px; padding: 6px 12px; }

/* Phone body: a graphite rail with a highlight rim. A dark bezel around a dark
   app on a dark page leaves the device with no silhouette. Spacing always goes
   on a wrapper, never on .land-rail, or its bezel comes out lopsided. */
.land-rail { background: linear-gradient(150deg,#4a5157 0%,#23272b 38%,#191c1f 62%,#3d4348 100%);
  border-radius: 2.3rem; padding: 6px;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.10); }
.land-rail .scr { border-radius: 1.95rem; overflow: hidden; background: var(--ink); }
.land-rail img { display: block; width: 100%; height: auto; }
.land-phones { position: relative; height: 470px; margin-top: 18px; }
.land-phones .glow { position: absolute; z-index: 0; width: 380px; height: 380px; left: 50%; top: 45%;
  transform: translate(-50%,-50%); filter: blur(10px);
  background: radial-gradient(circle, rgba(194,58,46,.22), transparent 62%); }
.land-phones .back { position: absolute; left: 50%; top: 52px; z-index: 2; width: 198px; transform: translateX(-2%) rotate(6deg); }
.land-phones .front { position: absolute; left: 50%; top: 4px; z-index: 3; width: 228px; transform: translateX(-48%) rotate(-4deg); }

.land-rows { margin-top: 8px; }
.land-row { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  padding: 44px 0; text-align: center; border-top: 1px solid var(--ink-3); }
.land-row h2 { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.08; margin: 12px 0 0; }
.land-row p { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 14px auto 0; max-width: 42ch; }
.land-row .art { display: flex; justify-content: center; }
.land-row .art .land-rail { width: 236px; }
.land-tag { display: inline-flex; align-items: center; gap: .55em; font-family: var(--mono); font-size: 11px;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.land-tag::before { content: ""; width: 7px; height: 7px; background: var(--red); }
.land-tag.blue { color: #6f9be0; } .land-tag.blue::before { background: #6f9be0; }

.land-caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 40px 0 8px;
  border-top: 1px solid var(--ink-3); }
.land-cap { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 12px; padding: 16px 16px; }
.land-cap h3 { font-family: var(--display); font-size: 17px; margin: 0 0 5px; }
.land-cap p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* 768 = fleet iPad breakpoint */
@media (min-width: 769px) {
  .land-hero { grid-template-columns: 1.05fr .95fr; gap: 40px; text-align: left; padding: 30px 0 12px; }
  .land-hero p.lede { margin-left: 0; margin-right: 0; }
  .land-marks { justify-content: flex-start; }
  .land-phones { height: 540px; margin-top: 0; }
  .land-phones .back { width: 214px; } .land-phones .front { width: 248px; }
  .land-row { grid-template-columns: 1fr 1fr; gap: 48px; padding: 60px 0; text-align: left; }
  .land-row.flip .copy { order: 2; } .land-row.flip .art { order: 1; }
  .land-row p { margin-left: 0; margin-right: 0; }
  .land-row .art .land-rail { width: 252px; }
  .land-caps { grid-template-columns: repeat(4, 1fr); }
}


/* ── Landing sticky jump bar (fleet pattern) ───────────────────────────── */
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.land [id], #signin{scroll-margin-top:64px}
.land-topbar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:18px;
  padding:12px 18px;background:rgba(16,24,35,.88);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(237,228,207,.14)}
.tb-brand{color:var(--paper);text-decoration:none;font-weight:700;letter-spacing:.18em;font-size:13.5px}
.tb-links{display:flex;gap:20px;margin-left:auto}
.tb-links a{color:var(--muted);text-decoration:none;font-size:13.5px;letter-spacing:.05em;text-transform:uppercase}
.tb-links a:hover{color:var(--paper)}
@media(max-width:640px){.tb-links{gap:12px}.tb-links a{font-size:11.5px}}
