/* OtterPDF landing page and privacy policy. Colors match the extension (src/shared/ui.css). */

:root {
  color-scheme: light;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-deep: #1e3a8a;
  --brand-soft: #eaf1fe;
  --pdf-red: #e53925;
  --coral: #ff6b4a;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f5f8fd;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 1px rgb(15 23 42 / 0.04);
  --shadow: 0 12px 32px rgb(15 23 42 / 0.1), 0 2px 6px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 36px 80px rgb(15 23 42 / 0.22), 0 8px 24px rgb(15 23 42 / 0.1);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

h1,
h2,
h3,
.lead,
.section-head p {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, 820px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow:
    0 10px 24px rgb(37 99 235 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: #cbd5e1;
  background: var(--soft);
}

.btn-white {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 14px 30px rgb(15 23 42 / 0.25);
}

.btn-white:hover {
  background: #f1f5ff;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgb(15 23 42 / 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand img {
  width: auto;
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--soft);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 480px at 50% -120px, #d7e5ff 0%, rgb(215 229 255 / 0) 70%),
    radial-gradient(600px 360px at 92% 30%, rgb(255 107 74 / 0.1) 0%, rgb(255 107 74 / 0) 70%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

.hero-inner {
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #cddcfb;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 650;
}

.pill .icon {
  width: 17px;
  height: 17px;
}

.hero h1 {
  max-width: 880px;
  margin: 22px auto 0;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.wide-only {
  display: none;
}

@media (min-width: 900px) {
  .wide-only {
    display: inline;
  }
}

.accent {
  background: linear-gradient(90deg, var(--brand) 0%, #3b82f6 45%, var(--pdf-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.cta-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  margin-top: 56px;
  padding-bottom: 0;
}

.browser-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto -1px;
  border: 1px solid rgb(15 23 42 / 0.1);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e6ec;
  background: #eef1f5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.browser-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  padding: 6px 14px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(6px);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgb(15 23 42 / 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  animation: float 6s ease-in-out infinite;
}

.float-chip .icon {
  color: var(--brand);
}

.chip-signed {
  top: 22%;
  left: 0;
}

.chip-local {
  top: 8%;
  right: 0;
  animation-delay: -2s;
}

.chip-local .icon {
  color: var(--green);
}

.chip-saved {
  top: 52%;
  right: -8px;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── Trust band ───────────────────────────────────────────────────────── */

.trust {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  gap: 14px;
  padding: 28px 22px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--brand);
}

.trust-item strong {
  display: block;
  font-size: 16px;
}

.trust-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #93c5fd;
}

.section-head h2,
.privacy-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 19px;
}

/* ── How it works ─────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #dbe5f7;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.step .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.step h3 {
  margin-top: 20px;
  font-size: 21px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ── Features ─────────────────────────────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.feature-row + .feature-row {
  margin-top: 96px;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.feature-copy > p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 18px;
}

.feature-media {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbe7ff 0%, #eef3ff 55%, #ffe9e3 100%);
}

.feature-media img {
  width: 100%;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tag-free {
  background: var(--green-soft);
  color: var(--green);
}

.tag-pro {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.5;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 13px no-repeat,
    var(--green-soft);
}

.grid-title {
  margin: 104px 0 28px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tool-card .icon {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.tool-card h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 17px;
}

.tool-card .tag {
  padding: 1px 8px;
  font-size: 11px;
}

.tool-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Privacy band ─────────────────────────────────────────────────────── */

.section-dark {
  background:
    radial-gradient(700px 400px at 0% 0%, rgb(59 130 246 / 0.35) 0%, rgb(59 130 246 / 0) 70%),
    linear-gradient(135deg, #0b1a3f 0%, #0f172a 100%);
  color: #e2e8f0;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 64px;
}

.privacy-copy h2 {
  color: #fff;
}

.privacy-copy > p:not(.eyebrow) {
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 18px;
}

.checks-light li {
  color: #e2e8f0;
}

.checks-light li::before {
  background-color: rgb(34 197 94 / 0.18);
}

.privacy-copy .text-link {
  margin-top: 28px;
  color: #93c5fd;
}

.compare {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.compare-row + .compare-row {
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.compare-row > span {
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.4;
}

.compare-head > span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-head .compare-us {
  color: #fff;
}

[role="rowheader"] {
  color: #fff;
  font-weight: 650;
}

.compare-no {
  color: #94a3b8;
}

.compare-yes {
  background: rgb(37 99 235 / 0.16);
  color: #fff;
  font-weight: 600;
}

.compare-head .compare-us {
  background: rgb(37 99 235 / 0.28);
}

/* ── Use cases ────────────────────────────────────────────────────────── */

.use-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.use-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.use-card .icon {
  width: 28px;
  height: 28px;
  color: var(--pdf-red);
}

.use-card h3 {
  margin-top: 16px;
  font-size: 17px;
}

.use-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.plan h3 {
  font-size: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.plan-price strong {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 15px;
}

.plan-desc {
  margin-top: 10px;
  color: var(--ink-2);
}

.plan .checks {
  flex: 1;
  align-content: start;
  margin-bottom: 28px;
}

.plan .checks li {
  font-size: 15.5px;
}

.plan .checks li:has(strong)::before {
  display: none;
}

.plan .checks li:has(strong) {
  padding-left: 0;
}

.plan-featured {
  border: 2px solid var(--brand);
  box-shadow:
    0 24px 60px rgb(37 99 235 / 0.18),
    0 4px 12px rgb(15 23 42 / 0.06);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, #3b82f6 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.faq details[open] {
  border-color: #c7d7f7;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-size: 17px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ── Final CTA ────────────────────────────────────────────────────────── */

.final-cta {
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 90% 110%, rgb(56 189 248 / 0.45) 0%, rgb(56 189 248 / 0) 70%),
    radial-gradient(600px 360px at 0% 0%, rgb(96 165 250 / 0.55) 0%, rgb(96 165 250 / 0) 70%),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
  color: #fff;
}

.final-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 72px 0;
}

.final-mascot {
  width: 200px;
  filter: drop-shadow(0 18px 28px rgb(15 23 42 / 0.35));
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
}

.final-cta p {
  margin-top: 10px;
  color: rgb(255 255 255 / 0.88);
  font-size: 19px;
}

.final-cta .cta-row {
  justify-content: flex-start;
  margin-top: 26px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 28px;
}

.footer-brand img {
  width: auto;
  height: 34px;
}

.footer-brand p {
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  padding: 20px 0 32px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 13.5px;
}

/* ── Privacy policy page ──────────────────────────────────────────────── */

.legal-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(800px 400px at 50% -120px, #d7e5ff 0%, rgb(215 229 255 / 0) 70%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
  text-align: center;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
}

.legal-hero .lead {
  margin-top: 16px;
}

.legal-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  padding: 24px 0 104px;
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 14.5px;
}

.toc p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  border-left-color: var(--brand);
  color: var(--brand);
}

.legal-content {
  max-width: 760px;
}

.summary-card {
  padding: 28px 30px;
  border: 1px solid #cfe0fb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%);
}

.summary-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
}

.summary-card h2 .icon {
  color: var(--brand);
}

.summary-card .checks {
  margin-top: 18px;
}

.legal-content section {
  margin-top: 48px;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
}

.legal-content h3 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-2);
  font-size: 16.5px;
}

.legal-content p {
  margin-top: 12px;
}

.legal-content ul.plain {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-content a {
  color: var(--brand);
  font-weight: 600;
}

.legal-content code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9em;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-content th,
.legal-content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.legal-content td {
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.legal-content td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--soft);
}

.callout p {
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgb(15 23 42 / 0.12);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    font-size: 17px;
  }

  .nav-cta {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .feature-row + .feature-row {
    margin-top: 72px;
  }

  .plans {
    grid-template-columns: minmax(0, 480px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .trust-grid,
  .use-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0 !important;
    padding: 20px 4px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
  }

  .feature-media {
    padding: 10px;
  }

  .compare-row > span {
    padding: 12px;
    font-size: 14px;
  }

  .plan {
    padding: 30px 22px 26px;
  }

  .final-inner {
    flex-direction: column;
    text-align: center;
  }

  .final-mascot {
    width: 150px;
  }

  .final-cta .cta-row {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-chip {
    animation: none;
  }
}
