/* Accessible Nord · marketing theme styles.
   Built to WCAG 2.2 AA: 4.5:1 text contrast, visible focus, 24px+ targets, reflow at 320px, reduced motion respected. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 100 900; font-display: swap; src: url(../fonts/noto-sans-arabic-arabic-wght-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0B1F3A; --ink-2: #13294A; --ink-3: #1C365C;
  --blue: #1F4FD8; --blue-d: #173DB0; --blue-t: #EAF0FE; --blue-l: #9DB6FF;
  --red: #D62D3A; --red-d: #B4232F; --red-t: #FDECEE;
  --bg: #fff; --bg-2: #F4F6FA; --ice: #EEF3FF; --line: #D9E0EC; --line-2: #E9EDF4;
  --text: #12203A; --muted: #4D5970;
  --ok: #12805C; --ok-t: #E3F5EE; --bad: #C2272D; --bad-t: #FDECEE;
  --radius: 14px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 10px 30px rgba(11,31,58,.08);
  --shadow-lg: 0 2px 4px rgba(11,31,58,.06), 0 24px 60px rgba(11,31,58,.14);
  --font: 'Atkinson Hyperlegible Next', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px; --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
picture { display: block; }
picture img { display: block; width: 100%; height: auto; }
a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
code, kbd { font-family: var(--mono); font-size: .86em; background: var(--line-2); padding: .12em .4em; border-radius: 6px; }
kbd { border: 1px solid #C2CBDB; border-bottom-width: 2px; background: #fff; }
pre.code { background: var(--ink); color: #E6EDFF; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
pre.code code { background: none; color: inherit; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
::selection { background: var(--blue-t); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .cta-band :focus-visible, .honest :focus-visible { outline-color: #FFD60A; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 14px; top: -80px; z-index: 1000; background: #FFD60A; color: #000; font-weight: 800; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center-row { justify-content: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.rounded img, img.rounded, .rounded { border-radius: var(--radius-lg); }
.shadow img, .shadow { box-shadow: var(--shadow-lg); }
.rounded.shadow { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31,79,216,.25); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-t); color: var(--ink); }
.btn-lg { min-height: 54px; padding: 13px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }
.brand-mark .b1 { fill: #9DB6FF; } .brand-mark .b2 { fill: var(--blue); } .brand-mark .b3 { fill: var(--ink); }
.brand-word { display: inline-flex; flex-direction: column; font-size: 1.16rem; line-height: .98; letter-spacing: -.02em; white-space: nowrap; }
.brand-word span + span { color: var(--blue); }
.brand.light { color: #fff; }
.brand.light .brand-mark .b1 { fill: #4F7BFF; } .brand.light .brand-mark .b2 { fill: #9DB6FF; } .brand.light .brand-mark .b3 { fill: #fff; }
.brand.light .brand-word span + span { color: var(--blue-l); }
.custom-logo { max-height: 40px; width: auto; }
.nav-toggle { display: none; margin-inline-start: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.nav-panel { display: flex; align-items: center; gap: 22px; flex: 1; }
.primary-nav { margin-inline-start: auto; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
.primary-nav a:hover { background: var(--bg-2); }
.primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { color: var(--blue-d); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 10px 10px 0 0; }
.header-ctas { display: flex; gap: 10px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-panel.open { display: flex; }
  .primary-nav { margin: 0; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav a { width: 100%; padding: 12px; font-size: 1.05rem; }
  .primary-nav .current-menu-item > a { box-shadow: inset 4px 0 0 var(--blue); border-radius: 0 10px 10px 0; }
  [dir=rtl] .primary-nav .current-menu-item > a { box-shadow: inset -4px 0 0 var(--blue); border-radius: 10px 0 0 10px; }
  .header-ctas { flex-direction: column; }
  .header-ctas .btn { width: 100%; }
}

/* ---------- Language switcher ---------- */
.lang-switch ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 10px; color: var(--muted); font-weight: 750; font-size: .9rem; text-decoration: none; }
.lang-switch a:hover { background: var(--bg-2); color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--blue); }
.footer-lang a { color: #C9D4EA; }
.footer-lang a:hover { background: var(--ink-2); color: #fff; }
.footer-lang a[aria-current="true"] { color: #fff; box-shadow: inset 0 -3px 0 var(--blue-l); }
@media (max-width: 1020px) { .lang-switch ul { justify-content: center; } }

/* ---------- Right to left (Arabic) ---------- */
[dir=rtl] body { line-height: 1.8; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] .brand-word { letter-spacing: 0; line-height: 1.35; }
[dir=rtl] .eyebrow, [dir=rtl] .toc-title, [dir=rtl] .answer-title, [dir=rtl] .takeaways-title, [dir=rtl] .footer-h { letter-spacing: 0; text-transform: none; }
[dir=rtl] .faq-ic { transform: none; }
[dir=rtl] .post-card:hover { transform: translateY(-2px); }
[dir=rtl] code, [dir=rtl] pre, [dir=rtl] kbd { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .brand-word { align-items: flex-start; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-title { margin-bottom: 1.2em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--red-d); font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem); color: var(--muted); line-height: 1.6; }
.source { margin-top: 24px; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); background: radial-gradient(1100px 520px at 85% -10%, var(--ice), transparent 60%), linear-gradient(180deg, #fff 0%, #F8FAFE 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.trust { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin: 0; }
.trust .ic { color: var(--ok); }
.trust a { color: inherit; font-weight: 600; }
.hero-check { display: flex; gap: 10px; margin: 28px 0 14px; max-width: 560px; }
.hero-check input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; font: inherit; font-size: 1.05rem; border: 2px solid #6B7489; border-radius: 14px; background: #fff; color: var(--ink); }
.hero-check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.hero-check .btn { white-space: nowrap; }
@media (max-width: 560px) { .hero-check { flex-direction: column; } .hero-check .btn { width: 100%; } }
.dot-bad { width: 12px; height: 12px; border-radius: 50%; background: #C2410C; flex: none; box-shadow: 0 0 0 4px rgba(194,65,12,.15); }
.risk-card .card-ic { color: #B42318; background: #FEECEB; }
.self-check { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 28px; border-radius: 20px; background: var(--ink); color: #fff; }
.self-check h3 { color: #fff; margin-top: 0; }
.self-check .small { color: #C9D4EA; }
.self-check-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.self-check-list li { padding-inline-start: 30px; position: relative; }
.self-check-list li::before { content: "?"; position: absolute; inset-inline-start: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: #FFD60A; color: #0B1F3A; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
[dir=rtl] .self-check-list li::before { content: "؟"; }
.self-check-cta { text-align: center; }
@media (max-width: 800px) { .self-check { grid-template-columns: 1fr; } }
.hero-media { position: relative; }
.hero-media picture img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .92rem; line-height: 1.35; }
.float-card strong { display: block; color: var(--ink); }
.float-card small { color: var(--muted); font-size: .85rem; }
.score-card { inset-inline-start: -28px; bottom: 28px; }
.fix-card { inset-inline-end: -18px; top: 26px; }
.mini-ring { position: relative; display: inline-grid; place-items: center; }
.mini-ring b { position: absolute; font-size: 1rem; color: var(--ink); }
.dot-ok { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-t); flex: none; }

/* ---------- Facts strip ---------- */
.facts { background: var(--ink); color: #fff; }
.facts-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; }
.facts-list li { padding: 6px 18px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.facts-list li:first-child { border-inline-start: 0; }
.facts-list b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.facts-list span { color: #C9D4EA; font-size: .92rem; }

/* ---------- Before / after ---------- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba-col { padding: 28px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.ba-col h3 { display: flex; align-items: center; gap: 10px; }
.ba-col ul { list-style: none; padding: 0; margin: 0; }
.ba-col li { position: relative; padding-block: 10px; padding-inline: 28px 0; border-top: 1px solid var(--line-2); }
.ba-col li:first-child { border-top: 0; }
.ba-col li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; }
.before h3 .ic { color: var(--bad); }
.before li::before { background: var(--bad); }
.after { border-color: #B9CBF8; background: linear-gradient(180deg, #fff, var(--ice)); }
.after h3 .ic { color: var(--ok); }
.after li::before { background: var(--ok); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); margin: 0; }
.card-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-t); color: var(--blue-d); }

/* ---------- Steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split .section-head { text-align: start; margin-inline-start: 0; }
.steps-list { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: none; }
.steps-list li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.steps-list li:first-child { border-top: 0; }
.steps-list .num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; }
.steps-list h3 { margin-bottom: .3em; }
.steps-list p { color: var(--muted); margin: 0; }
.steps-list.big li { padding: 26px 0; }
.steps-list.big .num { width: 56px; height: 56px; font-size: 1.35rem; background: var(--blue); }
.time { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: .9rem; font-weight: 700; color: var(--ink) !important; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; }
.feature-text > p { color: var(--muted); }
.feature-media.wide-media { grid-column: 1 / -1; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-block: 6px; padding-inline: 30px 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks.small li { padding-top: 4px; padding-bottom: 4px; }
.ticks.small li::before { top: 8px; }

/* ---------- Honest section ---------- */
.honest { background: var(--ink); color: #DCE4F3; }
.honest h2, .honest h3 { color: #fff; }
.honest .eyebrow { color: #FF9AA2; }
.honest .lead { color: #C9D4EA; }
.honest a { color: #fff; }
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.honest .section-head { text-align: start; margin-inline-start: 0; }
.can-cannot { display: grid; gap: 18px; }
.can-cannot > div { padding: 24px 26px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--ink-3); }
.can-cannot h3 { display: flex; align-items: center; gap: 10px; }
.can-cannot > div:first-child h3 .ic { color: #5FD3A5; }
.can-cannot > div:last-child h3 .ic { color: #FF9AA2; }
.can-cannot ul { margin: 0; padding-inline-start: 1.2em; }
.can-cannot li { padding: 3px 0; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.audience-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.audience-card picture img { aspect-ratio: 4 / 3; object-fit: cover; }
.audience-card > div { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.audience-card p { color: var(--muted); }
.audience-card a { margin-top: auto; font-weight: 750; }

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0 0 32px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; inset-inline-start: 30px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.plan h3 { font-size: 1.4rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 18px; }
.price b { font-size: 2.8rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan .ticks { flex: 1; }
.plan .btn { margin-top: 18px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 1.5em; }
.compare { min-width: 560px; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: top; }
.compare thead th { background: var(--bg-2); color: var(--ink); font-weight: 800; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 700; color: var(--ink); }
.prose .compare { position: relative; border: 1px solid var(--line); border-radius: var(--radius); display: block; overflow-x: auto; min-width: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; min-height: 56px; cursor: pointer; font-weight: 750; color: var(--ink); list-style: none; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-2); }
.faq-ic { flex: none; transition: transform .2s; color: var(--blue-d); }
.faq-item[open] .faq-ic { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-2); border-radius: var(--radius) var(--radius) 0 0; }
.faq-a { padding: 16px 22px 6px; color: var(--muted); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.post-card-img { background: var(--ice); }
.post-card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-body > p:last-child { color: var(--muted); margin: 0; font-size: .97rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blue-t); color: var(--blue-d); font-weight: 800; }
.post-card-title { font-size: 1.18rem; margin-bottom: .45em; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-title a:hover { text-decoration: underline; }
.post-card-title a:focus-visible { outline: none; }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card.featured .post-card-img img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.post-card.featured .post-card-body { padding: 36px; justify-content: center; }
.post-card.featured .post-card-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; background: #fff; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination { display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.results-count { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-d) 0%, var(--ink) 75%); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCE4F3; margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-actions .trust { color: #C9D4EA; font-size: .92rem; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--ice); border: 1px solid #C9D7FA; }
.cta-inline-title { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin: 0 0 4px; }
.cta-inline p:last-child { margin: 0; color: var(--muted); }
.cta-inline .btn { flex: none; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); background: radial-gradient(900px 420px at 80% -20%, var(--ice), transparent 60%), #fff; border-bottom: 1px solid var(--line-2); }
.page-hero.center { text-align: center; }
.page-hero .lead { max-width: 40em; }
.page-hero.center .lead { margin-inline: auto; }

/* ---------- Article ---------- */
.article-head { padding: clamp(32px, 5vw, 56px) 0 0; background: linear-gradient(180deg, #F8FAFE, #fff); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #8C96AA; }
.crumbs a { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .95rem; }
.article-cover { margin-top: 28px; max-width: 1088px; }
.article-cover img { border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 48px; padding-bottom: 72px; }
.article-layout > .article-body:only-child { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; }
.toc { position: relative; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding-block: 7px; padding-inline: 14px 0; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--blue-d); border-inline-start-color: var(--blue); font-weight: 750; }
.answer-box { padding: 24px 26px; border-radius: var(--radius); background: var(--ice); border: 1px solid #C9D7FA; margin-bottom: 24px; }
.answer-title, .takeaways-title { font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-d); margin-bottom: 8px; }
.answer-box p { margin: 0; font-size: 1.08rem; color: var(--ink); }
.takeaways { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 36px; }
.takeaways-title { color: var(--ink); }
.takeaways ul { margin: 0; }
.takeaways li { padding: 3px 0; }

.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 22px 26px; border: 1px dashed #8C96AA; background: var(--bg-2); border-radius: var(--radius); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 1.5em 0 2em; }
.prose ol.steps > li { position: relative; counter-increment: step; padding-block: 0 22px; padding-inline: 62px 0; margin: 0; }
.prose ol.steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.prose ol.steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.prose ol.steps h3 { margin: 6px 0 .3em; font-size: 1.15rem; }
.prose ol.steps p { margin: 0; color: var(--muted); }
.article-faq { margin-top: 48px; }
.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.25rem; }
.sources ol { padding-inline-start: 1.3em; font-size: .97rem; }
.sources li { margin-bottom: .4em; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 40px 0 20px; }
.author-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.4rem; }
.author-name { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.author-box p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 750; color: var(--ink); }
input[type=text], input[type=email], input[type=search], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #6B7489; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 650; border: 1px solid var(--line); background: var(--bg-2); }
.notice.ok { background: var(--ok-t); border-color: #9FD9C2; color: #0B5A40; }
.notice.bad { background: var(--bad-t); border-color: #F2B4B8; color: #8F1B20; }
.contact-side { padding: 28px; background: var(--bg-2); border-radius: var(--radius-lg); }
.contact-side h2 { font-size: 1.25rem; }
.contact-side h2 + p, .contact-side p + h2 { margin-top: 0; }
.contact-side p + h2 { margin-top: 1.4em; }
.contact-side .ic { color: var(--blue-d); margin-inline-end: 6px; }
.search-form, .search-row { display: flex; gap: 10px; max-width: 560px; }
.search-404 { margin: 24px auto 0; display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D4EA; padding: 72px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-h { font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; color: #9FB0CF; margin-bottom: 14px; }
.footer-menu, .legal-menu, .social { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 6px; }
.footer-menu a, .legal-menu a, .social a { display: inline-block; padding: 4px 0; text-decoration: none; }
.footer-menu a:hover, .legal-menu a:hover, .social a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink-3); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-credit { display: block; margin-top: 4px; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 18px; }

.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; padding-inline: 18px 10px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .95rem; }
.sticky-cta[hidden] { display: none; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .score-card { inset-inline-start: 12px; }
  .fix-card { inset-inline-end: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .feature-row, .honest-grid, .cta-band-inner, .before-after { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
  .card-grid.three, .plan-grid, .audience-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .facts-list { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .facts-list li:nth-child(4) { border-inline-start: 0; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { margin-bottom: 28px; }
  .toc-inner { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-img img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .wrap { padding: 0 18px; }
  .card-grid.three, .card-grid.four, .plan-grid, .audience-grid, .post-grid { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li { border-inline-start: 0; padding: 6px 4px; }
  .float-card { position: static; margin-top: 12px; box-shadow: var(--shadow); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan-for { min-height: 0; }
  .search-form, .search-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .post-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .chip, .faq-item, .card, .plan, .post-card { border: 1px solid CanvasText; }
  .ticks li::before, .ba-col li::before { forced-color-adjust: none; background: CanvasText; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .cta-band, .cta-inline, .toc, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
}
