/* =============================================================
   pages.css - Arclify subpage design layer ("Cinematic Ascent")
   Loads AFTER shared.css on the new content pages
   (/compare/, /reviews/, /habits/). It ports the root landing
   page's look (dark + gold, Bricolage display, hairlines) into
   reusable content components. No GSAP / Lenis here: subpages
   use a light IntersectionObserver reveal only (pages.js) and
   render fully with JavaScript disabled.
   ============================================================= */

/* ── Display face (self-hosted; consent rule: never Google Fonts) ── */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 200 800; font-style: normal; font-display: swap;
  src: url('/fonts/bricolage.woff2') format('woff2');
}

/* ── Tokens (mirror of the root index) ───────────────────── */
:root {
  --ink: #04060A;
  --s0: #080B11;
  --s1: #0D1118;
  --brd: rgba(255, 255, 255, .09);
  --brd-soft: rgba(255, 255, 255, .055);
  --tx: #F6F7F9;
  --mut: #9AA2AE;
  --mut-d: #616976;
  --gold: #FBBF24;
  --gold-2: #FFD566;
  --ember: #FF8A3D;
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --disp: 'Bricolage Grotesque', 'Inter', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --body: #C4CAD4;
}

html { background: var(--ink); }
body { overflow-x: clip; color: var(--tx); background: transparent; }

.bg {
  background:
    radial-gradient(1100px 700px at 50% -12%, rgba(251, 191, 36, .16), transparent 58%),
    radial-gradient(900px 800px at 85% 30%, rgba(255, 138, 61, .05), transparent 55%),
    radial-gradient(1200px 1000px at 50% 130%, #02040799, transparent),
    var(--ink) !important;
}
.bg::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 240px 60px rgba(0, 0, 0, .6);
}

::selection { background: rgba(251, 191, 36, .28); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section[id], [id] { scroll-margin-top: 90px; }

.kick {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--disp); font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.kick::before { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: .7; }
.kick--bare::before { display: none; }

/* ── Topbar (index look) ─────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--brd-soft); }
.topbar::before { background: rgba(4, 6, 10, .68); }
.topbar .container { max-width: var(--maxw); padding-inline: var(--pad); }
.topbarInner { justify-content: space-between; }
.brandName { font-family: var(--disp); letter-spacing: .1em; }
.topCta {
  font-family: var(--disp);
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: .03em;
  color: #0A0A0A; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 30px rgba(251, 191, 36, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.topCta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(251, 191, 36, .45); }
@media (max-width: 560px) { .topCta { display: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btnRow { display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  font-family: var(--disp);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 30px; border-radius: 14px;
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--gold); color: #0A0A0A;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 44px rgba(251, 191, 36, .3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cta::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transition: left .6s var(--ease);
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(251, 191, 36, .46); }
.cta:hover::after { left: 130%; }
.cta--ghost { background: transparent; color: var(--tx); border-color: var(--brd); box-shadow: none; }
.cta--ghost::after { display: none; }
.cta--ghost:hover { border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .06); }

/* ── Section headings ────────────────────────────────────── */
.sec { padding: clamp(64px, 9vh, 120px) 0; }
.secHead { max-width: 720px; margin-bottom: 44px; }
.secHead.center { margin-inline: auto; text-align: center; }
.secHead.center .kick { justify-content: center; }
.secHead.center .kick::before { display: none; }
.secTitle { font-family: var(--disp); font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.025em; line-height: 1.03; margin: 18px 0 0; color: #fff; }
.secSub { color: var(--mut); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; margin: 16px 0 0; max-width: 56ch; }
.center .secSub { margin-inline: auto; }

/* ── Page hero (content pages: slimmer than the landing hero) ── */
.pHero { padding: clamp(48px, 7vh, 84px) 0 clamp(26px, 4vh, 46px); }
.pHero .kick { margin-bottom: 4px; }
.pTitle {
  font-family: var(--disp);
  font-size: clamp(36px, 5.6vw, 64px); line-height: .99; font-weight: 700;
  letter-spacing: -.03em; margin: 14px 0 16px; color: #fff; max-width: 22ch;
}
.pTitle .gold { color: var(--gold); }
.pLead { color: var(--mut); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; max-width: 60ch; margin: 0; }

.crumbs { margin: 22px 0 0; font-size: 13px; color: var(--mut-d); }
.crumbs a { color: var(--mut-d); transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 7px; opacity: .6; }

/* ── Answer box (the extractable direct answer) ──────────── */
.answerBox {
  border: 1px solid rgba(251, 191, 36, .4); border-radius: 18px;
  background: linear-gradient(180deg, rgba(251, 191, 36, .08), rgba(13, 17, 24, .6));
  padding: 22px 26px; max-width: 760px; margin: 34px 0 0;
}
.answerBox .abLabel {
  display: block; font-family: var(--disp); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px;
}
.answerBox p { margin: 0; color: #E9EBEF; line-height: 1.75; font-size: 16.5px; }
.answerBox strong { color: var(--gold); }

/* ── Jump pills (e.g. "Arclify vs X" quick links) ────────── */
.jumpRow { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.jumpRow a {
  font-family: var(--disp); font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--tx); padding: 9px 16px; border: 1px solid var(--brd); border-radius: 999px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.jumpRow a:hover { border-color: rgba(251, 191, 36, .55); color: var(--gold); background: rgba(251, 191, 36, .05); }

/* ── Article typography ──────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--disp); font-size: clamp(24px, 2.8vw, 33px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #fff; margin: 52px 0 14px; }
.prose h3 { font-family: var(--disp); font-size: 19px; font-weight: 700; color: #fff; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--body); line-height: 1.8; font-size: 16.5px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--body); }
.prose li { margin: 0 0 10px; line-height: 1.75; }
.prose a { color: var(--gold); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: #fff; }
.prose em { color: var(--tx); }
.prose blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold);
  color: var(--tx); font-size: 17px; line-height: 1.7;
}
.prose blockquote p { color: var(--tx); margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--brd-soft); margin: 44px 0; }

/* Citation line under a claim */
.cite { display: block; margin: -8px 0 16px; font-size: 13px; color: var(--mut-d); }

/* ── Stat callout ────────────────────────────────────────── */
.statCard {
  display: grid; gap: 6px; max-width: 720px; margin: 30px 0;
  border: 1px solid var(--brd); border-radius: 20px; padding: 24px 28px;
  background: linear-gradient(180deg, var(--s1), var(--s0));
}
.statCard .statNum { font-family: var(--disp); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: var(--gold); line-height: 1; }
.statCard .statLabel { color: var(--mut); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.statCard .statSrc { color: var(--mut-d); font-size: 12.5px; }

/* ── "Handle with care" corrections box ──────────────────── */
.shakyBox {
  max-width: 720px; margin: 34px 0; border: 1px solid var(--brd);
  border-radius: 18px; background: var(--s0); padding: 22px 26px;
}
.shakyBox .sbLabel {
  display: block; font-family: var(--disp); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--mut); margin: 0 0 12px;
}
.shakyBox ul { margin: 0; padding-left: 20px; }
.shakyBox li { margin: 0 0 10px; color: var(--mut); line-height: 1.7; font-size: 15px; }
.shakyBox li:last-child { margin-bottom: 0; }
.shakyBox b { color: var(--tx); }

/* ── "How Arclify uses this" bridge ──────────────────────── */
.bridgeCard {
  max-width: 720px; margin: 44px 0 0; border: 1px solid rgba(251, 191, 36, .26);
  border-radius: 20px; background: linear-gradient(180deg, var(--s1), var(--s0));
  padding: 26px 28px;
}
.bridgeCard .bcLabel {
  display: block; font-family: var(--disp); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px;
}
.bridgeCard p { margin: 0; color: var(--body); line-height: 1.75; }
.bridgeCard strong { color: #fff; }

/* ── Comparison table ────────────────────────────────────── */
.tblWrap {
  margin: 44px 0 10px; border: 1px solid var(--brd); border-radius: 20px;
  background: linear-gradient(180deg, var(--s1), var(--s0));
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1060px; font-size: 14.5px; }
table.cmp th, table.cmp td {
  padding: 15px 18px; border-bottom: 1px solid var(--brd-soft);
  text-align: left; vertical-align: top; line-height: 1.55; color: var(--mut);
  min-width: 150px;
}
table.cmp thead th {
  font-family: var(--disp); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx);
  border-bottom: 1px solid var(--brd); white-space: nowrap;
}
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th[scope="row"] {
  position: sticky; left: 0; z-index: 2; background: var(--s1);
  font-family: var(--disp); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: #fff; min-width: 140px; max-width: 170px;
  box-shadow: 1px 0 0 var(--brd-soft);
}
table.cmp thead th:first-child { position: sticky; left: 0; z-index: 3; background: var(--s1); }
table.cmp .colA { background: rgba(251, 191, 36, .055); color: var(--tx); }
table.cmp thead .colA { color: var(--gold); }
table.cmp td b { color: #fff; }
.tblNote { font-size: 13px; color: var(--mut-d); margin: 12px 2px 0; }

/* ── Per-app "vs" cards ──────────────────────────────────── */
.vsCard {
  border: 1px solid var(--brd); border-radius: 20px; padding: 28px 30px;
  background: linear-gradient(180deg, var(--s1), var(--s0)); margin: 26px 0 0;
  max-width: 860px;
}
.vsCard h3 { font-family: var(--disp); font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: #fff; margin: 0 0 12px; }
.vsCard > p { margin: 0 0 12px; color: var(--body); line-height: 1.75; font-size: 15.5px; }
.vsCard > p:last-of-type { margin-bottom: 0; }
.vsSplit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
@media (max-width: 700px) { .vsSplit { grid-template-columns: 1fr; } }
.vsPick { border: 1px solid var(--brd-soft); border-radius: 14px; padding: 16px 18px; font-size: 14.5px; color: var(--mut); line-height: 1.65; }
.vsPick b {
  display: block; margin-bottom: 7px; font-family: var(--disp); font-size: 12px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tx);
}
.vsPick.gold { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .05); }
.vsPick.gold b { color: var(--gold); }

/* ── Review cards (live App Store data) ──────────────────── */
.reviewsSummary { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 32px; text-align: center; }
.reviewsStars { display: inline-flex; gap: 3px; font-size: 24px; line-height: 1; }
.reviewsStars .star { color: #222932; } .reviewsStars .star.full { color: var(--gold); }
.reviewsSummaryMeta { margin: 0; color: var(--mut); font-size: 14px; }
.reviewsSummaryMeta b { color: #fff; font-family: var(--disp); font-weight: 700; font-size: 18px; }
.qGrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 460px)); justify-content: center; }
.reviewCard {
  border: 1px solid var(--brd); border-radius: 18px;
  background: linear-gradient(180deg, var(--s1), var(--s0));
  padding: 26px; display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.reviewCard .reviewsStars { font-size: 15px; }
.reviewCardTitle { font-family: var(--disp); margin: 0; font-weight: 700; font-size: 17px; color: #fff; }
.reviewCardBody { margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.reviewCardAuthor { margin: 4px 0 0; color: var(--mut-d); font-size: 12.5px; }

/* Commitments row (how we handle reviews) */
.pledgeGrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 960px; margin: 0 auto; }
.pledgeCard { border: 1px solid var(--brd); border-radius: 18px; background: linear-gradient(180deg, var(--s1), var(--s0)); padding: 24px; }
.pledgeCard h3 { font-family: var(--disp); font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.pledgeCard p { margin: 0; color: var(--mut); font-size: 14.5px; line-height: 1.7; }

/* Founder note */
.founderNote {
  max-width: 720px; margin: 0 auto; border: 1px solid var(--brd); border-radius: 20px;
  background: linear-gradient(180deg, var(--s1), var(--s0)); padding: 30px 32px;
}
.founderNote p { margin: 0 0 14px; color: var(--body); line-height: 1.8; }
.founderNote p:last-child { margin: 0; }
.founderNote .sig { font-family: var(--disp); font-weight: 700; color: #fff; }

/* ── FAQ (native details, works without JS) ──────────────── */
.faq { max-width: 720px; border-top: 1px solid var(--brd-soft); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--brd-soft); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--disp); font-weight: 700; font-size: 16.5px; color: #fff;
  padding: 18px 34px 18px 0; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); color: var(--gold); font-size: 22px; font-weight: 400;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--mut); line-height: 1.75; font-size: 15.5px; max-width: 64ch; }

/* ── Hub card grid ───────────────────────────────────────── */
.hubGrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 48px; }
.hubCard {
  display: flex; flex-direction: column; border: 1px solid var(--brd); border-radius: 20px;
  background: linear-gradient(180deg, var(--s1), var(--s0)); padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.hubCard:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, .4); }
.hubCard .hubKick { font-family: var(--disp); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mut-d); margin: 0 0 12px; }
.hubCard h2, .hubCard h3 { font-family: var(--disp); font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: #fff; margin: 0 0 10px; }
.hubCard p { margin: 0 0 18px; color: var(--mut); font-size: 15px; line-height: 1.7; }
.hubCard .more { margin-top: auto; font-family: var(--disp); font-weight: 700; font-size: 14px; color: var(--gold); }

/* Related links row */
.related { max-width: 720px; margin: 54px 0 0; padding-top: 26px; border-top: 1px solid var(--brd-soft); }
.related h2 { font-family: var(--disp); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx); margin: 0 0 12px; }
.related a { display: block; color: var(--gold); font-size: 15.5px; margin: 8px 0; }
.related a:hover { text-decoration: underline; }

/* ── Finale CTA ──────────────────────────────────────────── */
.finale { position: relative; text-align: center; overflow: hidden; }
.finale::before {
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 900px; height: 900px; max-width: 130vw; max-height: 130vw;
  background: radial-gradient(circle, rgba(251, 191, 36, .12), transparent 60%); z-index: -1;
}
.finaleInner { max-width: 720px; margin: 0 auto; }
.finale .secTitle { font-size: clamp(30px, 4.6vw, 54px); }
.finale .btnRow { justify-content: center; margin-top: 28px; }
.proofTag { font-family: var(--disp); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(251, 191, 36, .7); margin: 22px 0 0; }
.ctaSub { font-size: 13px; color: var(--mut-d); margin-top: 14px; }

/* ── Fine print ──────────────────────────────────────────── */
.fineprint { max-width: 860px; font-size: 12.5px; color: var(--mut-d); line-height: 1.65; margin: 40px 0 0; }

/* ── Footer (index look) ─────────────────────────────────── */
.footer { border-top: 1px solid var(--brd-soft); margin-top: 0; }
.footerCopy a { color: var(--gold); }
/* Gold links on the two middle rows (duplicated from shared.css so the
   new pages stay correct even if a browser holds a stale shared.css). */
.footer .footerNav a, .footer .footerLegal a { color: var(--gold); text-decoration: none; }
.footer .footerNav a:hover, .footer .footerLegal a:hover { text-decoration: underline; }

/* ── Reveal (JS-gated so no-JS users see everything) ─────── */
.has-js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js [data-rv].rv-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-js [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cta::after { display: none; }
  .hubCard, .topCta, .cta { transition: none !important; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .pTitle { font-size: clamp(32px, 9vw, 40px); }
  .vsCard { padding: 22px 20px; }
  .answerBox { padding: 18px 20px; }
  .statCard { padding: 20px 22px; }
  .founderNote { padding: 24px 22px; }
  table.cmp th, table.cmp td { padding: 13px 14px; }
}
