/* RIZQ marketing site · built on RIZQ Brand Guidelines v1.0 tokens.
   Proposed web additions (not in v1.0, flagged for review):
   - display-xl / display-l / display-m: larger Inter Tight 800 sizes for marketing headlines.
   - lede: Inter 400 18/28 for long-form web reading.
   - radius.tile = radius.sheet (32) for large marketing tiles. */

/* ---------- Tokens ---------- */
:root,
[data-theme="dark"] {
  --bg-canvas: #0F2A24;
  --bg-surface: #16362F;
  --bg-surface-raised: #1F433B;
  --bg-sheet: #2E2E2E;
  --text-heading: #F4EFE3;
  --text-primary: #F4EFE3;
  --text-secondary: #A9B5AE;
  --text-accent: #C2A46F;
  --action-primary: #F4EFE3;
  --action-primary-label: #0F2A24;
  --control-selected: #C2A46F;
  --control-selected-label: #0F2A24;
  --status-positive: #5BC79A;
  --status-negative: #E8826B;
  --hairline: rgb(244 239 227 / .08);
  --scrim: rgb(5 14 12 / .62);
  --lattice-alpha: .08;

  /* Fixed brand values (same in both modes) */
  --bezel: #050E0C; /* scrim base: the dark edge of an app preview */
  --emerald: #003B2F;
  --forest: #0F2A24;
  --gold: #C2A46F;
  --parchment: #F4EFE3;
  --graphite: #2E2E2E;
  --hero-secondary: #A9B5AE;
  --hero: radial-gradient(120% 62% at 50% 0%, #17705A 0%, #003B2F 46%, #0F2A24 84%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23C2A46F' stroke-width='1'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3C/svg%3E");

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-key: 10px; --radius-input: 16px; --radius-card: 20px; --radius-sheet: 32px; --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg-canvas: #F4EFE3;
  --bg-surface: #FFFDF8;
  --bg-surface-raised: #EAE3D3;
  --bg-sheet: #FFFDF8;
  --text-heading: #0F2A24;
  --text-primary: #2E2E2E;
  --text-secondary: #5F635C;
  --text-accent: #7A5E2A;
  --action-primary: #003B2F;
  --action-primary-label: #F4EFE3;
  --control-selected: #003B2F;
  --control-selected-label: #F4EFE3;
  --status-positive: #1E7A55;
  --status-negative: #B04A35;
  --hairline: rgb(15 42 36 / .08);
  --lattice-alpha: .04;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 400 15px/21px var(--font-text);
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 1.5px solid var(--control-selected); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 20px; height: 20px; }

.skip {
  position: fixed; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--action-primary); color: var(--action-primary-label);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); font-weight: 600;
}
.skip:focus { top: var(--space-4); }

/* ---------- Type (v1.0 nine styles + proposed web display sizes) ---------- */
.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-heading);
  text-wrap: balance;
}
.display-xl { font-size: clamp(44px, 7.2vw, 104px); line-height: 1; letter-spacing: -0.04em; }
.display-l  { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.display-m  { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.headline   { font: 700 17px/22px var(--font-text); color: var(--text-heading); }
.lede       { font: 400 18px/28px var(--font-text); color: var(--text-secondary); max-width: 34em; text-wrap: pretty; }
.meta       { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.micro      { font: 600 11px/14px var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.eyebrow    { margin-bottom: var(--space-4); }
.eyebrow--gold { color: var(--text-accent); }
.fine       { font: 400 13px/17px var(--font-text); color: var(--text-secondary); margin-top: var(--space-6); }

/* ---------- Logo ---------- */
/* The RIZQ logo (Inter Tight 800 outlines, calligraphy texture, gold full stop) is one SVG:
   assets/img/rizq-logo.svg, built by tools/build_logo.py. Parchment on Night Forest, so it only
   goes on dark surfaces. */
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark img { display: block; height: 22px; width: auto; }
.footer .wordmark img { height: 28px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-pill);
  font: 600 17px/1 var(--font-text); white-space: nowrap;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.pill:active { transform: scale(.97); }
.pill--primary { background: var(--action-primary); color: var(--action-primary-label); }
.pill--secondary { background: var(--bg-surface-raised); color: var(--text-primary); }
.pill--dense { height: 44px; padding: 0 var(--space-4); font-size: 15px; }

/* ---------- Materials ---------- */
.glow { background: var(--hero); }
.glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 128px; opacity: .05; mix-blend-mode: overlay;
}
.lattice {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--lattice); background-size: 48px; opacity: var(--lattice-alpha);
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 30%, transparent 100%);
}

/* ---------- Nav (floating pill, like the tab bar) ---------- */
.nav {
  position: fixed; z-index: 50; top: var(--space-3); left: var(--space-3); right: var(--space-3);
  height: 64px; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 0 var(--space-3) 0 var(--space-6);
  border-radius: var(--radius-pill);
  transition: background-color 280ms var(--ease-out), backdrop-filter 280ms var(--ease-out);
}
.nav.is-solid {
  background: rgb(22 54 47 / .88);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nav__links { display: flex; gap: var(--space-8); }
.nav__links a { font: 600 13px/16px var(--font-text); color: var(--text-secondary); transition: color 200ms var(--ease-out); }
.nav__links a:hover { color: var(--text-primary); }
.nav .pill { background: var(--bg-surface-raised); color: var(--text-primary); }
/* Numerals toggle (proposed web component): two-segment pill, 44pt tap targets.
   Selected = control.selected fill + bolder label, so state never relies on colour alone. */
.numtoggle {
  display: inline-flex; height: 44px; border-radius: var(--radius-pill);
  background: var(--bg-surface-raised);
}
.numtoggle__opt {
  min-width: 44px; height: 44px; padding: 0 var(--space-1); margin: 0;
  border: 4px solid transparent; background-clip: padding-box; border-radius: var(--radius-pill);
  background-color: transparent; color: var(--text-secondary); cursor: pointer;
  font: 600 13px/1 var(--font-text); font-variant-numeric: lining-nums;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.numtoggle__opt:hover { color: var(--text-primary); }
.numtoggle__opt.is-on {
  background-color: var(--control-selected); color: var(--control-selected-label); font-weight: 700;
}
.numtoggle__opt:focus-visible { outline-offset: 0; }
.phone-stage { display: grid; justify-items: center; gap: var(--space-6); justify-self: center; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Stage: floating card → dive in ---------- */
.stage {
  --hero-out: 0; --fill: 0; --intro: 0; --zoom: 0;
  position: relative; height: 500vh; background: var(--bg-canvas);
}
.stage__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.stage__sticky > * { position: absolute; inset: 0; }

.hero {
  z-index: 1;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: calc(64px + var(--space-12)) var(--gutter) clamp(var(--space-8), 6vh, var(--space-16));
  opacity: calc(1 - var(--hero-out));
  transform: translateY(calc(var(--hero-out) * -48px)) scale(calc(1 - var(--hero-out) * .04));
}
.hero__eyebrow { color: var(--hero-secondary); }
.hero__logo {
  align-self: center; width: clamp(300px, 60vw, 980px); height: auto;
  user-select: none; -webkit-user-drag: none;
}
.hero__foot {
  width: 100%; max-width: 1200px;
  display: flex; align-items: end; justify-content: space-between; gap: var(--space-6);
}
.hero__title {
  font-family: var(--font-display); font-weight: 800; color: var(--parchment);
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; max-width: 12em;
  text-wrap: balance;
}
.hero__cue {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  font: 600 13px/16px var(--font-text); color: var(--hero-secondary);
}
.hero__cue .icon { width: 20px; height: 20px; animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.stage__canvas {
  z-index: 2; width: 100%; height: 100%;
  opacity: 0; transition: opacity 900ms var(--ease-out);
  pointer-events: none;
}
.stage.is-ready .stage__canvas { opacity: 1; }

.stage__fill { z-index: 3; opacity: var(--fill); pointer-events: none; }

.intro {
  z-index: 4;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 96px var(--gutter) var(--space-12);
  max-width: 1200px; margin: 0 auto;
  opacity: var(--intro);
  transform: translateY(calc((1 - var(--intro)) * 32px));
  pointer-events: none;
}
.stage.is-inside .intro { pointer-events: auto; }
.intro__eyebrow { color: var(--gold); margin-bottom: var(--space-6); }
.intro__title { color: var(--parchment); max-width: 11em; }
.intro__lede { color: var(--hero-secondary); margin-top: var(--space-6); }
.intro__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8);
  margin-top: var(--space-12); width: 100%; max-width: 860px;
  padding-top: var(--space-6); border-top: 1px solid rgb(244 239 227 / .14);
}
.intro__stats dt { font: 600 11px/14px var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--hero-secondary); }
.intro__stats dd { font: 700 17px/22px var(--font-text); color: var(--parchment); margin-top: var(--space-2); }
@media (max-aspect-ratio: 4/5) {
  /* Portrait: the card fills the width, so lift the wordmark clear of it. */
  .hero__logo { align-self: start; margin-top: 6vh; width: min(86vw, 520px); }
}
@media (max-width: 640px) {
  .intro__stats { grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-8); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}

/* Flat fallback card (no WebGL) */
.stage__flat-card {
  z-index: 2; position: absolute; inset: auto; left: 50%; top: 50%;
  width: min(84vw, 520px); height: auto; border-radius: 4.2% / 6.6%;
  transform: translate(-50%, -50%) perspective(1400px) rotateX(10deg) rotateY(-18deg)
             scale(calc(1 + var(--zoom) * var(--zoom) * 14));
  transform-origin: 27% 20%; /* the Q in the logo; main.js sets the exact point */
  pointer-events: none;
}

/* Reduced motion: no pinning, no dive. Hero then intro, in normal flow. */
.reduced-motion .stage { height: auto; }
.reduced-motion .stage__sticky { position: relative; height: auto; overflow: visible; display: grid; }
.reduced-motion .stage__sticky > * { position: relative; inset: auto; grid-area: 1 / 1; }
.reduced-motion .hero, .reduced-motion .stage__canvas { min-height: 100svh; }
.reduced-motion .stage__canvas { height: 100svh; }
.reduced-motion .stage__fill { display: none; }
.reduced-motion .intro { grid-area: 2 / 1; opacity: 1; transform: none; pointer-events: auto; padding-block: var(--space-16); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 168px) 0; background: var(--bg-canvas); color: var(--text-primary); overflow: hidden; }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section__head { max-width: 760px; margin-bottom: clamp(var(--space-12), 6vw, 80px); }
.section__head .lede { margin-top: var(--space-6); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-12), 7vw, 112px); align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text .lede { margin-top: var(--space-6); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
}

/* List rows (7.5) */
.rows {
  margin-top: var(--space-8); background: var(--bg-surface); border-radius: var(--radius-card);
  padding: var(--space-1) var(--space-4); max-width: 520px;
}
.row { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--hairline); }
.row__text { display: grid; gap: 2px; }
.row__text strong { font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.row__text span { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.well {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--bg-surface-raised); color: var(--text-primary);
}
.well .icon { width: 20px; height: 20px; }

/* ---------- Phone mock (Home, Example A) ---------- */
.phone {
  --s: .82;
  justify-self: center;
  width: calc(390px * var(--s) + 20px); height: calc(844px * var(--s) + 20px);
  padding: 10px; border-radius: 58px; background: #050E0C;
  outline: 1px solid rgb(244 239 227 / .1); outline-offset: -1px;
}
@media (max-width: 400px) { .phone { --s: .76; } }
.phone__screen {
  position: relative; overflow: hidden;
  width: 390px; height: 844px; border-radius: 48px;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: #0F2A24; color: #F4EFE3;
  font: 400 15px/21px var(--font-text);
}
.app-hero { position: relative; height: 300px; padding: 54px 16px 0; text-align: center; }
.app-top { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 24px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #C2A46F; color: #0F2A24; display: grid; place-items: center; font: 600 13px/1 var(--font-text); }
.search { flex: 1; height: 36px; border-radius: 999px; background: #1F433B; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 400 15px/1 var(--font-text); color: #A9B5AE; }
.round { width: 36px; height: 36px; border-radius: 50%; background: #1F433B; display: grid; place-items: center; }
.app-meta { position: relative; font: 400 13px/17px var(--font-text); color: #A9B5AE; }
.app-balance {
  position: relative; margin-top: 8px;
  font: 800 52px/56px var(--font-display); letter-spacing: -0.035em; color: #F4EFE3;
}
.app-balance__minor { font-size: 31px; color: #A9B5AE; letter-spacing: -0.02em; }
.app-accounts {
  position: relative; display: inline-flex; align-items: center; height: 34px; margin-top: 16px; padding: 0 16px;
  border-radius: 999px; background: rgb(244 239 227 / .12); font: 600 13px/16px var(--font-text);
}
.dots { position: relative; display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(244 239 227 / .3); }
.dots i.is-on { background: #C2A46F; }
.app-actions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 16px; margin-top: -12px; position: relative; }
.app-actions span { display: grid; justify-items: center; gap: 8px; font: 600 13px/16px var(--font-text); }
.qa { width: 48px; height: 48px; border-radius: 50%; background: #1F433B; display: grid; place-items: center; }
.app-card { margin: 24px 16px 0; background: #16362F; border-radius: 20px; padding: 4px 16px; }
.app-card + .app-card { margin-top: 12px; }
.app-row { display: flex; align-items: center; gap: 12px; min-height: 64px; position: relative; }
.app-row + .app-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: rgb(244 239 227 / .08); }
.well--sm { width: 40px; height: 40px; border-radius: 50%; background: #1F433B; display: grid; place-items: center; }
.app-row span { flex: 1; display: grid; gap: 2px; }
.app-row b { font: 600 16px/20px var(--font-text); }
.app-row small { font: 400 13px/17px var(--font-text); color: #A9B5AE; }
.app-row em { font: 600 16px/20px var(--font-text); font-style: normal; }
.app-row em.pos { color: #5BC79A; }
.app-link { display: block; padding: 12px 0 14px; font: 600 13px/16px var(--font-text); color: #C2A46F; text-align: center; }
.app-goal { padding: 16px; display: grid; gap: 4px; }
.app-goal__head { display: flex; justify-content: space-between; }
.app-goal b { font: 700 17px/22px var(--font-text); }
.app-goal em { font: 600 16px/20px var(--font-text); font-style: normal; color: #C2A46F; }
.app-goal small { font: 400 13px/17px var(--font-text); color: #A9B5AE; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--bg-surface-raised); margin-top: 8px; overflow: hidden; }
.app-goal .bar { background: #1F433B; }
.bar i { display: block; height: 100%; width: 62%; background: var(--gold); border-radius: inherit; }
.bar--38 i { width: 38%; }
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 26px; height: 64px; border-radius: 999px;
  background: rgb(22 54 47 / .88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.tabbar span { display: grid; justify-items: center; gap: 2px; font: 600 11px/14px var(--font-text); color: #A9B5AE; }
.tabbar .icon { width: 22px; height: 22px; }
.tabbar .is-on { color: #F4EFE3; }
.tabbar .is-on .icon { stroke-width: 2.1; }

/* Arabic-Indic digits are wider and don't want the display tightening meant for Latin figures. */
.ar-nums .app-balance, .ar-nums .app-balance__minor { letter-spacing: 0; }

/* ---------- Everyday (light) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr; max-width: 560px; } }
.tile { background: var(--bg-surface); border-radius: var(--radius-sheet); padding: var(--space-4) var(--space-4) var(--space-8); }
.tile .headline { margin: var(--space-6) var(--space-2) var(--space-2); }
.tile p { margin: 0 var(--space-2); color: var(--text-secondary); }
.tile__demo {
  min-height: 248px; border-radius: var(--radius-card); background: var(--bg-canvas);
  padding: var(--space-4); display: grid; align-content: center; gap: var(--space-3);
}
.mini-list { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-1) var(--space-4); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; position: relative; }
.mini-row + .mini-row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hairline); }
.mini-row span { display: grid; gap: 2px; }
.mini-row b, .goal b { font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.mini-row small, .goal small { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.toggle {
  width: 51px; height: 31px; border-radius: 999px; flex: none; position: relative;
  background: var(--bg-surface-raised);
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #FFFDF8; box-shadow: 0 1px 3px rgb(5 14 12 / .2);
}
.toggle.is-on { background: var(--control-selected); }
.toggle.is-on::after { left: 22px; }
.goal { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-4); display: grid; gap: var(--space-1); }
.goal__head { display: flex; justify-content: space-between; align-items: baseline; }
.goal em { font: 600 16px/20px var(--font-text); font-style: normal; color: var(--text-accent); }
.tile__demo--sheet {
  align-content: end; padding-bottom: var(--space-2);
  background: color-mix(in srgb, #050E0C 62%, var(--bg-canvas));
}
.sheet {
  background: var(--bg-sheet); border-radius: var(--radius-sheet); margin: 0 var(--space-2);
  padding: var(--space-3) var(--space-6) var(--space-6); display: grid; justify-items: center; text-align: center; gap: var(--space-2);
}
.sheet__grab { width: 36px; height: 5px; border-radius: 999px; background: var(--bg-surface-raised); margin-bottom: var(--space-3); }
.tick { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--forest); display: grid; place-items: center; }
.sheet__title { font: 700 22px/28px var(--font-display); letter-spacing: -0.02em; color: var(--text-heading); margin-top: var(--space-2); }
.sheet small { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.sheet__done {
  width: 100%; height: 46px; border-radius: 999px; margin-top: var(--space-3);
  display: grid; place-items: center; background: var(--action-primary); color: var(--action-primary-label);
  font: 600 17px/1 var(--font-text);
}

/* ---------- Premium ---------- */
.section--premium .lattice { opacity: .1; }
.checks { display: grid; gap: var(--space-3); margin-top: var(--space-8); }
.checks li { display: flex; align-items: center; gap: var(--space-3); font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.checks .icon { width: 20px; height: 20px; color: var(--gold); }
.gold-card-wrap { perspective: 1400px; display: grid; place-items: center; padding: var(--space-8) 0; }
.gold-card {
  position: relative; width: min(100%, 460px); aspect-ratio: 1.5858; border-radius: 4.2% / 6.6%;
  color: var(--forest); overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #A88A55 0%, #D9C192 28%, #C2A46F 46%, #E6D3A8 62%, #B39461 100%);
  transform: rotateX(12deg) rotateY(-16deg) rotateZ(2deg);
  animation: float 7s ease-in-out infinite;
}
.gold-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 45%, transparent 60%);
  background-size: 250% 100%; animation: sheen 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(12deg) rotateY(-16deg) rotateZ(2deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateY(-8deg) rotateZ(1deg) translateY(-12px); }
}
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.gold-card__mark { position: absolute; left: 9.5%; top: 11%; font: 800 clamp(28px, 4.4vw, 44px)/1 var(--font-display); letter-spacing: -0.035em; display: flex; align-items: baseline; }
.gold-card__mark i { width: .2em; height: .2em; border-radius: 50%; background: var(--forest); margin-left: .06em; }
.gold-card__chip { position: absolute; left: 9.5%; top: 41%; width: 13%; aspect-ratio: 1.32; border-radius: 14%; background: linear-gradient(135deg, #8E7444, #C2A46F 50%, #8E7444); outline: 1px solid rgb(15 42 36 / .25); }
.gold-card__num { position: absolute; left: 9.5%; bottom: 11%; font: 600 clamp(14px, 1.8vw, 19px)/1 var(--font-text); letter-spacing: .04em; }
.gold-card__tier { position: absolute; right: 9.5%; bottom: 11%; font: 600 clamp(13px, 1.5vw, 16px)/1 var(--font-text); }

/* ---------- Security ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.feature { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.feature .well { margin-bottom: var(--space-4); }
.feature p { color: var(--text-secondary); }

/* ---------- CTA ---------- */
.section--cta { text-align: center; padding-block: clamp(120px, 16vw, 220px); }
.section--cta > .glow { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#0000, #000 28%); mask-image: linear-gradient(#0000, #000 28%); }
.cta { display: grid; justify-items: center; }
.cta .display-xl { color: var(--parchment); max-width: 12em; }
.cta .lede { margin: var(--space-6) auto var(--space-8); color: var(--hero-secondary); }
.cta .eyebrow { color: var(--hero-secondary); }
.stores { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; justify-content: center; }
.stores span { font: 600 13px/16px var(--font-text); color: var(--hero-secondary); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: rgb(244 239 227 / .08); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-canvas); border-top: 1px solid var(--hairline); padding: var(--space-12) 0 var(--space-8); }
.footer__inner { display: flex; justify-content: space-between; align-items: start; gap: var(--space-8); flex-wrap: wrap; }
.footer__inner .meta { margin-top: var(--space-2); }
.footer__links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer__links a { font: 600 13px/16px var(--font-text); color: var(--text-secondary); min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--text-primary); }
.footer__legal { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--hairline); display: grid; gap: var(--space-2); }

/* ---------- Faith ---------- */
/* Zakat, sadaqah, will and school-of-thought previews: small app screens drawn from the dark tokens.
   Canvas inside a bezel, cards (surface) on it, raised wells and toggles on those. */
.faith-stack { display: grid; gap: clamp(88px, 11vw, 160px); }
.deep { align-items: center; }
.deep__tag { display: inline-flex; align-items: center; gap: var(--space-2); }
.deep__tag .icon { width: 20px; height: 20px; color: var(--text-accent); }
.rows--wide { max-width: none; }
.rows--wide .row { padding: var(--space-3) 0; align-items: flex-start; }
.rows--wide .well { margin-top: var(--space-1); }
.faith__fine { max-width: 40em; margin: clamp(var(--space-12), 7vw, 96px) auto 0; text-align: center; }

/* Full-size app screens (390 × 844) in the same phone frame as the home preview. Layout, sizes and
   copy follow the team's wireframes (wireframes/*.dc.html); `.phone` re-asserts the dark tokens. */
.ps-safe { height: 54px; }
.ps-nav { display: flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-2); }
.ps-back { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-primary); }
.ps-steps { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); margin-right: var(--space-4); }
.ps-steps i { height: 4px; border-radius: var(--radius-pill); background: var(--bg-surface-raised); }
.ps-steps i.done { background: var(--control-selected); }
.ps-page { padding: var(--space-2) var(--space-4) 0; display: flex; flex-direction: column; }
.ps-title { font: 800 34px/38px var(--font-display); letter-spacing: -0.03em; color: var(--text-heading); }
.ps-sheet { font: 700 22px/28px var(--font-display); letter-spacing: -0.02em; color: var(--text-heading); }
.ps-help { font: 400 15px/21px var(--font-text); color: var(--text-secondary); margin-top: var(--space-2); }
.ps-meta { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.ps-label { font: 600 13px/16px var(--font-text); }
.ps-strong { font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.ps-mt1 { margin-top: var(--space-1); } .ps-mt2 { margin-top: var(--space-2); } .ps-mt3 { margin-top: var(--space-3); } .ps-mt6 { margin-top: var(--space-6); }
.ps-tag {
  display: inline-block; margin-right: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-pill);
  background: var(--bg-surface-raised); color: var(--text-primary); font: 600 11px/14px var(--font-text);
  letter-spacing: .06em; text-transform: uppercase;
}

.ps-card { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-1) var(--space-4); }
.ps-pad { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-4); }
.ps-row { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-3) 0; position: relative; width: 100%; }
.ps-row + .ps-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--hairline); }
.ps-card--flat .ps-row + .ps-row::before { left: 0; }
.ps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.ps-main b { font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.ps-main small { font: 400 13px/17px var(--font-text); color: var(--text-secondary); }
.ps-chev { color: var(--text-secondary); flex: none; width: 20px; height: 20px; }

.ps-kv { background: var(--bg-surface); border-radius: var(--radius-card); padding: 0 var(--space-4); margin: 0; }
.ps-kv > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; padding: var(--space-3) 0; position: relative; }
.ps-kv > div + div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hairline); }
.ps-kv dt { font: 400 15px/21px var(--font-text); color: var(--text-secondary); }
.ps-kv dd { margin: 0; font: 600 16px/20px var(--font-text); color: var(--text-heading); }
.ps-kv .ps-total dt { font: 600 16px/20px var(--font-text); color: var(--text-heading); }

.ps-radio { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.75px solid var(--text-secondary); }
.ps-radio.is-on { border-color: var(--control-selected); background: radial-gradient(circle, var(--control-selected) 0 42%, transparent 46%); }

.ps-acts { display: grid; grid-template-columns: repeat(4, 1fr); margin: var(--space-6) 0 var(--space-4); }
.ps-act { display: grid; justify-items: center; gap: var(--space-2); font: 600 13px/16px var(--font-text); color: var(--text-heading); }
.ps-act i { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-surface-raised); display: grid; place-items: center; }

.ps-dock { position: absolute; left: var(--space-4); right: var(--space-4); bottom: 32px; display: flex; flex-direction: column; gap: var(--space-1); }
.ps-btn {
  display: grid; place-items: center; height: 52px; border-radius: var(--radius-pill);
  background: var(--action-primary); color: var(--action-primary-label); font: 600 17px/1 var(--font-text);
}
.ps-link { height: 44px; display: grid; place-items: center; color: var(--text-accent); font: 600 17px/1 var(--font-text); }
.ps-link--start { place-items: center start; padding: 0 4px; }
.ps-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 136px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg-canvas) 70%); }
.ps-split { display: flex; justify-content: space-between; align-items: baseline; }
.ps-note { padding: 0 var(--space-1); }
.icon--bold { stroke-width: 2.2; }
.well--value { background: var(--gold); color: var(--forest); }
.well--num { font: 600 13px/16px var(--font-text); }
.accent { font-style: normal; color: var(--text-accent); }
.bar--25 i { width: 25%; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.tiles [data-reveal]:nth-child(2), .grid4 [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.tiles [data-reveal]:nth-child(3), .grid4 [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.grid4 [data-reveal]:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
