/* PartOf inner pages (product, compare, guides). Loaded after style.css; reuses its tokens.
   Everything here is additive: no style.css rule is overridden except inside the classes below. */

/* page hero: cobalt band so the white .nav sits on colour, like the home page */
.page-hero{background:var(--cobalt);color:#fff;padding:132px clamp(20px,4vw,56px) clamp(64px,8vw,104px)}
.page-hero-in{max-width:1360px;margin:0 auto}
.crumbs{display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none;margin:0 0 28px;padding:0;font-size:15px;color:rgba(255,255,255,.82)}
.crumbs li+li::before{content:"/";margin-right:10px;opacity:.6}
.crumbs a{color:#fff;text-underline-offset:4px}
.page-h{font-stretch:125%;font-weight:900;font-size:clamp(40px,6.6vw,96px);line-height:.94;letter-spacing:-.03em;max-width:17ch;text-wrap:balance}
.page-h .hand{display:inline-block;color:var(--marker);font-size:.86em;line-height:1;transform:rotate(-1.5deg)}
.page-h.long{font-size:clamp(36px,5.2vw,76px);max-width:20ch}
.page-lede{margin-top:30px;font-size:clamp(19px,1.8vw,24px);line-height:1.42;max-width:44ch;color:rgba(255,255,255,.94)}
.page-cta{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:36px}
.updated{margin-top:28px;font-size:14px;color:rgba(255,255,255,.78)}
.badge{display:inline-block;background:var(--marker);color:#0B1020;font-stretch:112%;font-weight:800;font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;padding:5px 10px;border-radius:var(--r);vertical-align:middle}
.page-hero .badge{margin-bottom:22px}

/* long-form reading column with an optional sticky contents list */
.doc{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:minmax(0,240px) minmax(0,740px);gap:40px 80px;justify-content:center}
.doc.no-toc{grid-template-columns:minmax(0,760px)}
.toc{position:sticky;top:24px;align-self:start;font-size:15px}
.toc p{font-stretch:112%;font-weight:800;margin-bottom:10px}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.toc li a{display:block;padding:6px 0 6px 14px;margin-left:-2px;border-left:2px solid transparent;color:var(--ink-2);text-decoration:none;line-height:1.35}
.toc li a:hover{color:var(--ink);border-left-color:var(--cobalt)}
@media (max-width:1000px){.doc{grid-template-columns:minmax(0,1fr)}.toc{position:static;border:2px solid var(--line);border-radius:var(--r);padding:18px 20px}}

.prose{min-width:0;font-size:18px;line-height:1.65;color:var(--ink)}
.prose h2{font-size:clamp(28px,3.4vw,40px);line-height:1.05;margin:64px 0 18px;scroll-margin-top:24px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:21px;margin:36px 0 10px;scroll-margin-top:24px}
.prose p{margin:0 0 18px;color:var(--ink-2)}
.prose p strong,.prose li strong{color:var(--ink)}
.prose ul,.prose ol{margin:0 0 22px;padding-left:1.25em;color:var(--ink-2)}
.prose li{margin:0 0 9px;padding-left:.2em}
.prose a{color:var(--cobalt);text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{text-decoration-thickness:2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .prose a{color:#9DB0FF}}
:root[data-theme="dark"] .prose a{color:#9DB0FF}
.prose .lead{font-size:clamp(20px,1.9vw,23px);line-height:1.5;color:var(--ink)}
.prose code{font-size:.9em;background:var(--ice);padding:2px 6px;border-radius:4px}

/* boxes */
.note{background:var(--ice);border-left:6px solid var(--cobalt);border-radius:var(--r);padding:20px 24px;margin:28px 0}
.note p:last-child,.note ul:last-child{margin-bottom:0}
.note-title{font-stretch:112%;font-weight:800;color:var(--ink)!important;margin-bottom:8px!important}
.note.warn{border-left-color:var(--red)}
.note.yellow{border-left-color:var(--marker)}

/* checklist */
.check{list-style:none;padding:0!important}
.check li{position:relative;padding:12px 0 12px 40px;border-top:1px solid var(--line);margin:0}
.check li:last-child{border-bottom:1px solid var(--line)}
.check li::before{content:"";position:absolute;left:2px;top:15px;width:20px;height:20px;border:2px solid var(--ink);border-radius:4px}

/* numbered steps */
.steps{list-style:none;padding:0!important;counter-reset:s}
.steps>li{counter-increment:s;position:relative;padding:4px 0 18px 58px;margin:0}
.steps>li::before{content:counter(s);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:var(--r);background:var(--ink);color:var(--paper);
  display:grid;place-items:center;font-stretch:125%;font-weight:900;font-size:18px}

/* tables */
.table-wrap{overflow-x:auto;margin:24px 0 30px;border:2px solid var(--ink);border-radius:var(--r);-webkit-overflow-scrolling:touch}
.prose table,.cmp{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45}
.prose th,.prose td,.cmp th,.cmp td{text-align:left;vertical-align:top;padding:13px 16px;border-bottom:1px solid var(--line)}
.prose thead th,.cmp thead th{background:var(--ink);color:var(--paper);font-stretch:112%;font-weight:700;font-size:15px}
.prose tbody th,.cmp tbody th{font-weight:700;color:var(--ink);min-width:150px}
.prose td,.cmp td{color:var(--ink-2);min-width:180px}
.prose tr:last-child th,.prose tr:last-child td,.cmp tr:last-child th,.cmp tr:last-child td{border-bottom:0}
.yes{color:var(--ink);font-weight:700}

/* sources list */
.sources{font-size:15px}
.sources li{margin-bottom:6px;overflow-wrap:anywhere}

/* product page bits that sit on the shared section rhythm */
.band-ice{background:var(--ice)}
.lead-sec{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:28px 64px;align-items:start}
.lead-sec .big{font-stretch:125%;font-weight:900;font-size:clamp(30px,3.8vw,52px);line-height:1;letter-spacing:-.025em;text-wrap:balance}
.lead-sec .body p{color:var(--ink-2);font-size:19px;margin-bottom:16px}
@media (max-width:860px){.lead-sec{grid-template-columns:1fr}}

.swap{max-width:1360px;margin:56px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:2px solid var(--ink);border-radius:var(--r);overflow:hidden}
.swap div{padding:22px 24px;border-right:2px solid var(--ink)}
.swap div:nth-child(3n){border-right:0}
.swap div:nth-child(n+4){border-top:2px solid var(--ink)}
.swap s{display:block;color:var(--muted);font-size:16px;text-decoration-thickness:2px;text-decoration-color:var(--red)}
.swap b{display:block;margin-top:6px;font-stretch:112%;font-size:19px}
@media (max-width:900px){.swap{grid-template-columns:1fr 1fr}.swap div{border-right:2px solid var(--ink)!important;border-top:0!important}
  .swap div:nth-child(2n){border-right:0!important}.swap div:nth-child(n+3){border-top:2px solid var(--ink)!important}}
@media (max-width:520px){.swap{grid-template-columns:1fr}.swap div{border-right:0!important}.swap div:nth-child(n+2){border-top:2px solid var(--ink)!important}}

.grid h3 a{text-decoration:none}
.grid h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.more{display:inline-block;margin-top:12px;font-weight:700;color:var(--cobalt);text-underline-offset:4px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .more{color:#9DB0FF}}
:root[data-theme="dark"] .more{color:#9DB0FF}

/* feature index */
.feat{max-width:1360px;margin:0 auto;padding-top:56px;border-top:3px solid var(--ink);display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px 64px;scroll-margin-top:24px}
.feat+.feat{margin-top:72px}
.feat>h2{font-size:clamp(30px,3.6vw,48px)}
.feat>div>p{color:var(--ink-2);margin-bottom:16px}
.feat ul{list-style:none;margin:0;padding:0}
.feat li{padding:12px 0;border-top:1px solid var(--line);color:var(--ink-2)}
.feat li b{color:var(--ink)}
.feat .plan{font-size:15px;color:var(--muted);margin-top:14px}
@media (max-width:860px){.feat{grid-template-columns:1fr}}
.jump{max-width:1360px;margin:0 auto 64px;display:flex;flex-wrap:wrap;gap:10px}
.jump a{display:inline-flex;align-items:center;height:42px;padding:0 16px;border-radius:var(--r);box-shadow:inset 0 0 0 2px var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.jump a:hover{background:var(--ink);color:var(--paper)}

/* related links */
.related{max-width:1360px;margin:0 auto}
.related h2{font-size:clamp(28px,3.4vw,44px);margin-bottom:32px}
.related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.related a{display:flex;flex-direction:column;gap:8px;height:100%;padding:22px 24px;border:2px solid var(--ink);border-radius:var(--r);text-decoration:none;transition:background .15s,color .15s}
.related a:hover{background:var(--ink);color:var(--paper)}
.related a b{font-stretch:112%;font-size:19px;line-height:1.2}
.related a span{font-size:15.5px;opacity:.8}
@media (max-width:900px){.related ul{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.related ul{grid-template-columns:1fr}}

/* guide hub cards */
.cards{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.cards a{display:flex;flex-direction:column;gap:12px;padding:30px;border-radius:var(--r);background:var(--ice);text-decoration:none;border:2px solid transparent;transition:border-color .15s}
.cards a:hover{border-color:var(--ink)}
.cards h2{font-size:clamp(24px,2.6vw,34px);line-height:1.05}
.cards p{color:var(--ink-2);font-size:17px}
.cards .meta{font-size:14px;font-weight:600;color:var(--muted)}
@media (max-width:760px){.cards{grid-template-columns:1fr}}

/* closing CTA on inner pages: the name tag as a picture, buttons do the work */
.close .obj-tag{width:min(360px,100%);margin:48px auto 0;transform:rotate(-1.5deg);box-shadow:0 40px 60px -30px rgba(0,0,0,.5)}
.close .tag-hand{font-size:clamp(28px,4vw,36px)}
.close-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 22px;margin-top:40px}
.close p.close-sub{max-width:40ch;margin:24px auto 0;color:rgba(255,255,255,.9);font-size:19px}

/* inner-page nav: same as home, the button is a link here */
.nav a.btn{text-decoration:none}
.nav .links a[aria-current="page"]{opacity:1;text-decoration:underline;text-underline-offset:5px}

@media (max-width:560px){
  .page-hero{padding-top:112px}
  .prose{font-size:17px}
  .prose th,.prose td,.cmp th,.cmp td{padding:11px 12px;font-size:15px}
}

/* two-plan price table */
.price-table.two{grid-template-columns:repeat(2,1fr);max-width:980px}
.price-table.two + .price-notes{max-width:980px}
.price-table.one{grid-template-columns:1fr;max-width:620px}
.price-table.one + .price-notes{max-width:620px;grid-template-columns:1fr}
@media (max-width:900px){.price-table.two{grid-template-columns:1fr}}
.price-table a.btn{text-decoration:none}
.close .btn-ghost{box-shadow:inset 0 0 0 2px #fff;color:#fff;background:transparent}
.close .btn-ghost:hover{background:#fff;color:var(--cobalt)}

/* comparison tables stack into cards on phones */
@media (max-width:640px){
  .table-wrap:has(table.stack){border:0;overflow:visible}
  table.stack,table.stack tbody,table.stack tr,table.stack th,table.stack td{display:block;width:100%}
  table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table.stack tr{border:2px solid var(--ink);border-radius:var(--r);margin-bottom:12px;overflow:hidden}
  table.stack tbody th{background:var(--ink);color:var(--paper);border:0;padding:10px 14px}
  table.stack td{min-width:0;border-bottom:1px solid var(--line);padding:10px 14px}
  table.stack td:last-child{border-bottom:0}
  table.stack td::before{content:attr(data-label);display:block;font-size:12.5px;font-weight:800;color:var(--muted);margin-bottom:3px}
  table.stack tr:last-child th{border-bottom:0}
}
