/* ==========================================================================
   CloudBox — visual system
   Ground: night-sky indigo (where clouds live), aurora accent, amber for "full"
   Motif: the storage bar — the product's own visual language, repeated
   ========================================================================== */

:root {
  /* Ground */
  --bg: #0B1020;
  --bg-deep: #070B16;
  --surface: #151B30;
  --surface-2: #1C2440;
  --line: #262F4D;
  --line-soft: #1E2740;

  /* Ink */
  --ink: #EEF1F8;
  --ink-2: #9AA6C4;
  --ink-3: #667497;

  /* Aurora accent */
  --violet: #7B5FFF;
  --violet-lo: #9B85FF;
  --cyan: #4CD9FF;
  --aurora: linear-gradient(115deg, #7B5FFF 0%, #6E8BFF 45%, #4CD9FF 100%);
  --aurora-dim: linear-gradient(115deg, rgba(123,95,255,.16), rgba(76,217,255,.12));

  /* Second accent — "almost full". From the app's own semantic palette. */
  --amber: #FFB86B;
  --amber-dim: rgba(255,184,107,.14);
  --green: #34D399;
  --red: #FB7185;

  /* Provider hues — used only in provider contexts */
  --gdrive: #4CD9FF;
  --onedrive: #6E8BFF;
  --dropbox: #7B5FFF;
  --nas: #667497;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 34px); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

/* Numbers are content here — keep them aligned everywhere */
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ── Storage bar: the repeating motif ───────────────────────────────────── */
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--aurora); width: 0; transition: width 1.1s var(--ease); }
.bar.is-full > i { background: linear-gradient(90deg, var(--amber), var(--red)); }
.bar.sm { height: 4px; }

/* ══ Header ═══════════════════════════════════════════════════════════════ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,16,32,.72);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.hdr.scrolled { border-bottom-color: var(--line-soft); background: rgba(11,16,32,.9); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  object-fit: cover; display: block;
  box-shadow: 0 3px 14px rgba(123,95,255,.34);
}
/* One unbroken text node — "CloudBox" must strip to a single token for
   OAuth consent-screen name matching. Gradient comes from CSS, not markup. */
.brand-name {
  font-size: 17.5px; font-weight: 680; letter-spacing: -.025em;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 46%, var(--violet-lo) 60%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hdr-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hdr-nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.hdr-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 780px) { .hdr-nav { display: none; } }

/* ══ Buttons ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-md);
  font: 600 15px/1 var(--sans); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-1 { background: var(--aurora); color: #fff; box-shadow: 0 5px 20px rgba(123,95,255,.34); }
.btn-1:hover { box-shadow: 0 9px 28px rgba(123,95,255,.46); }
.btn-2 { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-2:hover { background: #222c4e; }
.btn-s { padding: 9px 15px; font-size: 13.5px; border-radius: var(--r-sm); }

/* ══ HERO — the signature: scattered files converging ═════════════════════ */
.hero { position: relative; padding: clamp(52px, 8vw, 84px) 0 clamp(56px, 8vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 50%;
  width: 1000px; height: 720px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(123,95,255,.24), rgba(76,217,255,.08) 46%, transparent 72%);
  filter: blur(40px); pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: clamp(38px, 6vw, 60px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 9px; border-radius: 99px;
  background: rgba(123,95,255,.12); border: 1px solid rgba(123,95,255,.3);
  color: var(--violet-lo); font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 22px;
}
.tag i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(76,217,255,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,217,255,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(76,217,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,217,255,0); }
}

/* App identity block: the same icon shown on the OAuth consent screen,
   next to the app name exactly as configured there. */
.hero-id { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.hero-logo {
  width: clamp(58px, 7vw, 76px); height: auto; border-radius: 18px; flex: none;
  box-shadow: 0 10px 34px -8px rgba(123,95,255,.5);
}
@media (max-width: 480px) { .hero-id { gap: 12px; } }

/* H1 is the app name on its own — Google matches this against the
   OAuth consent-screen app name, so it must stand alone as one token. */
.hero h1 {
  font-size: clamp(44px, 7.4vw, 72px); line-height: 1.02; margin: 0;
  letter-spacing: -.045em; font-weight: 700;
}
.hero h1 span {
  background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  font-size: clamp(18px, 2.4vw, 23px); color: var(--ink); font-weight: 600;
  margin: 0 0 18px; letter-spacing: -.02em;
}
.hero-lead { font-size: clamp(16px, 1.9vw, 18.5px); color: var(--ink-2); margin: 0 0 30px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-fine { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

/* --- The converge visual --- */
.converge { position: relative; min-height: 470px; display: grid; place-items: center; padding: 46px 0; }
@media (max-width: 939px) { .converge { min-height: 420px; margin-top: 8px; } }

/* the destination panel */
.cb-panel {
  position: relative; z-index: 3; width: min(300px, 76%);
  background: linear-gradient(180deg, rgba(28,36,64,.96), rgba(21,27,48,.98));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 20px; box-shadow: 0 26px 70px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(123,95,255,.09);
}
.cb-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.cb-panel-top b { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.cb-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cyan); background: rgba(76,217,255,.11); border: 1px solid rgba(76,217,255,.22);
  padding: 3px 8px; border-radius: 6px;
}
.cb-total { font-size: 38px; font-weight: 700; line-height: 1; margin-bottom: 5px; }
.cb-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 15px; }
.cb-accounts { display: grid; gap: 9px; margin-top: 16px; }
.cb-acct { display: flex; align-items: center; gap: 10px; }
.cb-dot { width: 8px; height: 8px; border-radius: 2.5px; flex: none; }
.cb-acct-n { flex: 1; font-size: 12.5px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-acct-v { font-size: 12px; color: var(--ink-3); }

/* the incoming file cards */
.f-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(28,36,64,.94); border: 1px solid var(--line);
  border-radius: 11px; padding: 8px 11px;
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  animation: drift 7s ease-in-out infinite;
}
.f-card svg { width: 14px; height: 14px; flex: none; }
.f-card b { color: var(--ink); font-weight: 600; }
.f-1 { top: 0;      left: -3%;   animation-delay: 0s; }
.f-2 { top: 9%;     right: -6%;  animation-delay: .9s; }
.f-3 { bottom: 10%; left: -6%;   animation-delay: 1.7s; }
.f-4 { bottom: 0;   right: -2%;  animation-delay: 2.5s; }
@media (max-width: 1140px) {
  .f-1 { left: 0; } .f-2 { right: 0; } .f-3 { left: 0; } .f-4 { right: 0; }
}
@media (max-width: 560px) {
  .f-card { font-size: 10px; padding: 6px 8px; gap: 6px; }
  .f-card svg { width: 12px; height: 12px; }
  /* Keep two cards so the "converging" idea still reads, without crowding the panel */
  .f-2, .f-3 { display: none; }
  .f-1 { top: 2%; }
  .f-4 { bottom: 2%; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(0,-9px,0); }
}
/* faint connecting lines */
.converge svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.converge svg.wires path { stroke: url(#wireGrad); stroke-width: 1; fill: none; opacity: .3; }

@media (prefers-reduced-motion: reduce) {
  .f-card { animation: none; }
  .tag i { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ── Provider strip ── */
.providers {
  margin-top: clamp(44px, 7vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.6vw, 38px); flex-wrap: wrap;
}
.providers .lbl {
  width: 100%; text-align: center; font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 2px; font-weight: 600;
}
.prov { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.prov svg { width: 19px; height: 19px; flex: none; }

/* ══ Section shell ════════════════════════════════════════════════════════ */
.sec { padding: clamp(58px, 9vw, 98px) 0; }
.sec-line { border-top: 1px solid var(--line-soft); }
.sec-head { max-width: 620px; margin: 0 auto clamp(38px, 5.5vw, 56px); text-align: center; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-lo); margin: 0 0 13px;
}
.sec-head h2 {
  font-size: clamp(27px, 4.2vw, 39px); margin: 0 0 14px;
  letter-spacing: -.033em; line-height: 1.13; font-weight: 700; text-wrap: balance;
}
.sec-head p { color: var(--ink-2); margin: 0; font-size: 16.5px; }

/* ══ "What CloudBox is" — plain-language purpose statement ════════════════ */
.about-box {
  max-width: 780px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(26px, 4vw, 42px);
}
.about-box h2 { font-size: clamp(23px, 3.2vw, 31px); margin: 0 0 16px; letter-spacing: -.03em; font-weight: 700; }
.about-box h3 { font-size: clamp(17px, 2.2vw, 20px); margin: 30px 0 12px; letter-spacing: -.02em; font-weight: 650; }
.about-box > p { color: var(--ink-2); font-size: 16px; margin: 0 0 14px; }
.about-box strong { color: var(--ink); font-weight: 620; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.about-list li {
  color: var(--ink-2); font-size: 15px; padding-left: 26px; position: relative; line-height: 1.62;
}
.about-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--aurora);
}
.about-fine { color: var(--ink-3) !important; font-size: 14.2px !important; margin: 18px 0 0 !important; }

/* ══ Problem → the mess, stated in the product's own language ═════════════ */
.mess { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
@media (min-width: 720px) { .mess { grid-template-columns: repeat(2, 1fr); } }
.mess-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 17px 19px;
}
.mess-item svg { width: 19px; height: 19px; flex: none; margin-top: 2px; stroke: var(--amber); }
.mess-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.mess-item p b { color: var(--ink); font-weight: 600; }

/* ══ Capability rows ══════════════════════════════════════════════════════ */
.cap { display: grid; gap: clamp(30px, 5vw, 62px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cap { grid-template-columns: 1fr 1fr; } }
.cap + .cap { margin-top: clamp(52px, 8vw, 88px); }
@media (min-width: 900px) { .cap.flip .cap-vis { order: -1; } }

.cap-copy h3 { font-size: clamp(22px, 3.1vw, 30px); margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.16; font-weight: 700; }
.cap-copy > p { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; }
.cap-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cap-pts li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.cap-pts svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--cyan); }

.cap-vis {
  background: linear-gradient(165deg, var(--surface) 0%, rgba(21,27,48,.6) 100%);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 24px); position: relative; overflow: hidden;
}
.cap-vis::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--aurora-dim); opacity: .45;
}
.cap-vis > * { position: relative; z-index: 1; }

/* account rows */
.acct-list { display: grid; gap: 10px; }
.acct {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
}
.acct-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.acct-ic svg { width: 18px; height: 18px; }
.acct-body { min-width: 0; }
.acct-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-s { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.acct-pct { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.acct-pct.full { color: var(--amber); }
.acct .bar { grid-column: 1 / -1; margin-top: 2px; }

/* the dup summary */
.dup-hero {
  text-align: center; padding: 22px 18px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(123,95,255,.2), rgba(76,217,255,.11));
  border: 1px solid rgba(123,95,255,.3); margin-bottom: 13px;
}
.dup-hero .k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.dup-hero .v { font-size: 46px; font-weight: 700; line-height: 1.05; margin: 4px 0 2px; }
.dup-hero .s { font-size: 13.5px; color: var(--cyan); font-weight: 600; }
.dup-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 13px;
}
.dup-thumb { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.dup-thumb svg { width: 17px; height: 17px; }
.dup-meta { flex: 1; min-width: 0; }
.dup-meta .t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-meta .s { font-size: 11.5px; color: var(--ink-3); }
.keep-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.26);
  padding: 4px 8px; border-radius: 6px; flex: none;
}
.dup-row + .dup-row { margin-top: 9px; }

/* ══ Trust band ═══════════════════════════════════════════════════════════ */
.trust { background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; gap: 11px; }
.trust-ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.22);
}
.trust-ic svg { width: 19px; height: 19px; stroke: var(--green); }
.trust-item h4 { margin: 0; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.trust-item p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ══ Waitlist ═════════════════════════════════════════════════════════════ */
.join {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(11,16,32,.9) 100%);
  border: 1px solid rgba(123,95,255,.28); border-radius: var(--r-xl);
  padding: clamp(34px, 5.4vw, 58px) clamp(22px, 5vw, 50px);
}
.join::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(123,95,255,.26), transparent 68%); filter: blur(44px);
}
.join > * { position: relative; }
.join h2 { font-size: clamp(25px, 3.8vw, 35px); margin: 0 0 12px; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; }
.join p { color: var(--ink-2); margin: 0 auto 26px; max-width: 44ch; font-size: 16px; }
.join-form { display: flex; gap: 10px; max-width: 430px; margin: 0 auto; flex-wrap: wrap; }
.join-form input {
  flex: 1 1 210px; padding: 13px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font: 400 15px var(--sans);
}
.join-form input::placeholder { color: var(--ink-3); }
.join-form input:focus { outline: none; border-color: var(--violet); }
.join-fine { margin: 15px 0 0; font-size: 12.5px; color: var(--ink-3); }
.join-ok { display: none; color: var(--green); font-size: 15px; font-weight: 600; margin: 16px 0 0; }

/* ══ FAQ ══════════════════════════════════════════════════════════════════ */
.faq { display: grid; gap: 11px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 16px 19px; transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: rgba(123,95,255,.36); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--violet-lo); border-bottom: 2px solid var(--violet-lo);
  transform: rotate(45deg) translateY(-2px); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { color: var(--ink-2); font-size: 14.8px; margin: 13px 0 0; }

/* ══ Footer ═══════════════════════════════════════════════════════════════ */
.ftr { border-top: 1px solid var(--line-soft); padding: 50px 0 32px; background: var(--bg-deep); }
.ftr-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 34px; }
@media (min-width: 620px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.7fr repeat(3, 1fr); } }
.ftr-brand p { color: var(--ink-2); font-size: 14px; margin: 13px 0 0; max-width: 30ch; }
.ftr-col h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-3); margin: 0 0 14px; font-weight: 700; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr-col a { color: var(--ink-2); font-size: 14px; }
.ftr-col a:hover { color: var(--ink); text-decoration: none; }
.ftr-btm {
  border-top: 1px solid var(--line-soft); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 12.8px;
}

/* ══ Legal pages ══════════════════════════════════════════════════════════ */
.lg-hero { padding: clamp(44px, 6.5vw, 70px) 0 clamp(24px, 3.6vw, 34px); border-bottom: 1px solid var(--line-soft); }
.lg-hero h1 { font-size: clamp(29px, 4.8vw, 42px); margin: 0 0 11px; letter-spacing: -.035em; font-weight: 700; }
.lg-hero .meta { color: var(--ink-3); font-size: 13.8px; margin: 0; }
.lg-body { padding: clamp(36px, 5.5vw, 56px) 0 clamp(56px, 8vw, 84px); }
.lg { max-width: 740px; margin: 0 auto; }
.lg h2 { font-size: 21px; margin: 40px 0 13px; letter-spacing: -.024em; font-weight: 700; scroll-margin-top: 86px; }
.lg h2:first-of-type { margin-top: 0; }
.lg h3 { font-size: 16.5px; margin: 25px 0 9px; font-weight: 620; }
.lg p, .lg li { color: var(--ink-2); font-size: 15.4px; line-height: 1.76; }
.lg ul, .lg ol { padding-left: 21px; display: grid; gap: 8px; }
.lg strong { color: var(--ink); font-weight: 620; }
.lg code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--cyan);
}
.lg .note {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--violet);
  border-radius: var(--r-sm); padding: 16px 19px; margin: 22px 0;
}
.lg .note p { margin: 0; color: var(--ink); font-size: 15px; }
.lg .tbl-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.lg table { width: 100%; border-collapse: collapse; font-size: 14.4px; min-width: 520px; }
.lg th, .lg td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.lg tr:last-child td { border-bottom: none; }
.lg th { color: var(--ink); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); }
.lg td { color: var(--ink-2); }
.lg .toc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 19px 23px; margin-bottom: 32px; }
.lg .toc h4 { margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-3); font-weight: 700; }
.lg .toc ol { margin: 0; padding-left: 19px; gap: 6px; }
.lg .toc a { font-size: 14.3px; color: var(--ink-2); }
.lg .toc a:hover { color: var(--cyan); }
.lg .fine { color: var(--ink-3); font-size: 13.6px; margin-top: 26px; }

/* Reveal on scroll.
   Content is visible by default — the hidden state is only applied by JS
   (html.js-rv) once the observer is running. Without JS, or if anything
   throws, everything stays readable. Crawlers see full content. */
html.js-rv .rv { opacity: 0; transform: translateY(16px); }
html.js-rv .rv { transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js-rv .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-rv .rv { opacity: 1; transform: none; transition: none; }
}
