/* Saktah landing · tokens follow the Saktah App style guide in Figma
   (Primary yellow scale, Secondary Green, Taviraj headings, SF Pro body, KFGQPC HAFS for Arabic). */

@font-face { font-family: "Taviraj"; src: url("/assets/fonts/taviraj-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Taviraj"; src: url("/assets/fonts/taviraj-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Original, unmodified KFGQPC file (its licence forbids altering the font). */
@font-face { font-family: "KFGQPC HAFS"; src: url("/assets/fonts/kfgqpc-uthmanic-script-hafs.otf") format("opentype"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: light;
  --bg: #FEFCE8;            /* Primary/50 · the site is light-only */
  --bg-2: #FEF9C2;          /* Primary/100 */
  --ink: #432004;           /* Primary/950 */
  --text: #2B1D0B;
  --muted: #6B5233;
  --accent: #A65F00;        /* Primary/700 */
  --honey: #F0B100;         /* Primary/500 [Main] */
  --honey-deep: #D08700;    /* Primary/600 */
  --honey-soft: #FFF085;    /* Primary/200 */
  --green: #3B715C;         /* Secondary/Green */
  --line: rgba(67, 32, 4, .15);
  --line-2: rgba(67, 32, 4, .08);
  --btn-text: #2B1704;
  --band-bg: #432004;
  --surface: #FEF6BC;        /* alternating section surface */
  --surface-line: rgba(67, 32, 4, .12);
  --band-text: #FEF9C2;
  --band-muted: rgba(254, 249, 194, .74);
  --glow-a: rgba(255, 223, 32, .42);
  --glow-b: rgba(255, 222, 60, .30);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v32' fill='none' stroke='%23432004' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E");

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --serif: "Taviraj", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --arabic: "KFGQPC HAFS", "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --section: clamp(76px, 10vw, 136px);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--pattern);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--honey-deep); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.55rem + 5.4vw, 5.5rem); line-height: 1.02; letter-spacing: -.022em; }
h2 { font-size: clamp(2.1rem, 1.45rem + 2.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.014em; }
h3 { font-size: 1.375rem; line-height: 1.25; }
.ar { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; font-weight: 400; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { padding-top: calc(env(safe-area-inset-top, 0px) + 18px); padding-bottom: 18px; position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand-name { display: grid; line-height: 1; }
.brand-name b { font: 400 1.6rem/1 var(--serif); letter-spacing: .01em; }
.brand-name small { font: 500 .66rem/1.2 var(--sans); letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { color: var(--text); text-decoration: none; font-size: .9375rem; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: var(--btn-text); }
@media (max-width: 720px) { .nav .nav-extra { display: none; } }

/* ---------- Buttons & store badge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--honey); color: var(--btn-text); font: 600 .9375rem/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #FDC700; text-decoration: none; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: var(--line-2); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .875rem; }

p.store { margin: 0; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; min-height: 56px; border-radius: 14px; background: #1B1207; color: #FEF9C2; text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: grid; line-height: 1.12; }
.store small { font: 500 .72rem/1.2 var(--sans); opacity: .82; }
.store b { font: 600 1.15rem/1.15 var(--sans); letter-spacing: -.01em; }
a.store:hover { background: #2B1D0B; text-decoration: none; }

/* ---------- Hero ---------- */
body { position: relative; overflow-x: clip; }
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 480px at 74% 38%, var(--glow-a), transparent 70%),
    radial-gradient(420px 340px at 10% 14%, var(--glow-b), transparent 70%);
}
.hero { position: relative; padding-block: clamp(20px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.hero-copy h1 { max-width: 12ch; }
.hero-lede { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3rem); line-height: 1.55; color: var(--text); margin: 26px 0 34px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.hero-note { margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.hero-stage { display: grid; justify-items: center; gap: 16px; }
.demo-controls { display: flex; align-items: center; gap: 12px; min-height: 38px; font-size: .875rem; color: var(--muted); }
.demo-controls .btn { color: var(--text); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 11ch; }
}

/* ---------- Phone mockup (screens are drawn at the app's 402 x 874 design size, then scaled) ---------- */
.device {
  --pw: 330;
  --bz: 11px;
  position: relative;
  width: calc(var(--pw) * 1px + 2 * var(--bz));
  padding: var(--bz);
  border-radius: calc(var(--pw) * .148px + var(--bz));
  background: linear-gradient(145deg, #3A2B19, #140D05 40%, #2A1E10);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 200, .12), 0 50px 90px -40px rgba(67, 32, 4, .55), 0 18px 36px -18px rgba(67, 32, 4, .4);
}
.screen { position: relative; width: calc(var(--pw) * 1px); height: calc(var(--pw) * 874px / 402); border-radius: calc(var(--pw) * .135px); overflow: hidden; background: #FEFCE8; isolation: isolate; }
.canvas {
  position: absolute; left: 0; top: 0; width: 402px; height: 874px;
  transform: scale(calc(var(--pw) / 402)); transform-origin: 0 0;
  font-family: var(--sans); color: rgba(0, 0, 0, .9); line-height: 1.3;
  background:
    radial-gradient(440px 330px at 64% -6%, rgba(255, 223, 32, .40), transparent 72%),
    radial-gradient(150px 150px at -2% 62%, rgba(255, 222, 60, .34), transparent 72%),
    radial-gradient(200px 200px at 104% 88%, rgba(255, 222, 60, .34), transparent 72%),
    #FEFCE8;
}
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #050302; z-index: 5; }
.status { position: absolute; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 52px; font: 600 17px/1 var(--sans); color: #000; z-index: 4; }
.status svg { height: 13px; width: auto; }
.status .icons { display: flex; gap: 6px; align-items: center; }
@media (max-width: 880px) { .device { --pw: 300; } }
@media (max-width: 380px) { .device { --pw: 268; } }

/* Scenes */
.scene { position: absolute; inset: 0; transition: opacity .55s ease, transform .55s ease; }
.scene[hidden] { display: block; opacity: 0; transform: scale(.985); pointer-events: none; visibility: hidden; }

/* Recite screen */
.r-head { position: absolute; left: 16px; right: 16px; top: 62px; height: 40px; display: flex; align-items: center; gap: 14px; }
.r-back { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .6); display: grid; place-items: center; }
.r-back svg { width: 22px; height: 22px; }
.r-title { font: 400 20px/1 var(--serif); color: rgba(0, 0, 0, .9); }
.r-div { width: 1px; height: 20px; background: rgba(0, 0, 0, .18); }
.r-ar { font-family: var(--arabic); font-size: 24px; line-height: 1; direction: rtl; }
.r-count { position: absolute; left: 16px; right: 16px; top: 120px; text-align: center; font-size: 14px; color: #D08700; font-variant-numeric: tabular-nums; }
.r-list { position: absolute; left: 16px; right: 16px; top: 151px; height: 548px; border-radius: 16px; background: rgba(255, 255, 255, .5); overflow: hidden; }
.r-track { transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.ayah { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 12px 20px; position: relative; }
.ayah + .ayah::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: rgba(0, 0, 0, .08); }
.ind { width: 44px; flex: none; display: flex; align-items: center; gap: 6px; font: 400 18px/1 var(--sans); color: rgba(0, 0, 0, .45); }
.ind svg { width: 16px; height: 16px; opacity: 0; transition: opacity .25s ease; }
.ind .ic-wave { position: absolute; left: 43px; }
.ayah .txt { flex: 1; font-family: var(--arabic); direction: rtl; text-align: right; font-size: 26px; line-height: 1.75; color: rgba(0, 0, 0, .7); transition: color .3s ease; }
.ayah.is-done .txt { color: #3B715C; }
.ayah.is-done .ic-check { opacity: 1; }
.ayah.is-current .txt { color: #A65F00; }
.ayah.is-current .ic-wave { opacity: 1; }
.ayah.is-current .ic-wave rect { animation: wave 1s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.ayah.is-current .ic-wave rect:nth-child(2) { animation-delay: .15s; }
.ayah.is-current .ic-wave rect:nth-child(3) { animation-delay: .3s; }
.ayah.is-current .ic-wave rect:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

.r-foot { position: absolute; left: 16px; right: 16px; top: 716px; height: 140px; text-align: center; }
.r-foot .state { position: absolute; inset: 0; transition: opacity .35s ease; }
.r-foot .state[hidden] { display: block; opacity: 0; visibility: hidden; }
.r-foot b { display: block; font: 600 14px/1.3 var(--sans); color: rgba(0, 0, 0, .9); }
.r-foot small { display: block; font-size: 12px; color: rgba(0, 0, 0, .5); margin-top: 4px; }
.mic { position: relative; width: 68px; height: 68px; margin: 16px auto 0; border-radius: 50%; background: #F0B100; display: grid; place-items: center; }
.mic svg { width: 28px; height: 28px; }
.mic::before, .mic::after { content: ""; position: absolute; border-radius: 50%; inset: -7px; border: 1.4px solid #FFDF20; }
.mic::after { inset: -14px; border-color: #FFF085; }
.listening .mic::after { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.app-btn { display: flex; align-items: center; justify-content: center; height: 49px; border-radius: 999px; background: #F0B100; color: #F2FBF9; font: 600 14px/1 var(--sans); letter-spacing: -.01em; }
.app-btn.outline { background: transparent; color: #F0B100; box-shadow: inset 0 0 0 1px #F0B100; }
.r-foot .app-btn { margin-top: 30px; }
.r-toast { position: absolute; left: 50%; top: 400px; transform: translate(-50%, 8px); padding: 11px 16px; border-radius: 14px; background: #fff; color: #3B715C; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(59, 113, 92, .45); opacity: 0; transition: opacity .3s ease, transform .3s ease; display: flex; align-items: center; gap: 8px; }
.r-toast svg { width: 16px; height: 16px; }
.r-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Home · open screen */
.h-greet { position: absolute; left: 16px; right: 16px; top: 86px; text-align: center; }
.h-greet span { font-size: 16px; color: rgba(0, 0, 0, .6); }
.h-greet strong { display: block; margin-top: 8px; font: 400 28px/1.2 var(--serif); color: rgba(0, 0, 0, .9); letter-spacing: .01em; }
.h-card { position: absolute; left: 16px; right: 16px; top: 206px; border-radius: 16px; background: #FFF085; padding: 20px; overflow: hidden; }
.h-card .lbl { font: 600 16px/1.3 var(--sans); }
.h-card .lbl small { display: block; font: 400 13px/1.4 var(--sans); color: rgba(0, 0, 0, .6); }
.h-timer { text-align: center; margin: 22px 0 26px; }
.h-timer b { display: block; font: 400 52px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.h-timer small { display: block; font-size: 13px; color: rgba(0, 0, 0, .6); margin-top: 6px; }
.h-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-list { position: absolute; left: 16px; right: 16px; top: 494px; }
.h-list > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 12px; color: rgba(0, 0, 0, .8); }
.rows { border-radius: 16px; background: rgba(255, 255, 255, .5); padding: 4px 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.row + .row { border-top: 1px solid rgba(0, 0, 0, .08); }
.row b { display: block; font: 400 17px/1.25 var(--serif); color: rgba(0, 0, 0, .9); }
.row small { display: block; font-size: 12px; color: rgba(0, 0, 0, .6); margin-top: 3px; }
.row em { font-style: normal; font-size: 15px; color: #3B715C; }
.tabbar { position: absolute; left: 50%; bottom: 26px; width: 266px; margin-left: -133px; height: 58px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: 0 8px 24px -12px rgba(67, 32, 4, .35), inset 0 0 0 1px rgba(0, 0, 0, .05); display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 999px; font: 600 10px/1 var(--sans); color: #1A1A1A; }
.tab svg { width: 22px; height: 22px; }
.tab.on { background: #F0B100; color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Section separation: alternating surfaces, hairlines, and an eyebrow label per section */
.alt { background: var(--surface); box-shadow: inset 0 1px 0 var(--surface-line), inset 0 -1px 0 var(--surface-line); isolation: isolate; }
.band { box-shadow: inset 0 1px 0 rgba(255, 223, 32, .22); }
main p.eyebrow { display: flex; max-width: none; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
main p.eyebrow::before { content: ""; width: 26px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: .7; }
main .meaning p.eyebrow { justify-content: center; margin-inline: auto; }
.meaning .eyebrow::after { content: ""; width: 26px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: .7; }
main .band p.eyebrow { color: #FFDF20; }
.steps .vig { min-height: 280px; }

/* Meaning */
.meaning { text-align: center; padding-block: clamp(64px, 8vw, 112px); }
.meaning .word { font-size: clamp(5rem, 3.4rem + 7vw, 9.5rem); line-height: 1.25; color: var(--accent); margin: 18px 0 8px; }
.meaning p { margin-inline: auto; font-size: 1.125rem; }
.meaning .src { font-size: .875rem; color: var(--muted); margin-top: 6px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); counter-reset: step; position: relative; }
.step { display: grid; grid-template-rows: auto auto 1fr; gap: 18px; }
.step-no { display: flex; align-items: center; gap: 12px; font: 400 1.05rem/1 var(--serif); color: var(--accent); }
.step-no::before { content: counter(step); counter-increment: step; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--honey-deep); font: 500 1rem/1 var(--serif); color: var(--accent); flex: none; }
.step-no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step:last-child .step-no::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } .step:nth-child(2) .step-no::after { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step-no::after { display: none; } }

/* App UI vignettes (always drawn in the app's light palette) */
.vig { --r: 22px; position: relative; border-radius: var(--r); padding: 22px; min-height: 252px; display: grid; align-content: center; color: rgba(0, 0, 0, .9); font-family: var(--sans); line-height: 1.3;
  background:
    radial-gradient(240px 170px at 78% 0%, rgba(255, 223, 32, .45), transparent 72%),
    radial-gradient(160px 140px at 0% 100%, rgba(255, 222, 60, .28), transparent 72%),
    #FEFCE8;
  box-shadow: inset 0 0 0 1px rgba(67, 32, 4, .09); overflow: hidden; }
.vig .cap { font: 400 17px/1.25 var(--serif); text-align: center; margin-bottom: 14px; color: rgba(0, 0, 0, .9); }

.apps { display: grid; grid-template-columns: repeat(3, 56px); gap: 10px 22px; justify-content: center; }
.tile { display: grid; justify-items: center; gap: 5px; }
.tile small { font: 500 11px/1.2 var(--sans); color: rgba(0, 0, 0, .72); letter-spacing: -.005em; }
.app { position: relative; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(120, 60, 0, .16), 0 6px 14px -8px rgba(166, 95, 0, .7); }
.app svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgba(120, 60, 0, .25)); }
.app .tick { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: #3B715C; box-shadow: 0 0 0 2.5px #FEFCE8; display: grid; place-items: center; }
.app .tick svg { width: 12px; height: 12px; filter: none; }
.a1 { background: linear-gradient(160deg, #FFD447, #EBA600); }
.a2 { background: linear-gradient(160deg, #FCC838, #DD9400); }
.a3 { background: linear-gradient(160deg, #F4B423, #CC8300); }
.a4 { background: linear-gradient(160deg, #FFCC3F, #E59D00); }
.a5 { background: linear-gradient(160deg, #F2B02C, #C98000); }
.a6 { background: linear-gradient(160deg, #FFD851, #E9A300); }
.counts { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 12.5px; color: rgba(0, 0, 0, .6); }
.counts b { color: rgba(0, 0, 0, .9); font-weight: 600; }

.shield { background: #fff; border-radius: 18px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 14px 30px -18px rgba(67, 32, 4, .35); }
.shield img { width: 46px; height: auto; margin: 0 auto 12px; }
.shield b { display: block; font: 600 16px/1.3 var(--sans); }
.shield small { display: block; font-size: 13px; color: rgba(0, 0, 0, .6); margin: 6px 0 16px; }
.shield .app-btn { height: 44px; }

.sheet { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 14px 30px -18px rgba(67, 32, 4, .35); }
.pick { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; color: rgba(0, 0, 0, .6); }
.pick + .pick { border-top: 1px solid rgba(0, 0, 0, .07); }
.pick b { font: 400 16px/1.2 var(--serif); color: rgba(0, 0, 0, .9); }
.commit { margin-top: 10px; font-size: 12.5px; }
.commit .top { white-space: nowrap; font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.commit .top span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.commit svg { width: 15px; height: 15px; }
.bar { height: 6px; border-radius: 6px; background: rgba(59, 113, 92, .15); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: #3B715C; border-radius: 6px; }

.mini-open { background: #FFF085; border-radius: 18px; padding: 18px; }
.mini-open .lbl { font: 600 14px/1.3 var(--sans); }
.mini-open .h-timer { margin: 12px 0 16px; }
.mini-open .h-timer b { font-size: 42px; }
.mini-open .h-actions { gap: 8px; }
.mini-open .h-actions .app-btn { height: 38px; font-size: 12px; padding: 0 6px; white-space: nowrap; }

/* Your terms + Your day */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split.wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5.5vw, 88px); }
.split.wide.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split.wide, .split.wide.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split h2 + p { margin-top: 20px; font-size: 1.125rem; }

.perks { margin-top: 32px; display: grid; gap: 12px; }
.perk { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(67, 32, 4, .07), 0 12px 26px -22px rgba(67, 32, 4, .55); }
.perk h3 { font-size: 1.15rem; line-height: 1.3; margin: 2px 0 4px; }
.perk p { margin: 0; color: var(--muted); font-size: .975rem; }
.perk-ico { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #A65F00; background: linear-gradient(160deg, #FFF6B0, #FFE163); box-shadow: inset 0 0 0 1px rgba(166, 95, 0, .14); }
.perk-ico svg { width: 24px; height: 24px; }
.perk-ico.no::after { content: ""; position: absolute; width: 30px; height: 2.4px; border-radius: 2px; background: #A65F00; transform: rotate(-45deg); box-shadow: 0 0 0 2px #FFEB8A; }

/* Terms configurator (light app palette, like the other vignettes) */
.terms { padding: clamp(18px, 3vw, 28px); display: grid; gap: 22px; align-content: start; min-height: 0; }
.deal { background: #fff; border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 16px 32px -22px rgba(67, 32, 4, .5); }
.deal-k { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(0, 0, 0, .45); }
.deal-line { margin: 8px 0 18px; max-width: none; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.6rem)/1.32 var(--serif); color: rgba(0, 0, 0, .9); }
.deal-line b { font-weight: 500; white-space: nowrap; }
.deal-line .r { color: #3B715C; }
.deal-line .o { color: #A65F00; }
.tl { display: flex; align-items: stretch; gap: 4px; height: 38px; }
.tl > span { display: grid; place-items: center; border-radius: 10px; min-width: 0; transition: flex-grow .55s cubic-bezier(.2, .8, .2, 1); }
.tl > .tl-r { flex: var(--rec) 1 0; min-width: 42px; background: #3B715C; color: #fff; }
.tl > .tl-o { flex: var(--open) 1 0; background: linear-gradient(90deg, #FFD447, #F0B100); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.tl > .tl-l { flex: 0 0 46px; color: #6B5233; background: repeating-linear-gradient(-45deg, rgba(67, 32, 4, .12) 0 4px, rgba(67, 32, 4, .04) 4px 8px); }
.tl svg { width: 17px; height: 17px; }
.tl-k { display: flex; gap: 4px; margin-top: 8px; font-size: 11.5px; color: rgba(0, 0, 0, .55); }
.tl-k span { min-width: 0; white-space: nowrap; transition: flex-grow .55s cubic-bezier(.2, .8, .2, 1); }
.tl-k span:nth-child(1) { flex: var(--rec) 1 0; min-width: 42px; color: #3B715C; font-weight: 600; }
.tl-k span:nth-child(2) { flex: var(--open) 1 0; text-align: center; color: #A65F00; font-weight: 600; }
.tl-k span:nth-child(3) { flex: 0 0 46px; text-align: right; }
.set-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: rgba(0, 0, 0, .55); margin-bottom: 10px; }
.set-label b { font: 400 18px/1.2 var(--serif); color: rgba(0, 0, 0, .9); }
.chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.chip { appearance: none; border: 0; margin: 0; cursor: pointer; min-width: 0; padding: 11px 6px; white-space: nowrap; border-radius: 999px; font: 500 14px/1 var(--sans); color: rgba(0, 0, 0, .8); background: rgba(255, 255, 255, .88); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .1s ease; }
.chip:hover { box-shadow: inset 0 0 0 1.5px rgba(166, 95, 0, .45); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: #F0B100; color: #2B1704; font-weight: 600; box-shadow: 0 8px 16px -10px rgba(166, 95, 0, .9); }
[data-group="recite"] .chip[aria-pressed="true"] { background: #3B715C; color: #fff; box-shadow: 0 8px 16px -10px rgba(59, 113, 92, .95); }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .78); font-size: 15px; color: rgba(0, 0, 0, .85); }
.set-row .sr-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FFF085; color: #A65F00; flex: none; }
.set-row .sr-ico svg { width: 18px; height: 18px; }
.set-row em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: #3B715C; background: rgba(59, 113, 92, .1); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* Your day */
.day { padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-content: start; min-height: 0; }
.day-panel { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 16px 32px -22px rgba(67, 32, 4, .5); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.day-head b { font: 400 22px/1.2 var(--serif); color: rgba(0, 0, 0, .9); }
.day-head span { font-size: 12.5px; color: rgba(0, 0, 0, .55); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.vs > div { border-radius: 14px; padding: 12px 14px 10px; }
.vs-r { background: rgba(59, 113, 92, .08); color: #3B715C; }
.vs-a { background: rgba(240, 177, 0, .14); color: #A65F00; }
.vs span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(0, 0, 0, .62); }
.vs span i { width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.vs-r span i { background: #3B715C; }
.vs-a span i { background: #F0B100; }
.vs strong { display: block; margin-top: 2px; font: 400 clamp(2rem, 1.6rem + 1vw, 2.5rem)/1.1 var(--serif); }
.ratio { display: flex; gap: 3px; height: 8px; margin-top: 12px; }
.ratio span { border-radius: 99px; }
.ratio span:first-child { background: #3B715C; min-width: 8px; }
.ratio span:last-child { background: linear-gradient(90deg, #FFD447, #F0B100); }
.dchart { margin-top: 20px; }
.dbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 3px; height: 104px; border-bottom: 1px solid rgba(0, 0, 0, .12); background: linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px) 0 0 / 100% 50%; }
.dbars i { display: block; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(#FFD447, #F0B100); transform-origin: bottom; }
.dbars i.z { height: 3px; border-radius: 2px; background: rgba(67, 32, 4, .1); }
.dmarks { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 16px; align-items: center; margin-top: 4px; }
.dmarks b { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: #3B715C; box-shadow: 0 0 0 2.5px rgba(59, 113, 92, .18); }
.axis { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(0, 0, 0, .45); margin-top: 4px; }
.dlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: rgba(0, 0, 0, .6); }
.dlegend span { display: flex; align-items: center; gap: 6px; }
.dlegend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.lg-r::before { background: #3B715C; }
.dlegend .lg-a::before { border-radius: 3px; background: #F0B100; }
.act-line { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.45; color: rgba(0, 0, 0, .85); }
.act-line .ico { width: 40px; height: 40px; border-radius: 12px; background: #FFF085; display: grid; place-items: center; flex: none; }
.act-line .ico svg { width: 22px; height: 22px; }
.act-line b { color: #A65F00; font-weight: 600; }
/* bars grow in when the card scrolls into view (only armed by JS, never without it) */
.day.armed .dbars i { transform: scaleY(0); }
.day.armed .dmarks b { transform: scale(0); }
.day.in .dbars i { transform: scaleY(1); transition: transform .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 35ms); }
.day.in .dmarks b { transform: scale(1); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 35ms + 350ms); }
@media (max-width: 420px) { .chips { gap: 6px; } .chip { font-size: 13.5px; padding-inline: 2px; } }
@media (prefers-reduced-motion: reduce) { .tl > span, .tl-k span, .chip { transition: none; } }

/* Privacy band */
.band { background: var(--band-bg); color: var(--band-text); }
.band h2 { color: var(--band-text); max-width: 14ch; }
.band .lede { margin-top: 20px; font-size: 1.125rem; color: var(--band-muted); max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.facts li { padding: 4px 28px 4px 0; }
.facts li + li { padding-left: 28px; box-shadow: inset 1px 0 0 rgba(254, 249, 194, .18); }
.facts h3 { color: var(--band-text); font-size: 1.25rem; margin-bottom: 8px; }
.facts p { color: var(--band-muted); font-size: 1rem; margin: 0; }
.band a { color: #FFDF20; }
.band .more { margin-top: 40px; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; gap: 28px; } .facts li + li { padding-left: 0; box-shadow: none; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; transition: transform .25s ease; --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0v14M0 7h14' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Closing */
.closing { text-align: center; padding-block: clamp(80px, 10vw, 144px); position: relative; overflow: clip; }
.closing::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 640px; z-index: -1; background: radial-gradient(560px 300px at 50% 46%, var(--glow-b), transparent 72%); pointer-events: none; }
.closing .ayah-quote { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); line-height: 1.8; color: var(--accent); }
.closing .tr { font: 400 1.25rem/1.5 var(--serif); color: var(--ink); margin: 6px auto 4px; max-width: 40ch; }
.closing .ref { font-size: .875rem; color: var(--muted); }
.closing h2 { margin: clamp(48px, 6vw, 72px) auto 30px; max-width: 20ch; }
.closing .store { display: flex; width: fit-content; margin: 0 auto; }
.closing p { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin-top: 22px; font-size: .8125rem; max-width: none; }

/* ---------- Subpages ---------- */
.page { padding-block: clamp(36px, 6vw, 80px) var(--section); }
.page-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.page-head p { font-size: 1.15rem; margin-top: 18px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 56px 0 16px; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--honey-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.meta { color: var(--muted); font-size: .9375rem; }
.toc { margin: 28px 0 8px; padding: 22px 26px; border-radius: 18px; background: var(--bg-2); }
.toc b { display: block; font: 400 1.15rem/1.3 var(--serif); color: var(--ink); margin-bottom: 10px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.toc li { break-inside: avoid; }
.summary-box { margin: 36px 0 8px; padding: 24px 26px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--honey); }
.summary-box h2 { margin-top: 0; }
.summary-box ul { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.callout { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); color: var(--ink); margin: 22px 0; }
.notfound { min-height: 56vh; display: grid; align-content: center; }
