/*
  Typography and article layout for the content-page preview.
  Colours, type and spacing follow the existing privacy and pricing pages.
  The shared header and footer stay in site.css, which is an exact copy of the live file.
*/
:root {
  --paper: #f4f5f3;
  --card: #ffffff;
  --ink: #14171c;
  --soft: #5e6470;
  --faint: #626864;
  --rule: #dde0dc;
  --ember: #c2185b;
  --ember-ink: #ffffff;
  --ember-soft: #fbe3ec;
  --grain: rgba(139,58,23, 0.028);
  --display: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --body: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --tick: #2e7d4f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16181c;
    --card: #222528;
    --ink: #f2f3f5;
    --soft: #9aa1ad;
    --faint: #9aa1ad;
    --rule: #30343b;
    --ember: #f27aa6;
    --ember-ink: #16181c;
    --ember-soft: #292c30;
    --grain: rgba(255,210,160, 0.022);
    --tick: #34d399;
  }
}
:root[data-theme="dark"] {
  --paper: #16181c;
  --card: #222528;
  --ink: #f2f3f5;
  --soft: #9aa1ad;
  --faint: #9aa1ad;
  --rule: #30343b;
  --ember: #f27aa6;
  --ember-ink: #16181c;
  --ember-soft: #292c30;
  --grain: rgba(255,210,160, 0.022);
  --tick: #34d399;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, var(--grain) 0 1px, transparent 1px 3px);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.04; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.18; margin: 0 0 12px; }
h3 { font-size: 17.5px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--soft); margin-bottom: 8px; }
.kicker {
  font: 600 12px var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 12px;
}

.article { max-width: 720px; margin: 0 auto; padding: 28px 0 64px; }
.article > h2, .article section > h2 { margin-top: 42px; }
.article > h3, .article section > h3 { margin-top: 26px; }

.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li:last-child { margin-bottom: 0; }

.sources { margin-top: 42px; padding-top: 8px; color: var(--soft); font-size: 14.5px; }
.sources h2 { font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--soft); }
.sources ul { padding-left: 20px; }
.sources a { color: var(--ink); }

.note {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.note p:last-child { margin-bottom: 0; }

.cta-box {
  margin: 42px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.cta-box p:last-of-type { margin-bottom: 0; }
.cta-box .pp-btn { margin-top: 14px; }

.faq { margin-top: 12px; }
.faq details {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--display);
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--soft);
  font-weight: 500;
}
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 10px 0 4px; color: var(--soft); }

.search-q {
  margin: 28px 0 0;
  padding: 0 0 18px;
  border-bottom: 1px dashed var(--rule);
}
.search-q:last-child { border-bottom: 0; padding-bottom: 0; }
.search-q p.q {
  font-weight: 600;
  margin-bottom: 6px;
}
.search-q p { color: var(--soft); }
.search-q p.q { color: var(--ink); }

.card-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .card-grid > .card:only-child { max-width: calc(50% - 8px); }
}
.card {
  display: block;
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--card);
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--soft); }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--soft); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); }

.split {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--card);
}
.split h3 { margin-bottom: 8px; }
.split ul { margin: 0; padding-left: 20px; }
.split li { color: var(--soft); font-size: 15.5px; }
.split .other { }
.split .ours { border-color: color-mix(in srgb, var(--ember) 45%, var(--rule)); }

.price-list {
  margin: 16px 0 0;
  padding: 4px 0 0;
  border-top: 1px dashed var(--rule);
}
.price-list > div {
  display: grid;
  gap: 2px 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
@media (min-width: 620px) { .price-list > div { grid-template-columns: 150px 1fr; } }
.price-list dt { font-weight: 600; font-size: 15.5px; }
.price-list dd { margin: 0; color: var(--soft); font-size: 15.5px; }

.muted { color: var(--soft); font-size: 15.5px; }
.crumb { font-size: 14.5px; color: var(--soft); margin: 0 0 18px; }
.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { color: var(--ember); }

/* Extra nav items need room on mid-width screens. Live site.css is unchanged. */
@media (max-width: 1100px) {
  .pp-nav__links { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .pp-nav__links { gap: 12px; }
  .pp-nav__links .pp-extra { font-size: 14px; }
}

/* Preview contents page */
.preview-note {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ember-soft);
  border: 1px solid var(--rule);
}
.preview-note p:last-child { margin-bottom: 0; }

.article .compare-table {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 8px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.article th, .article td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
}
.article th { font-weight: 600; }
.article td { color: var(--soft); }
.article th:first-child, .article td:first-child {
  color: var(--ink);
  font-weight: 600;
  width: 22%;
}
