/* ==========================================================================
   Sheekar — shared design system
   Used by every page. Logical properties throughout so dir="rtl" just works.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand — teal */
    --brand-50: #eff8f7;
    --brand-100: #d5ecea;
    --brand-200: #a9d9d6;
    --brand-300: #74c0bd;
    --brand-400: #45a3a1;
    --brand-500: #2a8282;
    --brand-600: #22696a;
    --brand-700: #1d5455;
    --brand-800: #194444;
    --brand-900: #123030;

    /* Accent — amber */
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;

    /* Semantic */
    --success: #16a34a;
    --danger: #dc2626;

    /* Surfaces (light) */
    --bg: #f6f8f8;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f6f6;
    --surface-inset: rgba(42, 130, 130, 0.06);
    --border: #e3eae9;
    --border-strong: #cfdbda;

    /* Text */
    --text: #0f1c1c;
    --text-muted: #4c5f5f;
    --text-subtle: #7b8c8c;
    --text-on-brand: #ffffff;

    /* Brand used *as text* — needs enough contrast against --bg, so it is a
       separate token from --brand-500, which is only ever a fill. */
    --brand-text: var(--brand-500);
    --link: var(--brand-500);
    --link-hover: var(--brand-600);

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(16, 40, 40, .06), 0 1px 3px rgba(16, 40, 40, .08);
    --shadow-md: 0 4px 12px rgba(16, 40, 40, .07), 0 2px 4px rgba(16, 40, 40, .05);
    --shadow-lg: 0 18px 40px -12px rgba(16, 40, 40, .22), 0 4px 12px rgba(16, 40, 40, .06);
    --shadow-brand: 0 12px 28px -10px rgba(42, 130, 130, .55);
    --ring: 0 0 0 3px rgba(42, 130, 130, .32);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --container: 1160px;
    --container-narrow: 820px;

    --header-h: 72px;

    --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-kurdish: 'Noto Kufi Arabic', 'Segoe UI', sans-serif;
    --font: var(--font-latin), var(--font-kurdish);

    --ease: cubic-bezier(.22, .61, .36, 1);
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Kurdish text gets the Kufi face first and a little more line height */
html[dir="rtl"] body,
.ku {
    font-family: var(--font-kurdish), var(--font-latin);
    line-height: 1.9;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Element selector on purpose: any component class (.btn, .store-btn, .brand …)
   outranks it, so buttons keep their own colours in both themes. */
a {
    color: var(--link);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    text-wrap: balance;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    letter-spacing: 0;
    line-height: 1.45;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }

ul, ol {
    padding-inline-start: 1.35em;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-xs);
}

::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -100px;
    z-index: 999;
    background: var(--brand-500);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

main {
    flex: 1;
}

.section {
    padding-block: clamp(60px, 8vw, 110px);
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-text);
    background: var(--surface-inset);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

html[dir="rtl"] .eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.lead {
    font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem);
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn--primary {
    background: var(--brand-500);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    background: var(--brand-600);
    color: #fff;
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    color: var(--text);
    border-color: var(--brand-400);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--surface-inset);
    color: var(--text);
}

.btn--on-brand {
    background: #fff;
    color: var(--brand-700);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6);
}

.btn--on-brand:hover {
    background: #fff;
    color: var(--brand-800);
}

.btn--outline-light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.btn--sm {
    padding: 10px 20px;
    font-size: .92rem;
}

.btn--block {
    width: 100%;
}

/* App-store style buttons */
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px 11px 18px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    border: 1px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
    box-shadow: var(--shadow-md);
}

html[dir="rtl"] .store-btn {
    padding: 11px 18px 11px 22px;
}

.store-btn:hover {
    transform: translateY(-2px);
    color: var(--bg);
    box-shadow: var(--shadow-lg);
}

.store-btn svg {
    width: 26px;
    height: 26px;
    flex: none;
    fill: currentColor;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: start;
}

.store-btn__text small {
    font-size: .68rem;
    opacity: .75;
    letter-spacing: .04em;
}

.store-btn__text strong {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.site-header.is-stuck {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--text);
    letter-spacing: -.02em;
    flex: none;
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.nav a {
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-inset);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.icon-btn:hover {
    color: var(--brand-text);
    border-color: var(--brand-300);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.lang-btn {
    width: auto;
    padding-inline: 14px;
    gap: 7px;
    letter-spacing: .02em;
}

.nav-toggle {
    display: none;
}

/* Mobile navigation */
@media (max-width: 900px) {
    .nav {
        position: fixed;
        inset-block-start: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 14px 24px 26px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav a {
        padding: 13px 12px;
        font-size: 1.02rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-inline-start: auto;
    }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 96px) clamp(60px, 8vw, 110px);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    width: 620px;
    height: 620px;
    inset-block-start: -280px;
    inset-inline-end: -180px;
    background: radial-gradient(circle, rgba(42, 130, 130, .55), transparent 65%);
}

.hero::after {
    width: 520px;
    height: 520px;
    inset-block-end: -260px;
    inset-inline-start: -200px;
    background: radial-gradient(circle, rgba(245, 158, 11, .28), transparent 65%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero__copy h1 {
    margin-bottom: 20px;
}

.hero__copy .lead {
    max-width: 54ch;
}

.hero__highlight {
    color: var(--brand-text);
    position: relative;
    white-space: nowrap;
}

.hero__highlight::after {
    content: "";
    position: absolute;
    inset-inline: -2px;
    bottom: .04em;
    height: .32em;
    background: linear-gradient(90deg, rgba(245, 158, 11, .45), rgba(245, 158, 11, .18));
    border-radius: 4px;
    z-index: -1;
}

.hero__cta {
    margin-top: 32px;
}

.hero__note {
    margin-top: 18px;
    font-size: .9rem;
    color: var(--text-subtle);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 46ch;
}

.hero__note svg {
    width: 16px;
    height: 16px;
    margin-top: .38em;
    stroke: var(--success);
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

@media (max-width: 940px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__copy .lead,
    .hero__copy .eyebrow {
        margin-inline: auto;
    }

    .hero__cta,
    .hero__note {
        justify-content: center;
    }

    .hero .store-row {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   7. Phone mockup
   -------------------------------------------------------------------------- */
.phone-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1400px;
}

/* Bezel sized to the screenshot (1125x2436) so the shot fills it exactly. */
.phone {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1125 / 2436;
    background: linear-gradient(160deg, #26383a, #101d1e);
    border-radius: 42px;
    padding: 11px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transform: rotate(-3deg);
    transition: transform .6s var(--ease);
}

.phone:hover {
    transform: rotate(0deg) translateY(-6px);
}

.phone::before {
    /* notch */
    content: "";
    position: absolute;
    top: 20px;
    inset-inline: 0;
    margin-inline: auto;
    width: 96px;
    height: 22px;
    background: #0d1718;
    border-radius: var(--radius-pill);
    z-index: 3;
}

.phone__screen {
    height: 100%;
    border-radius: 32px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Floating cards around the phone */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    animation: float 5s ease-in-out infinite;
}

.float-card small {
    display: block;
    font-weight: 500;
    font-size: .72rem;
    color: var(--text-subtle);
}

.float-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--surface-inset);
    color: var(--brand-text);
}

.float-card__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Positioned over the quieter parts of the mock screen: the empty side of the
   header strip, and the decorative tab bar at the bottom. */
.float-card--a {
    inset-block-start: 7%;
    inset-inline-end: -7%;
}

.float-card--b {
    inset-block-end: 2%;
    inset-inline-start: -9%;
    animation-delay: -2.5s;
}

.float-card--b .float-card__icon {
    background: color-mix(in srgb, var(--accent-500) 14%, transparent);
    color: var(--accent-600);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

@media (max-width: 560px) {
    .float-card--a { inset-inline-end: -8px; }
    .float-card--b { inset-inline-start: -8px; }
    .float-card { font-size: .76rem; padding: 10px 13px; }
}

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.stat {
    background: var(--surface);
    padding: 28px 22px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    font-weight: 700;
    color: var(--brand-text);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 6px;
    font-size: .88rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: .96rem;
}

.card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: var(--surface-inset);
    color: var(--brand-text);
}

.card__icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card--accent .card__icon {
    background: color-mix(in srgb, var(--accent-500) 14%, transparent);
    color: var(--accent-600);
}

/* Subjects */
.subject {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-weight: 600;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.subject:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: var(--shadow-md);
}

.subject__emoji {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex: none;
    background: var(--surface-inset);
}

.subject small {
    display: block;
    font-weight: 500;
    font-size: .8rem;
    color: var(--text-subtle);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 8px;
}

.step__num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-500);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    box-shadow: var(--shadow-brand);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: .96rem;
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq {
    max-width: var(--container-narrow);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.faq details[open] {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    width: 11px;
    height: 11px;
    margin-inline-start: auto;
    flex: none;
    border-right: 2px solid var(--text-subtle);
    border-bottom: 2px solid var(--text-subtle);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.faq summary:hover {
    color: var(--brand-text);
}

.faq .faq__answer {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: .98rem;
}

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    inset-block-start: -180px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 65%);
    filter: blur(50px);
}

.cta-band > * {
    position: relative;
}

.cta-band h2 {
    margin-bottom: 14px;
}

.cta-band p {
    color: rgba(255, 255, 255, .85);
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 30px;
}

.cta-band .store-row {
    justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-block: clamp(44px, 6vw, 68px) 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(2, 1fr);
    gap: 40px;
    padding-bottom: 36px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: .94rem;
    margin-top: 16px;
    max-width: 40ch;
}

.footer-col h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-subtle);
    margin-bottom: 16px;
    font-weight: 700;
}

html[dir="rtl"] .footer-col h4 {
    text-transform: none;
    letter-spacing: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: .95rem;
}

.footer-col a:hover {
    color: var(--brand-text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: .88rem;
    color: var(--text-subtle);
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--surface);
}

.social-row a:hover {
    color: var(--brand-text);
    border-color: var(--brand-300);
}

.social-row svg {
    width: 18px;
    height: 18px;
}

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

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   13. Standalone / utility pages (download, email confirmed, redirect)
   -------------------------------------------------------------------------- */
.centered-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 90px) 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(32px, 5vw, 52px);
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.panel h1 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    margin-bottom: 14px;
}

.panel p {
    color: var(--text-muted);
}

.panel__logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.status-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
}

.status-icon--success {
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: var(--success);
}

.status-icon--brand {
    background: var(--surface-inset);
    color: var(--brand-text);
}

.status-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-icon .draw {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw .7s .15s var(--ease) forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 3px solid var(--border-strong);
    border-top-color: var(--brand-500);
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dots span {
    animation: blink 1.4s infinite both;
    display: inline-block;
}

.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.divider-note {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   14. Legal / long-form document pages
   -------------------------------------------------------------------------- */
.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
    padding-block: clamp(32px, 5vw, 56px);
}

.doc-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.doc-toc h2 {
    font-size: .78rem !important;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-subtle);
    margin: 0 0 14px !important;
    border: 0 !important;
    padding: 0 !important;
}

.doc-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    counter-reset: toc;
}

.doc-toc li {
    counter-increment: toc;
}

.doc-toc a {
    display: block;
    font-size: .86rem;
    color: var(--text-muted);
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    line-height: 1.4;
}

.doc-toc a::before {
    content: counter(toc) ". ";
    color: var(--text-subtle);
}

.doc-toc a:hover {
    background: var(--surface-inset);
    color: var(--brand-text);
}

.doc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 52px);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.doc h1 {
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
    margin-bottom: 10px;
}

.doc .doc__meta {
    color: var(--text-subtle);
    font-size: .9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.doc h2 {
    font-size: 1.35rem;
    margin-top: 48px;
    margin-bottom: 16px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc h3 {
    font-size: 1.08rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--text);
}

.doc p,
.doc li {
    color: var(--text-muted);
    font-size: .98rem;
}

.doc p {
    margin-bottom: 16px;
}

.doc ul,
.doc ol {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc strong {
    color: var(--text);
}

.doc a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: .92rem;
}

.doc table th,
.doc table td {
    border: 1px solid var(--border);
    padding: 11px 14px;
    text-align: start;
    vertical-align: top;
    color: var(--text-muted);
}

.doc table th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
}

.doc .table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.doc .table-wrap table {
    margin-bottom: 0;
    min-width: 520px;
}

.callout {
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--brand-500);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin-bottom: 32px;
}

.callout h2 {
    margin-top: 0 !important;
    font-size: 1.1rem !important;
}

.callout p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doc-toc {
        position: static;
        max-height: none;
    }
}

/* --------------------------------------------------------------------------
   15. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
