/* ───────────────────────────────────────────────────────────
   BEFF — Marketing Site Style
   Design tokens align with existing legal pages + BeffTheme
   (European Marble — Dark marble bg + Warm Ivory / Gold accents)
   ─────────────────────────────────────────────────────────── */

:root {
  --bg: #131210;
  --bg-2: #1A1816;
  --surface: #221F1C;
  --surface-2: #2A2724;
  --surface-3: #332F2B;
  --fg: #F7EFDD;
  --fg-dim: rgba(247, 239, 221, 0.82);
  --muted: rgba(247, 239, 221, 0.62);
  --hint: rgba(247, 239, 221, 0.40);
  --line: rgba(247, 239, 221, 0.10);
  --line-strong: rgba(247, 239, 221, 0.20);
  --accent: #E5B97D;
  --accent-bright: #F2D098;
  --accent-deep: #C9A065;
  --accent-soft: rgba(229, 185, 125, 0.10);
  --accent-glow: rgba(229, 185, 125, 0.22);

  /* Radius scale — bigger, Toss-like */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-2xl: 48px;

  /* Spacing scale */
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;

  /* Type scale — bigger, more confident */
  --h1: clamp(42px, 6.4vw, 72px);
  --h2: clamp(30px, 4.4vw, 52px);
  --h3: clamp(18px, 1.8vw, 22px);
  --lead: clamp(17px, 1.7vw, 20px);

  --max: 1160px;
  --max-narrow: 920px;
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Noto Sans KR', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* Elevations */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 24px 60px -28px var(--accent-glow);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(229, 185, 125, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(229, 185, 125, 0.025), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-bright); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

/* ─── Top Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 18, 16, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 19px;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: rgba(247, 239, 221, 0.04); }
.nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: none;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover {
  color: var(--bg);
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px var(--accent-glow);
}
.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-right: 4px;
}
/* Both <button> (client-side toggle on the landing page) and <a> (real
   locale URLs on the content pages) render identically. */
.lang-toggle button,
.lang-toggle a {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  transition: all .2s var(--ease);
  text-decoration: none;
  line-height: 1.5;
}
.lang-toggle button[aria-pressed="true"],
.lang-toggle a[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}
.lang-toggle a:hover { color: var(--fg); }
.lang-toggle a[aria-pressed="true"]:hover { color: var(--bg); }
.menu-toggle {
  display: none;
  background: transparent; border: none;
  color: var(--fg); font-size: 22px; padding: 4px 8px;
}

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

.hero {
  position: relative;
  padding: 140px 28px 120px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-personas {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-personas .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px) saturate(120%);
  opacity: 0.78;
  background-size: cover;
  background-position: center;
  animation: float 24s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -28px, 0) scale(1.05); }
}
/* Vignette: feather edges + warm spotlight, keep personas visible */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(28,27,25,0.0), rgba(28,27,25,0.42) 65%, rgba(28,27,25,0.86) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 35% at 50% 38%, rgba(229,185,125,0.10), transparent 65%),
    linear-gradient(180deg, rgba(28,27,25,0.55) 0%, rgba(28,27,25,0) 18%, rgba(28,27,25,0) 70%, rgba(28,27,25,0.92) 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0 0 32px;
  color: var(--fg);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}
.hero h1 .accent-word {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero p.lead {
  font-size: var(--lead);
  color: var(--fg-dim);
  line-height: 1.55;
  letter-spacing: -0.012em;
  max-width: 640px;
  margin: 0 auto 44px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.012em;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-store:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-store .icon { font-size: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 16px 40px -14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  color: var(--bg);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-bright));
  border-color: transparent;
  box-shadow: 0 20px 48px -16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-store svg { flex-shrink: 0; }
.hero-note {
  color: var(--hint);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ─── Section base ─────────────────────────────────────────── */

section.block {
  padding: 140px 28px;
  position: relative;
  scroll-margin-top: 80px;
}
.block-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.block-head {
  text-align: center;
  margin: 0 auto 80px;
  max-width: 760px;
}
.block-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 5px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.block-head h2 {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--fg);
}
.block-head p {
  color: var(--fg-dim);
  font-size: var(--lead);
  line-height: 1.55;
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: 400;
}

/* ─── Feature cards (3-up) ──────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature {
  position: relative;
  background:
    linear-gradient(180deg, rgba(247,239,221,0.025) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  transition: transform .35s var(--ease-soft), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 90% at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(247,239,221,0.04) 0%, transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; z-index: 1; }
.feature .ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(229, 185, 125, 0.04)),
    var(--surface-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(247, 239, 221, 0.05);
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* ─── Persona showcase ─────────────────────────────────────── */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.persona-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-soft), border-color .35s var(--ease), box-shadow .4s var(--ease-soft);
}
.persona-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.6);
}
.persona-card .photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(108%) contrast(102%);
  transition: transform 1s var(--ease-soft);
}
.persona-card:hover .photo { transform: scale(1.06); }
.persona-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(19,18,16,0.65) 75%, rgba(19,18,16,0.96) 100%);
}
.persona-card .meta {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  z-index: 2;
}
.persona-card .name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
  color: var(--fg);
}
.persona-card .tag {
  color: var(--fg-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}

/* ─── Pipeline (How it works) ─────────────────────────────── */

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
  position: relative;
  transition: transform .3s var(--ease-soft), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.step .num {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.step h4 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* ─── Privacy highlights ──────────────────────────────────── */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.privacy-item {
  display: flex;
  gap: 16px;
  padding: 24px 24px;
  background:
    linear-gradient(180deg, rgba(247,239,221,0.02) 0%, transparent 80%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.privacy-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.privacy-item .ic {
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.privacy-item h4 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
}
.privacy-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* ─── Plans preview (compact) ─────────────────────────────── */

.plans-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.plan-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  transition: border-color .3s var(--ease), transform .3s var(--ease-soft), background .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.plan-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.plan-mini:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.plan-mini:hover::before { opacity: 1; }
.plan-mini > * { position: relative; z-index: 1; }
.plan-mini .name {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-mini .price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.plan-mini .price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.plan-mini .desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.plans-cta {
  text-align: center;
  margin-top: 40px;
}
.plans-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.012em;
  transition: all .2s var(--ease);
}
.plans-cta a:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

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

.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  transition: background .2s var(--ease);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg);
}
.faq summary:hover { color: var(--accent-bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform .25s var(--ease), background-size .25s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(180deg);
  background-size: 12px 1.5px, 0 0;
}
.faq p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  max-width: 680px;
}

/* ─── CTA banner ──────────────────────────────────────────── */

.cta-banner {
  margin: 64px auto 80px;
  max-width: var(--max);
  padding: 96px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(229, 185, 125, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(229, 185, 125, 0.05), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.6;
}
.cta-banner h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.cta-banner p {
  color: var(--fg-dim);
  font-size: var(--lead);
  letter-spacing: -0.012em;
  margin: 0 0 36px;
}
.cta-banner .hero-ctas { margin-bottom: 0; }

/* ─── Subscribe page — plan table ─────────────────────────── */

.plan-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  transition: border-color .25s var(--ease);
}
.plan-card:hover { border-color: var(--accent); }
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 50%);
}
.plan-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px; left: 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-card .name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-card .tier {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.plan-card .price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.plan-card .price-alt {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 18px;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 14px;
}
.plan-card li {
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
}
.plan-card li:last-child { border-bottom: none; }
.plan-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.addon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.addon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.addon-card .name {
  font-weight: 700;
  margin-bottom: 4px;
}
.addon-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}
.addon-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 24px 0;
  color: var(--fg-dim);
  font-size: 14px;
}

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

.footer {
  margin-top: 80px;
  padding: 80px 28px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  /* brand block + three link columns (Product / Learn / Legal) */
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 1040px) and (min-width: 761px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner .brand-block { grid-column: 1 / -1; }
}
.footer .brand-block .brand {
  font-size: 20px;
  margin-bottom: 4px;
}
.footer .brand-block p {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
  max-width: 340px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.footer h5 {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 12px 0; }
.footer li a {
  color: var(--fg-dim);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s var(--ease);
}
.footer li a:hover { color: var(--fg); }
.footer-biz {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 18px 22px;
  background: rgba(247, 239, 221, 0.025);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--hint);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
.footer-biz a,
.footer-meta a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
.footer-biz a:hover,
.footer-meta a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.footer-meta {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--hint);
  font-size: 12.5px;
  line-height: 1.7;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── Stats band ──────────────────────────────────────────── */

.stats-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 28px;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(229, 185, 125, 0.04), transparent 65%);
  pointer-events: none;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  text-align: center;
  position: relative;
}
.stat {
  padding: 8px 12px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.038em;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 6px;
  line-height: 1;
}
.stat-num small {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 1px;
}
.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ─── Capabilities grid (2x2, dense bullet matrix) ────────── */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.cap-group {
  background:
    linear-gradient(180deg, rgba(247,239,221,0.02) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 38px 32px;
  transition: transform .3s var(--ease-soft), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.cap-group:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(247,239,221,0.035) 0%, transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow-md);
}
.cap-group h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.cap-group .cap-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 26px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.cap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-group li {
  position: relative;
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  padding: 11px 0 11px 24px;
  letter-spacing: -0.008em;
  font-weight: 500;
}
.cap-group li + li { border-top: 1px dashed var(--line); }
.cap-group li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─── Chat preview mock ───────────────────────────────────── */

.chat-mock {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(229, 185, 125, 0.06),
    inset 0 1px 0 rgba(247, 239, 221, 0.04);
  position: relative;
}
.chat-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 185, 125, 0.3), transparent);
  z-index: 3;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247,239,221,0.025), transparent),
    var(--surface-2);
}
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.chat-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--fg);
}
.chat-status {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.005em;
}
.chat-status .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6CCB6C;
  box-shadow: 0 0 0 3px rgba(108, 203, 108, 0.2);
}
.chat-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(ellipse at top, rgba(229, 185, 125, 0.04), transparent 70%),
    var(--surface);
}
.bubble {
  position: relative;
  max-width: 80%;
  padding: 12px 16px 10px;
  border-radius: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.bubble p { margin: 0; }
.bubble-time {
  display: block;
  font-size: 10.5px;
  color: var(--hint);
  margin-top: 5px;
  text-align: right;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.bubble-ai {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble-me {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--bg);
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.bubble-me .bubble-time { color: rgba(19, 18, 16, 0.5); }

.chat-annotations {
  max-width: 720px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.anno {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.anno:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.anno-tag {
  font-size: 18px;
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.anno strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin-bottom: 4px;
}
.anno span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Persona note ────────────────────────────────────────── */

.persona-note {
  text-align: center;
  color: var(--hint);
  font-size: 12.5px;
  margin: 28px 0 0;
  letter-spacing: 0.01em;
}

/* ─── Day in the life timeline ────────────────────────────── */

.timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
/* Vertical thread on the left (desktop) — anchors the icons visually */
.timeline::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.t-step {
  display: grid;
  grid-template-columns: 72px 44px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  position: relative;
}
.t-step:hover {
  transform: translateX(2px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.t-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.t-icon {
  font-size: 20px;
  color: var(--accent);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-2);
}
.t-step h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 4px 0 4px;
}
.t-step p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.55;
}

/* ─── Comparison table ────────────────────────────────────── */

.compare-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.5);
}
.ct-head,
.ct-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 12px;
  padding: 18px 22px;
  align-items: center;
  transition: background .15s var(--ease);
}
.ct-head {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.ct-head .ct-beff {
  color: var(--accent);
  position: relative;
}
.ct-head .ct-beff::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ct-row {
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ct-row:hover { background: rgba(229, 185, 125, 0.025); }
.ct-row > span:first-child { color: var(--fg); font-weight: 500; }
.ct-no {
  color: var(--hint);
  font-size: 13px;
}
.ct-yes {
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 13.5px;
  background: linear-gradient(135deg, rgba(229,185,125,0.05), transparent);
  padding: 4px 10px;
  margin: -4px -10px;
  border-radius: 6px;
}

/* ─── Tech trust badges ───────────────────────────────────── */

.tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
}

/* ─── Page-specific (legal pages — light reset) ───────────── */
/* Legal pages keep their own inline <style>. Nothing extra needed here. */

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

@media (max-width: 760px) {
  .nav-inner { padding: 12px 18px; }
  .nav-links a { display: none; }
  .nav-links .lang-toggle { display: inline-flex; }
  .nav-links .nav-cta { padding: 9px 16px; font-size: 13.5px; }
  .hero { padding: 100px 22px 80px; min-height: 78vh; }
  .hero h1 { letter-spacing: -0.04em; }
  .hero p.lead { font-size: 16px; }
  section.block { padding: 88px 22px; }
  .block-head { margin-bottom: 56px; }
  .footer { padding: 56px 22px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .cta-banner { padding: 56px 24px; margin: 40px 16px; border-radius: var(--radius-xl); }
  .cta-banner h2 { font-size: 28px; }
  .stats-band { padding: 32px 20px; }
  .stat + .stat { border-left: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .stat-num { font-size: 28px; }
  .ct-head, .ct-row { grid-template-columns: 1.3fr 0.7fr 1fr; padding: 14px 14px; gap: 8px; }
  .ct-head { font-size: 11px; }
  .ct-row { font-size: 13px; }
  .ct-no, .ct-yes { font-size: 12.5px; }
  .t-step { grid-template-columns: 60px 1fr; gap: 12px; padding: 16px 18px; }
  .t-step .t-icon { display: none; }
  .timeline::before { display: none; }
  .chat-mock { max-width: 100%; }
  .cap-grid { grid-template-columns: 1fr; gap: 14px; }
  .cap-group { padding: 28px 24px 22px; }
  .feature { padding: 32px 26px; }
  .btn-store { padding: 14px 22px; font-size: 15px; }
  .faq summary { font-size: 16px; gap: 16px; }
  .faq summary::after { width: 26px; height: 26px; }
}

/* ─── Reveal-on-scroll ────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-personas .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT / GUIDE PAGES  (additive — no existing class is touched)
   Used by /ai-chat, /ai-friend, /guide, /compare, /safety, /faq
   and their /en/ counterparts. Reuses the same tokens as the
   landing page so the visual language stays identical.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page header ─────────────────────────────────────────────── */
.doc-head {
  padding: 128px 28px 56px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(229, 185, 125, 0.07), transparent 65%),
    var(--bg);
}
.doc-head-inner { max-width: var(--max-narrow); margin: 0 auto; }
.doc-head h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--fg);
}
.doc-head .doc-lead {
  font-size: var(--lead);
  color: var(--fg-dim);
  line-height: 1.6;
  letter-spacing: -0.012em;
  margin: 0 auto;
  max-width: 700px;
}
.doc-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--hint);
  letter-spacing: -0.005em;
}
.doc-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.doc-meta a:hover { color: var(--accent); }

/* ─── Breadcrumbs ─────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 20px 28px 0;
  font-size: 13px;
  color: var(--hint);
  letter-spacing: -0.005em;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--fg-dim); }

/* ─── Article body ────────────────────────────────────────────── */
.doc {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 64px 28px 96px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--fg-dim);
  letter-spacing: -0.008em;
}
.doc > section { scroll-margin-top: 88px; }
.doc h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--fg);
  margin: 72px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc > section:first-child > h2,
.doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 44px 0 14px;
}
.doc h4 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 32px 0 10px;
}
.doc p { margin: 0 0 20px; }
.doc a { text-decoration: underline; text-decoration-color: rgba(229, 185, 125, 0.4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--accent); }
.doc strong { color: var(--fg); font-weight: 700; }
.doc ul, .doc ol { margin: 0 0 22px; padding-left: 24px; }
.doc li { margin: 9px 0; }
.doc li::marker { color: var(--accent); }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }
.doc figure { margin: 32px 0; }
.doc figcaption { font-size: 13.5px; color: var(--hint); margin-top: 10px; text-align: center; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--accent-bright);
}

/* ─── Direct-answer block ─────────────────────────────────────────
   The single highest-value AEO pattern: a tight 40-60 word answer
   immediately under a question-shaped H2. Answer engines lift this. */
.answer {
  background:
    linear-gradient(180deg, rgba(229, 185, 125, 0.07), rgba(229, 185, 125, 0.02)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 0 0 28px;
  color: var(--fg);
  font-size: 16.5px;
  line-height: 1.7;
}
.answer p { margin: 0; }
.answer p + p { margin-top: 12px; }
.answer-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ─── Honesty / caution notice ────────────────────────────────── */
.notice {
  background: rgba(247, 239, 221, 0.03);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.notice strong { color: var(--fg-dim); }
.notice-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ─── Data table ──────────────────────────────────────────────── */
.doc-table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.doc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.doc-table caption {
  caption-side: bottom;
  font-size: 13px;
  color: var(--hint);
  padding-top: 12px;
  text-align: left;
}
.doc-table th, .doc-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody th { color: var(--fg); font-weight: 600; }
.doc-table tbody tr:hover { background: rgba(229, 185, 125, 0.025); }
.doc-table .yes { color: var(--accent-bright); font-weight: 700; }
.doc-table .no { color: var(--hint); }

/* ─── Table of contents ───────────────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 0 0 56px;
}
.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 8px 0; font-size: 15px; }
.toc a { color: var(--fg-dim); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Key-takeaways list ──────────────────────────────────────── */
.takeaways {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 40px 0;
}
.takeaways .toc-title { margin-bottom: 16px; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 15.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.takeaways li + li { border-top: 1px dashed var(--line); }
.takeaways li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─── Inline FAQ (accordion, reuses .faq look) ────────────────── */
.doc .faq { max-width: 100%; margin-top: 8px; }

/* ─── Related pages / internal links ──────────────────────────── */
.related {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 28px 96px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: transform .25s var(--ease-soft), border-color .25s var(--ease), background .25s var(--ease);
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.related-card .rc-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.related-card .rc-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.35;
}
.related-card .rc-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Inline CTA inside articles ──────────────────────────────── */
.doc-cta {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(229, 185, 125, 0.13), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  margin: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.doc-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.55;
}
.doc-cta h2 {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: clamp(21px, 2.8vw, 28px);
}
.doc-cta p { color: var(--fg-dim); margin: 0 0 24px; font-size: 15.5px; }
.doc-cta .hero-ctas { margin-bottom: 0; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .doc-head { padding: 96px 22px 44px; }
  .doc { padding: 44px 22px 72px; font-size: 16px; }
  .doc h2 { margin-top: 52px; padding-top: 24px; }
  .breadcrumbs { padding: 16px 22px 0; font-size: 12.5px; }
  .related { padding: 0 22px 72px; }
  .toc, .takeaways { padding: 22px 24px; }
  .answer { padding: 18px 20px; }
  .doc-cta { padding: 36px 24px; border-radius: var(--radius-lg); }
}
