/* ============================================================
   AirMail24 — shared design system
   Dark · technical · privacy-engineered
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces — cool near-black */
  --bg:        #0a0c11;
  --bg-1:      #0d1017;
  --bg-2:      #11151f;
  --bg-3:      #161b27;
  --panel:     #10141d;

  /* lines */
  --line:        rgba(255,255,255,0.075);
  --line-2:      rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.18);

  /* text */
  --text:      #e8ebf2;
  --text-dim:  #9aa4b6;
  --text-faint:#646e80;

  /* accents — same L/C, varied hue */
  --accent:        oklch(0.68 0.14 256);
  --accent-bright: oklch(0.78 0.13 256);
  --accent-2:      oklch(0.74 0.11 196);
  --accent-soft:   color-mix(in oklch, var(--accent) 16%, transparent);
  --accent-line:   color-mix(in oklch, var(--accent) 38%, transparent);

  --ok:   oklch(0.74 0.13 155);
  --warn: oklch(0.78 0.13 75);

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -28px rgba(0,0,0,0.8);
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 28px -18px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ambient grid + glow backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% -8%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, color-mix(in oklch, var(--accent-2) 9%, transparent), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: color-mix(in oklch, var(--accent) 40%, transparent); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #06101f;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 60%, transparent),
              0 14px 34px -14px var(--accent);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--accent-bright), 0 18px 40px -12px var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 88%, transparent); }
.nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { font-weight: 700; }
.brand .num { color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-right .link { font-size: 15px; font-weight: 500; color: var(--text-dim); padding: 9px 10px; white-space: nowrap; }
.nav-right .link:hover { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-right .link { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2);
    background: rgba(255,255,255,0.03); cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--text); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--text); }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: block; }
}
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 12px 0 18px;
}
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { padding: 13px 12px; border-radius: 9px; font-weight: 500; color: var(--text-dim); }
.mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.mobile-menu .row { display: flex; gap: 10px; margin-top: 12px; }
.mobile-menu .row .btn { flex: 1; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ---------- hero ---------- */
.hero { padding: 92px 0 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lede { color: var(--text-dim); font-size: 19px; max-width: 30em; margin-top: 22px; }
.hero-cta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 14.5px; }
.hero-meta .item svg { color: var(--accent-2); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- generic card ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- mock inbox (hero visual) ---------- */
.mock {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3140; }
.mock-bar .addr { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 7px; }
.mock-bar .addr svg { color: var(--accent-2); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.mock-side .compose { background: var(--accent); color: #06101f; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: 9px; border-radius: 9px; text-align: center; margin-bottom: 10px; }
.mock-side .navi { font-size: 13.5px; color: var(--text-dim); padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; }
.mock-side .navi.on { background: rgba(255,255,255,0.06); color: var(--text); }
.mock-side .navi .b { font-family: var(--font-mono); font-size: 11px; color: var(--accent-bright); }
.mock-list { padding: 6px 0; }
.mock-mail { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: default; }
.mock-mail:hover { background: rgba(255,255,255,0.022); }
.mock-mail .from { font-weight: 600; font-size: 14px; }
.mock-mail .time { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.mock-mail .subj { grid-column: 1 / -1; font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-mail.unread .from::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background: var(--accent); margin-right:8px; vertical-align: middle; }
.mock-mail .lock { color: var(--accent-2); }

/* ---------- section headings ---------- */
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 16px; }
.sec-head p { color: var(--text-dim); font-size: 18px; margin-top: 16px; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feat-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-dim); font-size: 15px; margin-top: 9px; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats .s { background: var(--bg-1); padding: 28px 24px; }
.stats .s .n { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.stats .s .n .u { color: var(--accent-bright); }
.stats .s .l { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* ---------- privacy split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.checklist li { list-style: none; display: flex; gap: 13px; align-items: flex-start; }
.checklist .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; color: var(--accent-bright); margin-top: 2px; }
.checklist .tx b { font-weight: 600; }
.checklist .tx span { color: var(--text-dim); font-size: 14.5px; display: block; }
ul.checklist { padding: 0; margin-top: 26px; }

/* ---------- key panel (encryption visual) ---------- */
.keypanel { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-2); background: radial-gradient(120% 120% at 80% 0%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.keyrow { font-family: var(--font-mono); font-size: 13px; display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.keyrow:last-child { border-bottom: none; }
.keyrow .tag { color: var(--text-faint); width: 92px; flex: 0 0 auto; }
.keyrow .val { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keyrow .val.ok { color: var(--ok); }
.keyrow .pill { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--accent-line); color: var(--accent-bright); background: var(--accent-soft); }

/* ---------- pricing ---------- */
.pricing-controls { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); }
.toggle button { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-dim); padding: 9px 18px; border: none; background: none; border-radius: 9px; cursor: pointer; transition: color .15s, background .15s; white-space: nowrap; }
.toggle button.on { background: rgba(255,255,255,0.07); color: var(--text); }
.toggle button .save { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-bright); margin-left: 7px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; align-items: start; }
@media (max-width: 1040px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); display: flex; flex-direction: column; position: relative; }
.plan.feat { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 30px 70px -40px var(--accent); }
.plan .badge { position: absolute; top: -11px; left: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: #06101f; padding: 4px 11px; border-radius: 20px; font-weight: 600; }
.plan .pname { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.plan .pdesc { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; min-height: 38px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 4px; }
.plan .price .cur { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text-dim); align-self: flex-start; margin-top: 6px; }
.plan .price .amt { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; }
.plan .price .per { color: var(--text-faint); font-size: 13px; font-family: var(--font-mono); }
.plan .billed { color: var(--text-faint); font-size: 12.5px; font-family: var(--font-mono); min-height: 18px; }
.plan .btn { margin: 20px 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); align-items: flex-start; }
.plan ul li svg { flex: 0 0 auto; color: var(--accent-2); margin-top: 3px; }
.plan ul li b { color: var(--text); font-weight: 600; }

/* compare table */
.compare { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.compare th, .compare td { text-align: center; padding: 15px 14px; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.compare td { color: var(--text-dim); }
.compare .yes { color: var(--accent-2); }
.compare .no { color: var(--text-faint); }
.compare tbody tr:hover { background: rgba(255,255,255,0.018); }
.compare .grouprow td { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding-top: 26px; border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 56px; text-align: center; background: radial-gradient(120% 130% at 50% 0%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta-band p { color: var(--text-dim); font-size: 18px; margin: 16px auto 30px; max-width: 34em; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.field label .opt { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--text-faint); }
.field .hint { font-size: 12.5px; color: var(--text-faint); }
.input, .select {
  font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.invalid, .select.invalid { border-color: oklch(0.62 0.18 25); box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.62 0.18 25) 22%, transparent); }
.input-affix { display: flex; align-items: stretch; }
.input-affix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-affix .affix { display: flex; align-items: center; padding: 0 14px; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); background: var(--bg-3); border: 1px solid var(--line-2); border-left: none; border-radius: 0 10px 10px 0; white-space: nowrap; }
.field .err { font-size: 12.5px; color: oklch(0.72 0.16 25); display: none; }
.field.show-err .err { display: block; }
.field.show-err .input, .field.show-err .select { border-color: oklch(0.62 0.18 25); }

.strength { height: 6px; border-radius: 4px; background: var(--bg-3); overflow: hidden; margin-top: 2px; }
.strength i { display: block; height: 100%; width: 0; background: var(--warn); transition: width .25s, background .25s; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.checkbox input { position: absolute; opacity: 0; }
.checkbox .box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--bg-1); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; margin-top: 1px; }
.checkbox .box svg { opacity: 0; color: #06101f; }
.checkbox input:checked + .box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox input:focus-visible + .box { box-shadow: 0 0 0 3px var(--accent-soft); }
.checkbox a { color: var(--accent-bright); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-2 { grid-template-columns: 1fr; } }

/* plan picker chips */
.planpick { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.planpick label { cursor: pointer; }
.planpick input { position: absolute; opacity: 0; }
.planpick .opt { border: 1px solid var(--line-2); border-radius: 11px; padding: 13px 14px; transition: border-color .15s, background .15s; }
.planpick input:checked + .opt { border-color: var(--accent); background: var(--accent-soft); }
.planpick .opt .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.planpick .opt .t .p { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-bright); }
.planpick .opt .d { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }

/* signup layout */
.auth { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-1); }
.auth-form { padding: 44px; }
.auth-aside { padding: 44px; border-left: 1px solid var(--line); background: radial-gradient(130% 120% at 100% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-aside { border-left: none; border-top: 1px solid var(--line); } .auth-form, .auth-aside { padding: 30px; } }

.success { text-align: center; padding: 30px 10px; }
.success .seal { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 28px; }
.success p { color: var(--text-dim); margin: 14px auto 0; max-width: 30em; }
.success .receipt { font-family: var(--font-mono); font-size: 13px; text-align: left; margin: 26px auto 0; max-width: 360px; }
.success .receipt .r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.success .receipt .r:last-child { border-bottom: none; }
.success .receipt .r .k { color: var(--text-faint); }
.success .receipt .r .v { color: var(--text); }

/* ---------- legal / prose ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 28px; } .legal .toc { position: static; } }
.toc { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-1); }
.toc .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.toc a { display: block; font-size: 14px; color: var(--text-dim); padding: 7px 9px; border-radius: 7px; }
.toc a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { color: var(--text-dim); margin: 0 0 14px; font-size: 16px; }
.prose ul { color: var(--text-dim); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); }
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 8px; }
.legal-head h1 { font-size: clamp(34px,4vw,48px); }
.legal-head .updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-top: 14px; }

/* about specifics */
.value { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); }
.value .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-bright); letter-spacing: 0.12em; }
.value h3 { font-size: 18px; margin: 12px 0 8px; }
.value p { color: var(--text-dim); font-size: 14.5px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: none; }
.tl .yr { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--accent-bright); }
.tl h3 { font-size: 17px; }
.tl p { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 64px 0 40px; background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--accent) 4%, transparent)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.foot-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 30ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 6px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 13.5px; }
.foot-bottom .mono { font-family: var(--font-mono); }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tagchip { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px; }
.tagchip svg { color: var(--accent-2); }

/* utility */
.muted { color: var(--text-dim); }
.mb0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* fallback: show instantly with no transition dependency when the observer can't run */
body.reveal-done .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
