@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --bg: #f3f0ec;
  --card: #ffffff;
  --text: #333333;
  --muted: #7a7a7a;
  --line: #ece7e2;
  --font: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; }
.logo-mark { max-width: none; }
input, select, textarea, button { font-family: var(--font); }
input, select, textarea { font-size: 16px; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.2rem;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  margin-right: 0.6rem;
}
.logo-mark { display: block; width: 36px; height: 36px; border-radius: 9px; }
.logo-text {
  font-size: 1rem;
  line-height: 1.15;
  max-width: 11rem;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 0.85rem;
  color: var(--brand);
  text-decoration: none;
  font: 800 0.9rem var(--font);
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand-dark); }

.nav { display: flex; align-items: stretch; height: 100%; flex: 1; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 64px;
  padding: 0 0.75rem;
  background: none;
  border: 0;
  color: #555;
  font: 700 0.82rem var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.nav-item:hover .nav-btn,
.nav-item.open .nav-btn { color: var(--brand); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 60;
}
.mega-all,
.mega-tools {
  display: none;
  min-width: 240px;
}
.mega-all {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  min-width: 640px;
  padding: 0.8rem;
  gap: 0.15rem;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.open .mega { display: grid; }
.nav-item:hover .mega:not(.mega-all),
.nav-item.open .mega:not(.mega-all) { display: block; }

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.5rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.mega-link:hover { background: #f7f4f1; color: var(--text); }

.tool-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.tool-ico.lg { width: 52px; height: 52px; border-radius: 12px; }

.account-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #555;
}
.account-links a { color: #555; text-decoration: none; }
.account-links a:hover { color: var(--brand); }
.premium-nav { color: var(--brand) !important; font-weight: 800; }
.premium-nav:hover { color: var(--brand-dark) !important; }
.nav-paid { color: #b45309; font-weight: 800; font-size: 0.7rem; }
.paywall {
  max-width: 40rem;
  margin: 0 auto 1.2rem;
  background: #fff7ed;
  color: #9a3412;
  padding: 1rem 1.1rem;
  border-radius: 12px;
}
.paywall p { margin: 0 0 0.45rem; }
.auth-form { max-width: 26rem; margin: 0 auto 3rem; background: #fff; padding: 1.3rem; border-radius: 16px; }
.logout-form { margin: 0; }
.logout-form button {
  background: none;
  border: 0;
  padding: 0;
  color: #555;
  font: 700 0.88rem var(--font);
  cursor: pointer;
}
.logout-form button:hover { color: var(--brand); }

.profile-item { position: relative; }
.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.35rem 0 0.2rem;
  background: none;
  border: 0;
  cursor: pointer;
  font: 800 0.88rem var(--font);
  color: #333;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0f766e;
  color: #fff;
  font-size: 0.85rem;
}
.profile-mega {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 268px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 70;
}
.profile-item.open .profile-mega,
.profile-item:hover .profile-mega { display: block; }
.profile-who { margin: 0 0 0.55rem; }
.profile-who strong { display: block; }
.profile-who span,
.profile-plan span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; word-break: break-all; }
.profile-plan { margin: 0 0 0.7rem; font-weight: 800; font-size: 0.88rem; }
.profile-mega form { margin: 0; }
.profile-mega button,
.profile-action {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  color: #333;
  font: 700 0.88rem var(--font);
  cursor: pointer;
  text-decoration: none;
}
.profile-mega button:hover,
.profile-action:hover { color: var(--brand); }
.profile-cancel { color: #b45309 !important; }

.nav-toggle {
  display: none;
  margin-left: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 4rem; }

.hero { text-align: center; max-width: 760px; margin: 0 auto 1.6rem; }
.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #222;
}
.home-hero { max-width: 40rem; margin-bottom: 1.8rem; }
.home-kicker {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.lede { margin: 0; color: var(--muted); font-size: 1.02rem; }
.more-tools { margin-top: 2.8rem; }
.more-tools h2 { margin: 0 0 0.35rem; font-size: 1.35rem; color: #1a2e2b; }
.more-tools > p { margin: 0 0 1.1rem; color: var(--muted); }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
}
.filters button {
  border: 0;
  background: transparent;
  color: #666;
  font: 700 0.88rem var(--font);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.filters button.is-on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--card);
  border-radius: 8px;
  padding: 1.25rem 1.15rem 1.35rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  min-height: 210px;
}
.tool-card:hover { color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.tool-card.hidden { display: none; }
.tool-card h3 { margin: 0.85rem 0 0.4rem; font-size: 1.15rem; font-weight: 800; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 400; }

.crumb { color: var(--muted); font-size: 0.9rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.station-head { max-width: 40rem; margin: 0.4rem 0 1.4rem; }
.station-head h1 { margin: 0 0 0.5rem; font-size: 2rem; font-weight: 800; }

.work {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.drop, .panel {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.drop { border: 2px dashed #ddd; min-height: 220px; }
.drop.drag { border-color: var(--brand); background: #f0fdfa; }
.drop-kicker, .panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.drop-copy { font-size: 1.05rem; color: #555; }
.file-link {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
}
.file-link:hover { background: var(--brand-dark); color: #fff; }

.sheet-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.sheet-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.sheet-list .sheet-name { flex: 1; min-width: 0; word-break: break-all; }
.sheet-list .sheet-ops { display: flex; gap: 0.35rem; flex-shrink: 0; }
.sheet-list button {
  background: none;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font: 700 0.85rem var(--font);
}
.sheet-list button:disabled { opacity: 0.35; cursor: not-allowed; }

.opts { display: grid; gap: 0.8rem; }
.opts label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; }
.opts .check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.opts input[type="text"],
.opts input[type="email"],
.opts input[type="password"],
.opts select {
  background: #fff;
  color: var(--text);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  font: 0.95rem var(--font);
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  font: 800 0.95rem var(--font);
  cursor: pointer;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-brand:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-brand.wide { width: 100%; margin-top: 0.3rem; }
.btn-brand.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: #fff;
}
.btn-brand.small:hover { color: #fff; }

.auth-box {
  max-width: 26rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.auth-box h1 { margin: 0 0 1rem; font-size: 1.7rem; font-weight: 800; }
.auth-box .err { color: #b91c1c; font-weight: 700; }
.auth-box .quiet { margin-top: 1rem; }

.admin h1 { margin: 0.3rem 0 0.6rem; font-size: 1.8rem; font-weight: 800; }
.admin-sub { margin: 1.4rem 0 0.7rem; font-size: 1.15rem; font-weight: 800; }
.admin-flash {
  background: #ecfdf5;
  color: #047857;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}
.stat-card, .mode-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-kicker { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { margin: 0.2rem 0 0; font-size: 1.7rem; font-weight: 800; }
.mode-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.mode-card h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.mode-card p { margin: 0; color: var(--muted); max-width: 40rem; }
.mode-card .btn-ghost, .mode-card .btn-brand { margin-top: 0; white-space: nowrap; }
.table-wrap { overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.premium-page { width: 100%; }
.premium-kicker { margin: 0; color: #b45309; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.premium-hero { max-width: 40rem; margin-bottom: 1.4rem; }
.premium-hero h1 { margin: 0.3rem 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.premium-notice {
  background: #ecfdf5;
  color: #047857;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.plan-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.15rem 1.3rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-card:has(input:checked),
.plan-card.is-on { border-color: var(--brand); box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12); }
.plan-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.plans-actions {
  display: flex;
  justify-content: center;
  margin: 1.4rem 0 0.4rem;
}
.plans-actions .btn-premium { min-width: 16rem; }
.plan-card.is-popular { border-color: #d97706; }
.plan-card.is-popular:has(input:checked) { border-color: var(--brand); }
.plan-badge {
  position: absolute;
  top: -0.65rem;
  right: 0.9rem;
  margin: 0;
  background: #d97706;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.plan-cadence { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-card h2 { margin: 0.15rem 0 0; font-size: 1.25rem; }
.plan-price { margin: 0.35rem 0 0.2rem; font-size: 2.1rem; font-weight: 800; }
.plan-price span { font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.plan-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.plan-card ul { margin: 0 0 1.1rem; padding-left: 1.1rem; color: #444; flex: 1; }
.plan-card li { padding: 0.22rem 0; }
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  background: #d97706;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  font: 800 0.95rem var(--font);
  cursor: pointer;
}
.btn-premium:hover { background: #b45309; color: #fff; }
.btn-premium.wide { width: 100%; margin-top: auto; }

.checkout {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.checkout h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}
.checkout-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.checkout-page .checkout-grid { margin-top: 0.2rem; }
.checkout-page .btn-ghost { margin-top: 0.6rem; }
.btn-ghost {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}

.station-actions { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font: 800 0.95rem var(--font);
}
.btn-download.is-off {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
.btn-download.is-on {
  opacity: 1;
  pointer-events: auto;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.btn-download.is-on:hover { background: var(--brand-dark); color: #fff; }
.progress-block { margin-top: 1.1rem; }
.rule-fill { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; }
#progressInk { display: block; height: 100%; width: 0; background: var(--brand); }
.progress-step, .progress-pct { font-size: 0.78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.err { color: var(--brand); }
.quiet { color: var(--muted); margin: 0; }

.legal { max-width: 40rem; }
.legal h1 { font-size: 2rem; font-weight: 800; }
.legal p { color: var(--muted); }

.legal-doc { max-width: 100%; }
.legal-head { max-width: 44rem; margin-bottom: 1.6rem; }
.legal-head h1 { margin: 0 0 0.35rem; color: var(--text); }
.legal-updated {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-wrap {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 44rem);
  gap: 2.4rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 80px;
  padding: 0.9rem 0.95rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.legal-toc p {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-toc a {
  display: block;
  padding: 0.28rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--brand); }
.legal-body { color: #3a3a3a; }
.legal-body h2 {
  margin: 0 0 0.65rem;
  padding-top: 0.2rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}
.legal-body section + section { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-body p, .legal-body li { color: #555; font-size: 0.98rem; }
.legal-body ul { margin: 0.4rem 0 0.8rem; padding-left: 1.15rem; }
.legal-body li { margin: 0.28rem 0; }
.legal-body a { font-weight: 700; }

.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.7rem;
}
.legal-related a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.legal-related a:hover { color: var(--brand); }

.info-page { width: 100%; }
.info-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.4rem 0 1.4rem;
}
.info-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.info-card h2 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-links { color: var(--muted); }
.service-group { margin: 0 0 1.8rem; }
.service-group h2 { margin: 0 0 0.8rem; font-size: 1.2rem; }
.info-page code {
  font-size: 0.88em;
  background: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.foot {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr;
  gap: 1.4rem 1.2rem;
}
.foot-brand { margin: 0 0 0.4rem; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.foot-brand-col p { margin: 0; }
.foot-h {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.foot-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.18rem 0;
  font-weight: 700;
}
.foot-grid a:hover { color: var(--brand); }
.foot-copy { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }

.faq { margin-top: 2.8rem; max-width: 40rem; }
.faq h2 { margin: 0 0 1rem; font-size: 1.35rem; color: #1a2e2b; }
.faq-list details {
  background: #fff;
  border-radius: 8px;
  padding: 0.15rem 1rem;
  margin: 0 0 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0 0 0.95rem; color: var(--muted); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    height: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.8rem;
    overflow: auto;
    max-height: calc(100vh - 64px);
  }
  body.nav-open .nav { display: flex; }
  .nav-link { height: 44px; }
  .logo-text { font-size: 0.86rem; max-width: 8.5rem; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-btn { height: 44px; justify-content: space-between; }
  .mega, .mega-all {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    grid-template-columns: 1fr;
  }
  .nav-item.open .mega { display: grid; }
  .work { grid-template-columns: 1fr; }
  .account-links > a { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-mega span { max-width: none; overflow: visible; white-space: normal; }
  .info-blocks, .foot-grid { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .mode-card { flex-direction: column; align-items: stretch; }
  main { width: min(1120px, calc(100% - 1.2rem)); padding: 1.2rem 0 2.6rem; }
  .hero h1, .station-head h1 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .lede { font-size: 0.98rem; }
  .drop, .panel { padding: 1.1rem; }
  .file-link { min-height: 48px; display: inline-flex; align-items: center; }
  .account-links { gap: 0.35rem; }
  .account-links > a, .premium-nav, .profile-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .tool-card { min-height: 0; }
  .faq-list summary { min-height: 44px; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 0.7rem; }
  .logo-text { font-size: 0.78rem; max-width: 6.4rem; }
  .home-hero { margin-bottom: 1.2rem; }
}
