/* ==========================================================================
   Basira — Landing Page Styles (v2)
   Local-first Arabic journaling app · RTL
   ========================================================================== */

@font-face {
    font-family: 'Alyamama';
    src: url('fonts/Alyamama.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Design tokens — Basirah Design System v1.0
   Single source of truth. Any colour or size not listed here is not used.
   ========================================================================== */
:root {
    /* color — brand */
    --bsr-green:        #2C4C3B;
    --bsr-green-deep:   #1B3227;
    --bsr-sage:         #7A9A85;
    --bsr-gold:         #C9A34E;

    /* color — surface */
    --bsr-cream:        #F6F2E9;
    --bsr-sand:         #E4DCC9;
    --bsr-mist:         #D8E2DA;
    --bsr-white:        #FFFFFF;

    /* color — text */
    --bsr-ink:          #14201A;
    --bsr-text-muted:   #5C6B62;
    --bsr-on-dark:      #F6F2E9;

    /* color — state */
    --bsr-danger:       #8A3B32;
    --bsr-focus:        #2C4C3B;

    /* space (multiples of 4) */
    --bsr-s1: 4px;  --bsr-s2: 8px;  --bsr-s3: 12px; --bsr-s4: 16px;
    --bsr-s6: 24px; --bsr-s8: 32px; --bsr-s12: 48px; --bsr-s16: 64px;

    /* shape */
    --bsr-radius:       0px;
    --bsr-border:       1px solid var(--bsr-sand);
    --bsr-accent-bar:   3px;
    --bsr-icon-stroke:  1.75;
    --bsr-hit-min:      44px;

    /* ---- semantic aliases used across the page ---- */
    --alabaster: var(--bsr-cream);
    --paper: var(--bsr-cream);
    --pure-white: var(--bsr-white);
    --ink: var(--bsr-ink);
    --ink-soft: var(--bsr-text-muted);
    --neutral-gray: var(--bsr-text-muted);
    --forest: var(--bsr-green);
    --forest-deep: var(--bsr-green-deep);
    --forest-light: #24402F;
    --terracotta: var(--bsr-gold);
    --terracotta-soft: var(--bsr-gold);
    --teal: var(--bsr-sage);
    --navy: var(--bsr-green-deep);

    --bg-color: var(--bsr-cream);
    --surface-color: var(--bsr-white);
    --soft-green-grey: var(--bsr-mist);
    --border-light: var(--bsr-sand);
    --border-soft: var(--bsr-sand);

    /* Typography — Alyamama only; weights 300/400/600/800 */
    --font-heading: 'Alyamama', 'Noto Naskh Arabic', serif;
    --font-body: 'Alyamama', 'Noto Naskh Arabic', serif;
    --font-en: 'Alyamama', 'Noto Naskh Arabic', serif;

    /* Layout */
    --container-max-width: 1180px;
    --container-padding: 1.5rem;

    /* Shape — corner radius is always 0 */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;

    /* Shadows — the system has none */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    /* Motion — the system fixes the button at 120ms linear; everything else
       uses one shared ease so the page moves as a single piece. */
    --bsr-ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
    --bsr-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --bsr-dur-1: 160ms;
    --bsr-dur-2: 280ms;
    --bsr-dur-3: 560ms;
    --bsr-dur-4: 820ms;
    --transition-fast: var(--bsr-dur-1) var(--bsr-ease);
    --transition-spring: var(--bsr-dur-2) var(--bsr-ease);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg-color);
    line-height: 1.75;
    text-wrap: pretty;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--bsr-green-deep);
    font-weight: 700;
    line-height: 1.3;
    font-style: normal;
    text-wrap: balance;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img, svg { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.text-center { text-align: center; }
.highlight { color: var(--forest); }
.accent-terracotta { color: var(--terracotta); }
.relative-z { position: relative; z-index: 10; }

.eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bsr-green);
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
    padding: 0.35rem 1rem;
    background: transparent;
    border: 1px solid var(--bsr-gold);
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}
.eyebrow-light { color: var(--bsr-cream); border-color: var(--bsr-gold); background: transparent; }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; }
.section-title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.section-title.light { color: var(--bsr-on-dark); }
.section-lead {
    font-size: 1.15rem;
    color: var(--neutral-gray);
    line-height: 1.75;
}
.section-lead.center { margin-left: auto; margin-right: auto; }
.section-lead.light { color: var(--bsr-mist); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.08rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}
.btn .icon { width: 20px; height: 20px; }
.btn-small { padding: 0.6rem 1.4rem; font-size: 1rem; }

.primary-btn {
    background-color: var(--forest);
    color: var(--pure-white);
    box-shadow: none;
}
.primary-btn:hover {
    background-color: var(--forest-light);
}
.secondary-btn {
    background-color: var(--pure-white);
    color: var(--ink);
    border: 1px solid var(--border-soft);
}
.secondary-btn:hover {
    border-color: var(--forest);
    color: var(--forest);
    transform: translateY(-2px);
}

/* ====================== NAVBAR ====================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: var(--bsr-cream);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 74px;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--forest);
    cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 600; color: var(--neutral-gray); position: relative; }
.nav-link:hover { color: var(--forest); }
.nav-link-active { color: var(--forest); }

/* Kashida hover */
.kashida-hover {
    display: inline-block;
    color: inherit;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.kashida-hover.is-stretching { color: var(--bsr-green-deep); }

/* ====================== HERO ====================== */
.hero {
    position: relative;
    padding: 130px 0 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-color);
}
.hero-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}
.hero-content {
    max-width: 760px;
    text-align: center;
    /* A flat panel, not a scrim: the moving background must not run through
       the copy. Same language as every other surface — sand border, gold bar. */
    background: var(--bsr-cream);
    border: var(--bsr-border);
    border-top: var(--bsr-accent-bar) solid var(--bsr-gold);
    padding: var(--bsr-s12) var(--bsr-s8) var(--bsr-s8);
}
.hero-content .hero-actions,
.hero-content .hero-trust { justify-content: center; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero-description { margin-inline: auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--forest);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.6rem;
}
.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1.4rem;
}
.hero-description {
    font-size: 1.2rem;
    color: var(--ink-soft);
    margin-bottom: 2.2rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    color: var(--neutral-gray);
    font-size: 0.95rem;
    font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust .ic { width: 17px; height: 17px; color: var(--forest); }

/* ---- Phone mockup ---- */
/* ---- Skeleton bg ---- */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    opacity: 0.28;
    z-index: 1;
    transform: rotate(-5deg) scale(1.25);
    pointer-events: none;
}
.skeleton-container { width: 280px; height: 100%; position: relative; }
.s-delay { margin-top: 15vh; }
.skeleton-track { display: flex; flex-direction: column; gap: 1.4rem; animation: scrollUp 24s linear infinite; }
.track-fast { animation: scrollUp 18s linear infinite; }
.skeleton-block {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border: var(--bsr-border);
    animation: skelPulse 2s ease-in-out infinite alternate;
}
.skeleton-block:nth-child(even) { animation-delay: 1s; }
.skel-img {
    width: 38px; height: 38px;
    border-radius: 0;
    background-color: var(--soft-green-grey);
    display: flex; align-items: center; justify-content: center;
}
.skel-img .ic { width: 20px; height: 20px; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.skel-line { height: 8px; border-radius: 0; background-color: var(--border-light); }
.l1 { width: 80%; } .l2 { width: 50%; } .l3 { width: 65%; }

@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes skelPulse { 0% { background-color: var(--pure-white); } 100% { background-color: var(--bsr-mist); } }

/* ====================== TRUST STRIP ====================== */
.trust-strip { padding: 0 0 20px; margin-top: -30px; position: relative; z-index: 20; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-md);
}
.trust-item { display: flex; align-items: center; gap: 0.9rem; }
.trust-item > .ic {
    width: 28px; height: 28px;
    color: var(--forest);
    flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 1rem; color: var(--ink); }
.trust-item span { font-size: 0.88rem; color: var(--neutral-gray); }

/* ====================== SOHAIL (dark) ====================== */
.sohail {
    margin: 80px 0;
    padding: 80px 0;
    background: var(--bsr-green-deep);
    position: relative;
    overflow: hidden;
}
.sohail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
}
.sohail-content .btn { margin-top: 0.5rem; }
.sohail-list { margin: 1.6rem 0 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.sohail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--bsr-cream);
    font-size: 1.05rem;
}
.sohail-list .ic { width: 20px; height: 20px; color: var(--bsr-mist); flex-shrink: 0; margin-top: 4px; }

/* Pulse capsule card */
.sohail-visual { display: flex; justify-content: center; }
.pulse-capsule {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #22402F;
    border: 1px solid var(--bsr-green);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
}
.capsule-glow {
    position: absolute;
    top: -60px; left: -40px;
    width: 200px; height: 200px;
    background: transparent;
}
.capsule-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bsr-gold);
    background: transparent;
    border: 1px solid var(--bsr-gold);
    padding: 0.35rem 0.9rem;
    border-radius: 0;
    margin-bottom: 1.3rem;
}
.capsule-type .ic { width: 15px; height: 15px; }
.capsule-text {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.85;
    color: var(--bsr-on-dark);
    margin-bottom: 1.6rem;
}
.capsule-foot {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.capsule-author { color: var(--bsr-mist); font-weight: 700; }
.capsule-react { display: flex; gap: 0.8rem; }
.capsule-react .ic {
    width: 20px; height: 20px;
    color: var(--bsr-mist);
    transition: var(--transition-fast);
    cursor: pointer;
}
.capsule-react .ic:hover { color: var(--bsr-mist); transform: scale(1.15); }

/* ====================== FEATURES ====================== */
.features { padding: 70px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.feature-card {
    background-color: var(--pure-white);
    padding: 2.4rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--bsr-green);
}
.feature-icon-wrapper {
    width: 62px; height: 62px;
    background-color: var(--soft-green-grey);
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
    color: var(--forest);
    transition: var(--transition-fast);
}
.feature-card:hover .feature-icon-wrapper {
    background-color: var(--forest);
    color: var(--bsr-cream);
}
.feature-icon { width: 30px; height: 30px; }
.feature-title { font-size: 1.35rem; margin-bottom: 0.7rem; }
.feature-desc { color: var(--neutral-gray); font-size: 1rem; line-height: 1.75; }

.more-strip {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}
.more-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: 0;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.more-item .ic { width: 18px; height: 18px; color: var(--bsr-green); }

/* ====================== SHOWCASE (pulse / insights) ====================== */
.showcase { padding: 80px 0; }
.showcase-alt { background-color: var(--alabaster); }
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
}
.check-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.check-list .ic { width: 20px; height: 20px; color: var(--forest); flex-shrink: 0; margin-top: 4px; }

/* pulse chips */
.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    padding: 2rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 0;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--forest);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
}
.chip .ic { width: 19px; height: 19px; color: var(--terracotta); }
.chip:hover { background: var(--bsr-cream); border-color: var(--bsr-gold); }

/* insight card */
.showcase-visual { display: flex; justify-content: center; }
.insight-card {
    width: 100%;
    max-width: 440px;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
}
.insight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.insight-head > span { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--ink); }
.insight-head .ic { width: 19px; height: 19px; color: var(--forest); }
.insight-badge {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--forest) !important;
    background: var(--soft-green-grey);
    padding: 0.3rem 0.85rem;
    border-radius: 0;
}
.mood-chart { width: 100%; height: auto; margin-bottom: 1.2rem; }
.grid-line { stroke: var(--border-light); stroke-width: 1; stroke-dasharray: 4 5; }
.insight-summary-label { font-weight: 700; font-size: 0.9rem; color: var(--neutral-gray); margin-bottom: 0.6rem; }
.insight-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.insight-topics span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    background: var(--soft-green-grey);
    padding: 0.35rem 0.9rem;
    border-radius: 0;
}
.insight-summary {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    background: var(--bsr-cream);
    border: var(--bsr-border);
    border-top: var(--bsr-accent-bar) solid var(--bsr-gold);
    padding: 1rem;
}
.insight-summary .ic { width: 20px; height: 20px; color: var(--terracotta); flex-shrink: 0; margin-top: 3px; }
.insight-summary p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }

/* ====================== PRIVACY ====================== */
.privacy {
    padding: 90px 0;
    background:

        var(--bg-color);
}
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}
.privacy-card {
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-spring);
}
.privacy-card:hover { border-color: var(--bsr-green); }
.privacy-card > .ic {
    width: 30px; height: 30px;
    color: var(--forest);
    margin-bottom: 1.1rem;
    padding: 12px;
    box-sizing: content-box;
    background: var(--soft-green-grey);
    border-radius: 0;
}
.privacy-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.privacy-card p { color: var(--neutral-gray); font-size: 0.98rem; line-height: 1.7; }

/* BYOK callout */
.byok-callout {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    color: var(--bsr-on-dark);
    box-shadow: var(--shadow-lg);
}
.byok-icon {
    width: 70px; height: 70px;
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--bsr-sage);
    color: var(--bsr-mist);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.byok-icon .ic { width: 34px; height: 34px; }
.byok-text h3 { color: var(--bsr-on-dark); font-size: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.byok-tag {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bsr-mist);
    background: transparent;
    border: 1px solid var(--bsr-sage);
    padding: 0.2rem 0.6rem;
    border-radius: 0;
}
.byok-text p { color: var(--bsr-mist); margin-bottom: 1.1rem; line-height: 1.75; }
.byok-providers { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.byok-providers span {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bsr-mist);
    background: #22402F;
    border: 1px solid var(--bsr-green);
    padding: 0.4rem 0.95rem;
    border-radius: 0;
}
.byok-providers .byok-soon {
    font-family: var(--font-body);
    color: var(--bsr-gold);
    background: transparent;
    border-color: var(--bsr-gold);
}

/* ====================== HOW IT WORKS ====================== */
.how { padding: 90px 0; background-color: var(--alabaster); }
.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.4rem 1.8rem;
    box-shadow: var(--shadow-sm);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--bsr-on-dark);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step-card p { color: var(--neutral-gray); line-height: 1.7; }
.step-connector {
    align-self: center;
    width: 60px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--forest) 0 6px, transparent 6px 12px);
    opacity: 0.4;
    flex-shrink: 0;
}

/* ====================== CTA ====================== */
.cta-section { padding: 90px 0; }
.cta-card {
    background:

        var(--forest);
    border-radius: var(--radius-xl);
    padding: 4.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--bsr-on-dark); margin-bottom: 1rem; }
.cta-desc {
    font-size: 1.2rem;
    color: var(--bsr-mist);
    margin: 0 auto 2.6rem;
    max-width: 600px;
}
.store-buttons { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.store-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--pure-white);
    color: var(--forest);
    padding: 0.8rem 1.7rem;
    border-radius: 0;
    transition: var(--transition-fast);
}
.store-btn:hover { background: var(--bsr-mist); color: var(--bsr-green-deep); }
.store-icon-svg { width: 30px; height: 30px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.store-sub { font-size: 0.72rem; opacity: 0.7; line-height: 1; }
.store-main { font-size: 1.2rem; font-weight: 700; font-family: var(--font-en); line-height: 1.2; }
.dimmed-btn { opacity: 0.55; pointer-events: auto; }
.dimmed-btn:hover { opacity: 0.85; }

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 1.4rem;
    background-color: transparent;
    border: 1px solid var(--bsr-sage);
    color: var(--bsr-cream);
    border-radius: 0;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--bsr-green);
}
.badge-dot {
    width: 8px; height: 8px;
    background-color: var(--bsr-mist);
    border-radius: 50%;
    opacity: 1;
    animation: dotPulse 1.6s infinite;
}
@keyframes dotPulse {
    0% { opacity: 1; }
    70% { opacity: .35; }
    100% { opacity: 1; }
}

/* ====================== FOOTER ====================== */
.footer { background-color: var(--navy); color: var(--pure-white); padding: 64px 0 24px; }
.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 48px;
}
.footer .logo-text { color: var(--pure-white); }
.footer-tagline { color: var(--bsr-mist); margin-top: 1rem; max-width: 340px; line-height: 1.75; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.link-group h4 { color: var(--pure-white); margin-bottom: 1.3rem; font-size: 1.1rem; }
.link-group a { display: block; color: var(--bsr-mist); margin-bottom: 0.75rem; }
.link-group a:hover { color: var(--bsr-mist); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--bsr-green);
    color: var(--bsr-mist);
    font-size: 0.875rem;
}
.developer-signature {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    direction: ltr;
}
.dev-logo { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.2s ease; margin-bottom: 0.25rem; }
.dev-logo:hover { opacity: 1; }
.dev-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; font-family: var(--font-en); }
.dev-link, .dev-contact { color: var(--bsr-mist); transition: color 0.2s ease; letter-spacing: 0.5px; }
.dev-link:hover, .dev-contact:hover { color: var(--pure-white); }
.dev-sep { color: var(--bsr-mist); font-size: 0.8rem; }

/* ====================== REVEAL / ANIMATIONS ====================== */
.js-reveal .reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--bsr-dur-3) var(--bsr-ease),
                transform var(--bsr-dur-4) var(--bsr-ease);
}
.js-reveal .reveal-up.active { opacity: 1; transform: translateY(0); }


/* mood chart draw-in */
.graph-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawGraph 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}
@keyframes drawGraph { to { stroke-dashoffset: 0; } }
.graph-point { transform: scale(0); transform-origin: center; }
.point-1 { animation: popPoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 1.6s; }
.point-2 { animation: popPoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 2.0s; }
.point-3 { animation: popPoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 2.4s; }
@keyframes popPoint { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .graph-line, .graph-point, .skeleton-track, .badge-dot { animation: none !important; }
    .js-reveal .reveal-up { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-content { max-width: 640px; margin: 0 auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .sohail-grid, .showcase-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .showcase .showcase-content { order: 2; }
    .showcase .showcase-visual { order: 1; }
    .features-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .byok-callout { flex-direction: column; text-align: center; }
    .byok-text h3, .byok-providers { justify-content: center; }
    .steps-grid { flex-direction: column; align-items: center; gap: 1.4rem; }
    .step-card { max-width: 420px; width: 100%; }
    .step-connector { width: 2px; height: 30px; background: repeating-linear-gradient(to bottom, var(--forest) 0 6px, transparent 6px 12px); }
}

@media (max-width: 768px) {
    .nav-links { gap: 1rem; }
    .nav-links .nav-link { display: none; }
    .features-grid, .privacy-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-tagline { margin: 1rem auto; }
    .footer-links { grid-template-columns: 1fr; gap: 2rem; }
    .sohail, .cta-card { padding-left: 0.5rem; padding-right: 0.5rem; }
    .cta-card { padding: 3rem 1.5rem; }
    .sohail-list li, .check-list li { text-align: right; }
}

@media (max-width: 480px) {
    :root { --container-padding: 1.1rem; }
    .hero-badge { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
    .hero-content { padding: var(--bsr-s8) var(--bsr-s4) var(--bsr-s6); }
    .hero { padding-top: 110px; }
    .store-buttons { flex-direction: column; align-items: stretch; }
    .store-btn { justify-content: center; }
    .byok-callout { padding: 1.8rem; }
}


/* ==========================================================================
   Design system layer — Basirah v1.0
   Shape, focus, accent bars, patterns and motion rules.
   ========================================================================== */

/* Buttons: 44px minimum hit target, square corners, linear transitions */
.btn { min-height: var(--bsr-hit-min); font-weight: 600; font-size: 1rem; padding: 12px 24px; }
.btn-small { min-height: var(--bsr-hit-min); padding: 10px 20px; font-size: 0.95rem; }
.primary-btn { background-color: var(--bsr-green); color: var(--bsr-on-dark); }
.primary-btn:hover { background-color: var(--forest-light); }
.primary-btn:active { background-color: var(--bsr-green-deep); }
.secondary-btn {
    background: transparent;
    color: var(--bsr-green);
    border: 1px solid var(--bsr-green);
}
.secondary-btn:hover { background: var(--bsr-mist); color: var(--bsr-green-deep); }
.btn[disabled], .btn.disabled { background: var(--bsr-sand); color: var(--bsr-mist); cursor: not-allowed; }

/* Focus ring — always visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--bsr-focus);
    outline-offset: 2px;
}

/* Cards carry a 3px accent bar instead of a shadow */
.feature-card,
.privacy-card,
.step-card,
.insight-card {
    border-top: var(--bsr-accent-bar) solid var(--bsr-green);
}
.pulse-capsule { border-top: var(--bsr-accent-bar) solid var(--bsr-gold); }

/* Zigzag — the primary pattern, derived from the 45° cut of the mark */
.bsr-zigzag {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M0 21 L14 7 L28 21 L42 7 L56 21' fill='none' stroke='%232C4C3B' stroke-width='2.5' stroke-linejoin='miter'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.12;
}
.bsr-zigzag--light {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M0 21 L14 7 L28 21 L42 7 L56 21' fill='none' stroke='%23F6F2E9' stroke-width='2.5' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

/* Brand logo lockups */
.logo { display: inline-flex; align-items: center; min-height: var(--bsr-hit-min); }
.logo-img { height: 34px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; }

/* Numbers, code and e-mail stay LTR inside their own box */
.ltr, code, .email { direction: ltr; unicode-bidi: isolate; text-align: left; }

/* Respect reduced motion — stop every animation */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* On dark surfaces the primary action inverts to mist, per the dark-mode spec */
.sohail .primary-btn,
.cta-card .primary-btn {
    background-color: var(--bsr-mist);
    color: var(--bsr-green-deep);
}
.sohail .primary-btn:hover,
.cta-card .primary-btn:hover { background-color: var(--bsr-cream); }

/* Icons — the Basirah library. Stroke spec lives on the sprite root; these
   rules only set the size scale (16 / 20 / 24 / 32, uniform, never re-drawn). */
.ic {
    width: 24px; height: 24px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    /* <use> inherits from the instance, not from the sprite root, so the
       stroke spec has to be re-stated here. */
    fill: none;
    stroke: currentColor;
    stroke-width: var(--bsr-icon-stroke);
    stroke-linecap: butt;
    stroke-linejoin: miter;
}
.ic-16 { width: 16px; height: 16px; }
.ic-20 { width: 20px; height: 20px; }
.ic-32 { width: 32px; height: 32px; }
/* Active state: fill the shape instead of stroking it */
.ic.is-active { fill: var(--bsr-green); stroke: var(--bsr-green); }


/* ==========================================================================
   Polish layer
   ========================================================================== */

.skip-link {
    position: absolute;
    right: var(--bsr-s4);
    top: -100px;
    z-index: 2000;
    background: var(--bsr-green);
    color: var(--bsr-on-dark);
    padding: var(--bsr-s3) var(--bsr-s6);
    font-weight: 600;
    transition: top 120ms linear;
}
.skip-link:focus { top: var(--bsr-s4); }

::selection { background: var(--bsr-mist); color: var(--bsr-green-deep); }

/* Section rhythm on the 4-multiple scale */
.showcase, .features, .privacy { padding: var(--bsr-s16) 0; }
.section-head { margin-bottom: var(--bsr-s12); }

/* Chips and strips sit on a shared baseline — no decorative stagger */
.chips-wrap { align-items: stretch; }
.chip, .more-item { min-height: var(--bsr-hit-min); }

/* Stacked triangles — the dark-surface pattern, one per screen */
.sohail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, var(--bsr-green) 0 50%, transparent 50%);
    background-size: 26px 26px;
    opacity: 0.10;
    pointer-events: none;
}
.sohail > * { position: relative; }

/* Mobile navigation */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--bsr-hit-min);
    height: var(--bsr-hit-min);
    background: transparent;
    border: 1px solid var(--bsr-sand);
    color: var(--bsr-green);
    cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-block; }

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bsr-cream);
        border-bottom: var(--bsr-border);
        padding: var(--bsr-s2) var(--container-padding) var(--bsr-s6);
    }
    .nav-links.is-open { display: flex; }
    /* the desktop rule hides the links outright; inside the panel they show */
    .nav-links .nav-link {
        display: block;
        min-height: var(--bsr-hit-min);
        line-height: var(--bsr-hit-min);
        border-bottom: var(--bsr-border);
    }
    .nav-links .nav-btn { margin-top: var(--bsr-s4); }
}


/* ==========================================================================
   Motion layer
   A flat, square system still has to feel alive. Nothing here moves a shadow
   or rounds a corner: motion is carried by colour, the 3px accent bar, and
   short translations on one axis.
   ========================================================================== */

a, .btn, .chip, .more-item, .nav-link, .store-btn, .link-group a, .trust-item {
    transition: color var(--bsr-dur-1) var(--bsr-ease),
                background-color var(--bsr-dur-1) var(--bsr-ease),
                border-color var(--bsr-dur-1) var(--bsr-ease),
                transform var(--bsr-dur-2) var(--bsr-ease);
}

/* Buttons keep the spec's linear background change, and gain a quiet nudge
   toward the reading direction. */
.btn { transition: background-color 120ms linear, color 120ms linear,
                   border-color 120ms linear, transform var(--bsr-dur-2) var(--bsr-ease); }
.btn:hover { transform: translateX(-3px); }
.btn:active { transform: translateX(0); }

/* The nav underline draws in from the start edge instead of blinking on */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; right: 0; left: 0;
    height: 2px;
    background: var(--bsr-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--bsr-dur-2) var(--bsr-ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link-active::after { transform: scaleX(1); }

/* Cards: the accent bar thickens and the surface warms. No lift, no shadow. */
.feature-card, .privacy-card, .step-card, .insight-card {
    transition: background-color var(--bsr-dur-2) var(--bsr-ease),
                border-top-width var(--bsr-dur-2) var(--bsr-ease),
                border-color var(--bsr-dur-2) var(--bsr-ease);
}
.feature-card:hover, .privacy-card:hover, .step-card:hover {
    background-color: var(--bsr-cream);
    border-top-width: 6px;
}
.feature-icon-wrapper {
    transition: background-color var(--bsr-dur-2) var(--bsr-ease),
                color var(--bsr-dur-2) var(--bsr-ease);
}
.feature-card:hover .feature-icon-wrapper {
    background-color: var(--bsr-green);
    color: var(--bsr-cream);
}

.chip:hover, .more-item:hover { transform: translateY(-3px); }

/* The rule under a section title draws itself in when the head reveals */
.section-head { position: relative; }
.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: var(--bsr-accent-bar);
    background: var(--bsr-gold);
    margin: var(--bsr-s4) auto 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--bsr-dur-3) var(--bsr-ease) 120ms;
}
.reveal-up.active .section-title::after,
.section-head:not(.reveal-up) .section-title::after { transform: scaleX(1); }

/* Hero background: readable movement rather than a static texture */
.hero-bg-animation { opacity: 0.42; }
.skeleton-block { transition: none; }
.badge-dot { animation: badgePulse 2.4s var(--bsr-ease-soft) infinite; }
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.72); }
}

/* Hero copy arrives in sequence */
.js-reveal .hero-badge       { transition-delay: 60ms; }
.js-reveal .hero-title       { transition-delay: 140ms; }
.js-reveal .hero-description { transition-delay: 220ms; }
.js-reveal .hero-actions     { transition-delay: 300ms; }
.js-reveal .hero-trust       { transition-delay: 380ms; }

/* Grids stagger by column so a row lands as a wave, not all at once */
.features-grid .reveal-up:nth-child(3n+2),
.privacy-grid  .reveal-up:nth-child(3n+2) { transition-delay: 90ms; }
.features-grid .reveal-up:nth-child(3n),
.privacy-grid  .reveal-up:nth-child(3n)   { transition-delay: 180ms; }
