/*
 * Zawaj — public website styles.
 * Tokens, type and the henna-ring motif follow docs/REDESIGN-SPEC.md §1.
 * Plain CSS (no build step). Arabic RTL first; logical properties throughout.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
    --primary: #0F5132;          /* Nile green */
    --primary-strong: #0B3D26;
    --on-primary: #FFFFFF;
    --primary-container: #D7EBDF;
    --on-primary-container: #0B3D26;
    --secondary: #1F5F8B;        /* Blue Nile */
    --on-secondary: #FFFFFF;
    --blue-soft: #DCEAF4;
    --henna: #B5542E;
    --henna-ink: #9A4424;        /* henna for text on light (AA) */
    --henna-soft: #F6E3D9;
    --gold: #C9A227;             /* ornament only — never body text on light */
    --gold-ink: #7A5F0E;
    --gold-soft: #F6EED2;
    --bg: #F7F4EC;               /* sand */
    --surface: #FFFDF8;
    --surface-variant: #EFEADD;
    --ink: #17221D;
    --muted: #5B6660;
    --outline: #E2DCCB;
    --error: #B3261E;
    --on-error: #FFFFFF;
    --error-soft: #FBEAE7;
    --success-soft: #E3F1E8;

    /* deep green panels (safety, download, footer) */
    --panel: #0F5132;
    --panel-2: #0A3A24;
    --on-panel: #F7F4EC;
    --on-panel-muted: #CFE3D7;
    --panel-gold: #E2C266;
    --panel-line: rgba(255, 255, 255, .14);
    --panel-fill: rgba(255, 255, 255, .06);

    /* the henna mark follows the theme */
    --mark-petal: var(--henna);
    --mark-gold: var(--gold);
    --mark-word: var(--primary);

    --shadow: 0 8px 24px rgba(15, 81, 50, .08);
    --shadow-lg: 0 22px 50px rgba(15, 81, 50, .14);
    --r-card: 20px;
    --r-ctl: 14px;
    --r-pill: 999px;

    --font-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
    --font-body: "IBM Plex Sans Arabic", Inter, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 68px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #7FC8A1;
        --primary-strong: #A6DCBF;
        --on-primary: #0B2A1C;
        --primary-container: #1E3B2E;
        --on-primary-container: #CDEBDB;
        --secondary: #8CC3E8;
        --on-secondary: #0B2233;
        --blue-soft: #17303F;
        --henna: #D98A62;
        --henna-ink: #EBA987;
        --henna-soft: #36231A;
        --gold: #E2C266;
        --gold-ink: #E2C266;
        --gold-soft: #2D2814;
        --bg: #0E1714;
        --surface: #16211D;
        --surface-variant: #1F2B26;
        --ink: #E8EFEA;
        --muted: #A9B6AF;
        --outline: #2C3A34;
        --error: #F2B8B5;
        --on-error: #601410;
        --error-soft: #3A1F1D;
        --success-soft: #1B3328;

        --panel: #123A28;
        --panel-2: #0B241A;
        --on-panel: #EAF2EC;
        --on-panel-muted: #B9D3C4;

        --shadow: 0 8px 24px rgba(0, 0, 0, .35);
        --shadow-lg: 0 22px 50px rgba(0, 0, 0, .45);
    }
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: var(--secondary); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--primary-container); color: var(--on-primary-container); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--doc { max-width: 880px; }

.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;
}

.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.skip {
    position: fixed;
    inset-inline-start: 12px;
    top: 12px;
    z-index: 100;
    transform: translateY(-160%);
    background: var(--primary);
    color: var(--on-primary);
    padding: 10px 18px;
    border-radius: var(--r-ctl);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.22em; }
.icon--badge {
    width: 26px; height: 26px; padding: 5px;
    border-radius: 50%;
    background: var(--primary-container);
    color: var(--primary);
    stroke-width: 2.4;
}
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* Tone helpers (icon tiles) */
.tone-green { background: var(--primary-container); color: var(--primary); }
.tone-blue { background: var(--blue-soft); color: var(--secondary); }
.tone-henna { background: var(--henna-soft); color: var(--henna-ink); }
.tone-gold { background: var(--gold-soft); color: var(--gold-ink); }
.tone-danger { background: var(--error-soft); color: var(--error); }

/* ───────────────────────── Henna mark ───────────────────────── */
.henna { display: inline-block; overflow: visible; flex: none; }
.henna__petal { fill: var(--mark-petal); }
.henna__bead { fill: var(--mark-gold); }
.henna__ring { stroke: var(--mark-gold); }
.henna__word { fill: var(--mark-word); font-family: var(--font-head); font-weight: 800; }

@media (prefers-reduced-motion: no-preference) {
    .henna--animate .henna__ring {
        stroke-dasharray: 170;
        animation: henna-ring 1.1s cubic-bezier(.65, 0, .35, 1) .15s both;
    }
    .henna--animate .henna__petal {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: henna-petal .7s cubic-bezier(.34, 1.4, .64, 1) both;
        animation-delay: calc(.6s + var(--i) * .11s);
    }
    .henna--animate .henna__bead {
        transform-box: fill-box;
        transform-origin: 50% 50%;
        animation: henna-bead .45s ease-out both;
        animation-delay: calc(1.35s + var(--i) * .05s);
    }
    .henna--animate .henna__word { animation: henna-fade .9s ease-out 1.55s both; }
    .henna--animate .henna__orn {
        transform-box: view-box;
        transform-origin: 50% 50%;
        animation: henna-spin 48s linear 2.3s infinite;
    }
}

@keyframes henna-ring { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes henna-petal { from { transform: scale(0); opacity: 0; } 50% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes henna-bead { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes henna-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes henna-spin { to { transform: rotate(360deg); } }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-ctl);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, translate .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { translate: 0 1px; }
.btn .icon { width: 20px; height: 20px; }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(15, 81, 50, .22); }
.btn-primary:hover { background: var(--primary-strong); }

.btn-ghost { background: transparent; color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-ghost:hover { background: var(--primary-container); border-color: transparent; }

.btn-danger { background: var(--error); color: var(--on-error); box-shadow: 0 6px 18px rgba(179, 38, 30, .2); }
.btn-danger:hover { background: color-mix(in srgb, var(--error) 88%, #000); }

.btn-info { background: var(--secondary); color: var(--on-secondary); }
.btn-info:hover { background: color-mix(in srgb, var(--secondary) 88%, #000); }

.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: 16px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--outline) 80%, transparent);
}
.site-header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    padding-block: 4px;
}
.brand__mark { width: 40px; height: 40px; }

.site-nav { display: flex; gap: 2px; margin-inline-start: 20px; }
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-container); }

.site-header__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.lang-pill:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 920px) { .site-nav { display: none; } }
@media (max-width: 420px) {
    .site-header__cta { width: 44px; padding: 0; }
    .site-header__cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ───────────────────────── Shared section pieces ───────────────────────── */
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.section--band {
    background: var(--surface);
    border-block: 1px solid var(--outline);
}

.section-head { max-width: 700px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.45; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--henna-soft);
    color: var(--henna-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--henna); box-shadow: 0 0 0 4px color-mix(in srgb, var(--henna) 22%, transparent); flex: none; }
.eyebrow--on-panel { background: rgba(226, 194, 102, .14); color: var(--panel-gold); }

/* line · bead · line */
.ornament { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 22px; }
.ornament span { width: 44px; height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--gold), transparent); }
.ornament span:last-child { background: linear-gradient(to left, var(--gold), transparent); }
[dir="ltr"] .ornament span { background: linear-gradient(to left, var(--gold), transparent); }
[dir="ltr"] .ornament span:last-child { background: linear-gradient(to right, var(--gold), transparent); }
.ornament i { width: 8px; height: 8px; border-radius: 50%; background: var(--henna); box-shadow: 0 0 0 3px var(--gold-soft); }
.ornament--start { justify-content: flex-start; }

/* The 6% petal pattern (spec motif) — used sparingly on headers and panels */
.pattern::before,
.hero::before,
.page-top::before,
.safety::before,
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--henna);
    -webkit-mask: url("../img/petal-pattern.svg") 0 0 / 132px 132px repeat;
    mask: url("../img/petal-pattern.svg") 0 0 / 132px 132px repeat;
    opacity: .06;
}

/* Reveal on scroll — progressive enhancement, no JS */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero::before {
    -webkit-mask-image: url("../img/petal-pattern.svg"), linear-gradient(#000 0%, transparent 90%);
    mask-image: url("../img/petal-pattern.svg"), linear-gradient(#000 0%, transparent 90%);
    -webkit-mask-size: 132px 132px, 100% 100%;
    mask-size: 132px 132px, 100% 100%;
    -webkit-mask-repeat: repeat, no-repeat;
    mask-repeat: repeat, no-repeat;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    opacity: .07;
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: min(980px, 140vw);
    aspect-ratio: 1;
    inset-inline-end: -22%;
    top: -38%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-container) 85%, transparent) 0%, transparent 62%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.hero__title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.3; margin-bottom: 18px; }
.hero__lead { font-size: clamp(17px, 1.55vw, 20px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 15px;
    font-weight: 500;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }

.hero__art {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin-inline: auto;
}
.hero__halo {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--surface) 0 40%, color-mix(in srgb, var(--surface) 55%, var(--primary-container)) 58%, transparent 71%);
}
.hero__halo::before,
.hero__halo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero__halo::before { inset: 0; border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.hero__halo::after { inset: 9%; border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); }
.hero__mark { position: relative; width: 74%; height: auto; filter: drop-shadow(0 12px 28px rgba(15, 81, 50, .10)); }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 7px;
    padding-inline: 7px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.float-chip__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.float-chip__icon .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.float-chip--a { top: 9%; inset-inline-start: 0; }
.float-chip--b { bottom: 8%; inset-inline-end: 0; }

@media (prefers-reduced-motion: no-preference) {
    .float-chip { animation: chip-in .6s cubic-bezier(.2, .8, .2, 1) both, chip-float 7s ease-in-out infinite; }
    .float-chip--a { animation-delay: 2s, 2.6s; }
    .float-chip--b { animation-delay: 2.35s, 6s; }
}
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__art { order: -1; max-width: 340px; }
    .hero__lead { margin-inline: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
    .ornament--start { justify-content: center; }
}
@media (max-width: 480px) {
    .hero { padding-top: 20px; }
    .hero__art { max-width: 236px; }
    .hero__title { font-size: 32px; }
    .float-chip { font-size: 12.5px; padding-inline-end: 11px; }
    .float-chip__icon { width: 26px; height: 26px; }
    .hero__actions .btn { flex: 1 1 100%; }
}

/* ───────────────────────── Values ───────────────────────── */
.values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.value {
    position: relative;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--outline);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 50%, var(--outline)); }
.value__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.value__icon .icon { width: 28px; height: 28px; }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .values { grid-template-columns: 1fr; gap: 14px; } }

/* ───────────────────────── Steps ───────────────────────── */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.steps::before {
    content: "";
    position: absolute;
    top: 32px;
    inset-inline: 12.5%;
    border-top: 2px dashed color-mix(in srgb, var(--gold) 70%, transparent);
}
.step { position: relative; text-align: center; padding-inline: 6px; }
.step__num {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 0 0 8px var(--surface);
}
.step:last-child .step__num { background: var(--primary); color: var(--on-primary); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
    .steps::before { top: 32px; bottom: 40px; inset-inline: 31px auto; border-top: 0; border-inline-start: 2px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
    .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; text-align: start; padding: 0 0 28px; }
    .step__num { grid-row: span 2; margin: 0; }
    .step h3 { align-self: end; padding-top: 6px; }
}

/* ───────────────────────── Safety ───────────────────────── */
.safety {
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
    color: var(--on-panel);
    --mark-petal: var(--panel-gold);
    --mark-gold: var(--panel-gold);
}
.safety::before { background-color: var(--panel-gold); opacity: .07; }
.safety__mark { position: absolute; z-index: -1; width: 460px; height: 460px; inset-inline-end: -150px; bottom: -170px; opacity: .1; }
.safety__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.safety .section-title { color: var(--on-panel); }
.safety .section-lead { color: var(--on-panel-muted); }
.safety__promise {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    background: var(--panel-fill);
    font-weight: 600;
}
.safety__promise-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(226, 194, 102, .16); color: var(--panel-gold); }
.safety__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.safety-item { padding: 24px; border: 1px solid var(--panel-line); border-radius: var(--r-card); background: var(--panel-fill); }
.safety-item__icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; display: grid; place-items: center; background: rgba(226, 194, 102, .14); color: var(--panel-gold); }
.safety-item__icon .icon { width: 24px; height: 24px; }
.safety-item h3 { color: var(--on-panel); font-size: 18px; margin-bottom: 6px; }
.safety-item p { margin: 0; color: var(--on-panel-muted); font-size: 15.5px; }

@media (max-width: 900px) { .safety__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .safety__list { grid-template-columns: 1fr; } }

/* ───────────────────────── Diaspora ───────────────────────── */
.diaspora__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.ticks .icon--badge { margin-top: 1px; }

.bridge { display: grid; }
.place-card { padding: 24px; border: 1px solid var(--outline); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.place-card__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.place-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--r-pill);
    background: var(--surface-variant);
    font-size: 14.5px;
    font-weight: 500;
}
.bridge__link { position: relative; height: 76px; display: grid; place-items: center; }
.bridge__link::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; border-inline-start: 2px dashed var(--gold); }
.bridge__badge {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid var(--outline);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
}

@media (max-width: 900px) { .diaspora__grid { grid-template-columns: 1fr; } }

/* ───────────────────────── Download CTA ───────────────────────── */
.download { padding-top: 0; }
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 32px;
    background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
    color: var(--on-panel);
    box-shadow: var(--shadow-lg);
}
.cta::before { background-color: var(--panel-gold); opacity: .07; }
.cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    aspect-ratio: 1;
    inset-inline-start: -160px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 194, 102, .22), transparent 65%);
    pointer-events: none;
}
.cta .section-title { color: var(--on-panel); }
.cta .section-lead { color: var(--on-panel-muted); }
.cta__contact { margin: 22px 0 0; color: var(--on-panel-muted); font-size: 15px; }
.cta__contact a { color: var(--on-panel); }

.soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    background: var(--panel-gold);
    color: #2A2208;
    font-weight: 700;
    font-size: 15px;
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    min-width: 190px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: #0A0F0D;
    color: #FFFFFF;
    text-decoration: none;
    transition: translate .2s, background-color .2s, border-color .2s;
}
.store:hover { background: #000; border-color: var(--panel-gold); translate: 0 -2px; }
.store .icon { width: 28px; height: 28px; }
.store__small { display: block; font-size: 12px; line-height: 1.3; opacity: .85; }
.store__big { display: block; font-family: Inter, "IBM Plex Sans Arabic", system-ui, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.store.is-soon { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .28); color: var(--on-panel-muted); }
.store--direct { background: var(--panel-gold); border-color: transparent; color: #2A2208; }
.store--direct:hover { background: #EDD27E; border-color: transparent; }
.store__meta { display: block; font-size: 12px; line-height: 1.3; opacity: .8; }
.direct-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 560px;
    margin: 18px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: var(--on-panel-muted);
    font-size: 14px;
    line-height: 1.7;
}
.direct-note .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--panel-gold); }
.direct-note p { margin: 0; }

/* Phone mock-up (decorative) */
.cta__visual { display: flex; justify-content: center; }
.phone {
    width: 280px;
    padding: 11px;
    border-radius: 44px;
    background: #0A0F0D;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38), inset 0 0 0 2px rgba(255, 255, 255, .07);
}
.phone__screen {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 520px;
    padding: 18px 14px;
    border-radius: 34px;
    background: var(--bg);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
}
.phone__screen::before { content: ""; justify-self: center; width: 84px; height: 22px; margin-top: -8px; border-radius: 0 0 14px 14px; background: #0A0F0D; }
.mock-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--primary); }
.mock-tabs { display: flex; gap: 6px; }
.mock-tabs span { padding: 3px 12px; border: 1px solid var(--outline); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 12px; }
.mock-tabs .is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mock-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--outline); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.mock-card--ghost { opacity: .7; }
.mock-card__head { display: flex; align-items: center; gap: 10px; }
.mock-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-variant); display: grid; place-items: center; flex: none; }
.mock-avatar .henna { width: 56px; height: 56px; }
.mock-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.mock-verified { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }
.mock-verified .icon { width: 12px; height: 12px; stroke-width: 3; }
.mock-meta { display: block; color: var(--muted); font-size: 12px; }
.mock-match { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mock-match b { color: var(--primary); font-size: 14px; }
.mock-match i { height: 6px; border-radius: 6px; background: var(--surface-variant); overflow: hidden; }
.mock-match em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(to left, var(--primary), var(--gold)); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mock-chips span { padding: 2px 9px; border-radius: var(--r-pill); background: var(--primary-container); color: var(--on-primary-container); font-size: 11px; font-weight: 600; }
.mock-btn { padding: 9px; border-radius: 12px; background: var(--primary); color: var(--on-primary); text-align: center; font-weight: 700; font-size: 13px; }

@media (max-width: 900px) {
    .cta { grid-template-columns: 1fr; text-align: center; padding-bottom: 0; }
    .cta .stores { justify-content: center; }
    .direct-note { margin-inline: auto; text-align: start; }
    .cta__visual { max-height: 340px; overflow: hidden; align-items: flex-start; }
    .phone { width: 260px; }
}
@media (max-width: 480px) {
    .cta { border-radius: 24px; }
    .store { flex: 1 1 100%; justify-content: center; }
}

/* ───────────────────────── Document pages ───────────────────────── */
.page-top {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 26px 0 92px;
    background: linear-gradient(180deg, var(--primary-container) 0%, color-mix(in srgb, var(--primary-container) 35%, var(--bg)) 100%);
}
.page-top::before { background-color: var(--primary); opacity: .07; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--on-primary-container); font-size: 14px; font-weight: 500; }
.crumbs a { color: var(--on-primary-container); }
.crumbs__sep { opacity: .6; }

.page-body { position: relative; margin-top: -68px; padding-bottom: clamp(56px, 8vw, 96px); }

.card { border: 1px solid var(--outline); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lg); }
.doc { padding: clamp(22px, 5vw, 52px); overflow-wrap: anywhere; }

.doc h1 { font-size: clamp(25px, 3.6vw, 32px); margin-bottom: 10px; }
.doc > h1::after,
.doc .legal-custom > h1:first-child::after,
.done h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    border-radius: 3px;
    background: linear-gradient(to left, var(--gold), var(--henna));
}
.doc h2 { display: flex; align-items: center; gap: 12px; margin: 38px 0 12px; color: var(--primary); font-size: 20px; }
.doc h2::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.doc h3 { margin: 26px 0 8px; font-size: 17px; }
.doc h4 { margin: 20px 0 6px; font-size: 16px; }
/* prose lists only — component lists carry a class */
.doc ul:not([class]), .doc ol:not([class]) { margin: 0 0 1em; padding-inline-start: 1.3em; }
.doc :is(ul, ol):not([class]) > li { margin-bottom: .45em; padding-inline-start: .2em; }
.doc :is(ul, ol):not([class]) > li::marker { color: var(--henna); }
.doc strong, .doc b { font-weight: 700; }
.doc hr { height: 1px; margin: 30px 0; border: 0; background: var(--outline); }
.doc blockquote { margin: 18px 0; padding: 10px 18px; border-inline-start: 4px solid var(--primary-container); color: var(--muted); }

.meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 24px;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    background: var(--surface-variant);
    color: var(--muted);
    font-size: 14px;
}
.meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.note {
    margin: 18px 0;
    padding: 16px 20px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-inline-start: 4px solid var(--gold);
    border-radius: var(--r-ctl);
    background: var(--gold-soft);
}
.note p:last-child { margin-bottom: 0; }
.note--warn { border-color: color-mix(in srgb, var(--error) 30%, transparent); border-inline-start-color: var(--error); background: var(--error-soft); }

.doc-intro { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.doc-intro h1 { margin-bottom: 6px; }
.doc-intro > div > h1::after { display: none; }
.doc-sub { margin: 0; color: var(--muted); }
.doc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.doc-icon .icon { width: 28px; height: 28px; }
.doc-intro--split { align-items: center; }
.doc-intro--split .doc-intro__text { flex: 1 1 auto; min-width: 0; }
.doc-intro--split form { flex: none; }
@media (max-width: 560px) {
    .doc-intro { flex-direction: column; gap: 14px; }
    .doc-intro--split { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .doc-intro--split .doc-intro__text { flex-basis: 100%; order: 2; }
    .doc-intro--split form { margin-inline-start: auto; }
}

/* Account-deletion progress */
.flow { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 6px; counter-reset: flow; }
.flow__step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    inset-inline-start: calc(50% + 22px);
    inset-inline-end: calc(-50% + 22px);
    height: 2px;
    background: var(--outline);
}
.flow__dot { width: 34px; height: 34px; border: 2px solid var(--outline); border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-family: var(--font-head); font-size: 14px; }
.flow__step.is-done { color: var(--primary); }
.flow__step.is-done .flow__dot { border-color: var(--primary); background: var(--primary-container); color: var(--primary); }
.flow__step.is-done:not(:last-child)::after { background: var(--primary); }
.flow__step.is-current { color: var(--ink); }
.flow__step.is-current .flow__dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 5px var(--primary-container); }

/* Premium mini steps */
.mini-steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-variant); color: var(--ink); font-size: 14px; font-weight: 500; }
.mini-steps .icon { color: var(--primary); width: 18px; height: 18px; }

/* ───────────────────────── Forms ───────────────────────── */
.form { margin-top: 8px; }
.form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form--grid { grid-template-columns: 1fr; } }

.doc label { display: block; margin: 20px 0 8px; font-size: 15px; font-weight: 600; }

.doc input[type="text"],
.doc input[type="tel"],
.doc input[type="email"],
.doc input[type="password"],
.doc select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--r-ctl);
    background: var(--surface-variant);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.doc input[type="text"],
.doc input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .doc input[type="text"],
[dir="rtl"] .doc input[type="tel"] { text-align: right; }
.doc input[autocomplete="one-time-code"] { text-align: center !important; font-size: 24px; font-weight: 700; letter-spacing: .45em; padding-inline-start: calc(16px + .45em); }
.doc input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

.doc input:focus,
.doc select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}
.doc [aria-invalid="true"] { border-color: var(--error); }

.doc select {
    -webkit-appearance: none;
    appearance: none;
    padding-inline-end: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: right 16px center;
    cursor: pointer;
}
[dir="rtl"] .doc select { background-position: left 16px center; }
@media (prefers-color-scheme: dark) {
    .doc select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B6AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
}

.doc input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--outline));
    border-radius: var(--r-ctl);
    background: var(--surface-variant);
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
.doc input[type="file"]::file-selector-button {
    margin-inline-end: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-container);
    color: var(--on-primary-container);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.doc label.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--r-ctl);
    background: var(--surface-variant);
    font-weight: 500;
    cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--error); }

.error { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--error); font-size: 15px; font-weight: 500; }
.error::before { content: "!"; width: 18px; height: 18px; margin-top: 4px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--error); color: var(--on-error); font-size: 12px; font-weight: 700; line-height: 1; }

.hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.form .btn[type="submit"] { margin-top: 24px; }
.form-alt { margin: 16px 0 0; text-align: center; font-size: 15px; }

.otp-box { margin: 0 0 8px; padding: 18px; border: 1px solid var(--outline); border-radius: var(--r-card); background: var(--blue-soft); }
.otp-box p { margin: 12px 0 0; font-size: 14.5px; text-align: center; }
.otp-box .muted { color: var(--ink); opacity: .8; }

.done { padding-block: 12px; text-align: center; }
.done__mark { width: 112px; height: 112px; margin: 0 auto 18px; }
.done h1 { font-size: clamp(25px, 3.6vw, 32px); margin-bottom: 12px; }
.done h1::after { margin-inline: auto; }
.done p { color: var(--muted); }
.done .btn { margin-top: 10px; }

/* ───────────────────────── Premium ───────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r-ctl); }
.alert p { margin: 0; }
.alert .icon { margin-top: 3px; }
.alert--success { background: var(--success-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.alert--success .icon { color: var(--primary); }
.alert--gold { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.alert--gold .icon { color: var(--gold-ink); }

.doc h2.step-h::before { display: none; }
.step-h__n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 16px; }

.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--outline);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-variant) 100%);
}
.plan::before { content: ""; position: absolute; inset-inline-start: 20px; top: -1px; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.plan__name { font-weight: 700; }
.plan__price { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.4; }
.plan__price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan__dur { color: var(--muted); font-size: 14px; }

.banks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bank { padding: 18px 20px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.bank__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.bank__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.pill { display: inline-flex; padding: 2px 12px; border-radius: var(--r-pill); background: var(--surface-variant); color: var(--muted); font-size: 13px; font-weight: 600; }
.bank__rows { margin: 0; display: grid; gap: 8px; }
.bank__rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bank__rows dt { min-width: 90px; color: var(--muted); font-size: 14px; }
.bank__rows dd { margin: 0; font-weight: 600; }
.bank__num {
    display: inline-block;
    padding: 4px 12px;
    border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--outline));
    border-radius: 10px;
    background: var(--surface-variant);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    -webkit-user-select: all;
    user-select: all;
}
.bank__note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.empty { padding: 16px 18px; border: 1px dashed var(--outline); border-radius: var(--r-ctl); color: var(--muted); text-align: center; }

.history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; }
.history__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface); }
.history__row + .history__row { border-top: 1px solid var(--outline); }
.history__main { display: grid; gap: 2px; min-width: 0; }
.history__main .muted { font-size: 14px; }
.history__notes { color: var(--error); font-size: 14px; }
.status { flex: none; padding: 4px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.status--pending { background: var(--gold-soft); color: var(--gold-ink); }
.status--approved { background: var(--primary-container); color: var(--on-primary-container); }
.status--rejected { background: var(--error-soft); color: var(--error); }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
    padding: 56px 0 28px;
    background: var(--panel-2);
    color: var(--on-panel-muted);
    font-size: 15px;
    --mark-word: var(--on-panel);
    --mark-gold: var(--panel-gold);
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__logo { display: inline-block; margin-bottom: 10px; border-radius: 50%; }
.site-footer__brand p { max-width: 30em; margin: 0; }
.footer-h { margin: 0 0 12px; color: var(--on-panel); font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--on-panel-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--on-panel); text-decoration: underline; }
.footer-links .icon { width: 18px; height: 18px; color: var(--panel-gold); }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-line);
    font-size: 14px;
}
.site-footer__motto { color: var(--panel-gold); }

@media (max-width: 860px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ───────────────────────── Motion & print ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header, .site-footer, .page-top, .skip { display: none !important; }
    body { background: #fff; color: #000; }
    .page-body { margin: 0; }
    .card { border: 0; box-shadow: none; }
}
