@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: #222;
  --line-2: #333;
  --text: #f2f0eb;
  --muted: #8f8c85;
  --faint: #5d5b56;
  --accent: #ff4d94;
  --accent-ink: #0b0b0b;
  --accent-dim: rgba(255, 77, 148, 0.1);
  --ok: #7bd88f;
  --warn: #f5b84a;
  --danger: #ff5a4f;
  --r: 4px;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--danger); }
.label {
  font: 500 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand .mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  flex: none;
}
.tag {
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { border-color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--text); border-color: var(--text); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--bg-3); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn svg { width: 15px; height: 15px; }

.field { display: grid; gap: 7px; }
.field > span { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg);
  outline: none;
  transition: border-color 0.12s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); }
select.input {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8c85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
}
.input-group { display: flex; }
.input-group .input { border-radius: var(--r) 0 0 var(--r); min-width: 0; }
.input-group .suffix {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-left: 0;
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--bg-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.error {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--danger);
  background: rgba(255, 90, 79, 0.08);
  color: #ff8f86;
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.pill-dot { width: 7px; height: 7px; background: var(--accent); }

/* ---------- auth pages ---------- */
.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-card { width: 100%; max-width: 400px; padding: 32px; }
.auth-card h1 {
  margin: 32px 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.auth-card > p.muted, .auth-card form > p.muted, .auth-card > div > p.muted { margin: 0 0 24px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .btn:not(.sm) { height: 46px; }
.auth-card .pill { margin-top: 32px; justify-self: start; }
.auth-card .pill + h1 { margin-top: 12px; }
.auth-foot { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.auth-foot a { color: var(--muted); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topbar .spacer { flex: 1; }
.addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  font: 500 13px var(--mono);
}
.addr-chip:hover { border-color: var(--accent); }
.addr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-chip svg { width: 14px; height: 14px; color: var(--muted); flex: none; }

/* ---------- inbox ---------- */
body.inbox-page { display: flex; flex-direction: column; height: 100%; }
.expiry {
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 184, 74, 0.08);
  color: var(--warn);
  font-size: 13px;
  text-align: center;
}
.mail { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; flex: 1; min-height: 0; }
.list { border-right: 1px solid var(--line); overflow-y: auto; }
.list-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 2px 0 0 transparent;
}
.item:hover { background: var(--bg-2); }
.item.active { background: var(--bg-3); box-shadow: inset 2px 0 0 var(--accent); }
.item-top { display: flex; align-items: baseline; gap: 8px; }
.item-from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.item.unread .item-from { font-weight: 700; }
.item.unread .item-from::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--accent);
  vertical-align: 2px;
}
.item-time { font: 12px var(--mono); color: var(--faint); flex: none; }
.item-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.item-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.code-badge {
  justify-self: start;
  margin-top: 6px;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
}

.reader { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.reader-head { padding: 22px 28px 18px; border-bottom: 1px solid var(--line); }
.reader-head h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.reader-meta strong { color: var(--text); font-weight: 600; }
.reader-meta > span:last-child { font-family: var(--mono); font-size: 13px; }
.reader-back { display: none; margin: -6px 0 10px -10px; }
.code-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
.code-box small { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.code-box .code { font: 600 24px var(--mono); letter-spacing: 0.16em; }
.code-box .btn { margin-left: auto; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.attachments span { font: 12px var(--mono); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); }
.images-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 28px 0;
  padding: 7px 7px 7px 13px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--muted);
}
.images-bar .btn { margin-left: auto; flex: none; }
.reader-body { flex: 1; min-height: 0; padding: 14px 28px 28px; display: flex; }
.reader-body iframe { flex: 1; width: 100%; border: 0; border-radius: var(--r); background: #fff; }
.reader-body pre {
  flex: 1;
  margin: 0;
  padding: 20px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  font: 14px/1.6 var(--sans);
}

.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  height: 100%;
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg { width: 40px; height: 40px; color: var(--faint); }
.empty h3 { margin: 4px 0 0; color: var(--text); font-size: 17px; font-weight: 700; }
.empty p { margin: 0; max-width: 320px; font-size: 14px; }

@media (max-width: 800px) {
  .topbar { padding: 0 14px; }
  .inbox-page .topbar .brand .word { display: none; }
  .mail { grid-template-columns: 1fr; }
  .mail .reader { display: none; }
  .mail.show-reader .list { display: none; }
  .mail.show-reader .reader { display: flex; }
  .reader-head { padding: 16px 16px 14px; }
  .reader-body { padding: 12px 16px 16px; }
  .images-bar { margin: 12px 16px 0; }
  .reader-back { display: inline-flex; }
}

/* ---------- invite page ---------- */
.join-loading { margin: 32px 0 0; }
#invalid h1, #done h1 { margin-top: 32px; }
#done .result { margin: 0 0 16px; }
#done > .btn { width: 100%; }
.name-status { margin: -8px 0 0; min-height: 20px; font: 12px var(--mono); color: var(--muted); }
.name-status.ok { color: var(--ok); }
.name-status.bad { color: #ff8f86; }

/* ---------- result box (admin + invite) ---------- */
.result {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  display: grid;
  gap: 12px;
}
.result-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.result-row small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.result-row .mono { font-size: 15px; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-warn { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; display: grid; gap: 28px; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; font-stretch: 112%; }
.panel > p.muted { margin: 0 0 20px; font-size: 14px; }
.stack-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.stack-form .btn { height: 44px; }
.invites { display: grid; gap: 6px; margin-top: 20px; }
.invites:empty { display: none; }
.invites-head { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.invite {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.invite.done { opacity: 0.55; }
.invite-main { flex: 1; min-width: 0; }
.invite-note { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 12px var(--mono); color: var(--muted); }

.list-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.list-tools h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 800; font-stretch: 112%; }
.list-tools .input { max-width: 260px; height: 36px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--text); color: var(--bg); }
.inbox-rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.inbox-rows > .empty { border: 0; }
.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-2);
}
.inbox-row + .inbox-row { border-top: 1px solid var(--line); }
.addr-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-row .addr { font: 500 14px var(--mono); overflow-wrap: anywhere; cursor: pointer; }
.inbox-row .addr:hover { color: var(--accent); }
.inbox-row .stats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.inbox-row .stats .new { color: var(--accent); font-weight: 600; }
.inbox-row .note {
  width: 100%;
  margin-top: 8px;
  height: 30px;
  padding: 0 9px;
  font-size: 13px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
  outline: none;
}
.inbox-row .note:focus { border-color: var(--accent); }
.inbox-row .note::placeholder { color: var(--faint); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

@media (max-width: 900px) { .panels { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .inbox-row { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .list-tools { flex-wrap: wrap; }
  .list-tools .input { max-width: none; }
  .result-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- toast & dialog ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 12px);
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--bg);
  font: 500 13px var(--mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog {
  width: min(400px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
dialog p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
dialog .btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- home ---------- */
.home { --pad: 24px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; border-bottom: 1px solid var(--line); }
.nav .spacer { flex: 1; }
.nav-link { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--text); }

.hero { padding: 56px 0 0; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.display {
  margin: 0;
  /* "GROOMMAIL" at this width/weight is ~8.2em wide: fill the column exactly */
  font-size: min(calc((100vw - 2 * var(--pad)) / 8.3), 143px);
  line-height: 0.82;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 32px;
  align-items: end;
  margin-top: 40px;
  padding: 28px 0 64px;
  border-top: 1px solid var(--line);
}
.tagline {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
}
.tagline em { font-style: normal; color: var(--accent); }
.hero-text { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.hero-text strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 10px; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 280px 1fr; gap: 32px; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }
.section-head p { margin: 0; max-width: 520px; color: var(--muted); font-size: 16px; }

.spec { width: 100%; border-collapse: collapse; }
.spec tr { border-top: 1px solid var(--line); }
.spec tr:last-child { border-bottom: 1px solid var(--line); }
.spec tr:hover { background: var(--bg-2); }
.spec th, .spec td { padding: 16px 0; text-align: left; vertical-align: baseline; }
.spec th { width: 280px; padding-right: 32px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.spec td:nth-child(2) { font-size: 18px; font-weight: 600; padding-right: 24px; }
.spec td:nth-child(3) { color: var(--muted); font-size: 14px; text-align: right; }
.spec .yes::before, .spec .no::before { display: inline-block; width: 22px; font-family: var(--mono); }
.spec .yes::before { content: '+'; color: var(--accent); }
.spec .no::before { content: '\2013'; color: var(--faint); }
.spec .price { font-size: 26px; font-weight: 800; font-stretch: 112%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .num { font: 500 13px var(--mono); color: var(--accent); }
.steps h3 { margin: 28px 0 8px; font-size: 22px; font-weight: 800; font-stretch: 112%; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.contact:hover { border-color: var(--accent); background: var(--accent-dim); }
.contact svg { width: 26px; height: 26px; flex: none; }
.contact div { flex: 1; min-width: 0; }
.contact small { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact strong { display: block; font: 600 18px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.contact .go { font: 500 12px var(--mono); color: var(--muted); }
.contact:hover .go { color: var(--accent); }

.redeem { display: flex; gap: 10px; margin-top: 12px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); align-items: center; flex-wrap: wrap; }
.redeem > span { font-size: 15px; color: var(--muted); margin-right: auto; }
.redeem .input { width: 340px; max-width: 100%; height: 40px; }
.redeem .error { flex-basis: 100%; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .spec th { width: 200px; }
  .spec td:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .home { --pad: 16px; }
  .hero { padding-top: 36px; }
  .hero-meta .label:last-child { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; padding-bottom: 48px; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 52px 0; }
  .spec th { width: auto; padding-right: 12px; font-size: 11px; }
  .spec td:nth-child(2) { font-size: 16px; padding-right: 0; }
  .spec .yes::before, .spec .no::before { display: none; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 20px 0 24px; border-left: 0; border-top: 1px solid var(--line); }
  .steps h3 { margin-top: 12px; }
  .contact-row { grid-template-columns: 1fr; margin-top: 32px; }
  .redeem .input { width: 100%; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }
