/* Riwaq / The living riwaq. A visual layer, independent of product content. */
:root{
  color-scheme:light;
  --paper:#f8f4ea;--white:#fffdf7;--ink:#203d39;--blue:#225d54;
  --muted:#5e6f68;--line:#d8ddcf;--pale:#e5eee6;--sand:#eee4d1;
  --emerald:#225d54;--deep:#143d36;--indigo:#343d66;--clay:#a6583c;
  --gold:#a57b2c;--gold-soft:#e9d19d;--rose:#f2e3d9;--mint:#e5eee6;
  --focus:#9a5924;--shadow:0 18px 48px #153d3212;--chapter-line:#d7d4c6;
}
:root[data-theme='night']{
  color-scheme:dark;
  --paper:#142b2a;--white:#1c3633;--ink:#f5f1e5;--blue:#b6d7bf;
  --muted:#b6c8bd;--line:#42605a;--pale:#25443e;--sand:#303d34;
  --emerald:#b6d7bf;--deep:#102623;--indigo:#242c4a;--clay:#e3ac88;
  --gold:#e7c47f;--gold-soft:#ad8d4f;--rose:#453a32;--mint:#25443e;
  --focus:#f0c37b;--shadow:0 20px 50px #00000024;--chapter-line:#42605a;
}
::selection{background:var(--gold-soft);color:#203d39}
body{background:var(--paper);color:var(--ink)}
p{color:var(--muted)}
h1,h2{letter-spacing:-.045em;text-wrap:balance}
h3{letter-spacing:-.025em}
.eyebrow{color:var(--blue);font-size:.7rem;letter-spacing:.14em;font-weight:650}
.button{border-radius:8px 8px 8px 1px;background:var(--blue);border-color:var(--blue);box-shadow:0 4px 0 #103c2c0c;transition:background .2s,box-shadow .2s,transform .2s}
.button:hover{background:#17483f;box-shadow:0 8px 20px #103c2c20;transform:translateY(-2px)}
.button span[aria-hidden]{transition:transform .2s}
.button:hover span[aria-hidden]{transform:translate(2px,-2px)}
.button:active{transform:translateY(0);box-shadow:none}
.text-link{gap:20px;text-decoration:none;border-bottom-color:var(--gold);transition:color .18s,border-color .18s}
.text-link:hover{opacity:1;color:var(--clay);border-color:currentColor}
.button-light{background:#fffaf0;color:#21483e;border-color:#fffaf0}
.button-light:hover{background:#e8d6b0;color:#183d35}
:where(button,a,input,select,summary):focus-visible{outline:3px solid var(--focus);outline-offset:5px}
.site-header{background:var(--paper);border-bottom:1px solid var(--line)}
.nav-wrap{gap:28px}
.desktop-nav{gap:25px}
.desktop-nav a{position:relative;font-size:.77rem;padding-block:14px}
.desktop-nav a[aria-current]{color:var(--blue);text-decoration:none}
.desktop-nav a[aria-current]:after{content:'';position:absolute;left:0;right:0;bottom:5px;height:2px;background:var(--gold);border-radius:2px}
.theme-toggle{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;gap:9px;min-width:44px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--ink);font-size:.68rem;line-height:1.4;cursor:pointer}
.theme-toggle:hover{background:var(--pale);border-color:var(--blue)}
.theme-toggle svg{width:18px;height:18px;flex-shrink:0}
.theme-toggle:disabled{cursor:default}
.hero{position:relative;padding-top:52px;padding-bottom:80px}
.hero:before{content:'';position:absolute;right:0;top:0;bottom:0;width:45%;background-image:url('/brand/riwaq-geometry.svg');opacity:.6;pointer-events:none;mask-image:linear-gradient(to left,#000,transparent)}
.hero-grid{position:relative;gap:70px}
.hero h1{color:var(--ink);font-size:clamp(4rem,6.8vw,6.65rem);line-height:1.02}
.hero h1 em,.about-intro em,.experience-intro em{color:var(--clay);font-style:italic}
.hero-description{font-weight:550}
.hero-visual{isolation:isolate;min-height:690px;border-radius:230px 230px 18px 18px;background:var(--pale);padding:40px 45px 24px;border:1px solid var(--line)}
.hero-visual:before{content:'';position:absolute;inset:13px;border:1px solid color-mix(in srgb,var(--blue) 24%,transparent);border-radius:220px 220px 10px 10px;pointer-events:none;z-index:-1}
.hero-visual:after{content:'';width:56px;height:4px;background:var(--gold);position:absolute;top:22px;border-radius:99px}
.visual-kicker{font-size:.68rem;letter-spacing:.09em;color:var(--blue);text-transform:uppercase;font-weight:550}
.hero-frame{width:min(100%,355px)}
.hero-frame .image-zoom{border:5px solid #fffefa;border-radius:12px;box-shadow:0 24px 48px #183b3222}
.hero-side-note{color:var(--blue);font-size:.6rem;letter-spacing:.12em;left:13px}
.hero-frame figcaption{font-size:.7rem;margin-top:17px}
.image-zoom{overflow:visible;border:0;background:transparent;border-radius:7px;transition:box-shadow .2s}
.image-zoom .product-picture{display:block;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}
.image-zoom img{border-radius:6px}
.image-zoom:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 30%,transparent)}
.zoom-cue{font-size:.65rem;padding:8px 2px 0;color:var(--blue);background:transparent;opacity:1;min-height:32px;line-height:1.5}
.phone-figure .image-zoom{border:5px solid #fffefa;border-radius:15px;background:#fffefa;box-shadow:var(--shadow)}
.phone-figure .image-zoom .product-picture{border:0}
.phone-figure .zoom-cue{color:#365b50;background:#fffefa;padding-right:4px}
.intro-section{background:var(--white);position:relative;border-top:1px solid var(--line)}
.journey-line{gap:30px;border-top-color:var(--line);padding-top:32px;counter-reset:journey}
.journey-line article{position:relative;padding-top:2px}
.journey-line article>span{display:inline-flex;align-items:center;gap:12px;color:var(--blue);font-size:.67rem;font-weight:600}
.journey-line article>span:before{content:'';height:8px;width:8px;background:var(--gold);transform:rotate(45deg);display:block}
.journey-line h3{margin-top:22px}
.interest-section{--ink:#fff9e9;--muted:#d3e1d4;--blue:#e5c884;--line:#53766a;background:#19473d;color:var(--ink);position:relative;isolation:isolate}
.interest-section:before{content:'';position:absolute;inset:0;background-image:url('/brand/riwaq-geometry.svg');opacity:.15;z-index:-1;pointer-events:none}
.interest-section .section-heading{max-width:760px}
.interest-section .section-heading h2{max-width:700px}
.interest-options{border-color:var(--line);gap:0}
.interest-options button{border-color:var(--line);color:var(--ink);padding:23px 17px;border-radius:0;transition:background .18s,color .18s}
.interest-options button:hover{background:#ffffff0c}
.interest-options button[aria-selected=true]{background:#f8f1df;color:#204c40;border-color:#f8f1df;border-radius:6px 6px 6px 0}
.interest-options button[aria-selected=true] .interest-index{color:#526b56}
.interest-options button[aria-selected=true]>span:last-child{color:#936722}
.interest-panel{grid-template-columns:1fr .85fr;gap:38px;align-items:start}
.interest-panel h3{font-size:2.25rem;line-height:1.12;color:var(--ink)}
.interest-panel li{border-color:var(--line);padding-top:17px;padding-bottom:17px}
.interest-panel li strong{color:#fff9e9}
.interest-panel li a:hover strong{text-decoration:underline;text-underline-offset:5px}
.interest-index{color:#cfdeb8}
.interest-image{max-width:280px;width:100%;margin-inline:auto}
.interest-image .image-zoom{border:4px solid #fcf7e8;border-radius:14px;background:#fcf7e8;box-shadow:0 22px 40px #082d2440}
.interest-image .product-picture{border:0}
.interest-image .zoom-cue{color:#325d4b;background:#fcf7e8;padding-right:5px}
.interest-image figcaption{color:#d3e1d4;font-size:.69rem}
.quran-feature{position:relative;background:var(--paper)}
.reading-note .arabic-word{color:var(--blue)}
.plain-list{border-color:var(--line)}
.plain-list li{padding-top:15px;padding-bottom:15px;border-color:var(--line)}
.plain-list li:before{color:var(--clay)}
.ink-section{background:#303a62;color:#fff9e9;position:relative;isolation:isolate;overflow:hidden}
.ink-section:after{content:'';position:absolute;right:-110px;bottom:-230px;width:450px;height:600px;border:1px solid #d9c69440;border-radius:220px 220px 0 0;z-index:-1;pointer-events:none}
.ink-section .eyebrow{color:#e4cf99}
.ink-section p,.ink-section figcaption{color:#d7deed}
.ink-section .lesson-note p{color:#fff9e9}
.ink-section .light-link{color:#fff6dd;border-color:#d9c38c}
.ink-section .subject-line{color:#e1e8ed;gap:8px 20px}
.ink-section .subject-line span{border-bottom:1px solid #a3b2cc55;padding-bottom:5px}
.ink-section .zoom-cue{color:#eee1bd}
.learning-composition{gap:35px}
.lesson-note{font-size:2rem;line-height:1.7}
.two-stories article{position:relative}
.two-stories article:first-child .eyebrow{color:var(--clay)}
.two-stories article+article .eyebrow{color:var(--blue)}
.story-rule{border-color:var(--line);padding-top:20px;gap:10px}
.story-rule span{display:flex;align-items:center;gap:12px}
.story-rule span:before{content:'';width:16px;height:1px;background:var(--gold)}
.daily-feature{background:var(--sand);border-top:1px solid var(--line);border-bottom:1px solid var(--line);position:relative}
.daily-feature .section-heading h2{color:var(--ink)}
.daily-layout .product-figure{padding:12px;background:var(--white);border:1px solid var(--line);border-radius:16px 16px 2px 16px;box-shadow:var(--shadow)}
.daily-links>a{border-color:var(--chapter-line);padding-block:27px;transition:padding-left .18s,color .18s}
.daily-links>a:hover{padding-left:8px;text-decoration:none;color:var(--clay)}
.daily-links>a>span{font-family:var(--serif);font-size:1.1rem;color:var(--gold)}
.daily-links h3{font-size:1.04rem}
.care-grid{gap:50px;border-color:var(--line)}
.small-number{font-family:var(--serif);font-size:1.35rem;color:var(--gold)}
.care-grid h3{margin-top:14px}
.faq-section{background:var(--white)}
.faq-list summary{color:var(--ink);padding-block:26px}
.faq-list details[open] summary{color:var(--blue)}
.faq-list summary span{color:var(--gold);border:1px solid var(--line);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;line-height:1}
.faq-list details[open]{background:color-mix(in srgb,var(--pale) 40%,transparent)}
.faq-list details[open] p{padding-left:14px}
.closing{background:#215b4d;color:#fff9e9;position:relative;overflow:hidden;isolation:isolate;border-top:1px solid #6a8d68}
.closing:before{content:'';position:absolute;left:-120px;bottom:-260px;width:550px;height:680px;border:1px solid #e8d4984a;border-radius:270px 270px 0 0;z-index:-1;pointer-events:none}
.closing .eyebrow{color:#e5cc8c}
.closing p{color:#d0e1d4}
.closing h2{font-size:clamp(2.8rem,4.5vw,4.5rem)}
.site-footer{background:var(--paper);border-top:1px solid var(--line)}
.footer-main nav a:hover{color:var(--clay)}
.footer-main h3{color:var(--ink);font-weight:650}
.footer-bottom{border-color:var(--line)}
.detail-hero{position:relative;background:var(--white);overflow:hidden;isolation:isolate}
.detail-hero:after{content:'';position:absolute;right:4%;top:50px;width:32%;bottom:25px;border:1px solid var(--line);border-radius:240px 240px 16px 16px;background:var(--pale);z-index:-1}
.detail-hero-grid{grid-template-columns:1fr 1fr;gap:80px}
.detail-hero .product-figure:not(.phone-figure){max-width:540px;width:100%}
.detail-hero .product-figure img{max-height:670px;width:100%;object-fit:contain}
.detail-hero .product-figure.phone-figure{max-width:310px}
.detail-hero .product-figure{padding:12px}
.detail-hero .product-figure.phone-figure{padding:0}
.detail-hero .image-zoom{box-shadow:var(--shadow)}
.detail-hero figcaption{font-size:.7rem;margin-top:16px}
.breadcrumbs{color:var(--muted)}
.chapter-tint{background:var(--pale)}
.chapter-number{color:var(--gold);font-size:2.8rem;font-style:italic}
.chapter .product-figure:not(.phone-figure){max-width:650px}
.chapter .product-figure:not(.phone-figure) .image-zoom{padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:var(--shadow)}
.chapter .product-figure:not(.phone-figure) .zoom-cue{padding-right:2px}
.journey-section{background:var(--white)}
.three-steps li{padding-top:22px;position:relative}
.three-steps span{font-family:var(--serif);font-size:1.4rem;color:var(--gold)}
.future-note{background:var(--pale);border-left:3px solid var(--gold);border-radius:0 14px 14px 0;padding:32px}
.status-tag{border-color:color-mix(in srgb,var(--blue) 30%,var(--line));background:var(--pale);color:var(--blue);border-radius:100px;padding:5px 10px;font-size:.6rem}
.status-subtle{background:transparent;border-color:var(--line);color:var(--muted)}
.page-intro{background:var(--white);position:relative}
.experience-intro{border-bottom:1px solid var(--line);background:var(--paper)}
.experience-intro h1{max-width:900px}
.experience-jumps{gap:10px;margin-top:32px}
.experience-jumps a,.category-jumps a{padding:10px 16px;border-radius:100px;border:1px solid var(--line);font-size:.73rem;background:var(--white);transition:background .18s,color .18s,border-color .18s}
.experience-jumps a:hover,.category-jumps a:hover{background:var(--blue);color:var(--white);border-color:var(--blue);text-decoration:none}
.study-demo{background:var(--paper)}
.demo-shell{border-radius:16px 16px 3px 16px;box-shadow:var(--shadow);background:var(--white);border-color:var(--line)}
.demo-tabs{background:var(--pale);gap:25px;border-color:var(--line)}
.demo-tabs button{font-size:.8rem;min-height:68px;color:var(--muted)}
.demo-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--gold)}
.demo-tabs button:hover{color:var(--ink)}
.study-panel{padding:48px}
.study-panel h3{font-size:2.2rem;line-height:1.2}
.study-panel .canonical-demo{font-size:clamp(1.9rem,4vw,3.2rem);line-height:2.6;color:var(--ink);margin:30px 0}
.demo-reference{color:var(--blue);font-size:.69rem;letter-spacing:.04em}
.demo-aside{border-color:var(--line)}
.study-panel .product-figure:not(.phone-figure){width:100%;max-width:580px}
.study-panel:has(.product-figure:not(.phone-figure)){grid-template-columns:1fr 1.2fr;gap:35px}
.source-credit{color:var(--blue);font-size:.67rem}
.challenge-demo{background:var(--white);position:relative;border-block:1px solid var(--line)}
.sample-challenge{padding:40px;background:var(--sand);border:1px solid var(--line);border-radius:100px 100px 12px 12px;box-shadow:var(--shadow)}
.sample-challenge legend{padding-top:18px;width:100%;text-align:center;font-weight:500;font-size:1rem}
.challenge-letter{color:var(--blue);font-size:6.5rem}
.challenge-options span{border:1px solid var(--chapter-line);border-radius:9px 9px 9px 2px;background:var(--white);min-height:57px;transition:background .18s,border-color .18s}
.challenge-options input{accent-color:var(--blue)}
.challenge-options label:hover span{border-color:var(--blue)}
.challenge-options input:checked+span{background:var(--pale);border-color:var(--blue)}
.challenge-feedback{background:var(--rose);border-left-color:var(--clay);border-radius:0 8px 8px 0}
.challenge-feedback.is-correct{background:var(--pale);border-left-color:var(--blue)}
.challenge-feedback p{color:var(--ink);font-size:.85rem}
.similarity-demo{background:var(--pale);position:relative}
.branch-trunk{border-radius:80px 80px 8px 8px;border-color:var(--line);box-shadow:var(--shadow);padding:38px;background:var(--white)}
.branch-trunk:after{width:2px;background:var(--gold)}
.branch-arabic{color:var(--ink);font-size:2.15rem}
.branch-options{gap:25px}
.branch-options button{border-radius:12px 12px 3px 12px;border-color:var(--line);background:var(--white);padding:27px;transition:border-color .18s,box-shadow .18s}
.branch-options button:hover{border-color:var(--gold);box-shadow:var(--shadow)}
.branch-options button[aria-selected=true]{background:var(--white);border:2px solid var(--blue);padding:26px;box-shadow:inset 0 5px 0 var(--blue)}
.branch-options button>span:first-child{color:var(--blue);font-size:.78rem}
.branch-choice{font-size:1.8rem;color:var(--ink)}
.branch-detail{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:40px;box-shadow:var(--shadow)}
.full-passage{color:var(--ink);font-size:1.9rem}
.full-passage mark{background:var(--sand);color:inherit;box-shadow:0 2px 0 var(--gold);padding-inline:2px}
.reading-cue strong{color:var(--blue)}
.compare-both{border-color:var(--line)}
.compare-both summary{font-size:.87rem;color:var(--ink);padding-block:23px}
.compare-both summary>span{color:var(--gold)}
.source-disclosure{font-size:.74rem}
.source-disclosure summary{color:var(--blue)}
.device-explorer{background:var(--white)}
.device-tabs{gap:7px}
.device-tabs button{border-radius:100px;border-color:var(--line);padding:12px 25px;background:transparent;min-height:48px}
.device-tabs button[aria-selected=true]{background:var(--blue);color:var(--white);border-color:var(--blue)}
.device-stage{background:var(--pale);border:1px solid var(--line);border-radius:100px 100px 12px 12px;padding:48px 45px;position:relative}
.device-stage .product-figure{margin:auto}
.device-stage .image-zoom{box-shadow:var(--shadow)}
.device-stage .zoom-cue{background:transparent;color:var(--blue)}
.review-walkthrough{background:var(--sand)}
.walkthrough-steps{border-color:var(--chapter-line)}
.walkthrough-steps button{border-color:var(--chapter-line);padding-inline:14px;transition:background .18s}
.walkthrough-steps button[aria-selected=true]{background:var(--white);border-radius:6px 6px 6px 0;color:var(--ink)}
.walkthrough-steps button>span:first-child{font-family:var(--serif);font-size:.95rem;color:var(--gold)}
.walk-panel h3{font-size:2.15rem;color:var(--ink)}
.walk-panel{grid-template-columns:1fr .9fr;gap:40px}
.walk-image{max-width:280px;width:100%}
.walk-image .image-zoom{border:4px solid #fffefa;border-radius:12px;background:#fffefa;box-shadow:var(--shadow)}
.walk-image .zoom-cue{color:#365b50;background:#fffefa;padding-right:4px}
.demo-reminder{padding-top:15px;border-top:1px solid var(--chapter-line);font-size:.72rem}
.demo-reminder input{accent-color:var(--blue)}
.feature-controls input,.feature-controls select{background:var(--paper);border-color:var(--line);border-radius:8px;color:var(--ink);min-height:58px}
.feature-controls input::placeholder{color:var(--muted);opacity:1}
.feature-category{padding-top:60px}
.feature-category>header{display:flex;align-items:center;gap:24px}
.feature-category>header:after{content:'';height:1px;flex:1;background:var(--line);margin-bottom:25px}
.feature-category h2{color:var(--ink)}
.feature-grid{gap:30px 40px}
.directory-item{border-color:var(--line);padding-top:23px}
.directory-item a{text-decoration-color:color-mix(in srgb,var(--gold) 50%,transparent);text-decoration-thickness:1px;text-underline-offset:5px}
.directory-item a:hover{color:var(--clay)}
.directory-item h3{font-size:.92rem}
.directory-item p{font-size:.79rem;line-height:1.85}
.about-intro{background:var(--paper);position:relative}
.about-statement>.arabic-word{color:var(--blue);border-top:1px solid var(--gold);padding-top:20px}
.source-prose{border-color:var(--line)}
.image-dialog{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 30px 100px #0005}
.image-dialog::backdrop{background:#0b2221eb;backdrop-filter:blur(5px)}
.dialog-close{color:var(--ink);border-radius:5px}
.dialog-close:hover{background:var(--pale)}
:root[data-theme='night'] .brand{background:#fbf9f2;border-radius:6px;padding:5px 8px}
:root[data-theme='night'] .nav-wrap>.brand{margin-left:-8px}
:root[data-theme='night'] .button:not(.button-light){color:#142e26;background:#b6d7bf;border-color:#b6d7bf}
:root[data-theme='night'] .button:not(.button-light):hover{background:#d4e8d4;border-color:#d4e8d4}
:root[data-theme='night'] .button-light{background:#fff7e8;color:#21483e}
:root[data-theme='night'] .ink-section{background:#232a49}
:root[data-theme='night'] .hero-visual{background:#25443e}
:root[data-theme='night'] .hero-visual:before{border-color:#b6d7bf38}
:root[data-theme='night'] .hero:before{opacity:.2}
:root[data-theme='night'] .chapter-tint{background:var(--pale)}
:root[data-theme='night'] .interest-section{--ink:#fff9e9;--muted:#d3e1d4;--blue:#e5c884;--line:#53766a;background:#163e35}
:root[data-theme='night'] .interest-section .image-zoom{background:#fcf7e8}
:root[data-theme='night'] .sample-challenge{background:#303d34}
:root[data-theme='night'] .challenge-options span{background:var(--white);border-color:var(--line)}
:root[data-theme='night'] .challenge-options input:checked+span{background:#354e40;border-color:#b6d7bf}
:root[data-theme='night'] .full-passage mark{background:#4b4934;box-shadow:0 2px 0 #dbc588}
:root[data-theme='night'] .skip-link{background:var(--white);color:var(--ink)}
:root[data-theme='night'] .interest-options button[aria-selected=true]{color:#204c40;background:#f8f1df}
:root[data-theme='night'] .interest-options button[aria-selected=true] .interest-index{color:#526b56}
:root[data-theme='night'] .device-tabs button[aria-selected=true]{background:#b6d7bf;color:#142e26}
@media(min-width:1450px){.hero-grid{gap:90px}.hero h1{font-size:7.15rem}.hero-visual{min-height:735px}.interest-panel{grid-template-columns:1.1fr 1fr}.interest-image{max-width:300px}}
@media(max-width:1250px){.nav-wrap{gap:22px}.desktop-nav{gap:19px}.desktop-cta{display:none}.hero-grid{gap:45px}.theme-toggle__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.theme-toggle{width:44px;padding:10px}.hero h1{font-size:5.6rem}.detail-hero-grid{gap:45px}}
@media(max-width:1000px){.hero h1{font-size:4.9rem}.hero-grid{gap:30px}.hero-visual{min-height:600px;padding-inline:30px}.hero-frame{max-width:330px}.interest-layout{grid-template-columns:.75fr 1.25fr;gap:35px}.interest-panel{grid-template-columns:1fr;gap:28px}.interest-image{max-width:280px}.interest-panel h3{font-size:2rem}.interest-panel p{max-width:520px}.interest-panel ol{max-width:550px}.study-panel{padding:35px;gap:30px}.study-panel:has(.product-figure:not(.phone-figure)){grid-template-columns:1fr;gap:30px}.study-panel .product-figure:not(.phone-figure){max-width:600px;margin-inline:auto}.walk-panel{grid-template-columns:1fr;gap:30px}.walk-image{max-width:270px}.detail-hero-grid{grid-template-columns:1fr 1fr;gap:30px}.detail-hero .product-figure:not(.phone-figure){max-width:500px}.detail-hero:after{right:3%;width:43%}.editorial-grid{gap:45px}.sample-challenge{padding:34px 25px}.sample-challenge legend{font-size:.95rem}.branch-choice{font-size:1.6rem}}
@media(max-width:800px){.nav-wrap{gap:18px}.desktop-nav{gap:15px}.desktop-nav a{font-size:.72rem}.hero h1{font-size:4.4rem}.hero-visual{min-height:540px;padding-inline:24px}.hero-frame{max-width:290px}.hero .actions{gap:19px}.lesson-note{display:none}.detail-hero h1{font-size:3.4rem}.detail-hero .product-figure{padding:6px}.detail-hero .product-figure.phone-figure{max-width:275px}.care-grid{gap:28px}.walkthrough-grid{grid-template-columns:.7fr 1.3fr}.interest-layout{grid-template-columns:.75fr 1.25fr;gap:27px}.interest-image{max-width:280px}.interest-panel h3{font-size:1.85rem}.interest-options button{padding:20px 12px;font-size:.78rem}.subject-line{gap:10px 16px}}
@media(max-width:760px){.nav-wrap{justify-content:space-between}.nav-wrap .theme-toggle{margin-left:auto}.mobile-menu nav{z-index:20;background:var(--paper);border-color:var(--line)}.mobile-menu summary{color:var(--ink)}.mobile-menu nav>a:not(.button){border-color:var(--line)}.detail-hero-grid{grid-template-columns:1fr;gap:40px}.detail-hero:after{top:auto;bottom:18px;left:12%;right:12%;width:auto;height:43%}.detail-hero .product-figure:not(.phone-figure){max-width:540px}.detail-hero .product-figure.phone-figure{max-width:290px}.detail-hero .product-figure img{max-height:none}.study-panel{padding:30px}.walk-panel h3{font-size:1.85rem}}
@media(max-width:600px){.hero{padding-top:24px;padding-bottom:48px}.hero:before{top:45%;width:100%;opacity:.4;mask-image:linear-gradient(to top,#000,transparent)}.hero-grid{gap:34px}.hero h1{font-size:4.25rem;line-height:1.02;max-width:470px}.hero-copy .hero-description{font-size:1rem}.hero-copy .quiet-note{font-size:.67rem}.hero-visual{min-height:0;border-radius:180px 180px 15px 15px;padding:39px 32px 22px;width:min(100%,430px);margin:auto}.hero-visual:before{inset:10px;border-radius:170px 170px 9px 9px}.hero-visual:after{top:20px;width:42px;height:3px}.hero-frame{max-width:285px;width:100%}.visual-kicker{font-size:.61rem;margin-bottom:19px}.hero-frame figcaption{font-size:.65rem}.hero-frame .image-zoom{border:4px solid #fffefa}.nav-wrap{gap:15px}.nav-wrap .brand img{width:120px;height:39px}.theme-toggle{min-height:44px;width:44px;flex-shrink:0}.mobile-menu summary{gap:10px;font-size:.72rem}.journey-line{gap:29px 20px}.journey-line article>span{font-size:.59rem;gap:8px}.journey-line h3{font-size:.98rem}.journey-line p{font-size:.79rem}.section-heading h2{font-size:2.65rem}.interest-layout{grid-template-columns:1fr;gap:35px}.interest-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0}.interest-options button{border:1px solid #668779;border-radius:8px 8px 8px 1px;min-height:96px;padding:15px 12px;font-size:.78rem;line-height:1.6}.interest-options button[aria-selected=true]{border-radius:8px 8px 8px 1px;border-color:#f8f1df}.interest-content{min-height:0}.interest-panel{grid-template-columns:1fr;gap:30px}.interest-panel h3{font-size:2rem;max-width:380px}.interest-panel p{font-size:.88rem}.interest-panel li strong{font-size:.84rem}.interest-panel li span{font-size:.75rem}.interest-panel ol{margin-top:24px}.interest-image{max-width:270px;width:100%;padding-top:0;margin-inline:auto}.interest-image figcaption{font-size:.67rem}.reading-pair{margin-top:12px}.phone-figure{max-width:280px}.learning-composition .phone-figure{max-width:280px}.ink-section:after{width:300px;right:-125px;bottom:-310px}.ink-section .zoom-cue{color:#365b50}.two-stories h2{font-size:2.6rem}.story-rule{font-size:.75rem}.daily-layout .product-figure{padding:8px;border-radius:12px 12px 2px 12px}.daily-links>a{padding-block:24px}.daily-links>a>span{font-size:.95rem}.daily-links>a:last-child{border-color:var(--chapter-line)!important}.care-grid{gap:30px}.care-grid h3{font-size:1.14rem}.care-grid p{font-size:.88rem}.small-number{font-size:1.25rem}.faq-list summary{font-size:.88rem;padding-block:24px}.faq-list details p{font-size:.85rem}.closing h2{font-size:2.9rem}.closing:before{left:-240px;bottom:-380px}.footer-main{gap:36px 25px}.footer-main nav a{line-height:1.8}.footer-main h3{margin-bottom:8px}.detail-hero{padding-top:32px}.detail-hero h1{font-size:3.45rem;line-height:1.04}.detail-hero .product-figure:not(.phone-figure){max-width:100%;padding:6px}.detail-hero .product-figure.phone-figure{max-width:280px}.detail-hero:after{height:42%;left:8%;right:8%;bottom:15px}.detail-hero figcaption{font-size:.67rem}.chapter-number{font-size:2.3rem;margin-bottom:22px}.chapter-copy h2{font-size:2.55rem}.chapter .product-figure:not(.phone-figure) .image-zoom{padding:7px}.chapter .product-figure.phone-figure{max-width:280px}.future-note{padding:25px 22px}.three-steps{gap:26px}.three-steps span{font-size:1.2rem}.page-intro h1{font-size:3.5rem}.experience-jumps{gap:8px}.experience-jumps a{font-size:.69rem;padding:9px 12px}.demo-shell{border-radius:12px 12px 3px 12px}.demo-tabs{padding:0 10px;gap:0}.demo-tabs button{min-height:64px;font-size:.7rem;padding-inline:8px}.study-panel,.study-panel:has(.product-figure:not(.phone-figure)){padding:28px 21px;grid-template-columns:1fr;gap:30px}.study-panel h3{font-size:1.9rem}.study-panel .canonical-demo{font-size:clamp(1.9rem,7vw,2.5rem);line-height:2.6;margin-block:30px}.study-panel .product-figure.phone-figure{max-width:270px}.study-panel .product-figure:not(.phone-figure){max-width:100%}.sample-challenge{padding:30px 23px;border-radius:85px 85px 12px 12px}.sample-challenge legend{font-size:.95rem;padding-top:16px}.challenge-letter{font-size:6rem;padding-bottom:18px}.challenge-options span{font-size:.88rem;padding-left:40px}.challenge-options input{left:13px}.challenge-actions{gap:15px}.challenge-feedback{padding:18px}.branch-trunk{padding:30px 18px;border-radius:65px 65px 7px 7px}.branch-arabic{font-size:1.8rem;line-height:2.6;margin:20px 0}.branch-options{gap:12px}.branch-options button{padding:22px 14px;min-height:165px;border-radius:9px 9px 2px 9px}.branch-options button[aria-selected=true]{padding:21px 13px}.branch-options button>span:first-child{font-size:.69rem}.branch-choice{font-size:1.4rem;line-height:2.7}.continuation-label{font-size:.6rem}.branch-detail{padding:26px 19px;border-radius:10px}.full-passage{font-size:1.7rem;line-height:2.7}.compare-verses .full-passage{font-size:1.65rem}.reading-cue{font-size:.8rem}.source-disclosure{font-size:.72rem}.device-stage{padding:34px 20px;border-radius:70px 70px 10px 10px;min-height:560px}.device-mobile{max-width:280px}.device-tabs{gap:6px}.device-tabs button{font-size:.75rem;padding:11px 19px}.walkthrough-grid{grid-template-columns:1fr;gap:32px}.walkthrough-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0}.walkthrough-steps button{border:1px solid var(--chapter-line);border-radius:8px 8px 8px 1px;padding:15px 12px;min-height:78px;font-size:.78rem}.walkthrough-steps button[aria-selected=true]{border-radius:8px 8px 8px 1px}.walk-panel{grid-template-columns:1fr;gap:30px}.walk-panel h3{font-size:2rem}.walk-panel p{font-size:.87rem}.walk-panel .button{font-size:.76rem;min-height:48px;padding:12px 17px}.walk-image{max-width:270px;width:100%;margin-inline:auto}.walk-image figcaption{font-size:.67rem}.demo-reminder{font-size:.75rem;line-height:1.8}.feature-category{padding-top:45px}.feature-category h2{font-size:2rem}.feature-category>header{gap:16px}.feature-category>header:after{margin-bottom:22px}.feature-grid{gap:25px}.directory-item h3{font-size:.91rem}.directory-item p{font-size:.83rem}.directory-item .status-tag{font-size:.56rem;max-width:130px}.category-jumps a{font-size:.65rem;padding:8px 11px}.about-intro h1{font-size:3.6rem}.about-statement>.arabic-word{font-size:5rem;padding-top:20px}.about-statement p:not(.lead){font-size:.91rem}.image-dialog{max-width:96vw;padding-inline:12px}}
@media(max-width:360px){.nav-wrap{gap:10px}.nav-wrap .brand img{width:113px;height:37px}.theme-toggle{width:42px;padding:9px;min-width:42px}.mobile-menu summary{font-size:.68rem;gap:8px}.hero h1{font-size:3.7rem}.hero-visual{padding-inline:24px}.interest-image,.walk-image{max-width:255px}.detail-hero h1{font-size:3rem}.demo-tabs button{font-size:.66rem;padding-inline:6px}.branch-options{grid-template-columns:1fr}.branch-options button{min-height:130px}.sample-challenge{padding-inline:20px}.challenge-actions{flex-wrap:wrap}.device-tabs button{padding-inline:15px}.directory-item>div{display:block}.directory-item .status-tag{margin-top:10px}.full-passage{font-size:1.6rem}.study-panel .canonical-demo{font-size:1.9rem}}
@media(prefers-reduced-motion:no-preference){.faq-list summary span{transition:transform .2s}.interest-panel:not([hidden]),.walk-panel:not([hidden]),.device-panel:not([hidden]){animation:riwaq-reveal .28s ease both}@keyframes riwaq-reveal{from{opacity:.5}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.button:hover{transform:none}}
@media(forced-colors:active){.button,.theme-toggle,.demo-tabs button[aria-selected=true],.branch-options button[aria-selected=true],.interest-options button[aria-selected=true],.walkthrough-steps button[aria-selected=true],.device-tabs button[aria-selected=true]{outline:2px solid ButtonText}.hero:before,.hero-visual:before,.hero-visual:after,.interest-section:before,.ink-section:after,.closing:before{display:none}.full-passage mark{outline:1px solid Highlight}}
@media print{.hero:before,.hero-visual:before,.hero-visual:after,.interest-section:before,.closing:before,.theme-toggle{display:none}.section,.interest-section,.ink-section{background:white!important;color:#203d39!important}.section p{color:#46594e!important}.image-zoom{box-shadow:none!important}body{background:white!important;color:#203d39!important}}

.foundation-choice{padding-block:20px 55px}.foundation-sample{border-block:1px solid var(--line)}.foundation-sample>summary{padding:24px 0;font-weight:550;cursor:pointer}.foundation-sample .container{width:100%}.distinction-shared{padding:18px 0 26px;border-bottom:1px solid var(--line);margin-bottom:24px}.distinction-shared .distinction-full-arabic{font-size:clamp(1.5rem,2.3vw,2rem);line-height:2.3}

@media(max-width:600px){.hero h1{font-size:clamp(2.75rem,11vw,3.4rem);line-height:1.04;max-width:360px}.hero .hero-copy{padding-top:14px}.hero .hero-description{margin-top:22px}.hero .actions{margin-top:24px}.hero .quiet-note{font-size:.73rem;line-height:1.6}.hero .hero-visual{margin-top:8px}}

.hero-preview-tabs{display:flex;justify-content:center;gap:5px;padding:5px;border:1px solid var(--line);border-radius:100px;background:var(--paper);margin:0 0 18px;position:relative;z-index:1}.hero-preview-tabs button{min-height:40px;padding:9px 15px;border:0;border-radius:100px;background:transparent;color:var(--ink);font-size:.73rem;font-weight:550}.hero-preview-tabs button[aria-selected=true]{background:var(--blue);color:var(--white);box-shadow:0 3px 10px #153d3215}.hero-view[hidden]{display:none}.hero-view{width:100%;display:flex;justify-content:center}.hero-view .hero-frame{width:100%;max-width:355px}.hero-view .hero-frame img{max-height:500px;width:auto;max-width:100%;margin-inline:auto;object-fit:contain}:root[data-theme=night] .hero-preview-tabs button[aria-selected=true]{color:#153b31}@media(max-width:600px){.hero-preview-tabs{margin-bottom:16px}.hero-preview-tabs button{min-height:44px;font-size:.72rem;padding-inline:14px}.hero-view .hero-frame{max-width:255px}.hero-view .hero-frame img{max-height:none;width:100%}}

/* Touch target and diacritic-safe breathing room verified in the final review. */
:root .theme-toggle{min-width:44px;min-height:44px}.distinction-shared{padding-inline:clamp(20px,4vw,30px);min-width:0}.distinction-shared .distinction-full-arabic{max-width:100%;white-space:normal;word-break:normal;overflow-wrap:normal}
