/* ═══════════════════════════════════════════════════════════
   Sahretna Website v3.0.0 — Khayamiya Night (mirrors DS V3)
   Layl night canvas · Warak parchment light · Hibaaq garnet
   Fayrouz teal · Zaafran gold · Tajawal body + Lalezar display
   Self-hosted fonts (OFL) · RTL-first · Zero emojis (SVG only)
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, same files the app bundles) ─────── */

@font-face {
    font-family: 'Lalezar';
    src: url('fonts/Lalezar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('fonts/Tajawal-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ── Tokens: Khayamiya primitives ────────────────────────── */

:root {
    /* Layl night (the tent top is always night) */
    --night-deep: #0E0C1D;
    --night-900: #141126;
    --night-800: #1E1A38;
    --night-700: #2A254E;
    --night-600: #37306B;
    --night-100: #D8D4EC;

    /* Warak parchment */
    --parchment-50: #FBF7EE;
    --parchment-100: #F5EEE1;
    --parchment-200: #F2E9D8;
    --parchment-300: #E9DEC9;
    --ink: #241C2E;
    --ink-muted: #5F5570;
    --ink-faint: #8A7F96;

    /* Hibaaq garnet — primary */
    --garnet-300: #E29494;
    --garnet-400: #D26E6E;
    --garnet-500: #C0453F; /* primary on night */
    --garnet-600: #A93B3F; /* primary on parchment (AA) */
    --garnet-700: #8C2F35;

    /* Fayrouz teal — secondary */
    --teal-400: #4FB3A9;
    --teal-500: #2E8C86;
    --teal-600: #22706B;
    --teal-700: #1D5A56;

    /* Zaafran gold — premium / foil */
    --gold-100: #F7E7C3;
    --gold-300: #E8B54A; /* foil */
    --gold-400: #D9A03F;
    --gold-500: #C08A2E;
    --gold-600: #A16F24; /* gold as text on parchment */
    --gold-800: #5E3F16;

    /* Semantic (light = Warak parchment) */
    --bg-a: var(--parchment-100);
    --bg-b: var(--parchment-50);
    --bg-card: var(--parchment-50);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-muted);
    --text-faint: var(--ink-faint);
    --hairline: rgba(57, 43, 28, 0.10);
    --hairline-strong: rgba(57, 43, 28, 0.16);
    --shadow-card: 0 2px 14px rgba(57, 43, 28, 0.07), 0 10px 34px rgba(57, 43, 28, 0.06);
    --primary: var(--garnet-600);
    --secondary: var(--teal-600);
    --foil: var(--gold-600);
    --on-night: #F4EDE1;
    --on-night-muted: rgba(244, 237, 225, 0.72);
    --on-night-faint: rgba(244, 237, 225, 0.52);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-full: 999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Lalezar', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

[data-theme="dark"] {
    --bg-a: var(--night-900);
    --bg-b: var(--night-800);
    --bg-card: var(--night-800);
    --text-primary: var(--on-night);
    --text-secondary: var(--on-night-muted);
    --text-faint: var(--on-night-faint);
    --hairline: rgba(244, 237, 225, 0.09);
    --hairline-strong: rgba(244, 237, 225, 0.16);
    --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.35);
    --primary: var(--garnet-500);
    --secondary: var(--teal-400);
    --foil: var(--gold-300);
}

/* ── Base ─────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-a);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--garnet-600); color: var(--parchment-50); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-300);
    outline-offset: 3px;
    border-radius: 6px;
}

section { padding: 76px 0; scroll-margin-top: 64px; }
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 31px;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0;
}
.section-sub { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 36px; }

/* ── Khayamiya motifs (CSS appliqué) ────────────────────── */

/* Scalloped appliqué hem: solid band + alternating circles,
   mirroring the app's KhayamiyaBand scallop painter. */
.kh-hem {
    --hem: var(--garnet-500);
    --hem-accent: var(--garnet-600);
    height: 22px;
    background:
        radial-gradient(circle 7px at 14px 8px, var(--hem) 97%, transparent 100%) 0 8px / 28px 14px repeat-x,
        radial-gradient(circle 7px at 14px 8px, var(--hem-accent) 97%, transparent 100%) 14px 8px / 28px 14px repeat-x,
        linear-gradient(var(--hem), var(--hem)) 0 0 / 100% 8px no-repeat;
}

/* Zigzag chevron strip (deck-panel hem / decorative band). */
.kh-zigzag {
    --zz: var(--garnet-500);
    height: 10px;
    background:
        linear-gradient(135deg, var(--zz) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(225deg, var(--zz) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(315deg, var(--zz) 25%, transparent 25%),
        linear-gradient(45deg, var(--zz) 25%, transparent 25%);
    background-size: 20px 20px;
    background-repeat: repeat-x;
}

/* Diamond chain strip (footer top / dividers). */
.kh-diamonds {
    --dm: var(--gold-400);
    height: 12px;
    background-image:
        linear-gradient(135deg, var(--dm) 25%, transparent 25%),
        linear-gradient(225deg, var(--dm) 25%, transparent 25%),
        linear-gradient(45deg, var(--dm) 25%, transparent 25%),
        linear-gradient(315deg, var(--dm) 25%, transparent 25%);
    background-position: 6px 0, 6px 0, 0 0, 0 0;
    background-size: 12px 12px;
    background-repeat: repeat-x;
    opacity: 0.85;
}

.khatam { width: 22px; height: 22px; color: var(--gold-400); flex: 0 0 22px; }
[data-theme="dark"] .khatam { color: var(--gold-300); }

/* ── Shared top nav (always night glass) ─────────────────── */

.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: rgba(14, 12, 29, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(244, 237, 225, 0.1);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--on-night);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
}
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
    color: var(--on-night-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--gold-300); }
.nav-links a.nav-cta {
    color: var(--parchment-50);
    background: var(--garnet-500);
    border-radius: var(--radius-full);
    padding: 7px 18px;
    box-shadow: 0 4px 14px rgba(192, 69, 63, 0.35);
}
.nav-links a.nav-cta:hover { background: var(--garnet-400); color: var(--parchment-50); }

/* ── Floating controls ────────────────── */

.theme-toggle, .lang-toggle {
    position: fixed;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(244, 237, 225, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 26, 56, 0.65);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    color: var(--on-night);
}
.theme-toggle { top: 76px; left: 20px; }
.lang-toggle {
    top: 76px;
    left: 76px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 13px;
}
.theme-toggle:hover, .lang-toggle:hover { transform: scale(1.08); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon { display: flex; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: flex; }

/* ── Hero (lamplit tent — always night) ── */

.hero {
    position: relative;
    background: linear-gradient(180deg, var(--night-800) 0%, var(--night-900) 62%, var(--night-deep) 100%);
    color: var(--on-night);
    padding: 132px 0 92px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    inset-inline-end: -100px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(192, 69, 63, 0.28) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -140px;
    inset-inline-start: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(217, 160, 63, 0.16) 0%, transparent 70%);
    pointer-events: none;
}
.hero .khatam-watermark {
    position: absolute;
    inset-inline-start: 6%;
    top: 90px;
    width: 190px;
    height: 190px;
    color: var(--gold-400);
    opacity: 0.08;
    pointer-events: none;
}
.hero .khatam-watermark.two {
    inset-inline-start: auto;
    inset-inline-end: 4%;
    top: auto;
    bottom: 40px;
    width: 260px;
    height: 260px;
    opacity: 0.06;
}
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-content { flex: 1 1 320px; }
.logo-container { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    border: 1.5px solid rgba(232, 181, 74, 0.7);
    box-shadow: 0 0 24px rgba(232, 181, 74, 0.35);
}
.logo {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    color: var(--on-night);
}
.tagline { font-size: 18px; font-weight: 500; color: var(--night-100); margin: 14px 0 26px; max-width: 520px; }
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--on-night);
    background: rgba(244, 237, 225, 0.1);
    border: 1px solid rgba(244, 237, 225, 0.22);
    border-radius: var(--radius-full);
    padding: 4px 12px;
}
.version-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300); }

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    padding: 13px 26px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
    color: var(--parchment-50);
    background: var(--garnet-500);
    border: 1px solid rgba(244, 237, 225, 0.28);
    box-shadow: 0 6px 20px rgba(192, 69, 63, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--garnet-400); box-shadow: 0 10px 26px rgba(192, 69, 63, 0.5); }
.btn-secondary {
    color: var(--on-night);
    background: rgba(244, 237, 225, 0.1);
    border: 1px solid rgba(244, 237, 225, 0.24);
}
.btn-secondary:hover { background: rgba(244, 237, 225, 0.18); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    color: var(--gold-300);
    line-height: 1.15;
    direction: ltr;
    unicode-bidi: isolate;
}
.stat-label { font-size: 13px; color: var(--on-night-muted); }

/* Live sample card — the game's cream card face inside a night phone */
.hero-visual { flex: 1 1 280px; display: flex; justify-content: center; }
.phone-mockup {
    width: 272px;
    border-radius: 36px;
    padding: 12px;
    background: var(--night-deep);
    border: 1px solid rgba(232, 181, 74, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 44px rgba(192, 69, 63, 0.25);
}
.phone-screen {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--night-700) 0%, var(--night-900) 100%);
    padding: 16px 14px 18px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}
.app-preview { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.preview-header {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 16px;
    color: var(--on-night);
    text-align: center;
}
.preview-card {
    border-radius: 14px;
    padding: 16px 14px 12px;
    background: var(--parchment-200);
    border: 2px solid rgba(36, 28, 46, 0.85);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transition: opacity 0.35s ease;
    position: relative;
    overflow: hidden;
}
.preview-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 8px;
    background:
        linear-gradient(135deg, var(--card-accent, var(--teal-500)) 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(225deg, var(--card-accent, var(--teal-500)) 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(315deg, var(--card-accent, var(--teal-500)) 25%, transparent 25%),
        linear-gradient(45deg, var(--card-accent, var(--teal-500)) 25%, transparent 25%);
    background-size: 16px 16px;
    background-repeat: repeat-x;
}
.preview-card.fading { opacity: 0; }
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.preview-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--parchment-50);
    background: var(--card-accent, var(--teal-500));
    border-radius: var(--radius-full);
    padding: 2px 10px;
}
.preview-card.type-dare { --card-accent: var(--garnet-500); }
.preview-card.type-question { --card-accent: var(--teal-500); }
.preview-card.type-punishment { --card-accent: var(--gold-500); }
.preview-deck { font-size: 10.5px; font-weight: 700; color: var(--ink-faint); }
.preview-text { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.8; }
.preview-dots { display: flex; gap: 6px; justify-content: center; margin-top: auto; padding-top: 8px; }
.preview-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 237, 225, 0.3);
    cursor: pointer;
    padding: 0;
}
.preview-dots button.active { background: var(--gold-300); }
.preview-hint { text-align: center; font-size: 10.5px; color: var(--on-night-faint); }

/* ── Decks (khayamiya panels) ──────────── */

.decks { background: var(--bg-b); }
.decks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; }
.deck-card {
    /* per-skin vars overridden below */
    --skin-base: var(--night-700);
    --skin-deep: var(--night-900);
    --skin-band: var(--night-100);
    --skin-on: var(--parchment-200);
    --skin-on-muted: var(--night-100);
    position: relative;
    border-radius: 20px;
    padding: 20px 14px 22px;
    color: var(--skin-on);
    overflow: hidden;
    border: 1.5px solid rgba(242, 233, 216, 0.85);
    box-shadow: 0 8px 22px rgba(14, 12, 29, 0.28);
    min-height: 218px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    background: var(--skin-base);
}
.deck-card:hover { transform: translateY(-4px); }
/* appliqué zigzag hem pinned to the panel's bottom edge */
.deck-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 9px;
    background:
        linear-gradient(135deg, var(--skin-band) 25%, transparent 25%) -9px 0 / 18px 18px,
        linear-gradient(225deg, var(--skin-band) 25%, transparent 25%) -9px 0 / 18px 18px,
        linear-gradient(315deg, var(--skin-band) 25%, transparent 25%),
        linear-gradient(45deg, var(--skin-band) 25%, transparent 25%);
    background-size: 18px 18px;
    background-repeat: repeat-x;
}
.deck-general { --skin-base: #4A5490; --skin-deep: #2D355C; --skin-band: #8A93C9; --skin-on: #F2E9D8; --skin-on-muted: #D8D4EC; }
.deck-funny { --skin-base: #D9A03F; --skin-deep: #A16F24; --skin-band: #F7E7C3; --skin-on: #241C2E; --skin-on-muted: #5E3F16; }
.deck-personal { --skin-base: #8A4E86; --skin-deep: #552E53; --skin-band: #D8A9D5; --skin-on: #F2E9D8; --skin-on-muted: #EBD9EA; }
.deck-friend { --skin-base: #2E8C86; --skin-deep: #1D5A56; --skin-band: #9AD1CC; --skin-on: #F2E9D8; --skin-on-muted: #D3E8E6; }
.deck-crazy { --skin-base: #B23A6B; --skin-deep: #6C2040; --skin-band: #E19BB8; --skin-on: #F2E9D8; --skin-on-muted: #F2D8E4; }
.deck-spicy { --skin-base: #CC5A2E; --skin-deep: #82371C; --skin-band: #EFB08D; --skin-on: #F2E9D8; --skin-on-muted: #F6DCCB; }
.deck-art {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: var(--skin-deep);
    border: 1px solid rgba(244, 237, 225, 0.25);
    border-radius: 50%;
    margin-bottom: 10px;
}
.deck-art svg { width: 34px; height: 34px; color: var(--skin-on); }
.deck-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 2px;
}
.deck-count { font-size: 13px; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.deck-mix { font-size: 11px; color: var(--skin-on-muted); margin-bottom: 10px; }
.deck-tag {
    font-size: 10.5px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.deck-funny .deck-tag { background: rgba(36, 28, 46, 0.14); border-color: rgba(36, 28, 46, 0.3); }
.deck-tag.pro { background: rgba(14, 12, 29, 0.3); border-color: var(--gold-300); color: var(--gold-300); }
.deck-funny .deck-tag.pro { color: var(--gold-800); border-color: var(--gold-800); background: rgba(247, 231, 195, 0.5); }

/* ── About / features ─────────────────── */

.about-content { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.about-text { flex: 1 1 300px; }
.about-text p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 14px; }
.about-cards { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
}
.info-card .card-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(46, 140, 134, 0.12);
    border-radius: 12px;
    color: var(--teal-600);
}
[data-theme="dark"] .info-card .card-icon { color: var(--teal-400); }
.info-card .card-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.info-card p { font-size: 13px; color: var(--text-secondary); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(169, 59, 63, 0.1);
    border-radius: 13px;
    color: var(--garnet-600);
    margin-bottom: 14px;
}
[data-theme="dark"] .feature-icon { color: var(--garnet-400); background: rgba(192, 69, 63, 0.16); }
.feature-icon svg { width: 23px; height: 23px; }
.feature-icon.gold { background: rgba(217, 160, 63, 0.14); color: var(--gold-600); }
[data-theme="dark"] .feature-icon.gold { color: var(--gold-300); background: rgba(232, 181, 74, 0.12); }
.feature-icon.teal { background: rgba(46, 140, 134, 0.12); color: var(--teal-600); }
[data-theme="dark"] .feature-icon.teal { color: var(--teal-400); }
.feature-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── Pro (the foil tent) ──────────────── */

.pro {
    background: linear-gradient(180deg, var(--night-800) 0%, var(--night-deep) 100%);
    color: var(--on-night);
}
.pro .section-title { color: var(--on-night); }
.pro .section-sub { color: var(--on-night-muted); }
.pro-card {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(42, 37, 78, 0.55);
    border: 1.5px solid rgba(232, 181, 74, 0.55);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 0 44px rgba(232, 181, 74, 0.16);
    position: relative;
    overflow: hidden;
}
.pro-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background-image:
        linear-gradient(135deg, var(--gold-400) 25%, transparent 25%),
        linear-gradient(225deg, var(--gold-400) 25%, transparent 25%),
        linear-gradient(315deg, var(--gold-400) 25%, transparent 25%),
        linear-gradient(45deg, var(--gold-400) 25%, transparent 25%);
    background-position: 4px 0, 4px 0, 0 0, 0 0;
    background-size: 8px 8px;
    background-repeat: repeat-x;
    opacity: 0.9;
}
.pro-crown {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(232, 181, 74, 0.4);
    color: var(--gold-800);
}
.pro-crown svg { width: 32px; height: 32px; }
.pro-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--on-night);
}
.pro-price { font-size: 14px; color: var(--gold-300); font-weight: 700; margin-bottom: 18px; }
.pro-list { list-style: none; text-align: start; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.pro-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(244, 237, 225, 0.9); }
.pro-list svg { width: 18px; height: 18px; color: var(--gold-300); flex: 0 0 18px; }
.pro-note { margin-top: 14px; font-size: 12px; color: var(--on-night-faint); }

/* ── How to play + rules ─────────────── */

.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin: 0 auto; }
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.step-number {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 19px;
    color: var(--parchment-50);
    background: var(--garnet-600);
    border-radius: 50%;
}
[data-theme="dark"] .step-number { background: var(--garnet-500); }
.step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--teal-600);
    background: rgba(46, 140, 134, 0.1);
    border: 1px solid rgba(46, 140, 134, 0.3);
    border-radius: var(--radius-full);
    padding: 1px 10px;
    margin-top: 6px;
}
[data-theme="dark"] .step-badge { color: var(--teal-400); }
.step-content h3 { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.step-content p { font-size: 13.5px; color: var(--text-secondary); }

.rules { background: var(--bg-b); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-card);
}
.rule-card .feature-icon { margin-bottom: 12px; }
.rule-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 15.5px; margin-bottom: 6px; }
.rule-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── FAQ ──────────────────────────────── */

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 16px 20px;
    text-align: start;
}
.faq-q svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--garnet-600); transition: var(--transition); }
[data-theme="dark"] .faq-q svg { color: var(--garnet-400); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    color: var(--text-secondary);
}
.faq-a p { padding: 0 20px 18px; }

/* ── Download ─────────────────────────── */

.download { background: var(--bg-b); }
.download-content { text-align: center; max-width: 560px; margin: 0 auto; }
.download-text { color: var(--text-secondary); margin-bottom: 26px; }
.store-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--night-deep);
    color: var(--on-night);
    text-decoration: none;
    border: 1px solid rgba(244, 237, 225, 0.18);
    border-radius: 14px;
    padding: 12px 22px;
    transition: var(--transition);
    position: relative;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.store-btn svg { width: 30px; height: 30px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-label { font-size: 11px; opacity: 0.7; }
.store-name { font-size: 17px; font-weight: 800; }
.store-btn.coming-soon { opacity: 0.55; cursor: default; }
.open-app-link { color: var(--gold-600); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
[data-theme="dark"] .open-app-link { color: var(--gold-300); }
.open-app-link:hover { color: var(--gold-500); }
[data-theme="dark"] .open-app-link:hover { color: var(--gold-300); }
.coming-soon-badge {
    position: absolute;
    top: -10px;
    inset-inline-end: 12px;
    font-size: 10px;
    font-weight: 800;
    color: var(--gold-800);
    background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
    border-radius: var(--radius-full);
    padding: 2px 10px;
}

/* ── Subpage band + legal + contact ───── */

.page-band {
    background: linear-gradient(180deg, var(--night-800) 0%, var(--night-900) 62%, var(--night-deep) 100%);
    color: var(--on-night);
    padding: 124px 0 44px;
    text-align: center;
}
.page-band h1 { font-family: var(--font-display); font-weight: 400; font-size: 33px; line-height: 1.3; }
.page-band p { color: var(--on-night-muted); margin-top: 8px; font-size: 15px; }
.date-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--on-night);
    background: rgba(244, 237, 225, 0.12);
    border: 1px solid rgba(244, 237, 225, 0.24);
    border-radius: var(--radius-full);
    padding: 4px 14px;
    margin-top: 12px;
}
.legal-wrap { max-width: 780px; margin: 0 auto; }
.tldr-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(217, 160, 63, 0.5);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}
.tldr-card h2 { font-family: var(--font-body); font-weight: 900; font-size: 17px; margin-bottom: 12px; }
.tldr-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tldr-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.tldr-card li svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold-600); margin-top: 4px; }
[data-theme="dark"] .tldr-card li svg { color: var(--gold-300); }
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.section-card h2 { font-family: var(--font-body); font-weight: 900; font-size: 16.5px; margin-bottom: 8px; }
.section-card p { font-size: 14px; color: var(--text-secondary); }
.contact-chip {
    display: inline-block;
    direction: ltr;
    font-weight: 800;
    font-size: 14px;
    color: var(--garnet-600);
    background: rgba(169, 59, 63, 0.08);
    border: 1px solid rgba(169, 59, 63, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    text-decoration: none;
    margin-top: 10px;
}
[data-theme="dark"] .contact-chip { color: var(--garnet-400); background: rgba(192, 69, 63, 0.12); }
.contact-grid { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
a.contact-card:hover { transform: translateY(-2px); }
.contact-card .cicon {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(46, 140, 134, 0.12);
    border-radius: 13px;
    color: var(--teal-600);
}
[data-theme="dark"] .contact-card .cicon { color: var(--teal-400); }
.contact-card .cicon svg { width: 23px; height: 23px; }
.contact-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 15px; }
.contact-card p { font-size: 13px; color: var(--text-secondary); }
.contact-card p.ltr { direction: ltr; }
html[dir="rtl"] .contact-card p.ltr { text-align: right; }

/* ── Footer (deep night + diamond appliqué) ── */

.footer {
    background: var(--night-deep);
    color: var(--on-night-muted);
    padding: 0 0 24px;
}
.footer .kh-diamonds { margin-bottom: 34px; }
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.footer-logo {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--on-night);
    font-size: 24px;
    margin-bottom: 4px;
}
.footer-brand p { font-size: 13px; max-width: 280px; }
.footer-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-col h4 { color: var(--on-night); font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.footer-col nav { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-col nav a {
    color: var(--on-night-muted);
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover, .footer-col nav a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(244, 237, 225, 0.12); padding-top: 18px; font-size: 12.5px; text-align: center; }

/* ── Reveal animation.
   Progressive enhancement: elements are fully visible by default and only
   hide once JS confirms they are BELOW the fold (the .reveal-armed class
   is added by initReveal). Anything already in view never hides, so no-JS,
   print, crawlers, and headless screenshots always see full content. ── */

.reveal-armed .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-armed .reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────── */

@media (max-width: 760px) {
    section { padding: 52px 0; }
    .hero { padding: 112px 0 78px; }
    .logo { font-size: 38px; }
    .tagline { font-size: 16px; }
    .hero-stats { gap: 24px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .theme-toggle { top: 70px; }
    .lang-toggle { top: 70px; }
    .section-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal-armed .reveal { opacity: 1; transform: none; }
}
