/* Klinmate public website. Brand values from Klinmate Brand Applications / Website Design Options, Oct 2026. */

/* Self-hosted fonts (SIL OFL, see /assets/fonts/OFL-*.txt). Articulat CF is the brand face for English;
   Figtree stands in until licensed Articulat CF webfont files are supplied. Cairo is the approved Arabic face. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-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+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/assets/fonts/cairo-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}

:root {
  --deep: #23108C;
  --support: #36279C;
  --violet: #7F57FF;
  --coral: #FE5F7C;
  --surface: #F6F5FB;
  --lavender: #ECE8FB;
  --white: #FFFFFF;
  --ink: #1A1340;
  --muted: #4E4870;
  --line: #E1DDF2;
  --font: "Articulat CF", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
:lang(ar) { --font: "Cairo", "Figtree", system-ui, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg { max-width: 100%; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--support); }
h1, h2, h3 { color: var(--deep); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero-bold :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--deep); text-decoration: none; font-family: "Articulat CF", "Figtree", system-ui, sans-serif; }
.brand:hover { color: var(--deep); }
.brand svg { width: 26px; height: 30px; flex: none; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--deep); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--lavender); }
.nav .lang { font-weight: 600; margin-inline-start: 6px; }
.nav .btn { margin-inline-start: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); background: var(--deep); }
.nav a.btn-primary:hover { background: var(--support); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--deep); cursor: pointer; font: 600 .95rem var(--font); align-items: center; gap: 8px; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(35,16,140,.25); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav .lang, .nav .btn { margin-inline-start: 0; }
  .nav .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--support); color: var(--white); }
/* Coral fills carry deep-purple text: white on #FE5F7C is under 3:1, deep purple is 4.7:1. */
.btn-coral { background: var(--coral); color: var(--deep); box-shadow: 0 14px 30px -14px rgba(254,95,124,.9); }
.btn-coral:hover { background: #ff7891; color: var(--deep); }
.btn-light { background: var(--white); color: var(--deep); }
.btn-light:hover { background: var(--lavender); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn-ghost:hover { background: var(--surface); color: var(--deep); }
.on-dark .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Badges / eyebrows ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--lavender); color: var(--deep); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9rem; }
.on-dark .eyebrow { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.eyebrow.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(254,95,124,.7); } 70% { box-shadow: 0 0 0 10px rgba(254,95,124,0); } 100% { box-shadow: 0 0 0 0 rgba(254,95,124,0); } }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; border: 1px solid currentColor; }
.status-core { color: var(--deep); background: var(--lavender); border-color: transparent; }
.status-planned { color: #5B3FD9; background: #F1EDFF; border-color: transparent; }
.status-exploring { color: #9A1F3A; background: #FFE8EC; border-color: transparent; }
.status-concept { color: #9A1F3A; background: #FFE8EC; border-color: transparent; }

/* ---------- Bold hero (existing landing page direction) ---------- */
.on-dark { color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.hero-bold {
  position: relative; overflow: hidden; color: var(--white); background-color: var(--deep);
  background-image:
    radial-gradient(60vmax 60vmax at -15% -20%, rgba(127,87,255,.75), transparent 60%),
    radial-gradient(55vmax 55vmax at 115% 120%, rgba(254,95,124,.8), transparent 60%);
}
.hero-bold .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 48px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero-bold.compact .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(48px, 7vw, 88px); }
.hero-bold h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 20px; }
.hero-bold.compact h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); max-width: 20ch; }
:lang(ar) .hero-bold h1 { line-height: 1.3; letter-spacing: 0; }
.hero-bold h1 .hl { color: var(--coral); }
.hero-bold .lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 600px; margin: 0 0 32px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: end; }
.hero-art .disc { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(145deg, var(--violet), var(--support)); box-shadow: 0 50px 100px -40px rgba(10,0,60,.8); }
.hero-art svg { position: absolute; inset: 22% 24% 20% 22%; width: 54%; height: auto; }
[dir="rtl"] .hero-art { justify-self: start; }
@media (max-width: 900px) { .hero-bold .wrap { grid-template-columns: minmax(0, 1fr); } .hero-art { display: none; } }

/* ---------- Clean page hero ---------- */
.hero-clean { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-clean .wrap { padding-block: clamp(48px, 7vw, 88px); }
.hero-clean h1 { max-width: 22ch; }
.hero-clean .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 680px; margin-bottom: 28px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 1.4em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.section.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(35,16,140,.05); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card ul { margin: 14px 0 0; padding-inline-start: 1.2em; color: var(--muted); }
.card li { margin-bottom: 4px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(35,16,140,.45); color: inherit; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--deep); }

.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--white); }
.icon svg { width: 24px; height: 24px; }
.icon.c-deep { background: var(--deep); }
.icon.c-violet { background: var(--violet); }
.icon.c-coral { background: var(--coral); color: var(--deep); }
.icon.c-support { background: var(--support); }

/* Feature rows on the Features page */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding-block: 40px; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature .tagline { font-size: 1.15rem; color: var(--muted); }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.feature li svg { flex: none; width: 20px; height: 20px; color: var(--violet); margin-top: 3px; }
.feature .note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
@media (max-width: 800px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps.row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps.row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps.row, .steps.row-3 { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--violet); font-size: 1.05rem; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Notices */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--violet); border-radius: 14px; padding: 18px 20px; color: var(--ink); }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--violet); margin-top: 2px; }
.notice p { margin: 0; }
.notice.warn { border-inline-start-color: var(--coral); }
.notice.warn svg { color: #C2304F; }
.notice + .notice { margin-top: 12px; }

/* Concept conversation preview (illustrative, labelled) */
.chat { margin: 0; background: var(--support); border-radius: 24px; padding: 24px; display: grid; gap: 12px; max-width: 440px; width: 100%; justify-self: end; }
[dir="rtl"] .chat { justify-self: start; }
.chat-title { color: var(--white); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chat-title .status { color: var(--white); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); font-size: .72rem; }
.bubble { padding: 12px 16px; border-radius: 16px; max-width: 85%; font-size: .98rem; }
.bubble.in { background: #E7E1FF; color: var(--ink); justify-self: start; border-end-start-radius: 4px; }
.bubble.out { background: var(--white); color: var(--ink); justify-self: end; border-end-end-radius: 4px; }
.bubble.handoff { background: transparent; color: rgba(255,255,255,.9); justify-self: center; font-size: .88rem; border: 1px dashed rgba(255,255,255,.45); text-align: center; }
.chat-caption { color: rgba(255,255,255,.75); font-size: .85rem; margin: 6px 0 0; }

/* Do / don't lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.checklist.yes svg { color: var(--violet); }
.checklist.no svg { color: #C2304F; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq details[open] { border-color: var(--violet); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--deep); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--violet); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.4rem; }

/* ---------- Waitlist form ---------- */
.waitlist { display: grid; gap: 12px; max-width: 560px; }
.waitlist .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .waitlist .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: 400 1rem var(--font);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.field input:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.field input[aria-invalid="true"] { border-color: #C2304F; }
.on-dark .field label { color: rgba(255,255,255,.92); }
.on-dark .field input { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--white); }
.on-dark .field input::placeholder { color: rgba(255,255,255,.6); }
.on-dark .field input:focus { outline-color: var(--white); border-color: var(--white); background: rgba(255,255,255,.16); }
.on-dark .field input[aria-invalid="true"] { border-color: #FFC2CE; }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-msg { min-height: 1.5em; font-weight: 600; margin: 2px 0 0; }
.form-msg.err { color: #B4213F; }
.on-dark .form-msg.err { color: #FFC2CE; }
.done { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.on-dark .done { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.done svg { flex: none; width: 34px; height: 34px; color: var(--coral); }
.done b { display: block; font-size: 1.1rem; }
.done span { color: var(--muted); }
.on-dark .done span { color: rgba(255,255,255,.82); }
.fine { font-size: .88rem; color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.on-dark .fine { color: rgba(255,255,255,.72); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); }

/* Contact options */
.contact-option { display: flex; flex-direction: column; gap: 10px; }
.contact-option .btn { align-self: flex-start; margin-top: auto; }
.email { direction: ltr; unicode-bidi: isolate; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); background-image: radial-gradient(50vmax 40vmax at 100% 120%, rgba(254,95,124,.55), transparent 60%), radial-gradient(40vmax 40vmax at -10% -40%, rgba(127,87,255,.6), transparent 60%); color: var(--white); }
.cta-band .wrap { padding-block: clamp(56px, 8vw, 88px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: #170A5E; color: rgba(255,255,255,.78); font-size: .95rem; }
.site-footer .wrap { padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
:lang(ar) .site-footer h2 { letter-spacing: 0; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-note { margin-top: 12px; max-width: 360px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.65); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page .lead { margin-inline: auto; }
.error-page .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .nav-toggle, .cta-band, .waitlist { display: none !important; }
}

.h3-size { font-size: 1.2rem; margin-bottom: 4px; }
.features-list { margin-top: 40px; }
.section .actions { margin-top: 28px; }
.section > .wrap + .wrap { margin-top: 40px; }

/* ---------- Guides ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { margin: 0; }
.post-card p { flex: 1; }
.post-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--lavender); color: var(--deep); font-size: .78rem; font-weight: 700; }
.post-meta { font-size: .85rem; color: var(--muted); }
.h3-size { font-size: 1.2rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { font-weight: 600; display: inline-block; padding-block: 4px; }
.article-hero h1 { max-width: 26ch; font-size: clamp(2rem, 4.6vw, 3rem); }
.article-meta { font-size: .92rem; color: var(--muted); margin: 0; }
.article { max-width: 760px; margin-inline: auto; }
.article p, .article li { color: var(--ink); font-size: 1.06rem; line-height: 1.7; }
.article h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-top: 1.8em; scroll-margin-top: 90px; }
.article ul { padding-inline-start: 1.3em; }
.article li { margin-bottom: .45em; }
.article .notice { margin-top: 2em; }
.article .notice p { font-size: .95rem; color: var(--muted); }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.takeaways h2 { margin-top: 0; font-size: 1.15rem; }
.takeaways ul { margin: 0; }
.cite { font-size: .72em; line-height: 0; margin-inline-start: 2px; }
.cite a { text-decoration: none; font-weight: 700; }
ul.check { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.check li { position: relative; padding-inline-start: 30px; margin: 0; }
ul.check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: var(--lavender); box-shadow: inset 0 0 0 2px var(--violet); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .97rem; }
@media (max-width: 560px) { .table-wrap th, .table-wrap td { padding: 10px 12px; } .table-wrap table { font-size: .9rem; } }
.table-wrap caption { text-align: start; font-size: .85rem; color: var(--muted); padding: 12px 16px 0; caption-side: top; }
.table-wrap th, .table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.table-wrap thead th { background: var(--surface); color: var(--deep); border-top: 0; }
.table-wrap tbody th { font-weight: 600; color: var(--ink); }
.refs { padding-inline-start: 1.6em; }
.refs li { font-size: .9rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; scroll-margin-top: 90px; }
.refs li:target { background: var(--lavender); border-radius: 6px; }

/* Sponsor slot: always labelled, plain content only */
.ad-slot { margin: 2.2em 0; border: 1.5px dashed var(--violet); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; justify-items: start; background: var(--white); }
.ad-slot p { margin: 0; color: var(--muted); font-size: .98rem; }
.ad-slot b { color: var(--deep); }
.ad-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .ad-label { letter-spacing: 0; }
.ad-slot .btn { padding: 10px 18px; font-size: .92rem; }
@media print { .ad-slot { display: none !important; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; max-width: 860px; }
.stat-row div { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat-row dd { margin: 0 0 4px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; color: #D6315A; line-height: 1.1; letter-spacing: -0.02em; }
.stat-row dt { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }
