/* ==========================================================================
   أثر (ATHAR) — Main Stylesheet
   ========================================================================== */

/* Theme variables — turquoise (logo V2) is the only theme.
   Contrast (WCAG AA): white on --brand-primary 4.77:1, --brand-ink on --bg 5.77:1 / on white 6.34:1,
   --text on --bg 13.9:1, --text-2 on --bg 5.08:1, --text on --brand-accent 8.46:1. */
:root {
    /* تركواز Turquoise (default) */
    --brand-primary: #0F7F86;   /* fills: buttons, badges, chips (white text on it) */
    --brand-secondary: #29B0AA; /* decorative: hero card, bullets, focus rings */
    --brand-accent: #7CCBEB;    /* water-blue details */
    --brand-ink: #0C6A70;       /* primary used as text/links on light surfaces */
    --brand-strong: #0B5F65;    /* hover/pressed state of filled elements */
    --premium: #D9BE92;         /* warm sand */
    --bg: #F8F4EA;              /* ivory (same as the logo background) */
    --surface: #FFFFFF;
    --surface-tinted: #EAF4F2;
    --text: #15282B;
    --text-2: #5A6B6E;
    --on-primary: #FFFFFF;
    --divider: #E1E8E6;
    --brand-soft: #A9DCD8;
    --error: #B4453C;
    --success: #0C6A70;

    --badge-source-bg: #0F7F86;
    --badge-source-fg: #FFFFFF;
    --badge-interp-bg: #A9DCD8;
    --badge-interp-fg: #15282B;
    --badge-action-bg: #7CCBEB;
    --badge-action-fg: #15282B;
    --badge-refl-bg: #E8D9BF;
    --badge-refl-fg: #15282B;

    /* Typography */
    --font-family: "Noto Kufi Arabic", sans-serif;
    /* App scale (AtharTypography): display 34/800, h1 28/800, h2 22/700, h3 19/700, body 16-17/400, caption 13/500 */

    /* Spacing grid */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 32px;
    --sp-6: 48px;

    /* Radii */
    --radius-sm: 10px;
    --radius-btn: 14px;
    --radius-card: 18px;
    --radius-sheet: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-card: 0 6px 18px rgba(21, 40, 43, 0.06);
    --shadow-floating: 0 10px 24px rgba(21, 40, 43, 0.10);
}




/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
}

a {
    color: var(--brand-ink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: var(--sp-3);
    z-index: 9999;
    background: var(--brand-primary);
    color: var(--on-primary);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-btn);
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: var(--sp-3);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.section {
    padding-block: var(--sp-6);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-block-end: var(--sp-2);
    color: var(--text);
}

.section-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-2);
    margin-block-end: var(--sp-5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    min-height: 54px;
    padding-inline: var(--sp-4);
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    border: 1.4px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-filled {
    background-color: var(--brand-primary);
    color: var(--on-primary);
    border-color: var(--brand-primary);
}

.btn-filled:hover {
    background-color: var(--brand-strong);
    border-color: var(--brand-strong);
}

.btn-outlined {
    background-color: transparent;
    color: var(--brand-ink);
    border-color: var(--brand-primary);
}

.btn-outlined:hover {
    background-color: var(--brand-primary);
    color: var(--on-primary);
}

.btn-medium {
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    padding-inline: var(--sp-3);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--divider);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: var(--sp-3);
}

.top-group {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    color: var(--brand-ink);
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    color: var(--brand-ink);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-ink);
}

.top-nav {
    display: flex;
    gap: var(--sp-4);
}

.top-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s ease;
}

.top-nav a:hover {
    color: var(--brand-ink);
}

.top-actions {
    flex-shrink: 0;
}

.icon-enter {
    flex-shrink: 0;
}

.logo-mark circle { fill: currentColor; }

/* Hide nav on mobile */
@media (max-width: 767px) {
    .top-nav {
        display: none;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-block: var(--sp-6);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.25fr 0.75fr;
        gap: var(--sp-6);
    }
}

.hero-tagline {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-ink);
    background: var(--surface-tinted);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
    margin-block-end: var(--sp-3);
}

.hero-copy h1 {
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
    color: var(--brand-ink);
    margin-block-end: var(--sp-2);
}

.hero-lead {
    font-size: clamp(19px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-block-end: var(--sp-3);
}

.hero-para {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-2);
    margin-block-end: var(--sp-4);
    max-inline-size: 44ch;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-block-end: var(--sp-3);
}

.hero-platforms {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

/* ==========================================================================
   Editorial card («أثر اليوم» signature visual)
   ========================================================================== */
.hero-card {
    display: flex;
    justify-content: center;
}

.editorial-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-sheet);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--brand-secondary);
    animation: hero-card-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-card {
        animation: none;
    }
}

/* Same overlay as EditorialImageBackdrop.editorialGradient (light mode):
   primary @35% -> primary @55% (45%) -> primary 92% over black (100%). */
.editorial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--brand-primary) 35%, transparent) 0%,
        color-mix(in srgb, var(--brand-primary) 55%, transparent) 45%,
        color-mix(in srgb, var(--brand-primary) 92%, black) 100%
    );
}

.editorial-content {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    position: relative;
    z-index: 2;
}

.editorial-badge {
    display: inline-block;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
}

.editorial-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.editorial-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.editorial-step {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 0.8px solid var(--divider);
    border-radius: var(--radius-pill);
    padding: var(--sp-1) var(--sp-3);
}

.btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    color: var(--brand-ink);
    border: none;
    min-height: 48px;
    padding-inline: var(--sp-4);
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    margin-block-start: var(--sp-2);
    transition: transform 0.15s ease;
}

.btn-editorial:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.icon-play {
    flex-shrink: 0;
}

.editorial-landscape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.ls-sky  { fill: color-mix(in srgb, var(--brand-soft) 70%, var(--bg)); }
.ls-sun  { fill: color-mix(in srgb, var(--premium) 55%, var(--bg)); }
.ls-far  { fill: var(--brand-soft); }
.ls-mid  { fill: color-mix(in srgb, var(--brand-secondary) 80%, var(--brand-soft)); }
.ls-near { fill: var(--brand-primary); }

/* ==========================================================================
   How it works
   ========================================================================== */
.how {
    background: var(--surface-tinted);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    counter-reset: step;
}

@media (min-width: 560px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    counter-increment: step;
    position: relative;
}

.step-card::before {
    content: counter(step);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-pill);
    padding: 2px 10px;
}

.step-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    color: var(--on-primary);
}

.badge-source {
    background: var(--badge-source-bg);
    color: var(--badge-source-fg);
}

.badge-interp {
    background: var(--badge-interp-bg);
    color: var(--badge-interp-fg);
}

.badge-action {
    background: var(--badge-action-bg);
    color: var(--badge-action-fg);
}

.badge-refl {
    background: var(--badge-refl-bg);
    color: var(--badge-refl-fg);
}

.step-card p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
}

.feature-card h3,
.feature-list-item h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

.feature-card p,
.feature-list-item p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

.feature-large {
    border-inline-start: 4px solid var(--brand-primary);
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(3, 1fr);
        grid-column: 1 / -1;
    }
    .feature-large:nth-child(1) {
        grid-column: span 1;
    }
    .feature-large:nth-child(2) {
        grid-column: span 1;
    }
}

.feature-list-item {
    background: var(--surface-tinted);
    border-radius: var(--radius-card);
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
}

.feature-list-item h3 {
    font-size: 17px;
}

.feature-list-item p {
    font-size: 14px;
}

/* ==========================================================================
   Sources
   ========================================================================== */
.sources {
    background: var(--surface-tinted);
}

.sources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    align-items: start;
}

@media (min-width: 800px) {
    .sources-grid {
        grid-template-columns: 1.4fr 0.6fr;
    }
}

.trust-list {
    display: grid;
    gap: var(--sp-4);
}

@media (min-width: 640px) {
    .trust-list { grid-template-columns: 1fr 1fr; }
}

.trust-list li {
    padding-inline-start: var(--sp-3);
    border-inline-start: 3px solid var(--badge-source-bg);
}

.trust-list li:nth-child(2) { border-color: var(--badge-interp-bg); }
.trust-list li:nth-child(3) { border-color: var(--badge-action-bg); }
.trust-list li:nth-child(4) { border-color: var(--badge-refl-bg); }

.trust-list h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-block-end: var(--sp-1);
}

.trust-list p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    max-inline-size: 46ch;
}

/* Hadith chip mock */
.hadith-mock {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.hadith-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    background: var(--badge-source-bg);
    color: var(--badge-source-fg);
    border: none;
    border-radius: var(--radius-pill);
    padding: var(--sp-1) var(--sp-3);
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.15s ease;
}

.hadith-chip:hover {
    background: var(--brand-strong);
}

.icon-chevron {
    transition: transform 0.2s ease;
}

.hadith-chip[aria-expanded="true"] .icon-chevron {
    transform: rotate(180deg);
}

.hadith-panel {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-3);
    background: var(--surface-tinted);
    border-radius: var(--radius-sm);
}

.hadith-panel[hidden] {
    display: none;
}

.hadith-panel p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.7;
}

.hadith-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-ink);
    text-decoration: underline;
}

/* ==========================================================================
   Privacy
   ========================================================================== */
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}

@media (min-width: 700px) {
    .privacy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.privacy-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.privacy-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

.privacy-card p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
    background: var(--surface-tinted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    max-width: 720px;
}

@media (min-width: 560px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.pricing-plus {
    border: 1.6px solid var(--premium);
}

.pricing-plus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.pricing-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

.pricing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    background: var(--badge-action-bg);
    color: var(--badge-action-fg);
    padding: 2px 12px;
    border-radius: var(--radius-pill);
}

.pricing-amount {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
}

.pricing-amount span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
}

.pricing-alt {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-ink);
    margin: 0;
}

.pricing-list {
    margin-block-start: var(--sp-2);
    padding-block-start: var(--sp-3);
    border-block-start: 1px solid var(--divider);
    display: grid;
    gap: var(--sp-1);
    font-size: 15px;
    color: var(--text);
}

.pricing-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-secondary);
    margin-inline-end: var(--sp-2);
    vertical-align: middle;
}

.pricing-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-ink);
    margin: 0;
}

.pricing-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pricing-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.pricing-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    margin: 0;
}

/* ==========================================================================
   Support
   ========================================================================== */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}

@media (min-width: 640px) {
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.support-action {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
}

.support-action h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

.support-action p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

.share-status {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-ink);
    min-height: 20px;
}

/* ==========================================================================
   Waitlist form
   ========================================================================== */
.waitlist {
    background: var(--surface-tinted);
}

.waitlist-inner {
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
}

.waitlist-inner .section-subtitle {
    margin-block-end: var(--sp-4);
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    text-align: start;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.form-row label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.form-row input {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-btn);
    min-height: 54px;
    padding-inline: var(--sp-3);
    transition: border-color 0.15s ease;
}

.form-row input:focus {
    outline: none;
    border-color: var(--brand-primary);
    border-width: 1.6px;
}

#waitlist-form .btn {
    width: 100%;
}

.form-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    min-height: 22px;
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-block-start: 1px solid var(--divider);
    background: var(--surface);
    padding-block: var(--sp-4);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.footer-brand .logo {
    color: var(--brand-ink);
}

.footer-brand .logo-text {
    font-size: 20px;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: var(--sp-4);
}

.footer-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--brand-ink);
}

.footer-copy {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
    margin: 0;
}

/* ==========================================================================
   Theme picker
   ========================================================================== */
.theme-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
}

.theme-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.theme-dot {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.theme-dot:hover {
    border-color: var(--brand-soft);
}

.theme-dot[aria-pressed="true"] {
    border-color: var(--brand-primary);
    background: var(--surface-tinted);
    font-weight: 600;
}

.theme-dot-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   app.html coming soon
   ========================================================================== */
.app-coming {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding-block: var(--sp-6);
}

.app-coming-inner {
    text-align: center;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: center;
}

.app-coming-inner h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 0;
}

.app-coming-inner p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
    max-inline-size: 40ch;
}

.app-coming-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
    margin-block-start: var(--sp-2);
}

/* ==========================================================================
   Responsive fine-tuning
   ========================================================================== */
@media (max-width: 399px) {
    .hero-ctas {
        flex-direction: column;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .editorial-content {
        padding: var(--sp-3);
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }

/* Hadith mock: placeholder lines stand in for source text (no religious text on this page) */
.hadith-mock-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin: 0;
}
.mock-line {
    display: block;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-tinted);
}
.mock-line-short { inline-size: 62%; }

.soon-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    background: var(--badge-action-bg);
    color: var(--badge-action-fg);
    padding: 2px 14px;
    border-radius: var(--radius-pill);
}

/* Top bar on very small screens: keep logo + the enter button on one row */
@media (max-width: 380px) {
    .btn-medium { padding-inline: var(--sp-2); font-size: 15px; }
}

/* Theme picker swatches (each shows its theme's brand primary from the app) */

/* ==========================================================================
   Privacy policy page (privacy.html)
   ========================================================================== */
.top-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
    color: var(--brand-ink);
    font-weight: 700;
}

.policy-hero {
    padding-block: var(--sp-6) var(--sp-5);
}

.policy-hero h1 {
    font-size: clamp(30px, 4.4vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-block-end: var(--sp-3);
}

.policy-lead {
    font-size: 18px;
    color: var(--text-2);
    max-inline-size: 52ch;
    margin-block-end: var(--sp-4);
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    margin-block-end: var(--sp-4);
    font-size: 14px;
}

.policy-meta dt {
    font-weight: 600;
    color: var(--text-2);
}

.policy-meta dd {
    color: var(--text);
}

.policy-draft-note {
    max-inline-size: 72ch;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    background: var(--surface);
    border: 1px dashed var(--premium);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
}

/* Placeholder marker: anything not decided yet */
.ph {
    background: color-mix(in srgb, var(--premium) 22%, transparent);
    color: var(--text);
    border-radius: 6px;
    padding: 0 6px;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* «باختصار»: what reaches us vs. what we never see */
.policy-split-wrap {
    padding-block: var(--sp-5);
    background: var(--surface-tinted);
}

.policy-split-title {
    font-size: 22px;
    font-weight: 700;
    margin-block-end: var(--sp-3);
}

.policy-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}

@media (min-width: 760px) {
    .policy-split {
        grid-template-columns: 1fr 1fr;
    }
}

.split-col {
    border-radius: var(--radius-card);
    padding: var(--sp-4);
}

.split-col h3 {
    font-size: 19px;
    font-weight: 700;
    margin-block-end: var(--sp-3);
}

.split-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.split-col li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 15px;
    line-height: 1.75;
}

.split-col li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.7em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.split-seen {
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.split-seen h3 { color: var(--text); }
.split-seen li { color: var(--text-2); }
.split-seen li::before { background: var(--brand-soft); }

.split-unseen {
    background: var(--brand-primary);
    color: var(--on-primary);
}

.split-unseen h3 { color: var(--on-primary); }
.split-unseen li { color: var(--on-primary); opacity: 0.92; }
.split-unseen li::before {
    background: transparent;
    border: 1.6px solid var(--brand-accent);
}

/* Document layout: sticky contents beside a readable column */
.policy-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding-block: var(--sp-6);
}

@media (min-width: 960px) {
    .policy-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: var(--sp-6);
        align-items: start;
    }
    .policy-toc {
        position: sticky;
        top: 88px;
    }
}

.policy-toc {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-card);
}

.policy-toc-title {
    font-size: 15px;
    font-weight: 700;
    margin-block-end: var(--sp-2);
}

.policy-toc ol {
    list-style: decimal;
    padding-inline-start: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.policy-toc li::marker {
    color: var(--text-2);
    font-size: 13px;
}

.policy-toc a {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.9;
}

.policy-toc a:hover {
    color: var(--brand-ink);
}

.policy-body {
    max-inline-size: 70ch;
    counter-reset: policy;
}

.policy-section {
    scroll-margin-top: 88px;
    padding-block-end: var(--sp-5);
    margin-block-end: var(--sp-5);
    border-block-end: 1px solid var(--divider);
}

.policy-section:last-child {
    border-block-end: 0;
    margin-block-end: 0;
}

.policy-section h2 {
    counter-increment: policy;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-block-end: var(--sp-3);
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
}

.policy-section h2::before {
    content: counter(policy);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-ink);
    min-inline-size: 1.4em;
}

.policy-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-block: var(--sp-4) var(--sp-2);
}

.policy-section p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--text);
    margin-block-end: var(--sp-3);
}

.policy-section p:last-child {
    margin-block-end: 0;
}

.policy-section a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.policy-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-block-end: var(--sp-3);
}

.policy-list li {
    position: relative;
    padding-inline-start: 20px;
    line-height: 1.9;
}

.policy-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 0.8em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-soft);
}

/* Waitlist consent line + link to full policy on index.html */
.form-consent {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-2);
    margin: 0;
}

.form-consent a,
.privacy-more a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.privacy-more {
    margin-block-start: var(--sp-4);
    font-size: 15px;
    font-weight: 600;
}

#waitlist-form .btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

/* ==========================================================================
   Hero card → demo.html (the whole card opens the lesson; js/main.js)
   ========================================================================== */
.editorial-card[data-href] {
    cursor: pointer;
}

.editorial-card[data-href]:hover .btn-editorial {
    transform: translateY(-1px);
}

/* ==========================================================================
   Demo lesson (demo.html): the app's lesson screen inside a phone
   ========================================================================== */
.demo {
    padding-block: var(--sp-5) var(--sp-6);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    align-items: center;
}

@media (min-width: 900px) {
    .demo-grid {
        grid-template-columns: minmax(0, 1fr) 404px;
        gap: var(--sp-6);
    }
}

.demo-intro h1 {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-ink);
    margin-block-end: var(--sp-3);
}

.demo-lead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    max-inline-size: 42ch;
    margin-block-end: var(--sp-4);
}

.demo-outline {
    display: grid;
    gap: var(--sp-2);
    margin-block-end: var(--sp-4);
}

.demo-outline li {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 15px;
    color: var(--text-2);
}

.demo-outline .step-badge {
    min-inline-size: 72px;
    text-align: center;
}

.demo-privacy {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-2);
    padding-inline-start: var(--sp-3);
    border-inline-start: 3px solid var(--badge-refl-bg);
    max-inline-size: 44ch;
}

/* Phone frame (desktop/tablet) */
.phone {
    inline-size: 100%;
    max-inline-size: 404px;
    margin-inline: auto;
    padding: 12px;
    border-radius: 46px;
    background: var(--text);
    box-shadow: var(--shadow-floating);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    block-size: min(800px, calc(100vh - 150px));
    min-block-size: 640px;
    border-radius: 34px;
    overflow: hidden;
    background: var(--bg);
}

.phone-screen:focus {
    outline: none;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    min-block-size: 56px;
    padding-inline: var(--sp-2) var(--sp-3);
    padding-block-start: var(--sp-2);
    background: var(--surface);
    border-block-end: 1px solid var(--divider);
}

.app-bar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: var(--radius-pill);
    color: var(--text);
}

.app-bar-close:hover {
    background: var(--surface-tinted);
    text-decoration: none;
}

.app-bar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.lesson-head {
    padding: var(--sp-3) 20px var(--sp-2);
}

.lesson-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-block-end: var(--sp-3);
}

.lesson-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.lesson-progress li {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    text-align: center;
}

.lesson-progress li::before {
    content: "";
    display: block;
    block-size: 6px;
    margin-block-end: 6px;
    border-radius: var(--radius-pill);
    background: var(--divider);
    transition: background-color 0.25s ease;
}

.lesson-progress li[aria-current="step"] {
    color: var(--text);
    font-weight: 700;
}

.lesson-progress li[data-progress="source"]:is(.is-done, [aria-current="step"])::before { background: var(--badge-source-bg); }
.lesson-progress li[data-progress="understanding"]:is(.is-done, [aria-current="step"])::before { background: var(--badge-interp-bg); }
.lesson-progress li[data-progress="action"]:is(.is-done, [aria-current="step"])::before { background: var(--badge-action-bg); }
.lesson-progress li[data-progress="reflection"]:is(.is-done, [aria-current="step"])::before { background: var(--badge-refl-bg); }

.lesson-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-block-start: var(--sp-2);
}

.lesson-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sp-2) 20px var(--sp-4);
}

.lesson-step,
.lesson-done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
}

.lesson-step[hidden],
.lesson-done[hidden],
.lesson-nav[hidden] {
    display: none;
}

/* Without JS every step shows in order; the step buttons only make sense with JS. */
.phone-screen:not(.is-stepped) .lesson-step + .lesson-step {
    margin-block-start: var(--sp-5);
}
.phone-screen:not(.is-stepped) .lesson-nav,
.phone-screen:not(.is-stepped) .lesson-done {
    display: none;
}

.lesson-step-title:focus,
.done-title:focus {
    outline: none;
}

.lesson-step-title:focus-visible,
.done-title:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
}

/* المصدر: the hadith is set in a naskh face, apart from the interface type */
.source-card {
    inline-size: 100%;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px;
    border-inline-start: 4px solid var(--badge-source-bg);
}

.source-text p {
    font-family: "Amiri", "Noto Naskh Arabic", serif;
    color: var(--text);
}

.source-lead {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-2);
    margin-block-end: var(--sp-1);
}

.source-text .source-lead {
    color: var(--text-2);
}

.source-matn {
    font-size: 26px;
    font-weight: 700;
    line-height: 2;
}

.source-ref {
    margin-block-start: var(--sp-3);
    padding-block-start: var(--sp-2);
    border-block-start: 1px solid var(--divider);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.lesson-step .hadith-panel {
    inline-size: 100%;
}

.hadith-facts {
    display: grid;
    gap: var(--sp-2);
}

.hadith-facts dt {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.hadith-facts dd {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-2);
}

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

/* الفهم */
.understanding {
    display: grid;
    gap: var(--sp-3);
}

.understanding p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--text);
}

.step-note {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface-tinted);
    border-radius: var(--radius-sm);
}

/* اعمل */
.action-kicker {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
    margin-block-end: calc(var(--sp-2) * -1);
}

.action-text {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.75;
    color: var(--text);
}

.check-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    inline-size: 100%;
    min-block-size: 56px;
    padding-inline: var(--sp-3);
    background: var(--surface);
    border: 1.4px solid var(--divider);
    border-radius: var(--radius-btn);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.check-row input {
    position: absolute;
    opacity: 0;
    inline-size: 1px;
    block-size: 1px;
}

.check-box {
    inline-size: 24px;
    block-size: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    border: 2px solid var(--brand-soft);
    background: var(--surface);
    display: grid;
    place-items: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check-box::after {
    content: "";
    inline-size: 6px;
    block-size: 12px;
    border: solid var(--on-primary);
    border-width: 0 2.5px 2.5px 0;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.check-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.check-row:has(input:checked) {
    border-color: var(--brand-primary);
    background: var(--surface-tinted);
}

.check-row input:checked + .check-box {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.check-row input:checked + .check-box::after {
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.check-row:has(input:focus-visible) {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

.step-hint {
    font-size: 13px;
    color: var(--text-2);
}

/* راجع */
.reflection-prompt {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--text);
}

.reflection-input {
    inline-size: 100%;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-btn);
    padding: var(--sp-3);
    resize: vertical;
    min-block-size: 150px;
}

.reflection-input::placeholder {
    color: var(--text-2);
}

.reflection-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary);
}

.reflection-privacy {
    display: flex;
    gap: var(--sp-2);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    padding: var(--sp-2) var(--sp-3);
    background: color-mix(in srgb, var(--badge-refl-bg) 35%, var(--surface));
    border-radius: var(--radius-sm);
}

.reflection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.reflection-status {
    font-size: 14px;
    font-weight: 500;
    min-block-size: 22px;
    color: var(--text-2);
}

.reflection-status[data-state="ok"] { color: var(--success); }
.reflection-status[data-state="error"] { color: var(--error); }

/* Bottom bar: back / next */
.lesson-nav {
    display: flex;
    gap: var(--sp-2);
    padding: var(--sp-2) 20px var(--sp-3);
    background: var(--surface);
    border-block-start: 1px solid var(--divider);
}

.lesson-nav .btn {
    flex: 1;
}

.lesson-nav #lesson-next {
    flex: 2;
}

/* Completion */
.lesson-done {
    align-items: center;
    text-align: center;
    padding-block-start: var(--sp-3);
}

.done-mark {
    color: var(--brand-ink);
}

.done-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.done-summary {
    inline-size: 100%;
    display: grid;
    gap: var(--sp-2);
    text-align: start;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--sp-3);
}

.done-summary li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.done-summary li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 0.72em;
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background: var(--badge-source-bg);
}

.done-summary li:nth-child(2)::before { background: var(--badge-interp-bg); }
.done-summary li:nth-child(3)::before { background: var(--badge-action-bg); }
.done-summary li:nth-child(4)::before { background: var(--badge-refl-bg); }

.done-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-2);
}

.done-actions {
    inline-size: 100%;
    display: grid;
    gap: var(--sp-2);
    justify-items: stretch;
}

.done-back {
    justify-self: center;
    margin-block-start: var(--sp-1);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Phones: the lesson is the page, full width, no frame */
@media (max-width: 599px) {
    .demo {
        padding-block: var(--sp-4) 0;
    }
    .demo-grid {
        padding-inline: 0;
        gap: var(--sp-3);
    }
    .demo-intro {
        padding-inline: var(--sp-4);
    }
    .demo-lead {
        margin-block-end: 0;
    }
    .demo-outline,
    .demo-privacy {
        display: none;
    }
    .phone {
        max-inline-size: none;
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .phone-screen {
        block-size: auto;
        min-block-size: 0;
        border-radius: 0;
        overflow: visible;
        scroll-margin-top: 64px;
    }
    .app-bar {
        padding-block-start: 0;
        border-block-start: 1px solid var(--divider);
    }
    .lesson-body {
        overflow: visible;
        min-block-size: 52vh;
    }
    .lesson-nav {
        position: sticky;
        bottom: 0;
        z-index: 5;
    }
}

/* ==========================================================================
   2026-10-03 — turquoise logo V2, «قريبًا» web chip, waitlist name field
   ========================================================================== */
.logo-img {
    display: block;
    height: 52px;
    width: auto;
}
.footer-brand .logo-img {
    height: 44px;
}

/* «دخول التطبيق»: real link to https://app.atharapp.download, styled like btn-outlined
   using the site palette (--brand-ink on --bg keeps the 5.08:1 contrast). */
a.btn-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 48px;
    padding-inline: var(--sp-3);
    border: 1.4px solid var(--brand-primary);
    border-radius: var(--radius-btn);
    color: var(--brand-ink);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.btn-soon:hover {
    background-color: var(--brand-primary);
    color: var(--on-primary);
    text-decoration: none;
}
.hero-ctas .btn-soon {
    min-height: 56px;
}
@media (max-width: 599px) {
    .top-actions .btn-soon { display: none; }
    .hero-ctas .btn-soon { width: 100%; }
}

/* Input boundaries: 3:1 against white (WCAG 1.4.11) */
.form-row input {
    border-color: #7E9496;
}
.form-row .optional {
    font-weight: 400;
    color: var(--text-2);
}
@media (min-width: 640px) {
    .support-grid.support-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        margin-inline: auto;
    }
}

/* Hadith details panel (demo): tap «صحيح» to reveal the book line, takhrij, graders and Dorar links */
.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;
}
.hadith-links {
    display: grid;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.lesson-step .hadith-panel {
    border-inline-start: 3px solid var(--brand-accent);
}
.hadith-link-alt {
    font-size: 13px;
    font-weight: 400;
}

/* ===== Loading splash (logo gold-v6, ivory) =====
   Hidden unless the inline head script adds html.athar-splash (so no-JS users never see it).
   Failsafe: the overlay fades out by itself after ~3.5s even if the hide script never runs. */
#athar-splash {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #FBF8F1;
    place-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#athar-splash img {
    width: min(46vmin, 260px);
    height: auto;
}
html.athar-splash #athar-splash {
    display: grid;
    animation: athar-splash-failsafe 0.4s ease 3.5s forwards;
}
html.athar-splash-done #athar-splash {
    opacity: 0;
    visibility: hidden;
}
@keyframes athar-splash-failsafe {
    to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    #athar-splash { display: none !important; }
}
