/* ============================================================
   MAGNET SEARCH — from scratch
   Brand: indigo #5E6AD2 on near-black #08090A, gold Premium suite,
   Inter, restrained radii. Dark-first with a full light theme.
   Single stylesheet. Plain CSS, no dependencies.
   ============================================================ */

/* ---------- Fonts (local, OFL — see assets/fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_regular.ttf?v=1') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_medium.ttf?v=1') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_semibold.ttf?v=1') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_bold.ttf?v=1') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter_extra_bold.ttf?v=1') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --primary: #5E6AD2;
  --primary-deep: #4B55AC;
  --primary-bright: #A5B4FC;
  --primary-soft: rgba(94, 106, 210, 0.12);
  --accent-hover: #828FFF;
  --seed: #10B981;
  --leech: #F59E0B;

  --bg: #08090A;
  --bg-raise: #0D0E10;
  --card: #141619;
  --card-raise: #181A1D;
  --card-deep: #111214;
  --ink: #F5F5F5;
  --muted: #8A8F98;
  --faint: #7A818C;

  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.055);

  --gold: #FFB300;
  --gold-text: #FBBF24;
  --gold-box: rgba(255, 179, 0, 0.10);
  --gold-line: rgba(255, 179, 0, 0.35);

  --header-bg: rgba(8, 9, 10, 0.72);
  --max: 1140px;
  --narrow: 820px;
  --gut: 32px;
  --nav-h: 72px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --primary: #D9480F;
  --primary-deep: #BF360C;
  --primary-bright: #D9480F;
  --primary-soft: rgba(217, 72, 15, 0.10);
  --accent-hover: #EA580C;
  --seed: #047857;
  --leech: #B45309;

  --bg: #F8FAFC;
  --bg-raise: #EEF2F6;
  --card: #FFFFFF;
  --card-raise: #F1F5F9;
  --card-deep: #FFFFFF;
  --ink: #0A0F1D;
  --muted: #334155;
  --faint: #475569;

  --line: #CBD5E1;
  --line-soft: #E2E8F0;
  --grid: #E6ECF3;

  --gold: #D97706;
  --gold-text: #92400E;
  --gold-box: rgba(245, 158, 11, 0.14);
  --gold-line: rgba(217, 119, 6, 0.45);

  --header-bg: rgba(248, 250, 252, 0.72);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.09), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 14px 24px -6px rgba(15, 23, 42, 0.14), 0 4px 8px -2px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
::selection { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 100;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.container-narrow { max-width: var(--narrow); }
.center-block { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .site-header { box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); }
.site-header .container {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-lockup { width: 166px; height: auto; }
.brand-icon--for-light { display: none; }
[data-theme="light"] .brand-icon--for-dark { display: none; }
[data-theme="light"] .brand-icon--for-light { display: block; }
.site-header nav { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-link, .nav-link:visited { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link-premium, .nav-link-premium:visited { color: var(--gold-text); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.25s ease;
}
.theme-toggle-btn:hover { transform: translateY(-2px); border-color: var(--accent-hover); }
.theme-toggle-btn svg { width: 17px; height: 17px; }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }
.mobile-nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
}
.mobile-nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mobile-nav-drawer .container { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mobile-nav-drawer a {
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  font-weight: 600; font-size: 15px; color: var(--ink);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.mobile-nav-drawer a:visited { color: var(--ink); }
.mobile-nav-drawer.open { max-height: 460px; opacity: 1; visibility: visible; transform: none; overflow-y: auto; transition: max-height 0.4s var(--ease), opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s; }
.mobile-nav-drawer.open a { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); transition-duration: 0.12s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(94, 106, 210, 0.4); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 14px 30px rgba(217, 72, 15, 0.3); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--accent-hover); }
.btn-gold { background: var(--gold); color: #1A1206; }
[data-theme="light"] .btn-gold { color: #fff; }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(255, 179, 0, 0.35); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 8px; }
.section-flush { padding-top: 72px; }
.section-dark { background: var(--bg-raise); border-block: 1px solid var(--line-soft); padding-bottom: 104px; }
.section-header { max-width: 720px; margin-bottom: 44px; }
.section-header.center { text-align: center; margin-inline: auto; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-bright);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 20px;
  background: var(--primary-soft);
}
.section-tag-gold { color: var(--gold-text); border-color: var(--gold-line); background: var(--gold-box); }
.section-title {
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1;
  letter-spacing: -0.035em; font-weight: 800;
}
.section-header p { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative; overflow: hidden;
  padding-top: 96px; padding-bottom: 88px;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 55px 55px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-section .container { position: relative; }
.hero-content { max-width: 760px; }
.hero-title {
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
}
.hero-subtitle { margin-top: 22px; max-width: 560px; font-size: 17.5px; color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* search preview mock */
.hero-preview {
  margin-top: 56px; max-width: 860px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.search-preview-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 22px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.preview-app-identity { display: flex; align-items: center; gap: 10px; }
.preview-app-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--seed); box-shadow: 0 0 10px rgba(16, 185, 129, 0.7); }
.search-bar-mock {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 22px 0; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-deep);
  font-size: 15px;
}
.search-bar-mock svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search-query-text { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-status-tag {
  font-family: var(--mono); font-size: 11px; color: var(--primary-bright);
  background: var(--primary-soft); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.source-chips-mock { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 22px 0; }
.source-chip {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px;
}
.source-chip.active { color: var(--ink); border-color: var(--primary); background: var(--primary-soft); }
.preview-results-list { display: grid; gap: 0; margin: 16px 22px 22px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.preview-result-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--card-deep);
}
.preview-result-item + .preview-result-item { border-top: 1px solid var(--line-soft); }
.result-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.result-main { flex: 1; min-width: 0; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--faint); }
.meta-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 6px; padding: 3px 9px; }
.source-open { color: var(--primary-bright); background: var(--primary-soft); }
.source-archive { color: var(--gold-text); background: var(--gold-box); }
.source-arxiv { color: var(--seed); background: rgba(16, 185, 129, 0.12); }
.meta-category { border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 9px; }
.meta-seeds { color: var(--seed); font-weight: 600; }
.meta-leech { color: var(--leech); }
.meta-stat { white-space: nowrap; }
.meta-hash { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.result-actions { display: flex; gap: 8px; flex: none; }
.result-btn-mock {
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; color: var(--muted); white-space: nowrap;
}
.result-btn-mock.primary { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: var(--shadow-card);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 30px 28px; transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow-lift); }
.feature-top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.icon-box {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); border: 1px solid var(--line-soft); color: var(--primary-bright);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box-gold { background: var(--gold-box); border-color: var(--gold-line); color: var(--gold-text); }
.feature-tag-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}
.feature-card h3, .benefit-content h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-card > p, .benefit-content p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.feature-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spec-chip {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--card-raise); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 13px;
}

/* sources */
.sources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.source-card { display: flex; gap: 20px; padding: 30px 28px; }
.source-details { min-width: 0; }
.source-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.source-header-row h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.source-status-badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--seed); border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.source-details > p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.source-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* disclaimer */
.disclaimer-card {
  margin-top: 28px; padding: 18px 24px;
  background: var(--card-deep); border: 1px solid var(--line-soft); border-radius: 12px;
  font-size: 13.5px; color: var(--muted); line-height: 1.7;
}
.disclaimer-card strong { color: var(--ink); }
.disclaimer-center { text-align: center; max-width: 720px; margin-inline: auto; }
.disclaimer-tight { margin-top: 20px; padding: 14px 20px; font-size: 13px; }

/* ---------- Privacy callout ---------- */
.callout-box {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 56px 52px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.callout-box::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -160px; top: -200px; border: 1px solid var(--primary-soft);
  box-shadow: 0 0 0 28px rgba(94, 106, 210, 0.04), 0 0 0 56px rgba(94, 106, 210, 0.025);
  pointer-events: none;
}
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 15px; margin-bottom: 20px;
}
.badge-blue { color: var(--primary-bright); background: var(--primary-soft); border: 1px solid var(--line); }
.badge-gold { color: var(--gold-text); background: var(--gold-box); border: 1px solid var(--gold-line); }
.callout-content h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.12; }
.callout-content > p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.privacy-specs-list { display: grid; gap: 12px; margin-top: 22px; }
.privacy-spec-item { display: flex; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.privacy-spec-item strong { color: var(--ink); }
.spec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 9px; }
.callout-controls {
  background: var(--card-deep); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 32px 30px; position: relative; z-index: 1;
  align-self: start;
}
.controls-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.privacy-checklist { list-style: none; display: grid; gap: 14px; }
.checklist-item { display: flex; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.checklist-item svg { width: 18px; height: 18px; flex: none; color: var(--seed); margin-top: 3px; }
.checklist-item strong { color: var(--ink); }

/* ---------- Premium teaser ---------- */
.card-gold {
  background: var(--gold-box); border: 1px solid var(--gold-line);
  border-radius: 20px;
}
.premium-home-teaser {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 48px 48px; margin-top: 8px;
}
.premium-home-teaser h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; font-weight: 800; }
.premium-home-teaser p { margin-top: 10px; color: var(--muted); max-width: 56ch; font-size: 15.5px; }
.teaser-action { flex: none; }

/* ---------- Pricing ---------- */
.page-intro { max-width: 720px; margin-bottom: 44px; }
.page-intro-wide { max-width: 760px; }
.page-intro h1, .title-push { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; font-weight: 800; line-height: 1.05; }
.lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pricing-card.featured { border-color: var(--gold-line); background: var(--gold-box); }
.pricing-top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.plan-type-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px;
}
.plan-badges-group { display: flex; gap: 8px; align-items: center; }
.plan-badges-group .badge { margin-bottom: 0; }
.plan-period { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pricing-price-area { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.plan-price-unit { font-size: 14px; color: var(--muted); }
.plan-renewal-note { margin-top: 8px; font-size: 13px; color: var(--faint); }
.pricing-action { margin-top: 26px; }
.btn-plan { width: 100%; justify-content: center; border-color: var(--line); color: var(--ink); background: transparent; }
.btn-plan:hover { border-color: var(--accent-hover); }
.btn-plan-featured { background: var(--gold); border-color: var(--gold); color: #1A1206; }
[data-theme="light"] .btn-plan-featured { color: #fff; }
.billing-note { margin-top: 24px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card { display: flex; gap: 18px; padding: 28px 26px; }
.benefit-card .icon-box { width: 44px; height: 44px; }

/* ---------- Contact form ---------- */
.contact-form-wide { padding: 44px 40px; }
.contact-form { display: grid; gap: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card-deep); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 150px; line-height: 1.65; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-hint { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; }
.actions-center { justify-content: center; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--faint); }
.form-status {
  margin-top: 18px; padding: 15px 20px; border-radius: 12px;
  font-size: 14.5px; border: 1px solid var(--line);
  background: var(--card-raise); color: var(--ink);
}
.form-status[data-state="success"] { border-color: rgba(16, 185, 129, 0.45); color: var(--seed); }
.form-status[data-state="error"] { border-color: rgba(245, 158, 11, 0.5); color: var(--leech); }
.contact-note-wide { margin-top: 24px; }

/* confirm card (sent page) */
.page-wrap { padding-top: 104px; padding-bottom: 8px; }
.confirm-card { max-width: 560px; padding: 56px 48px; text-align: center; }
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 24px; color: var(--seed); background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); }
.confirm-icon svg { width: 28px; height: 28px; }
.page-title { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.035em; font-weight: 800; }
.confirm-lead { margin-top: 12px; color: var(--muted); }

/* ---------- Legal pages ---------- */
.page-legal main { padding-top: 104px; padding-bottom: 8px; }
.page-header { margin-bottom: 36px; }
.legal-note { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.legal-section { margin-top: 12px; }
.legal-section + .legal-section { margin-top: 28px; }
.legal-section-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 30px 30px; box-shadow: var(--shadow-card);
}
.legal-card p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.legal-card p + p { margin-top: 14px; }
.legal-card strong { color: var(--ink); }
.legal-card ul { margin: 14px 0 0 2px; list-style: none; display: grid; gap: 9px; }
.legal-card li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.7; }
.legal-card li::before { content: '—'; position: absolute; left: 0; color: var(--primary-bright); }
.legal-card a { color: var(--primary-bright); font-weight: 600; border-bottom: 1px solid var(--primary-soft); }
.legal-card a:hover { border-color: var(--primary-bright); }
.section-closer { padding-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 104px; padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-brand .brand-lockup { width: 145px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.footer-col-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.footer-link, .footer-link:visited { font-size: 13.5px; color: var(--muted); transition: color 0.2s ease; }
.footer-link:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--faint);
}

/* ---------- To top ---------- */
.to-top-btn {
  position: fixed; right: 28px; bottom: 28px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-raise); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.35s;
}
.to-top-btn.show { opacity: 1; visibility: visible; transform: none; }
.to-top-btn:hover { transform: translateY(-3px); border-color: var(--accent-hover); }
.to-top-btn svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .callout-box { grid-template-columns: 1fr; gap: 32px; padding: 44px 36px; }
  .premium-home-teaser { flex-direction: column; align-items: flex-start; padding: 40px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  :root { --gut: 24px; --nav-h: 64px; }
  .nav-menu { display: none; }
  .site-header nav { margin-left: 0; }
  .header-actions { margin-left: auto; }
  .mobile-nav-toggle { display: inline-flex; }
  .site-header .container { gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; }
  .brand-lockup { width: 140px; }
  .section { padding-top: 76px; }
  .section-dark { padding-bottom: 76px; }
  .section-flush { padding-top: 56px; }
  .hero-section { padding-top: 64px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(36px, 11vw, 52px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-preview { margin-top: 40px; }
  .search-preview-header { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px; }
  .search-bar-mock { margin: 16px 14px 0; padding: 12px 14px; }
  .source-chips-mock { margin: 12px 14px 0; }
  .preview-results-list { margin: 12px 14px 14px; }
  .preview-result-item { padding: 16px 14px; }
  .result-actions { display: none; }
  .feature-grid, .benefits-grid, .sources-grid { grid-template-columns: 1fr; }
  .source-card { flex-direction: column; }
  .callout-box { padding: 36px 24px; }
  .callout-controls { padding: 26px 22px; }
  .contact-form-wide { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .confirm-card { padding: 44px 26px; }
  .confirm-card .form-actions { flex-direction: column; align-items: stretch; }
  .confirm-card .form-actions .btn { width: 100%; justify-content: center; }
  .legal-card { padding: 24px 22px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .to-top-btn { right: 18px; bottom: 18px; width: 40px; height: 40px; }
  .page-legal main, .page-wrap { padding-top: 76px; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature-card:hover, .pricing-card:hover, .to-top-btn:hover { transform: none; }
}
