/* ══════════════════════════════════════════════════════════════════
   Inner pages (everything except the homepage). Loaded after base.css.
   Minimal: a gradient page header, generous sections with one idea each,
   collapsed FAQs, a reading layout for long documents, a gradient close.
   ══════════════════════════════════════════════════════════════════ */

/* ── Gradient bands: page header + closing CTA ── */
.grad-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); color: #fff; }
.grad-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.4px) 0 0 / 22px 22px,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.grad-band::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(31,18,38,0.24), rgba(31,18,38,0.04) 60%, transparent); }
.grad-band > .wrap { position: relative; z-index: 1; }
.grad-band .it { background: none; color: #fff; }
.grad-band a:not(.btn) { color: #fff; }

.page-hero { padding: 120px 0 104px; }
.page-hero .crumbs { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.page-hero .crumbs a { text-decoration: none; color: #fff; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; margin: 22px 0 0; max-width: 1000px; }
.page-hero .sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 640px; margin-top: 26px; color: #fff; }
.page-hero .meta { margin-top: 22px; font: 400 11px/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
.page-hero .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 36px; }
.page-hero .row .link-arrow { color: #fff; margin-left: 8px; }
.page-hero.has-visual .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.hero-shot { justify-self: center; width: 240px; padding: 10px; border-radius: 44px; background: #0E0812; box-shadow: 0 0 0 1px rgba(255,255,255,0.45), 0 50px 90px -30px rgba(31,18,38,0.6); }
.hero-shot img { border-radius: 35px; width: 100%; height: auto; }

.close-band { padding: 130px 0 120px; text-align: center; }
.close-band h2 { font-size: clamp(42px, 6vw, 88px); line-height: .98; max-width: 900px; margin: 22px auto 0; }
.close-band p { max-width: 520px; margin: 22px auto 0; color: rgba(255,255,255,0.94); font-size: 19px; }
.close-band .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.close-band .btn-gold { background: #fff; color: var(--ink); }
.close-band .link-arrow { display: inline-block; margin-top: 24px; color: #fff; }

/* ── Sections ── */
.sec { padding: 120px 0; }
.sec.alt { background: var(--ivory-2); }
.sec + .sec:not(.alt) { padding-top: 40px; }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 68px); margin-top: 18px; }
.sec-head h2 .it { background-image: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--ink); max-width: 760px; font-weight: 300; }
.lead + .lead { margin-top: 18px; }
.sec-head + .lead { margin-top: -24px; }

/* Cards: borderless, a hairline on top, one line each */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.c { padding-top: 26px; border-top: 1px solid var(--line); position: relative; }
.c::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--grad); transition: width .6s var(--ease); }
.c:hover::before { width: 64px; }
.c .ic { font-size: 22px; line-height: 1; margin-bottom: 18px; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ivory-2); transition: transform .4s var(--ease); }
.sec.alt .c .ic { background: var(--ivory); }
.c:hover .ic { transform: translateY(-3px) rotate(-6deg); }
.c h3 { font-size: 24px; line-height: 1.15; }
.c p { color: var(--muted); font-size: 16.5px; line-height: 1.55; margin-top: 10px; }
.c a { color: var(--rose); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.st { position: relative; padding-top: 70px; }
.st::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0;
  font: 400 52px/1 var(--display); background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st h3 { font-size: 24px; }
.st p { color: var(--muted); margin-top: 10px; font-size: 16.5px; }

/* Link list (related guides) */
.links { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.links a:nth-child(odd) { padding-right: 30px; }
.links a:hover { padding-left: 16px; color: var(--rose); }
.links b { font: 400 22px/1.2 var(--display); }
.links span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.links i { font-style: normal; font-size: 20px; }

/* Accordions (FAQ, collapsible sections) */
.acc { max-width: 900px; }
.sec-head.center + .acc { margin: 0 auto; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font: 400 clamp(19px, 1.7vw, 23px)/1.3 var(--display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { flex: none; width: 32px; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: background .3s; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: #E0552B; }
.acc summary i::after { background: #D6337E; transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc details[open] summary i { background: rgba(214,51,126,0.1); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc summary:hover i { background: rgba(214,51,126,0.1); }
.acc .a { padding: 0 56px 26px 0; color: var(--muted); font-size: 17px; }
.acc .a p + p, .acc .a p + ul, .acc .a ul + p { margin-top: 12px; }
.acc .a ul, .acc .a ol { padding-left: 20px; }
.acc .a a { color: var(--rose); }
.acc-group + .acc-group { margin-top: 64px; }
.acc-group h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }

/* Jump chips */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.jump a { font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 12px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background .3s, color .3s; }
.jump a:hover { background: var(--ink); color: #fff; }

/* ── Reading layout (legal, about, long guides) ── */
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 14.5px; }
.toc h4 { font: 400 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 400; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: #D6337E; }
.prose { max-width: 760px; font-size: 17.5px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-top: 64px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 400 22px/1.25 var(--display); margin-top: 36px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: #D6337E; }
.prose a { color: var(--rose); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose code { font: 400 .88em var(--mono); background: var(--ivory-2); padding: 2px 6px; border-radius: 6px; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .table thead th { font: 400 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prose tbody th, .table tbody th { font-weight: 600; }
.tbl { overflow-x: auto; }
.callout { padding: 28px 30px; border-radius: 22px; background: var(--ivory-2); position: relative; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.callout p + p { margin-top: 12px; }
.callout h2, .callout h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin-bottom: 12px; }
.callout .btn { margin-top: 18px; }
.prose .box { padding: 24px 26px; border-radius: 18px; background: var(--ivory-2); }
.prose .box.danger { background: #FCEBEC; }
.prose .btn { margin-top: 6px; }

/* Glossary terms: compact two-column grid */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.term { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.term h3 { font-size: 26px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.term h3 small { font: 400 18px/1 var(--accent); font-style: italic; background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.term p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }

/* One-off guide blocks kept from the old pages */
.tl { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; max-width: 760px; }
.tl-row { position: relative; padding: 0 0 30px 34px; }
.tl-row::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.tl-day { font: 400 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.tl-body { margin-top: 8px; color: var(--muted); }
.tl-body b, .tl-body strong { color: var(--ink); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.compare-grid .col h3 { font-size: 26px; margin-bottom: 14px; }
.compare-grid .col ul { list-style: none; display: grid; gap: 10px; }
.compare-grid .col.dim { color: var(--muted); }
.compare-grid .col.win { padding: 30px; border-radius: 22px; background: var(--ivory-2); }
.ctable td .ck { color: #1F8A55; font-weight: 700; } .ctable td .cx { color: #B4352B; font-weight: 700; }
.ctable th.win { background: var(--ivory-2); }
.vault { max-width: 760px; border-top: 1px solid var(--line); }
.vault-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.vault-ic { font-size: 22px; }
.spotlight { padding: 34px; border-radius: 24px; background: var(--ink); color: var(--ivory); max-width: 900px; }
.spotlight .chip { background: rgba(255,255,255,0.12); }

/* Pricing page */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #fff; }
.plan { padding: 40px 34px; position: relative; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { background: var(--ivory-2); }
.plan.pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.plan .tag { font: 400 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.plan .amt { font: 400 clamp(52px, 5vw, 72px)/1 var(--display); margin-top: 20px; }
.plan .amt small { font-size: .42em; vertical-align: .9em; margin-right: 3px; }
.plan .amt em { font: 400 15px/1 var(--body); font-style: normal; color: var(--muted); margin-left: 6px; }
.plan.pick .amt { background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .lede { color: var(--muted); margin-top: 12px; font-size: 16px; }
.plan .btn { margin: 26px 0 26px; justify-content: center; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 15.5px; color: var(--ink); }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: "✓"; color: #D6337E; font-weight: 700; position: absolute; left: 0; top: 0; }
.plan li.no { color: var(--muted); } .plan li.no::before { content: "—"; color: var(--muted); }
.plan li.keep { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }
.plan li.keep::before { content: "⏳"; top: 14px; }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .toc ol { grid-template-columns: repeat(2, 1fr); border-left: 0; gap: 0 20px; }
  .toc a { padding-left: 0; border-left: 0; }
  .cards, .steps, .facts3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .page-hero.has-visual .wrap { grid-template-columns: 1fr; }
  .hero-shot { display: none; }
}
@media (max-width: 768px) {
  .page-hero { padding: 80px 0 72px; }
  .sec { padding: 84px 0; }
  .sec-head { margin-bottom: 40px; }
  .cards, .cards.two, .steps, .links, .terms, .compare-grid, .facts3 { grid-template-columns: 1fr; }
  .cards { gap: 36px; }
  .links a:nth-child(odd) { padding-right: 6px; }
  .toc ol { grid-template-columns: 1fr; }
  .close-band { padding: 96px 0 88px; }
  .acc .a { padding-right: 0; }
  .prose { font-size: 17px; }
}

/* Tick list + chips */
.ticks { list-style: none; display: grid; gap: 14px; max-width: 820px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cere span { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lead + .ticks, .lead + .cards, .lead + .steps, .lead + .acc, .lead + .links, .lead + .tbl { margin-top: 44px; }
.cards + .lead, .steps + .lead, .tbl + .lead { margin-top: 44px; }

/* Grid children must be allowed to shrink, or wide tables push the page sideways. */
.doc-wrap > * { min-width: 0; }
@media (max-width: 1060px) { .doc-wrap { grid-template-columns: minmax(0, 1fr); } }
