/* Shajra — marketing landing page */
:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #16201b;
  --text-2: #3b4842;
  --muted: #6b7871;
  --line: #e3e8e5;
  --line-strong: #cfd7d2;
  --accent: #1d6b4c;
  --accent-hover: #175a3f;
  --accent-soft: #e7f2ec;
  --on-accent: #ffffff;
  --gold: #b7862c;
  --gold-soft: #f7efdf;
  --male: #3a73b6;
  --male-soft: #eaf1fa;
  --female: #c24d7c;
  --female-soft: #fbedf3;
  --band: #154e38;
  --band-2: #1d6b4c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 24, .06), 0 1px 3px rgba(16, 32, 24, .05);
  --shadow: 0 2px 6px rgba(16, 32, 24, .05), 0 12px 32px -8px rgba(16, 32, 24, .12);
  --shadow-lg: 0 4px 12px rgba(16, 32, 24, .06), 0 32px 64px -16px rgba(16, 40, 28, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #171d1a;
    --surface-2: #1c2420;
    --text: #e9eeeb;
    --text-2: #c3ccc7;
    --muted: #8f9b95;
    --line: #27302c;
    --line-strong: #36413c;
    --accent: #4fb38a;
    --accent-hover: #63c49b;
    --accent-soft: #1b3229;
    --on-accent: #08130e;
    --gold: #d6ad5c;
    --gold-soft: #2c2617;
    --male: #7aa9e0;
    --male-soft: #1a2633;
    --female: #e48bb0;
    --female-soft: #2e1d25;
    --band: #12261d;
    --band-2: #1a3a2c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 32px -8px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 32px 64px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--text); letter-spacing: -0.022em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-accent); }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.accent-text { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font: 600 15px/1 var(--font); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover .ic { transform: translateX(2px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(29,107,76,.55); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #ffffff; color: #154e38; }
.btn-light:hover { background: #eef7f2; color: #154e38; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #ffffff; color: #ffffff; background: rgba(255,255,255,.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.link-login { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 6px; }
.link-login:hover { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px 16px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .link-login { text-align: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; }
  .nav-actions .btn { height: 46px; font-size: 15px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(420px 300px at 92% 70%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%),
    radial-gradient(520px 360px at 8% 10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.038em; line-height: 1.02; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 540px; line-height: 1.6; }
.lead em { font-style: normal; color: var(--text); font-weight: 600; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.5; }

.hero-visual { position: relative; }
.app-window {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wdot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-tools { margin-left: auto; display: flex; gap: 6px; }
.tool { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.tool .ic { width: 14px; height: 14px; }
.tree-svg { width: 100%; height: auto; background: var(--surface-2); font-family: var(--font); }
.tree-svg .grid-dot { fill: var(--line-strong); opacity: .55; }
.tree-svg .conn path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.tree-svg .spouse path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 0; }
.tree-svg .spouse-dot { fill: var(--gold); }
.tree-svg .card rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.tree-svg .card .nm { font-size: 13.5px; font-weight: 700; fill: var(--text); letter-spacing: -0.01em; }
.tree-svg .card .rl { font-size: 12px; font-weight: 600; }
.tree-svg .card .ini { font-size: 12px; font-weight: 700; text-anchor: middle; }
.tree-svg .card.male .av { fill: var(--male-soft); }
.tree-svg .card.male .ini, .tree-svg .card.male .rl { fill: var(--male); }
.tree-svg .card.female .av { fill: var(--female-soft); }
.tree-svg .card.female .ini, .tree-svg .card.female .rl { fill: var(--female); }
.tree-svg .card.male rect { stroke: color-mix(in srgb, var(--male) 22%, var(--line)); }
.tree-svg .card.female rect { stroke: color-mix(in srgb, var(--female) 22%, var(--line)); }
.tree-svg .card.you rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.tree-svg .card.you .av { fill: var(--accent); }
.tree-svg .card.you .ini { fill: var(--on-accent); }
.tree-svg .card.you .rl { fill: var(--accent); }
.tree-svg .card.hi-card rect { stroke: var(--gold); stroke-width: 2; }
.tree-svg .add-card rect { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; }
.tree-svg .add-card text { fill: var(--muted); font-size: 13px; font-weight: 600; text-anchor: middle; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.25; color: var(--text);
}
.float-chip strong { display: block; font-weight: 700; }
.fc-small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); }
.fc-icon.ok { background: var(--accent-soft); color: var(--accent); }
.fc-icon .ic { width: 18px; height: 18px; }
.chip-relation { right: 92px; top: -22px; }
.chip-approve { left: -26px; bottom: -24px; }

@media (max-width: 1000px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .hero-points { justify-content: center; }
  .hero-visual { max-width: 680px; margin: 0 auto; width: 100%; }
  .chip-relation { right: 8px; top: auto; bottom: -24px; }
  .chip-approve { left: 8px; bottom: -24px; }
}
@media (max-width: 600px) {
  .hero { padding: 28px 0 64px; }
  .hero h1 { font-size: 40px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .float-chip { padding: 8px 10px 8px 8px; font-size: 13px; }
  .fc-icon { width: 28px; height: 28px; border-radius: 8px; }
  .chip-approve { display: none; }
  .chip-relation { right: 50%; transform: translateX(50%); bottom: -26px; }
  .window-title { font-size: 12px; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
@media (max-width: 700px) { .section { padding: 72px 0; } }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--text-2); line-height: 1.6; }
.section-head .section-sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head.left .section-sub { margin-left: 0; }

/* relations */
.relations { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rel-demo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px;
  margin: -16px auto 40px; padding: 12px 18px; width: fit-content; max-width: 100%;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 15px;
}
.rel-step { color: var(--text-2); font-weight: 500; }
.rel-arrow { width: 16px; height: 16px; color: var(--muted); }
.rel-result { font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.rel-sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 8px; }
@media (max-width: 600px) { .rel-demo { border-radius: 18px; } .rel-sep { flex-basis: 100%; height: 0; margin: 0; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips .chip { flex: 0 0 calc((100% - 50px) / 6); min-width: 0; }
@media (max-width: 1100px) { .chips .chip { flex-basis: calc((100% - 40px) / 5); } }
@media (max-width: 860px) { .chips .chip { flex-basis: calc((100% - 30px) / 4); } }
.chip {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 14px 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.chip::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.chip.m::before { background: var(--male); }
.chip.f::before { background: var(--female); }
.chip.n::before { background: var(--gold); }
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.chip span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .chips { gap: 8px; }
  .chips .chip { flex-basis: calc((100% - 16px) / 3); padding: 9px 8px 9px 11px; border-radius: 10px; }
  .chip::before { top: 8px; bottom: 8px; }
  .chip b { font-size: 14px; }
  .chip span { font-size: 11.5px; line-height: 1.3; white-space: normal; }
}

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.f-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.f-icon .ic { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 1060px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; gap: 12px; } .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; } .f-icon { grid-row: span 2; margin: 0; } .feature p { margin-top: 4px; } }

/* how it works */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 46px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-icon {
  position: relative; z-index: 1;
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); box-shadow: var(--shadow-sm);
}
.step-icon .ic { width: 34px; height: 34px; stroke-width: 1.75; }
.step-num {
  position: absolute; z-index: 2; top: -8px; left: calc(50% + 30px);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--surface);
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { margin: 10px auto 0; max-width: 320px; color: var(--text-2); font-size: 16px; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
  .step-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0; grid-row: span 2; background: var(--surface); }
  .step-icon .ic { width: 26px; height: 26px; }
  .step-num { top: 8px; left: 62px; width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 3px var(--surface-2); }
  .step h3 { font-size: 18px; align-self: end; }
  .step p { margin: 4px 0 0; font-size: 15px; }
}

/* privacy */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.privacy-copy .section-sub { max-width: 500px; }
.approve-card { margin-top: 36px; max-width: 440px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; }
.ac-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 12px; }
.ac-title { font-weight: 700; font-size: 15px; }
.ac-badge { font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.ac-row + .ac-row { margin-top: 6px; }
.ac-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.ac-av.m { background: var(--male-soft); color: var(--male); }
.ac-av.f { background: var(--female-soft); color: var(--female); }
.ac-who { flex: 1; min-width: 0; line-height: 1.3; }
.ac-who b { display: block; font-size: 15px; }
.ac-who small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-btn { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface); }
.ac-btn.ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.privacy-list { display: grid; gap: 4px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 10px; box-shadow: var(--shadow-sm); }
.privacy-list li { display: flex; gap: 16px; padding: 18px 16px; border-radius: 12px; }
.privacy-list li + li { border-top: 1px solid var(--line); border-radius: 0; }
.p-icon { width: 40px; height: 40px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.privacy-list h3 { font-size: 16px; font-weight: 700; }
.privacy-list p { margin-top: 4px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .approve-card { max-width: none; }
}
@media (max-width: 420px) { .privacy-list li { padding: 16px 8px; gap: 12px; } }

/* linked trees */
.linked { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.linked-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.linked-visual { border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); padding: 20px; }
.link-svg { width: 100%; height: auto; font-family: var(--font); }
.link-svg .lf { fill: var(--surface); stroke: var(--line); }
.link-svg .lt { font-size: 15px; font-weight: 700; fill: var(--text); }
.link-svg .ls { font-size: 12px; font-weight: 500; fill: var(--muted); }
.link-svg .ls.center { text-anchor: middle; font-weight: 600; }
.link-svg .lconn path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: round; }
.link-svg .spouse-l { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.link-svg .node circle { stroke-width: 0; }
.link-svg .node text { font-size: 11px; font-weight: 700; text-anchor: middle; }
.link-svg .node.m circle { fill: var(--male-soft); }
.link-svg .node.m text { fill: var(--male); }
.link-svg .node.f circle { fill: var(--female-soft); }
.link-svg .node.f text { fill: var(--female); }
.link-svg .node.shared circle { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2.5; }
.link-svg .node.shared text { fill: var(--gold); font-size: 12px; }
.link-svg .share-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 6; }
.link-svg .badge-tick { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 2 3; }
.link-svg .link-badge rect { fill: var(--gold); }
.link-svg .link-badge text { fill: #ffffff; font-size: 12px; font-weight: 700; text-anchor: middle; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .link-svg .link-badge text { fill: #1b1608; } }

.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); line-height: 1.5; }
.ticks .ic { margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 3; box-sizing: content-box; width: 14px; height: 14px; }
@media (max-width: 900px) {
  .linked-grid { grid-template-columns: 1fr; gap: 40px; }
  .linked-visual { order: 2; padding: 12px; }
}

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); padding: 31px; }
.price-card h3 { font-size: 20px; font-weight: 700; }
.price { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 72px; justify-content: center; }
.amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.featured .amount { font-size: 26px; }
.per { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-desc { margin: 8px 0 24px; color: var(--text-2); font-size: 15px; }
.price-card .ticks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-card .ticks li { font-size: 15px; }
.price-card .muted-li { color: var(--muted); }
.price-card .muted-li .ic { background: var(--surface-2); color: var(--muted); }
.ribbon { position: absolute; top: -14px; left: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.ribbon .ic { width: 14px; height: 14px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 26px 22px; } .price-card.featured { padding: 25px 21px; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease; }
.faq-list details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16px; color: var(--text); border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq-list details[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 20px 20px; margin-top: -4px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .faq-grid .section-head { position: static; text-align: center; } .faq-grid .section-head .section-sub { margin-left: auto; } }

/* ads */
.ad-wrap { padding-top: 8px; padding-bottom: 8px; }
.ad-slot { max-width: 970px; margin: 0 auto; }
.ad-slot[hidden] { display: none !important; }
.ad-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 6px; }
.ad-placeholder { height: 90px; border: 1.5px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* cta band */
.cta-band { padding: 0 0 104px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(214, 173, 92, .28), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(255, 255, 255, .08), transparent 70%),
    linear-gradient(135deg, var(--band-2), var(--band));
  box-shadow: var(--shadow-lg);
  max-width: 1152px;
}
.cta-band .container.cta-inner { width: calc(100% - 48px); }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.cta-inner p { margin-top: 10px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
@media (max-width: 900px) {
  .cta-inner { flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 600px) {
  .cta-band { padding-bottom: 72px; }
  .cta-band .container.cta-inner { width: calc(100% - 32px); padding: 36px 20px; border-radius: 22px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.footer-brand p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.footer-brand .brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand .brand { font-size: 17px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.footer-nav a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .brand { justify-content: center; }
}
