/* ============================================================
   CreateDeck — content pages (compare, guides, use-cases)
   Built ON TOP of the landing design system (styles.css must
   load first; this sheet reuses its :root tokens, .shell, .btn,
   .nav, .drench, .foot, [data-reveal], etc.). It only adds the
   article / comparison / hub components the content pages need.
   Same DNA: Anton poster type, Archivo body, Spline Sans Mono
   telemetry, flat & matte, flame + sapphire. No glow.
   ============================================================ */

/* page rhythm */
.page { padding-bottom: clamp(20px, 4vw, 40px); }
.col { max-width: 768px; margin-inline: auto; }

/* ---------- breadcrumb ---------- */
.crumbs {
  padding-top: clamp(20px, 3vw, 34px);
  font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--tertiary); display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text); }
.crumbs i { color: var(--tertiary); font-style: normal; }

/* ---------- article / page hero ---------- */
.ahero { padding-block: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 46px); }
.ahero__eyebrow {
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); display: inline-flex; align-items: center;
}
.ahero__eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--flame);
  border-radius: 2px; margin-right: 11px; flex: 0 0 auto;
}
.ahero__eyebrow--blue::before { background: var(--sapphire); }
.ahero__title {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 0.97;
  text-transform: uppercase; letter-spacing: -0.005em;
}
.ahero__title em { font-style: normal; color: var(--flame); }
.ahero__title em.blue { color: var(--sapphire); }
.ahero__dek {
  margin-top: clamp(20px, 2.6vw, 30px); max-width: 60ch;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.5; color: var(--muted);
}
.ahero__meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tertiary);
}
.ahero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--tertiary); }
.ahero__meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.ahero__meta .by svg { width: 18px; height: 18px; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.62; color: #d9d9de; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; color: var(--text);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.1;
  margin-top: 1.7em; padding-top: 0.2em;
}
.prose h2::before {
  content: ""; display: block; width: 34px; height: 4px; background: var(--flame);
  border-radius: 2px; margin-bottom: 22px;
}
.prose h3 {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; color: var(--text);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; margin-top: 1.5em;
}
.prose p { max-width: 68ch; }
.prose a { color: var(--maya); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.prose a:hover { color: #fff; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { max-width: 68ch; display: grid; gap: 10px; padding-left: 4px; }
.prose li { padding-left: 28px; position: relative; }
.prose ul > li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; background: var(--flame); border-radius: 2px;
}
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: 0.05em;
  font-family: var(--mono); font-size: 0.78rem; color: var(--sapphire); font-weight: 600;
}
.prose blockquote {
  border-left: 3px solid var(--flame); padding: 4px 0 4px 22px; margin-left: 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; letter-spacing: -0.005em; color: var(--text);
}
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 2.4em; }
.prose code {
  font-family: var(--mono); font-size: 0.88em; color: var(--maya);
  background: var(--card); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--hairline);
}
.prose .lede { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.prose figure { margin: 0; }
.prose figcaption { margin-top: 12px; font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tertiary); }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--hairline); border-left: 3px solid var(--flame);
  background: var(--card); border-radius: var(--r-card); padding: clamp(22px, 3vw, 30px);
}
.callout--blue { border-left-color: var(--sapphire); }
.callout__label {
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--flame); margin-bottom: 12px;
}
.callout--blue .callout__label { color: var(--sapphire); }
.callout p { color: #d9d9de; line-height: 1.6; }
.callout p + p { margin-top: 12px; }

/* ---------- comparison table ---------- */
.cmp-wrap {
  border: 1px solid var(--hairline); border-radius: var(--r-card); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp caption { text-align: left; padding: 0 0 16px; color: var(--tertiary); font-size: 0.9rem; }
.cmp th, .cmp td { text-align: left; padding: 16px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp thead th {
  font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 500; background: var(--sunken);
}
.cmp thead th.is-cd { color: var(--on-color); background: var(--flame); font-weight: 700; }
.cmp tbody th[scope="row"] { font-weight: 700; color: var(--text); width: 30%; }
.cmp td { color: var(--muted); font-size: 0.97rem; line-height: 1.45; }
.cmp .is-cd { background: rgba(254,98,55,0.07); color: #ededf0; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .mk { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; margin-right: 8px; vertical-align: -5px; }
.cmp .mk--yes { color: var(--flame); }
.cmp .is-cd .mk--yes { color: var(--flame); }
.cmp .mk--no { color: var(--tertiary); }
.cmp-note { margin-top: 14px; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tertiary); }

/* ---------- pros / cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc__col { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: clamp(22px, 3vw, 30px); }
.pc__col h3 { margin: 0 0 16px; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pc__col--up h3 { color: var(--flame); }
.pc__col--down h3 { color: var(--muted); }
.pc__col ul { display: grid; gap: 12px; }
.pc__col li { position: relative; padding-left: 26px; color: #cfcfd4; line-height: 1.5; }
.pc__col--up li::before { content: "+"; position: absolute; left: 2px; top: -1px; color: var(--flame); font-weight: 800; }
.pc__col--down li::before { content: "\2013"; position: absolute; left: 2px; top: -1px; color: var(--tertiary); font-weight: 800; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat__n { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.9; }
.stat:nth-child(2) .stat__n { color: var(--flame); }
.stat:nth-child(3) .stat__n { color: var(--sapphire); }
.stat__l { margin-top: 12px; color: var(--muted); font-size: 0.98rem; line-height: 1.4; }

/* ---------- hub grid of cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.gcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gcard:nth-child(even)::before { background: var(--sapphire); }
.gcard:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.gcard:hover::before { transform: scaleX(1); }
.gcard__cat { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.gcard h3 { margin-top: 14px; font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.08; }
.gcard p { margin-top: 12px; color: var(--muted); font-size: 0.98rem; line-height: 1.5; flex: 1; }
.gcard__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; color: var(--text); }
.gcard__more svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.gcard:hover .gcard__more svg { transform: translateX(4px); }
.gcard a.gcard__link { position: absolute; inset: 0; }

/* section heading inside content pages */
.shead { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 0.98; }
.shead--sub { margin-top: 16px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; max-width: 56ch; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -0.01em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.5rem; color: var(--flame); line-height: 1; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--flame); }
.faq__a { padding: 0 44px 26px 0; color: var(--muted); line-height: 1.6; max-width: 70ch; }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--maya); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- in-page CTA band ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--flame); color: var(--on-color);
  border-radius: var(--r-card-lg); padding: clamp(36px, 6vw, 72px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.band--sapphire { background: var(--sapphire); color: #fff; }
.band__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(2rem, 5vw, 4rem); line-height: 0.97; max-width: 18ch; color: inherit; }
.band p { margin-top: 18px; max-width: 52ch; font-size: 1.08rem; line-height: 1.5; }
.band--sapphire p { color: rgba(255,255,255,0.9); }
.band .btn { margin-top: 30px; }
.band__meta { margin-top: 18px; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(10,10,10,0.6); }
.band--sapphire .band__meta { color: rgba(255,255,255,0.7); }

/* ---------- tags / related ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--card); border: 1px solid var(--hairline); padding: 8px 14px; border-radius: var(--r-pill); transition: color .2s var(--ease), border-color .2s var(--ease); }
a.tag:hover { color: var(--text); border-color: var(--hairline-strong); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rcard { display: block; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px 24px; transition: transform .22s var(--ease), border-color .22s var(--ease); }
.rcard:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }
.rcard span { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sapphire); }
.rcard h4 { margin-top: 10px; font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.01em; }

/* generic block spacing util */
.stack { display: grid; gap: clamp(40px, 6vw, 88px); }
.gap-sm { display: grid; gap: clamp(20px, 3vw, 32px); }
.mt { margin-top: clamp(40px, 6vw, 80px); }
.mt-sm { margin-top: clamp(20px, 3vw, 36px); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .pc { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}
