/* ==========================================================================
   Ring Sizer — ringsizerr.com
   Palette and type echo the app: warm near-black surfaces, blush gradients,
   gold accents, a serif display face against a neutral UI sans.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink:        #14090c;
  --ink-2:      #1d1013;
  --ink-3:      #2b191e;
  --ink-line:   #3a2429;

  --cream:      #fffaf8;
  --cream-2:    #fff1ed;
  --cream-3:    #ffe3dd;

  --rose:       #e0455f;   /* accent on light surfaces */
  --rose-600:   #c9354e;
  --rose-btn:   #c9354e;   /* white text on this = 5.12:1 (AA) */
  --rose-btn-h: #ab2b41;   /* hover = 6.9:1 */
  --rose-soft:  #ff8fa0;
  --rose-tint:  #ffe6e9;
  --gold:       #b8862f;
  --gold-soft:  #f0cf95;

  --text:       #1b1013;
  --text-dim:   #6d585c;
  --text-mute:  #8d787c;
  --inv:        #fdf5f4;
  --inv-dim:    #cbb2b7;
  --inv-mute:   #9d868b;

  --line:       #f0dcd7;
  --line-2:     #e4cbc5;

  --radius:     18px;
  --radius-lg:  28px;
  --radius-sm:  11px;

  --shadow-sm:  0 1px 2px rgba(60,20,30,.06), 0 4px 12px rgba(60,20,30,.05);
  --shadow:     0 2px 6px rgba(60,20,30,.07), 0 14px 40px rgba(60,20,30,.10);
  --shadow-lg:  0 4px 12px rgba(60,20,30,.10), 0 30px 70px rgba(60,20,30,.18);

  --wrap:       1140px;
  --wrap-narrow: 760px;

  --ff-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --ff-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-600); text-decoration-color: rgba(224,69,95,.32); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.55rem); }
h2 { font-size: clamp(1.72rem, 3.7vw, 2.5rem); }
h3 { font-size: clamp(1.24rem, 2.3vw, 1.5rem); }
h4 { font-size: 1.08rem; font-family: var(--ff-body); font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
strong { font-weight: 650; color: #150a0d; }
small { font-size: .84rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
section { padding: clamp(3.6rem, 7vw, 6.4rem) 0; }
/* The nav is sticky at 68px; keep anchor targets clear of it. */
[id] { scroll-margin-top: 86px; }
.sec-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3.1rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .755rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--rose-600); margin-bottom: .9rem;
}
.dark .eyebrow { color: var(--rose-soft); }

.dark { background: var(--ink); color: var(--inv); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--inv); }
.dark p, .dark li { color: var(--inv-dim); }
.dark .sec-head p { color: var(--inv-dim); }
.dark strong { color: #fff; }
.dark a { color: var(--rose-soft); }
.tint { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rose-btn); color: #fff; box-shadow: 0 6px 20px rgba(201,53,78,.32); }
.btn--primary:hover { background: var(--rose-btn-h); color: #fff; box-shadow: 0 10px 28px rgba(201,53,78,.42); }
.btn--ghost { border-color: var(--line-2); background: #fff; color: var(--text); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-600); }
.dark .btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--inv); }
.dark .btn--ghost:hover { border-color: var(--rose-soft); background: rgba(255,255,255,.11); }

/* App Store badge (inline SVG, scales cleanly) */
.appstore { display: inline-flex; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.appstore:hover { transform: translateY(-2px); filter: brightness(1.06); }
.appstore svg { height: 56px; width: auto; display: block; }
.appstore--sm svg { height: 46px; }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,250,248,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(60,20,30,.06); }
.nav__in { display: flex; align-items: center; gap: 1.4rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--text); font-weight: 700; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand span { font-family: var(--ff-display); font-size: 1.18rem; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--text-dim); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .16s ease; }
.nav__links a:hover { color: var(--rose-600); }
.nav__cta { margin-left: 1.1rem; }
/* .nav__links a would otherwise win on specificity and grey out the CTA label. */
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: #fff; }
.nav__cta .btn { padding: .62rem 1.25rem; font-size: .93rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav__toggle svg { width: 26px; height: 26px; stroke: var(--text); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 22px 1.2rem; margin: 0; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .82rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__cta { margin: .9rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 8%,  rgba(224,69,95,.34), transparent 62%),
    radial-gradient(760px 480px at 12% 92%, rgba(184,134,47,.20), transparent 62%),
    var(--ink);
  color: var(--inv);
  padding: clamp(3.2rem, 6vw, 5.4rem) 0 clamp(3.6rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 130px;
  background: linear-gradient(180deg, transparent, rgba(255,250,248,.06));
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: var(--shadow-lg); margin-bottom: 1.4rem; }
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: var(--rose-soft); }
.hero__sub { font-size: clamp(1.04rem, 1.7vw, 1.19rem); color: var(--inv-dim); max-width: 30rem; margin-bottom: 1.7rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.hero__note { font-size: .9rem; color: var(--inv-mute); margin: 0; }
.hero__note b { color: var(--gold-soft); font-weight: 600; }

.hero__art { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero__shot {
  width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.10);
}
.hero__chip {
  position: absolute; left: -18px; bottom: 12%;
  background: rgba(24,13,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 15px;
  padding: .72rem .95rem; box-shadow: var(--shadow-lg); text-align: left;
}
.hero__chip b { display: block; font-family: var(--ff-display); font-size: 1.32rem; color: #fff; line-height: 1.1; }
.hero__chip span { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--rose-soft); font-weight: 600; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__icon { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { max-width: 300px; margin-top: 1rem; }
  .hero__chip { left: -10px; }
}

/* ---------- proof chips ---------- */
.proof { background: var(--ink-2); border-top: 1px solid var(--ink-line); padding: 1.6rem 0; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.proof__item { text-align: center; }
.proof__item b { display: block; font-family: var(--ff-display); font-size: 1.42rem; color: #fff; line-height: 1.2; }
.proof__item span { font-size: .82rem; color: var(--inv-mute); }
@media (max-width: 700px) { .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.15rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.45rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.card p { color: var(--text-dim); font-size: .965rem; margin-bottom: 0; }
.card__ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--rose-tint); margin-bottom: 1rem;
}
.card__ico svg { width: 22px; height: 22px; stroke: var(--rose-600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); box-shadow: none; }
.dark .card p { color: var(--inv-dim); }
.dark .card__ico { background: rgba(224,69,95,.16); }
/* rose-600 only clears 3.6:1 on the dark card surface — use the light accent there. */
.dark .card__kicker, .dark .card__more { color: var(--rose-soft); }
.dark .card__ico svg { stroke: var(--rose-soft); }

a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.dark a.card:hover { border-color: rgba(255,143,160,.42); }
.card__kicker { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--rose-600); font-weight: 700; display: block; margin-bottom: .55rem; }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 600; font-size: .93rem; color: var(--rose-600); }
.card__more::after { content: "→"; transition: transform .18s ease; }
a.card:hover .card__more::after { transform: translateX(3px); }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 44px rgba(0,0,0,.42); background: var(--ink-2);
}
.shots figcaption { font-size: .845rem; color: var(--inv-mute); margin-top: .7rem; text-align: center; line-height: 1.45; }
@media (max-width: 1080px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  {
  .shots { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .shots figcaption { font-size: .78rem; }
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step { position: relative; padding-top: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.28rem; font-weight: 700;
  background: var(--rose-btn); color: #fff; box-shadow: 0 6px 18px rgba(201,53,78,.32);
}
.step h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .97rem; margin-bottom: 0; }
.dark .step p { color: var(--inv-dim); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 1.9rem; } }

/* ---------- converter widget ---------- */
.conv {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.conv__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.conv__field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--rose-600); margin-bottom: .45rem; }
.conv__field select, .conv__field input {
  width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--cream); color: var(--text);
  font-size: 1.05rem; font-family: inherit; font-weight: 600;
}
.conv__field select { cursor: pointer; }
.conv__out {
  font-family: var(--ff-display); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700;
  background: var(--rose-tint); border: 1px solid #ffd0d6; border-radius: var(--radius-sm);
  padding: .48rem .95rem; color: var(--rose-600); min-height: 3.4rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.conv__swap {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--cream); cursor: pointer; display: grid; place-items: center;
  align-self: center; margin-top: 1.9rem;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.conv__swap:hover { border-color: var(--rose); background: var(--rose-tint); transform: rotate(180deg); }
.conv__swap svg { width: 20px; height: 20px; stroke: var(--rose-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.conv__meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.conv__meta span {
  font-size: .86rem; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .34rem .85rem; color: var(--text-dim);
}
.conv__meta b { color: var(--text); font-weight: 650; }
@media (max-width: 640px) {
  .conv__row { grid-template-columns: 1fr; }
  .conv__swap { justify-self: center; transform: rotate(90deg); margin: .2rem 0; align-self: auto; }
  .conv__swap:hover { transform: rotate(270deg); }
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
thead th {
  background: var(--ink); color: #fff; font-family: var(--ff-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .82rem .9rem; text-align: left; white-space: nowrap; position: sticky; top: 0;
}
tbody td { padding: .68rem .9rem; border-top: 1px solid var(--line); white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--cream-2); }
tbody tr:hover { background: var(--rose-tint); }
tbody td:first-child { font-weight: 700; color: var(--rose-600); }
caption { caption-side: bottom; padding: .9rem; font-size: .86rem; color: var(--text-mute); text-align: left; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.6rem 1.25rem 0; position: relative;
  font-family: var(--ff-display); font-size: clamp(1.06rem, 2vw, 1.24rem); font-weight: 700;
  color: var(--text); transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rose-600); }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--rose); border-bottom: 2px solid var(--rose);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__body { padding: 0 0 1.4rem; max-width: 68ch; }
.faq__body p { color: var(--text-dim); margin-bottom: .8rem; }
.faq__body p:last-child { margin-bottom: 0; }
.learn-more { display: inline-flex; align-items: center; gap: .38rem; font-weight: 650; font-size: .95rem; text-decoration: none; color: var(--rose-600); }
.learn-more::after { content: "→"; transition: transform .18s ease; }
.learn-more:hover { text-decoration: underline; }
.learn-more:hover::after { transform: translateX(3px); }

/* ---------- article ---------- */
.page-hero {
  background:
    radial-gradient(720px 420px at 82% 0%, rgba(224,69,95,.30), transparent 60%),
    var(--ink);
  color: var(--inv); padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(2.4rem, 4.4vw, 3.4rem);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero__meta { color: var(--inv-mute); font-size: .9rem; margin: .9rem 0 0; }
.page-hero__meta a { color: var(--inv-dim); }

.crumbs { font-size: .85rem; color: var(--inv-mute); margin-bottom: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: rgba(255,255,255,.28); }
.crumbs ol { align-items: center; }
.crumbs a { color: var(--inv-dim); text-decoration: none; display: inline-block; padding: .3rem 0; }
.crumbs a:hover { color: var(--rose-soft); text-decoration: underline; }

.prose { max-width: 72ch; font-size: 1.045rem; }
.prose h2 { margin-top: 2.5rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.9rem; scroll-margin-top: 90px; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .55em; }
.prose .table-scroll { margin: 1.7rem 0; }
.prose table { font-size: .93rem; }

.answer {
  background: linear-gradient(135deg, var(--cream-2), #fff);
  border: 1px solid var(--line); border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm); padding: 1.15rem 1.3rem; margin-bottom: 2rem;
  font-size: 1.075rem; line-height: 1.62;
}
.answer p { margin: 0; }
.answer p + p { margin-top: .7rem; }

.callout {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; margin: 1.7rem 0; box-shadow: var(--shadow-sm);
}
.callout__title { display: block; font-weight: 700; font-size: .96rem; margin-bottom: .4rem; color: var(--rose-600); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: #fff9f2; border-color: #f2dfc4; }
.callout--warn .callout__title { color: var(--gold); }

blockquote {
  margin: 1.7rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--rose-soft);
  font-family: var(--ff-display); font-size: 1.14rem; color: var(--text-dim); font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

.inline-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  background: var(--ink); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 2.2rem 0;
}
.inline-cta img { width: 54px; height: 54px; border-radius: 14px; }
.inline-cta b { display: block; font-family: var(--ff-display); font-size: 1.14rem; color: #fff; line-height: 1.25; }
.inline-cta span { font-size: .9rem; color: var(--inv-mute); }
@media (max-width: 660px) {
  .inline-cta { grid-template-columns: auto 1fr; text-align: left; }
  .inline-cta .appstore { grid-column: 1 / -1; }
}

.toc {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 2.2rem;
}
.toc b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-600); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 1.8rem; }
.toc li { margin-bottom: .1em; font-size: .95rem; break-inside: avoid; }
.toc a { color: var(--text-dim); text-decoration: none; display: inline-block; padding: .22rem 0; }
.toc a:hover { color: var(--rose-600); text-decoration: underline; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.related { margin-top: 3.2rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.45rem; margin-bottom: 1.1rem; }

/* ---------- index lists ---------- */
.linklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.linklist li { margin: 0; border-bottom: 1px solid var(--line); }
.linklist a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem;
  padding: 1rem .3rem; text-decoration: none; color: var(--text); transition: color .16s ease, padding .16s ease;
}
.linklist a:hover { color: var(--rose-600); padding-left: .7rem; }
.linklist__title { flex: 1 1 auto; min-width: 0; }
.linklist__meta { color: var(--text-mute); font-size: .875rem; text-align: right; flex-shrink: 0; max-width: 40%; }
.dark .linklist { border-color: var(--ink-line); }
.dark .linklist li { border-color: var(--ink-line); }
.dark .linklist a { color: var(--inv); }
.dark .linklist__meta { color: var(--inv-mute); }

/* ---------- final CTA ---------- */
.finale {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(224,69,95,.34), transparent 62%),
    var(--ink);
  color: var(--inv);
}
.finale img.finale__icon { width: 84px; height: 84px; border-radius: 21px; margin: 0 auto 1.4rem; box-shadow: var(--shadow-lg); }
.finale h2, .finale h1 { color: #fff; max-width: 17ch; margin-inline: auto; }
.finale p { color: var(--inv-dim); max-width: 46ch; margin: 0 auto 1.9rem; }
.finale .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); color: var(--inv-dim); padding: 3.4rem 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.6rem; }
.footer__brand p { color: var(--inv-mute); max-width: 30ch; font-size: .9rem; margin: .9rem 0 1.1rem; }
.footer .brand { color: var(--inv); }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .2rem; }
.footer a { color: var(--inv-dim); text-decoration: none; transition: color .16s ease;
            display: inline-block; padding: .26rem 0; }  /* >=24px tap target */
.footer a:hover { color: var(--rose-soft); }
.footer__base {
  border-top: 1px solid var(--ink-line); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; justify-content: space-between; align-items: center;
  color: var(--inv-mute); font-size: .87rem;
}
.footer__base p { margin: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
/* Scoped to .js so that with JavaScript off the content is simply visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- utilities ---------- */
.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: 50%; top: -60px; transform: translateX(-50%); z-index: 200;
  background: var(--rose-btn); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; transition: top .18s ease;
}
.skip-link:focus { top: 0; }
.center { text-align: center; }
.mt-lg { margin-top: 2.4rem; }
