/* ProfileMend — shared styles. Mobile-first. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f2ec;
  --paper-2: #ede8df;
  --card: #fffdf9;
  --ink: #17122b;
  --ink-2: #3f3a55;
  --muted: #6b6679;
  --line: #e1dacd;
  --line-strong: #cfc6b6;
  --accent: #5b3df5;
  --accent-hover: #4a2ee0;
  --accent-soft: #ebe6ff;
  --warm: #e8622c;
  --warm-soft: #fde9df;
  --ok: #17845a;
  --ok-soft: #e1f3ea;
  --err: #b42318;
  --err-soft: #fdecea;
  --night: #130d2e;
  --night-2: #1d1640;
  --night-line: #3a3266;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(23, 18, 43, .06), 0 8px 24px -12px rgba(23, 18, 43, .18);
  --shadow-lg: 0 2px 4px rgba(23, 18, 43, .05), 0 24px 60px -24px rgba(23, 18, 43, .35);
  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 650; }

.visually-hidden {
  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(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02;
}
.display em { font-style: italic; color: var(--accent); }
.h-section { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--pill);
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --bg: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -10px rgba(91, 61, 245, .7);
}
.btn-primary:hover { --bg: var(--accent-hover); }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.08rem; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --fg: var(--ink); background: rgba(23,18,43,.04); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { --fg: var(--ink); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.cta-note {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center;
  font-size: .86rem; color: var(--muted); margin-top: 16px; padding: 0; list-style: none;
}
.cta-note li { display: inline-flex; align-items: center; gap: 6px; }
.cta-note svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: var(--pill); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(23,18,43,.05); }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.header-cta .price { opacity: .75; font-weight: 500; }
@media (min-width: 880px) {
  .nav { display: flex; gap: 2px; }
}
@media (max-width: 420px) {
  .header-cta .price { display: none; }
}

/* Hero (ref 01: centered headline, single pill CTA, glow) */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 112px) 0 clamp(64px, 9vw, 104px); isolation: isolate; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow .g1 { width: 60vw; height: 40vw; max-width: 760px; max-height: 480px; left: 50%; bottom: -18%; transform: translateX(-10%); background: #b9a8ff; }
.glow .g2 { width: 45vw; height: 32vw; max-width: 560px; max-height: 380px; left: -6%; bottom: -14%; background: #ffc7b5; opacity: .5; }
.glow .g3 { width: 30vw; height: 24vw; max-width: 380px; max-height: 300px; right: -4%; top: 10%; background: #c8dcff; opacity: .45; }
.hero-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 26px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--pill);
  font-size: .86rem; color: var(--ink-2);
}
.hero-badge b { white-space: nowrap; background: var(--ink); color: #fff; border-radius: var(--pill); padding: 3px 10px; font-weight: 600; font-size: .78rem; }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); margin-bottom: 22px; }
.hero .lede { margin: 0 auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trades { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; padding: 0; list-style: none; }
.trades li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--pill);
  font-size: .9rem; color: var(--ink-2);
}
.trades svg { width: 18px; height: 18px; color: var(--accent); }
.trades-label { font-size: .82rem; color: var(--muted); margin-top: 44px; margin-bottom: -30px; }

/* Guarantee strip (original) */
.promise { background: var(--night); color: #efeafc; position: relative; overflow: hidden; }
.promise-inner { display: grid; gap: 28px; align-items: center; padding-block: 36px; }
.promise-seal { width: 132px; height: 132px; position: relative; margin: 0 auto; flex: none; }
.promise-seal svg.ring { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.promise-seal .core {
  position: absolute; inset: 22px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #7c62ff, var(--accent) 60%, #3b22c4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 12px 30px -10px rgba(91,61,245,.9);
  font-family: var(--serif); line-height: .95; color: #fff;
}
.promise-seal .core b { display: block; font-size: 2.2rem; font-weight: 400; }
.promise-seal .core small { font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.promise-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.promise-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--night-line); }
.promise-list li:first-child { border-top: 0; }
.promise-list .k { font-family: var(--mono); font-size: .72rem; color: #a99cf0; padding-top: 4px; letter-spacing: .06em; }
.promise-list h3 { font-size: 1.02rem; margin: 0 0 2px; color: #fff; letter-spacing: -0.01em; }
.promise-list p { margin: 0; font-size: .9rem; color: #bdb4dc; line-height: 1.45; }
@media (min-width: 720px) {
  .promise-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .promise-list li:nth-child(2) { border-top: 0; }
}
@media (min-width: 1040px) {
  .promise-inner { grid-template-columns: auto 1fr; gap: 48px; }
  .promise-list { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .promise-list li { border-top: 0; border-left: 1px dashed var(--night-line); padding: 6px 22px; flex-direction: column; gap: 6px; }
  .promise-list li:first-child { border-left: 0; padding-left: 0; }
}

/* Problem / fit */
.fit-grid { display: grid; gap: 18px; margin-top: 40px; }
.fit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fit-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.fit-card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.fit-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.fit-card .ico svg { width: 22px; height: 22px; }
@media (min-width: 760px) { .fit-grid { grid-template-columns: repeat(3, 1fr); } }

/* What you get (ref 03: one-price copy left + dark numbered card) */
.included { display: grid; gap: 40px; align-items: start; }
.included-copy .h-section { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.included-copy ul { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.included-copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.included-copy li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.price-card { background: #201c2a; color: #ece9f2; border-radius: 14px; font-family: var(--mono); box-shadow: var(--shadow-lg); }
.price-card > div { padding: 26px clamp(20px, 4vw, 34px); position: relative; }
.price-card > div + div { border-top: 1px solid #36313f; }
.price-card > div + div::before, .price-card > div + div::after {
  content: ""; position: absolute; top: -1px; width: 44px; height: 3px; background: var(--paper); border-radius: 2px;
}
.price-card > div + div::before { left: 0; }
.price-card > div + div::after { right: 0; }
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-amount { font-family: var(--sans); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.price-meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #a8a2b6; }
@media (min-width: 480px) { .price-meta { text-align: right; } }
.inclusions { list-style: none; counter-reset: inc; display: grid; gap: 14px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.inclusions li { counter-increment: inc; display: grid; grid-template-columns: 40px 1fr; gap: 6px; }
.inclusions li::before { content: "0" counter(inc, decimal-leading-zero); color: #77708a; }
.inclusions li span { color: #e7e3ef; }
.inclusions li small { display: block; text-transform: none; letter-spacing: 0; color: #9e98ad; font-size: .78rem; margin-top: 2px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.price-actions .btn { font-family: var(--sans); }
.price-actions .fine { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #a8a2b6; }
@media (min-width: 960px) {
  .included { grid-template-columns: 5fr 7fr; gap: 64px; }
  .included-copy { position: sticky; top: 110px; }
}

/* Before / after showcase (original) */
.ba-toggle {
  display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--pill);
  margin: 28px auto 0;
}
.ba-toggle button {
  font: 600 .92rem var(--sans); border: 0; background: transparent; color: var(--ink-2);
  padding: 9px 20px; border-radius: var(--pill); cursor: pointer; min-height: 40px;
}
.ba-toggle button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.ba-stage { display: grid; gap: 22px; margin-top: 30px; }
.ba-panel { position: relative; }
.ba-panel[hidden] { display: none; }
.ba-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.ba-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ba-panel.after .ba-label .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  font-size: .94rem;
}
.listing-head { padding: 20px 22px 16px; border-bottom: 1px solid #eee9e0; }
.listing-head h3 { font-size: 1.28rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.listing-head .cat { color: var(--muted); font-size: .9rem; }
.listing-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 22px; border-bottom: 1px solid #f1ede6; align-items: start; }
.listing-row:last-child { border-bottom: 0; }
.listing-row svg { width: 18px; height: 18px; color: var(--muted); margin-top: 2px; }
.listing-row .k { display: block; font-size: .74rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.listing-row .v { color: var(--ink); }
.listing-row .empty { color: #a49c8e; font-style: italic; }
.listing-row .warn { display: inline-flex; align-items: center; gap: 6px; color: #9a4a1d; background: var(--warm-soft); border-radius: 6px; padding: 1px 8px; font-size: .84rem; font-style: normal; }
.listing-row.fixed { background: linear-gradient(90deg, rgba(91,61,245,.06), transparent 70%); }
.listing-row.fixed svg { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.chip.primary { background: var(--accent-soft); border-color: #d6ccff; color: #3a22c7; }
.ba-caption { margin-top: 22px; font-size: .85rem; color: var(--muted); max-width: 70ch; margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 900px) {
  .ba-toggle { display: none; }
  .ba-stage { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ba-panel[hidden] { display: block; }
  .ba-panel.before .listing { opacity: .92; }
}

/* How it works (ref 05: 01/02/03) */
.steps { display: grid; gap: 30px; list-style: none; margin-top: 44px; }
.how-step { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.how-step-num { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.how-step h3 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 8px 0 10px; text-transform: none; }
.how-step p { color: var(--ink-2); margin: 0; }
.how-step .tag { display: inline-block; margin-top: 14px; font-size: .78rem; font-family: var(--mono); letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 8px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Rules / boundaries */
.rules { display: grid; gap: 14px; margin-top: 36px; }
.rule { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rule .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.rule .mark svg { width: 18px; height: 18px; }
.rule.yes .mark { background: var(--ok-soft); color: var(--ok); }
.rule.no .mark { background: var(--warm-soft); color: var(--warm); }
.rule h3 { font-size: 1.02rem; margin: 4px 0 4px; letter-spacing: -0.01em; }
.rule p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }

/* Package card (ref 04) */
.package-section { position: relative; overflow: hidden; isolation: isolate; }
.package-section .loop { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; color: #c9bcff; opacity: .7; }
.package {
  max-width: 520px; margin: 40px auto 0; background: var(--card); border: 1.5px solid #cfc3ff; border-radius: var(--radius);
  padding: clamp(24px, 5vw, 36px); box-shadow: var(--shadow-lg); text-align: left;
}
.package h3 { font-size: 1.5rem; margin-bottom: 6px; }
.package .desc { color: var(--ink-2); margin-bottom: 18px; }
.package .amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.package .amount b { font-size: 3rem; letter-spacing: -0.03em; font-weight: 600; line-height: 1; }
.package .amount span { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; display: grid; gap: 11px; margin-top: 24px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }
.checklist li.no svg { color: var(--warm); }
.package .secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-top: 12px; }
.package .secure svg { width: 14px; height: 14px; }

/* FAQ dark (ref 06) */
.faq-dark { background: var(--night); color: #ece8fb; border-radius: clamp(20px, 3vw, 32px); padding: clamp(36px, 7vw, 80px) clamp(18px, 5vw, 64px); }
.faq-dark .h-section { color: #fff; text-align: center; margin-bottom: 10px; }
.faq-dark .sub { text-align: center; color: #b8afd8; margin-bottom: 40px; }
.faq-dark .sub a { color: #cfc4ff; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--night-line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); transition: border-color .2s ease, background-color .2s ease; }
.faq-item[open] { border-color: #6c5ce7; background-color: rgba(91,61,245,.10); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 550; font-size: 1.02rem; color: #fff; border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #d9d1ff; color: var(--night); display: grid; place-items: center; position: relative; }
.faq-item .pm::before, .faq-item .pm::after { content: ""; position: absolute; width: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.faq-item .pm::after { transform: rotate(90deg); }
.faq-item[open] .pm::after { transform: rotate(0deg); }
.faq-item .answer { padding: 0 20px 20px; color: #c9c1e6; font-size: .97rem; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer a { color: #d5ccff; }

/* FAQ light (ref 07) */
.faq-light { display: grid; gap: 10px; }
.faq-light details { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(23,18,43,.04); }
.faq-light summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.15; }
.faq-light summary::-webkit-details-marker { display: none; }
.faq-light .pm { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #bdb6aa; color: #fff; position: relative; transition: background-color .2s ease; }
.faq-light .pm::before, .faq-light .pm::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; background: currentColor; border-radius: 2px; }
.faq-light .pm::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-light details[open] .pm { background: var(--warm); }
.faq-light details[open] .pm::after { transform: rotate(0); }
.faq-light .answer { padding: 0 20px 18px; color: var(--ink-2); font-size: .97rem; }
.faq-light .answer p:last-child { margin: 0; }

/* Closing CTA (ref 10) */
.closer { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #8fb4ff 0%, #b8a6ff 45%, #f3c4d8 100%); color: var(--ink); }
.closer .texture {
  position: absolute; inset: -10% -5%; z-index: -1; font-family: var(--mono); font-size: 13px; line-height: 1.55;
  color: rgba(255,255,255,.34); word-break: break-all; overflow: hidden; user-select: none; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 80%);
}
.closer .cloud { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); background: rgba(255,255,255,.75); }
.closer .c1 { width: 420px; height: 260px; left: 28%; top: 10%; }
.closer .c2 { width: 300px; height: 220px; left: 46%; bottom: -10%; background: rgba(255,232,244,.8); }
.closer-inner { display: grid; gap: 28px; align-items: center; padding-block: clamp(64px, 10vw, 120px); }
.closer h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; margin: 0; max-width: 14ch; }
.closer p { margin: 14px 0 0; color: #2a2346; max-width: 44ch; }
.closer-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.closer-cta small { color: #2a2346; font-size: .84rem; }
@media (min-width: 860px) {
  .closer-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .closer-cta { align-items: flex-end; text-align: right; }
}

/* Footer (ref 02) */
.site-footer { background: #eef0f4; color: var(--ink-2); font-size: .92rem; border-top: 1px solid #e1e4ea; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; padding-block: 56px 30px; }
.footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
.footer-brand p { max-width: 34ch; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.footer-col h2 { font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { border-top: 1px solid #dde1e8; padding: 22px 0 34px; display: grid; gap: 10px; font-size: .82rem; color: var(--muted); }
.footer-legal p { margin: 0; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand, .footer-col:last-child { grid-column: auto; }
}

/* Sample page */
.doc-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); position: relative; overflow: hidden; isolation: isolate; }
.doc-hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); margin-bottom: 16px; }
.back-link { display: flex; width: fit-content; gap: 8px; align-items: center; color: var(--ink-2); text-decoration: none; font-size: .92rem; margin-bottom: 26px; }
.back-link:hover { color: var(--ink); }
.notice { display: grid; grid-template-columns: 26px 1fr; gap: 12px; background: #fff7e3; border: 1px solid #f1dca5; border-radius: var(--radius-sm); padding: 16px 18px; color: #4d3d10; font-size: .95rem; margin-top: 24px; max-width: 760px; }
.notice svg { width: 22px; height: 22px; color: #b98a06; margin-top: 1px; }
.notice p { margin: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.doc-meta li { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); }
.doc-layout { display: grid; gap: 32px; padding-bottom: 80px; }
.toc { display: none; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc ol a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--muted); padding-top: 2px; }
.toc ol a:hover, .toc ol a.is-active { background: var(--card); color: var(--ink); }
.toc .toc-cta { margin-top: 18px; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 230px 1fr; gap: 56px; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; }
}
.doc-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin-bottom: 18px; scroll-margin-top: 90px; }
.doc-section > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.doc-section .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.doc-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 0; letter-spacing: -0.01em; }
.doc-section h3 { font-size: 1rem; margin: 18px 0 8px; }
.doc-section p, .doc-section li { color: var(--ink-2); }
.score { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.score li { display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.score li:first-child { border-top: 0; }
.score .n { font-family: var(--mono); font-size: .78rem; color: var(--muted); padding-top: 3px; grid-row: span 2; }
.score .c { font-weight: 600; color: var(--ink); }
.score .w { color: var(--ink-2); font-size: .94rem; }
@media (min-width: 720px) {
  .score li { grid-template-columns: 38px 200px 1fr; }
  .score .n { grid-row: auto; }
}
.quote { margin: 0; padding: 22px 24px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 0 12px 12px 0; font-size: 1.02rem; color: var(--ink); }
.quote footer { margin-top: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.def-list { list-style: none; display: grid; gap: 10px; }
.def-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.def-list b { color: var(--ink); display: block; }
.posts { list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .posts { grid-template-columns: 1fr 1fr; } }
.post { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.post p { margin: 0; color: var(--ink); }
.post .fake-btn { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--accent); border: 1px solid #d6ccff; border-radius: var(--pill); padding: 4px 12px; }
.reply { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; margin-bottom: 10px; }
.reply .who { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.reply p { margin: 0; color: var(--ink); }
.qa dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 4px 0 0; color: var(--ink-2); }
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-grid li { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 14px; font-size: .92rem; color: var(--ink-2); display: flex; gap: 10px; align-items: center; background: #fff; }
.photo-grid svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-cta { display: grid; gap: 20px; align-items: center; background: var(--night); color: #efeafc; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin-top: 26px; }
.doc-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin: 0 0 6px; }
.doc-cta p { margin: 0; color: #bdb4dc; }
.doc-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-cta .btn-ghost { --fg: #fff; border-color: #4a4180; }
.doc-cta .btn-ghost:hover { --fg: #fff; background: rgba(255,255,255,.06); }
@media (min-width: 860px) { .doc-cta { grid-template-columns: 1fr auto; } }

/* Simple prose pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }

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

/* Mobile sticky buy bar */
.buy-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(19, 13, 46, .94); color: #fff; padding: 10px 10px 10px 18px; border-radius: var(--pill);
  box-shadow: 0 16px 40px -12px rgba(19,13,46,.6); transform: translateY(140%); transition: transform .3s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.buy-bar.is-visible { transform: none; }
.buy-bar .t { font-size: .9rem; line-height: 1.2; }
.buy-bar .t b { display: block; font-size: 1rem; }
.buy-bar .t span { color: #bdb4dc; font-size: .78rem; }
.buy-bar .btn { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
@media (min-width: 880px) { .buy-bar { display: none; } }
