/* Signature Theme™ — shared styles. No build step. */

:root {
  --indigo: #0E0B1A;
  --violet: #8B7CF6;
  --amber: #F2A65A;
  --ivory: #F5F1E8;

  /* Light theme (default) */
  --bg: var(--ivory);
  --bg-alt: #EDE7DA;
  --surface: #FFFDF8;
  --surface-2: #F8F3E9;
  --text: #1B1630;
  --text-soft: #4A4462;
  --text-faint: #6E6886;
  --line: rgba(27, 22, 48, 0.12);
  --line-strong: rgba(27, 22, 48, 0.22);
  --accent: #6A58E8;         /* violet, darkened for contrast on ivory */
  --accent-2: #B8651A;       /* amber, darkened for text on ivory */
  --glow-violet: rgba(139, 124, 246, 0.22);
  --glow-amber: rgba(242, 166, 90, 0.22);
  --shadow: 0 1px 2px rgba(14, 11, 26, 0.06), 0 12px 32px -12px rgba(14, 11, 26, 0.18);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--indigo);
    --bg-alt: #140F26;
    --surface: #17122B;
    --surface-2: #1D1735;
    --text: #F5F1E8;
    --text-soft: #C9C2DD;
    --text-faint: #958DB0;
    --line: rgba(245, 241, 232, 0.10);
    --line-strong: rgba(245, 241, 232, 0.20);
    --accent: #A89BFA;
    --accent-2: #F2A65A;
    --glow-violet: rgba(139, 124, 246, 0.28);
    --glow-amber: rgba(242, 166, 90, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--text-faint); }
.tm { font-size: 0.6em; vertical-align: super; line-height: 0; font-weight: 400; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text-soft); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--line); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--line); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 124, 246, 0.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); background: #7A6AF0; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.88rem; font-weight: 500; color: var(--text-soft);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--glow-amber); }
.pill svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 20% 30%, var(--glow-violet), transparent 70%),
    radial-gradient(35% 45% at 85% 60%, var(--glow-amber), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.curve-card {
  position: relative; border-radius: 24px; padding: 22px 22px 18px;
  background: linear-gradient(160deg, #1A1433, #0E0B1A 70%);
  border: 1px solid rgba(245, 241, 232, 0.10);
  box-shadow: 0 30px 60px -30px rgba(14, 11, 26, 0.7);
  color: #F5F1E8;
}
.curve-card .curve-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #958DB0; }
.curve-card svg { width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.curve-card .curve-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: #C9C2DD; }
.curve-card .curve-foot b { color: #F5F1E8; font-weight: 600; }

.tension-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 3.2s cubic-bezier(.6,.05,.3,1) .3s forwards; }
.tension-fill { opacity: 0; animation: fade 1.6s ease 2.2s forwards; }
.resolve-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .7s ease 3.3s forwards, breathe 4s ease-in-out 4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* Bridge graphic */
.bridge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.bridge svg { width: 100%; height: auto; overflow: visible; }
.bridge-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.bridge-labels div { max-width: 46%; }
.bridge-labels .q { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--text); line-height: 1.3; }
.bridge-labels .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.bridge-labels .right { text-align: right; }
.bridge-path { stroke-dasharray: 6 8; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.compare div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.compare .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 4px; }
.compare .yes { border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.compare .yes .k { color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step-num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--accent); font-weight: 300; }
.step h3 { margin-bottom: 0.4em; }
.step p:last-child { margin-bottom: 0; }
.step p { color: var(--text-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: 0.8rem; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-soft); background: var(--surface-2);
}
.chips.warm li { border-color: color-mix(in srgb, var(--amber) 45%, transparent); }

/* Musical plan card */
.plan-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 18px; }
.plan {
  background: linear-gradient(170deg, #1A1433, #0E0B1A 75%);
  color: #F5F1E8; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.10);
  box-shadow: 0 30px 60px -30px rgba(14, 11, 26, 0.8);
  font-size: 0.92rem;
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(245, 241, 232, 0.08); }
.plan-top .t { font-family: var(--font-display); font-size: 1.1rem; }
.plan-top .s { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #F2A65A; white-space: nowrap; }
.plan dl { margin: 0; }
.plan-row { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 12px 20px; border-bottom: 1px solid rgba(245, 241, 232, 0.06); }
.plan-row dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #958DB0; padding-top: 3px; }
.plan-row dd { margin: 0; color: #F5F1E8; }
.plan-row dd small { display: block; color: #958DB0; font-size: 0.8rem; margin-top: 2px; }
.plan-row .arrow { color: #F2A65A; padding: 0 4px; }
.plan-curve { padding: 14px 20px 18px; }
.plan-curve .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #958DB0; margin-bottom: 8px; display: flex; justify-content: space-between; }
.plan-curve svg { width: 100%; height: auto; }
.why { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(139, 124, 246, 0.12); border: 1px solid rgba(139, 124, 246, 0.25); font-size: 0.85rem; color: #D9D3F5; }
.why b { color: #fff; font-weight: 600; }

/* Motif timeline */
.motif { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.motif div { padding: 12px 10px; border-radius: 12px; text-align: center; border: 1px solid var(--line); background: var(--surface-2); }
.motif b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--accent); }
.motif span { font-size: 0.74rem; color: var(--text-faint); }
.motif .rest b { color: var(--text-faint); }

/* Ensemble */
.ensemble { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.ensemble div { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ensemble h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin: 0 0 4px; }
.ensemble p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }

.log {
  margin-top: 20px; border-radius: 14px; overflow: hidden;
  background: #0E0B1A; color: #C9C2DD; border: 1px solid rgba(245, 241, 232, 0.1);
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7;
}
.log-head { padding: 10px 16px; border-bottom: 1px solid rgba(245, 241, 232, 0.08); color: #F2A65A; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.66rem; }
.log ul { list-style: none; margin: 0; padding: 12px 16px; }
.log li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; }
.log li span:first-child { color: #958DB0; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-soft); margin: 0; font-size: 0.96rem; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--glow-violet); color: var(--accent); }
.card .ic svg { width: 20px; height: 20px; }

/* Affective Twin */
.twin-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.twin-card {
  background: linear-gradient(170deg, #1A1433, #0E0B1A 75%);
  color: #F5F1E8; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.10);
  box-shadow: 0 30px 60px -30px rgba(14, 11, 26, 0.8);
  font-size: 0.92rem;
}
.tw-block { padding: 14px 20px; border-bottom: 1px solid rgba(245, 241, 232, 0.06); }
.tw-k { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #958DB0; margin-bottom: 6px; }
.tw-k span:last-child { color: #F2A65A; }
.tw-v { font-family: var(--font-display); font-size: 1.15rem; }
.tw-sub { font-size: 0.8rem; color: #958DB0; margin-top: 6px; }
.meter { height: 6px; border-radius: 999px; background: rgba(245, 241, 232, 0.08); margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8B7CF6, #F2A65A); }
.stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack span { display: block; }
.lo { background: #8B7CF6; } .mid { background: #C29BD0; } .hi { background: #F2A65A; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.8rem; color: #C9C2DD; }
.stack-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.tw-q { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.35; }
.tw-opts { display: flex; gap: 8px; margin-top: 10px; }
.tw-opts span { font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(245, 241, 232, 0.2); color: #F5F1E8; }
.cf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cf li { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; font-size: 0.82rem; color: #C9C2DD; }
.cf .bar { height: 6px; border-radius: 999px; background: rgba(245, 241, 232, 0.08); overflow: hidden; }
.cf .bar span { display: block; height: 100%; background: rgba(201, 194, 221, 0.5); border-radius: inherit; }
.cf .p { font-family: var(--font-mono); font-size: 0.74rem; white-space: nowrap; }
.cf .chosen { color: #F5F1E8; font-weight: 600; }
.cf .chosen .bar span { background: linear-gradient(90deg, #8B7CF6, #F2A65A); }
.cf .chosen .p { color: #F2A65A; }
.tw-foot { padding: 12px 20px; font-size: 0.78rem; color: #958DB0; }
.twin-points { display: grid; gap: 26px; }
.twin-points h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.twin-points p { color: var(--text-soft); margin-bottom: 0.6em; }
.twin-points p:last-child { margin-bottom: 0; }
.tiers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tiers li { padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-size: 0.93rem; }
.tiers b { color: var(--text); font-weight: 600; margin-right: 6px; }
.twin-inputs { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; margin-top: clamp(32px, 5vw, 48px); padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.twin-inputs .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.twin-inputs .chips { margin-top: 8px; }
.twin-inputs p { margin: 0; color: var(--text-soft); }

/* Privacy */
.privacy-band { position: relative; overflow: hidden; background: #0E0B1A; color: #F5F1E8; }
.privacy-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 20%, rgba(139,124,246,.25), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(242,166,90,.12), transparent 70%); pointer-events: none; }
.privacy-band .wrap { position: relative; }
.privacy-band h2, .privacy-band h3 { color: #F5F1E8; }
.privacy-band .lede { color: #C9C2DD; }
.privacy-band .eyebrow { color: #F2A65A; }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.priv-grid div { padding: 22px; border-radius: 16px; background: rgba(245, 241, 232, 0.04); border: 1px solid rgba(245, 241, 232, 0.10); }
.priv-grid h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.priv-grid p { margin: 0; font-size: 0.93rem; color: #C9C2DD; }
.no-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.no-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(245, 241, 232, 0.16); color: #F5F1E8; }
.no-list li::before { content: ""; width: 10px; height: 2px; background: #F2A65A; transform: rotate(-45deg); }

/* Honesty */
.honesty { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); }
.honesty .badge { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; background: var(--glow-amber); color: var(--accent-2); white-space: nowrap; }
.honesty p:last-child { margin-bottom: 0; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap div { padding: 22px; border-radius: 16px; border: 1px dashed var(--line-strong); background: transparent; }
.roadmap h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.roadmap p { margin: 0; font-size: 0.93rem; color: var(--text-soft); }
.optin { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent-2); padding: 6px 12px; border-radius: 999px; background: var(--glow-amber); margin-bottom: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 20px 18px; color: var(--text-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* Closing CTA */
.closing { text-align: center; }
.closing .wrap { max-width: 760px; }
.closing h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; }
.closing .hero-cta { justify-content: center; margin-top: 28px; }

/* ---------- Legal / doc pages ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 160%; background: radial-gradient(40% 40% at 50% 50%, var(--glow-violet), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.doc { padding: 0 0 clamp(64px, 9vw, 112px); }
.doc h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 2.2em; padding-top: 0.2em; }
.doc h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 0.5em; }
.doc strong { color: var(--text); }
.summary-box { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 8px 0 12px; }
.summary-box ul { margin: 0; }
.summary-box li:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.01em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 0.84rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--accent); }
.placeholder { background: var(--glow-amber); color: var(--text); padding: 0 4px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }

.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card p { margin: 0; }
.steps-mini { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-mini li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps-mini li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; background: var(--glow-violet); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--text-soft); margin: 12px 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); }
.footer-base p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .plan-wrap, .twin-grid, .twin-inputs { grid-template-columns: 1fr; }
  .twin-card { max-width: 560px; }
  .grid-3, .priv-grid, .roadmap { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .hero .curve-card, .bridge { max-width: 560px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .priv-grid, .roadmap, .compare, .ensemble { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .step-num { font-size: 1.7rem; }
  .plan-row { grid-template-columns: 1fr; gap: 2px; padding: 11px 16px; }
  .plan-top, .plan-curve { padding-left: 16px; padding-right: 16px; }
  .motif { display: flex; flex-wrap: wrap; gap: 8px; }
  .motif div { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 999px; }
  .motif b { display: inline; font-size: 1.05rem; }
  .motif span { font-size: 0.8rem; }
  .step { padding: 20px 18px; }
  .plan-wrap { margin-left: -4px; margin-right: -4px; }
  .honesty { grid-template-columns: 1fr; gap: 14px; }
  .honesty .badge { justify-self: start; }
  .contact-card { grid-template-columns: 1fr; }
  .tw-block, .tw-foot { padding-left: 16px; padding-right: 16px; }
  .cf li { grid-template-columns: 70px 1fr; gap: 4px 10px; }
  .cf .p { grid-column: 2; }
  .bridge { padding: 20px; }
  .bridge-labels .q { font-size: 0.95rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .log li { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .tension-line { stroke-dashoffset: 0; }
  .tension-fill, .resolve-dot { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
