/* CompareAxis hub: shared styles for the root site (not used by the prelanders) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F4F6F9; color: #0F1B2D; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img, svg { max-width: 100%; }
a { color: #1D4ED8; }
a:hover { color: #1E3A8A; }
.display { font-family: Archivo, Inter, sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.container { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #FFC93C; color: #0F1B2D; padding: 10px 14px; z-index: 20; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: #0F1B2D; border-bottom: 4px solid #FFC93C; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: 20px; text-decoration: none; min-height: 44px; }
.brand:hover { color: #FFFFFF; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -8px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: #C9D3E0; text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.main-nav a[aria-current="page"] { color: #FFC93C; }
@media (max-width: 719px) { .main-nav { width: calc(100% + 16px); } }

/* Type */
main { padding-top: 32px; padding-bottom: 56px; }
h1 { margin: 0; font-size: clamp(30px, 5.5vw, 46px); line-height: 1.1; }
h2 { margin: 0; font-size: clamp(22px, 3.6vw, 28px); line-height: 1.2; }
h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7A5A00; }
.lede { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: #2A3445; max-width: 680px; }
.muted { color: #556070; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { margin: 0; color: #556070; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid #0F1B2D; color: #0F1B2D; background: #FFFFFF; }
.btn:hover { background: #0F1B2D; color: #FFFFFF; }
.btn-primary { background: #0B7A3B; border-color: #0B7A3B; color: #FFFFFF; }
.btn-primary:hover { background: #096A33; border-color: #096A33; color: #FFFFFF; }

/* Hero */
.hero { padding: 8px 0 8px; }
.hero h1 { max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: #3D4757; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { flex: none; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; color: #3D4757; font-size: 15px; line-height: 1.5; }
.card-link { text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { color: inherit; border-color: #0F1B2D; box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: #FFF4D6; display: flex; align-items: center; justify-content: center; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: #1D4ED8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; background: #F4F6F9; border: 1px solid #DCE2EA; font-size: 13px; font-weight: 600; color: #2A3445; text-decoration: none; }
.chips a:hover { border-color: #0F1B2D; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7A5A00; }

/* Callouts */
.note { background: #FFFFFF; border: 1px solid #DCE2EA; border-left: 4px solid #FFC93C; border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: #3D4757; }
.note p { margin: 0; }
.note + .note { margin-top: 12px; }
.band { background: #0F1B2D; color: #E8ECF1; border-radius: 16px; padding: 28px 24px; }
.band h2 { color: #FFFFFF; }
.band p { color: #C9D3E0; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 20px; }
.steps div { display: flex; flex-direction: column; gap: 4px; }
.steps .num { font-size: 22px; color: #FFC93C; }
.steps strong { color: #FFFFFF; }
.steps span { font-size: 15px; color: #C9D3E0; line-height: 1.5; }

/* Breadcrumbs & bylines */
.crumbs { font-size: 14px; color: #556070; margin-bottom: 16px; }
.crumbs a { color: #556070; }
.byline { margin: 14px 0 0; font-size: 14px; color: #556070; }

/* Article prose */
.prose { font-size: 17px; line-height: 1.7; color: #2A3445; }
.prose h2 { margin: 40px 0 12px; color: #0F1B2D; }
.prose h3 { margin: 28px 0 8px; color: #0F1B2D; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #0F1B2D; }
.toc { background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.keypoints { background: #FFF8E6; border: 1px solid #F1DFA8; border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.keypoints strong:first-child { display: block; margin-bottom: 6px; }
.keypoints ul { margin: 0; padding-left: 20px; }
.cta-box { background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 14px; padding: 20px; margin: 28px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box p { margin: 0; }

/* Tables: scroll sideways on phones instead of squashing */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 14px; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 640px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #E8ECF1; }
thead th { background: #F4F6F9; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #3D4757; }
tbody tr:last-child td { border-bottom: none; }
tbody th { font-weight: 700; color: #0F1B2D; min-width: 150px; }
td .btn { min-height: 40px; font-size: 14px; padding: 0 14px; white-space: nowrap; }
/* Phones: each table row becomes a card, cells labeled from the column header (data-label, added by hub/build.ps1) */
@media (max-width: 759px) {
  .table-wrap { overflow: visible; background: none; border: none; border-radius: 0; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; }
  tbody tr { background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 14px; padding: 4px 0 10px; margin-bottom: 12px; }
  tbody th { font-size: 17px; padding: 14px 16px 4px; border: none; min-width: 0; }
  td { border: none; padding: 6px 16px; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #556070; }
  td .btn { margin-top: 4px; }
}

/* FAQ */
.faq details { background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 700; color: #0F1B2D; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: #556070; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: #2A3445; }

/* Legal pages */
.legal h2 { font-size: 22px; }
.legal .draft { margin: 20px 0 0; }

/* ===== Home page (magazine layout) ===== */
.home main { padding-top: 0; }
.home-hero { background: #0F1B2D; background-image: radial-gradient(circle at 85% 0%, rgba(255, 201, 60, 0.18), transparent 45%), radial-gradient(circle at 0% 100%, rgba(29, 78, 216, 0.25), transparent 50%); padding: 36px 0 32px; color: #FFFFFF; }
.home-hero h1 { text-align: center; color: #FFFFFF; font-size: clamp(30px, 5.5vw, 50px); }
.home-hero .sub { text-align: center; margin: 10px auto 0; color: #C9D3E0; font-size: 17px; max-width: 560px; }
.ad-label { display: flex; justify-content: flex-end; margin: 20px 0 8px; font-size: 12px; }
.ad-label a { color: #C9D3E0; }
.offer-big { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.offer-tile { background: #FFFFFF; color: #0F1B2D; border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 120px; gap: 8px 16px; align-items: center; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.offer-tile:hover { color: #0F1B2D; }
@media (max-width: 480px) { .offer-tile { grid-template-columns: 1fr 84px; padding: 18px; } }
.offer-tile h2 { font-size: clamp(21px, 3vw, 26px); grid-column: 1; }
.offer-tile h2 em { font-style: normal; color: #0B7A3B; }
.offer-tile p { margin: 0; color: #3D4757; font-size: 15px; line-height: 1.45; grid-column: 1; }
.offer-tile .art { grid-column: 2; grid-row: 1 / span 3; }
.offer-tile .btn { grid-column: 1; justify-self: start; margin-top: 6px; }
.offer-small { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.mini-tile { background: #FFFFFF; color: #0F1B2D; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; min-height: 72px; }
.mini-tile:hover { color: #0F1B2D; box-shadow: 0 0 0 2px #FFC93C; }
.mini-tile strong { display: block; font-size: 15px; }
.mini-tile span span { display: block; font-size: 13px; color: #556070; line-height: 1.4; }
.mini-tile svg { flex: none; }

.guide-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.guide-link { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: #0F1B2D; font-weight: 600; min-height: 64px; }
.guide-link:hover { color: #0F1B2D; border-color: #0F1B2D; }
.guide-link .ico { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #FFC93C; display: flex; align-items: center; justify-content: center; }
.rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid #0F1B2D; padding-bottom: 8px; margin-bottom: 16px; }
.rule-head h2 { font-size: clamp(22px, 3.4vw, 28px); }
.rule-head a { font-weight: 700; font-size: 15px; white-space: nowrap; }

.three-col { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .three-col { grid-template-columns: 1fr 1.6fr 1fr; } }
.col-head { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; border-bottom: 3px solid #FFC93C; padding-bottom: 8px; margin-bottom: 14px; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { border-bottom: 1px solid #DCE2EA; }
.story-list a { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: #0F1B2D; font-weight: 600; line-height: 1.35; }
.story-list a:hover { color: #1D4ED8; }
.story-list .thumb { flex: none; width: 76px; height: 56px; border-radius: 8px; }
.story-list .thumb svg { width: 26px; height: 26px; }
.pick-list { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.pick-list li { counter-increment: pick; border-bottom: 1px solid #DCE2EA; }
.pick-list a { display: flex; gap: 12px; padding: 12px 0; text-decoration: none; color: #0F1B2D; font-weight: 600; line-height: 1.35; }
.pick-list a::before { content: counter(pick); font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 26px; line-height: 1; color: #7A5A00; min-width: 24px; }
.pick-list a:hover { color: #1D4ED8; }
.feature-card { display: block; text-decoration: none; color: #0F1B2D; }
.feature-card:hover h3 { color: #1D4ED8; }
.feature-card .thumb { height: 240px; border-radius: 14px; }
.feature-card .thumb svg { width: 72px; height: 72px; }
.feature-card h3 { font-size: clamp(22px, 3vw, 28px); font-family: Archivo, Inter, sans-serif; font-weight: 800; margin: 14px 0 8px; }
.feature-card p { margin: 0; color: #3D4757; }

.thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0F1B2D, #23406B); }
.thumb svg { stroke: #FFC93C; }
.thumb { overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.a-card:hover .thumb img, .feature-card:hover .thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }
.thumb.t-ins { background: linear-gradient(135deg, #0F1B2D, #1D4ED8); }
.thumb.t-home { background: linear-gradient(135deg, #0E3B43, #1F7A6E); }
.thumb.t-debt { background: linear-gradient(135deg, #3B1F4F, #7A3E8E); }
.thumb.t-bank { background: linear-gradient(135deg, #0B5132, #0B7A3B); }
.thumb.t-life { background: linear-gradient(135deg, #5A3A00, #B07A10); }
.thumb.t-pet { background: linear-gradient(135deg, #6B2B1F, #C2553B); }
.article-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.a-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #DCE2EA; border-radius: 14px; overflow: hidden; text-decoration: none; color: #0F1B2D; }
.a-card:hover { color: #0F1B2D; box-shadow: 0 8px 24px rgba(15, 27, 45, 0.1); }
.a-card:hover h3 { color: #1D4ED8; }
.a-card .thumb { height: 140px; }
.a-card .thumb svg { width: 48px; height: 48px; }
.a-card div { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.a-card p { margin: 0; font-size: 14px; color: #556070; line-height: 1.45; }

/* Footer */
.site-footer { background: #0F1B2D; color: #C9D3E0; font-size: 14px; }
.site-footer a { color: #E8ECF1; text-decoration: none; }
.site-footer a:hover { color: #FFC93C; text-decoration: underline; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); padding-top: 40px; padding-bottom: 24px; }
.footer-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #FFC93C; margin-bottom: 10px; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-legal { border-top: 1px solid #23324A; padding-top: 20px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.6; color: #A9B6C8; }
.footer-legal p { margin: 0; }
