:root,
[data-theme="light"] {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --ink: #1e1d1a;
    --muted: #4a463f;
    --quiet: #5f5b53;
    --nav: #3d3a34;
    --accent: #0f6b4f;
    --accent-hover: #0a4d39;
    --accent-soft: #e3efe9;
    --border: #e6e1d7;
    --line: #b9d3c7;
    --gold: #e8c77a;
    --band: #123d30;
    --band-text: #d3ded8;
    --footer: #1c2421;
    --footer-text: #d9d5cc;
    --footer-muted: #bdb8ae;
    --footer-line: #36403b;
    --warn: #fbf0de;
    --warn-icon: #f2ddba;
    --warn-ink: #4a3a22;
    --warn-link: #7a4206;
    --count: #eef5f1;
    --exempt: #f3f1ec;
    --review: #fbf0de;
    --exempt-dot: #5f5b53;
    --review-dot: #9a540c;
    --device: #1e1d1a;
    --wash: #f3f1ec;
    --input: #ffffff;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #141617;
    --surface: #1e2123;
    --ink: #edece7;
    --muted: #9c9e99;
    --quiet: #9c9e99;
    --nav: #c8c6c0;
    --accent: #2fa97a;
    --accent-hover: #49c08e;
    --accent-soft: #1f3129;
    --border: #2c3033;
    --line: #2f4a3e;
    --gold: #e0be6c;
    --band: #0e2a22;
    --band-text: #c9d6d0;
    --footer: #0e1211;
    --footer-text: #d9d5cc;
    --footer-muted: #9c9e99;
    --footer-line: #2c3033;
    --warn: #302717;
    --warn-icon: #4a3b22;
    --warn-ink: #e8dcc4;
    --warn-link: #e0be6c;
    --count: #1f3129;
    --exempt: #272a2d;
    --review: #302717;
    --exempt-dot: #6e716d;
    --review-dot: #e5a84b;
    --device: #0e1a15;
    --wash: #272a2d;
    --input: #272a2d;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --bg: #141617;
        --surface: #1e2123;
        --ink: #edece7;
        --muted: #9c9e99;
        --quiet: #9c9e99;
        --nav: #c8c6c0;
        --accent: #2fa97a;
        --accent-hover: #49c08e;
        --accent-soft: #1f3129;
        --border: #2c3033;
        --line: #2f4a3e;
        --gold: #e0be6c;
        --band: #0e2a22;
        --band-text: #c9d6d0;
        --footer: #0e1211;
        --footer-text: #d9d5cc;
        --footer-muted: #9c9e99;
        --footer-line: #2c3033;
        --warn: #302717;
        --warn-icon: #4a3b22;
        --warn-ink: #e8dcc4;
        --warn-link: #e0be6c;
        --count: #1f3129;
        --exempt: #272a2d;
        --review: #302717;
        --exempt-dot: #6e716d;
        --review-dot: #e5a84b;
        --device: #0e1a15;
        --wash: #272a2d;
        --input: #272a2d;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: "Public Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, .serif { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    background: var(--accent);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 20;
}
.skip:focus { top: 8px; color: #fff; }

main { flex: 1; display: flex; flex-direction: column; }
.reference { background: #f6f4ef; color: #1e1d1a; flex: 1; }
.reference h1, .reference h2, .reference h3 { color: #1e1d1a; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand:hover { color: var(--ink); }
.brand span { font-family: Newsreader, Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.nav-links a { color: var(--nav); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.pill {
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.pill:hover { color: #fff !important; background: var(--accent-hover); }
.pill.lg { padding: 15px 26px; font-size: 17px; min-height: 52px; }
.ghost {
    color: var(--accent);
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 17px;
    border: 1.5px solid var(--line);
    min-height: 52px;
    display: inline-flex;
    align-items: center;
}
.ghost:hover { color: var(--accent-hover); }
.menu-toggle { display: none; }

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 24px 72px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 7px 14px;
    border-radius: 999px;
}
h1 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}
.hero-copy > p { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; align-items: center; }
.fine { font-size: 14px; color: var(--quiet); line-height: 1.5; }
.phones { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; padding: 12px 0; }
.phone {
    height: auto;
    box-shadow: 0 0 0 7px var(--device), 0 40px 70px -30px rgba(20, 40, 30, 0.5);
}
.phone.front { width: 270px; max-width: 46%; border-radius: 38px; position: relative; z-index: 2; }
.phone.back { width: 250px; max-width: 42%; border-radius: 36px; margin-left: -28px; margin-top: 72px; position: relative; z-index: 1; }
.phone.solo { width: 270px; border-radius: 38px; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}
.stack { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.intro { display: flex; flex-direction: column; gap: 12px; }
.eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
h2 { margin: 0; font-size: 44px; line-height: 1.1; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.path {
    background: var(--bg);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.path h3, .rule h3 { margin: 0; font-family: "Public Sans", system-ui, sans-serif; font-size: 19px; font-weight: 600; letter-spacing: 0; }
.path p, .rule p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.section { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 40px; }
.section h2 { max-width: 18ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li, .chips span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
}
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rule { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.rule h3 { font-size: 18px; }

.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; }
.row h3 { margin: 0; font-family: "Public Sans", system-ui, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.row p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.row.count { background: var(--count); }
.row.exempt { background: var(--exempt); }
.row.review { background: var(--review); }
.dot {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.row.count .dot { background: var(--accent); }
.row.exempt .dot { background: var(--exempt-dot); }
.row.review .dot { background: var(--review-dot); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.shot-card .copy { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 10px; }
.shot-card h3 { margin: 0; font-family: "Public Sans", system-ui, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: 0; }
.shot-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.shot-well {
    height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding-top: 28px;
    background: linear-gradient(var(--surface), var(--wash));
}
.shot-well img {
    width: 230px;
    height: auto;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 0 0 6px var(--device);
    align-self: flex-start;
}

.private { background: var(--band); color: #f1eee6; }
.private h2 { color: #fff; }
.private .lede { color: var(--band-text); }
.private a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.checks { flex: 1 1 320px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    font-size: 16px;
}

.honest-wrap { max-width: 1200px; margin: 0 auto; padding: 96px 24px 0; }
.honest {
    background: var(--warn);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.warn-icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--warn-icon);
    color: #8a4a08;
    display: flex;
    align-items: center;
    justify-content: center;
}
.honest h2 { font-size: 32px; line-height: 1.2; }
.honest p { font-size: 18px; line-height: 1.6; color: var(--warn-ink); }
.honest a { color: var(--warn-link); font-weight: 600; }

.download {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px 112px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.download h2 { font-size: 52px; line-height: 1.08; letter-spacing: -0.015em; }
.download p { font-size: 18px; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.stores .fine { width: 100%; margin: 0; }
.store {
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 17px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.store:hover { color: var(--bg); }
.download .fine { font-size: 13px; }

.site-footer { background: var(--footer); color: var(--footer-text); }
.foot {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.foot-brand span { font-family: Newsreader, Georgia, serif; font-size: 26px; font-weight: 600; color: #fff; }
.foot-brand p { font-size: 15px; line-height: 1.6; color: var(--footer-muted); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px 48px; font-size: 15px; }
.foot-nav a { color: #e9e6df; text-decoration: none; padding: 4px 0; }
.foot-nav a:hover { color: #fff; }
.legal {
    border-top: 1px solid var(--footer-line);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--footer-muted);
}
.legal strong { color: var(--gold); font-weight: 500; }

.theme-switch { display: flex; gap: 6px; }
.theme-switch button {
    border: 1px solid var(--footer-line);
    background: transparent;
    color: var(--footer-muted);
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { color: #fff; border-color: var(--gold); }

.page { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; }
.page-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.page-intro h1 { font-size: clamp(40px, 5vw, 64px); }
.page-intro .lede { font-size: 20px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 36px; padding: 0; list-style: none; }
.jump a {
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
}
.block { margin-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.block h2 { font-size: 36px; }
.block h2 span { color: var(--accent); font-family: "Public Sans", system-ui, sans-serif; font-size: 14px; letter-spacing: 0.08em; margin-right: 10px; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
}
.step-no {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: Newsreader, Georgia, serif;
    font-size: 22px;
}
.step h2 { font-size: 32px; }
.step p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-top: 8px; }
.step img { width: 230px; border-radius: 32px; box-shadow: 0 0 0 6px var(--device); margin-top: 16px; }
.ayah {
    font-family: Amiri, serif;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 2;
    text-align: right;
    direction: rtl;
    background: var(--warn);
    color: var(--ink);
    border-radius: 28px;
    padding: 28px 32px;
    margin: 0 0 8px;
}
.cite { color: var(--quiet); margin-bottom: 36px; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.prose h2 { font-size: 32px; margin-top: 18px; }
.prose p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
label { font-weight: 600; font-size: 15px; }
input, select, textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
}
textarea { min-height: 140px; resize: vertical; }
.field-error { color: #b42318; font-size: 14px; margin: -4px 0 8px; }
.preview { background: var(--warn); color: var(--warn-ink); border-radius: 14px; padding: 12px 14px; }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.legal-doc { max-width: 880px; margin: 0 auto; padding: 80px 24px 104px; display: flex; flex-direction: column; gap: 16px; }
.legal-doc h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.legal-doc .tagline { font-size: 20px; line-height: 1.5; color: #1e1d1a; font-weight: 600; }
.legal-doc h2 { font-size: 28px; line-height: 1.2; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid #e6e1d7; }
.legal-doc h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 22px; margin: 10px 0 0; letter-spacing: 0; }
.legal-doc p, .legal-doc li { font-size: 17px; line-height: 1.65; color: #4a463f; }
.legal-doc ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.legal-doc strong { color: #1e1d1a; }
.legal-doc a { font-weight: 600; }

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--ink);
        border-radius: 999px;
        padding: 8px 14px;
        font: inherit;
        font-weight: 600;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 8px;
    }
    .nav-links.open { display: flex; }
    .two { grid-template-columns: 1fr; }
    h2 { font-size: 34px; }
    .download h2 { font-size: 40px; }
}
