/* Rawdeena store. Palette and type are shared with Shajarah Labs and Masar Quran:
   night for the shell, parchment for calm reading surfaces, gold for the call to act, emerald for the home.
   Headings and product names are Newsreader, reading text is Source Sans 3. The only pen lettering is the logo,
   which is a drawing (brand guidelines: there is no font to type it with). */

/* Fonts are WOFF2 (built by store/tools/build-fonts.py). The three text fonts are preloaded by every page and use
   font-display: block, so a system font never flashes in with different letter shapes while they load. */
@font-face { font-family: 'Newsreader'; src: url(../fonts/Newsreader.woff2) format('woff2'); font-weight: 200 600; font-style: normal; font-display: block; }
@font-face { font-family: 'SourceSans3'; src: url(../fonts/SourceSans3.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: block; }
@font-face { font-family: 'AmiriBold'; src: url(../fonts/Amiri-Bold.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url(../fonts/Amiri-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'CormorantGaramond'; src: url(../fonts/CormorantGaramond.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --night: #0B1517;
  --night-raised: #11211F;
  --night-high: #173029;
  --night-line: #24403A;
  --moon: #E9EFEC;
  --moon-muted: #A5B7B1;
  --parchment: #F5EDDD;
  --parchment-deep: #EADFC8;
  --ink: #241C14;
  --ink-muted: #5E5141;
  --gold: #D4AE55;
  --gold-hi: #EBCB7E;
  --gold-deep: #76591A;
  --emerald: #46B08F;
  --emerald-deep: #1E6B55;
  --danger: #E07A6A;

  --bg: var(--night);
  --surface: var(--night-raised);
  --surface-2: var(--night-high);
  --line: var(--night-line);
  --text: var(--moon);
  --muted: var(--moon-muted);

  --display: 'Newsreader', 'Times New Roman', serif;
  --body: 'SourceSans3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'AmiriBold', 'Amiri', serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hair: rgba(212, 174, 85, .22);
  --radius: 14px;
  color-scheme: dark;
}

@property --frame { syntax: '<color>'; inherits: true; initial-value: #5B3A22; }
@property --frame-hi { syntax: '<color>'; inherits: true; initial-value: #7A5333; }
@property --frame-lo { syntax: '<color>'; inherits: true; initial-value: #3B2414; }

* { box-sizing: border-box; }
/* Type rules for the whole site:
   - font-synthesis: none. No font here has an italic or a separate bold file that the browser may fake by slanting
     or smearing the upright letters; emphasis is shown with colour instead.
   - Newsreader has an optical-size axis (6 to 72). No rule sets it: the browser picks it from the type size, so
     small headings get sturdier strokes and large ones finer ones. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-synthesis: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="ar"] { font-family: var(--arabic); font-weight: 400; }
::selection { background: rgba(212, 174, 85, .35); color: var(--moon); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.muted { color: var(--muted); }
/* Headings. */
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
/* No single word left alone on a heading's last line; paragraphs avoid a one-word last line where the browser can. */
h1, h2, h3, summary { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.012em; }
/* Emphasis inside a heading: gold and upright (no italic file is loaded, and a slanted fake is not used). */
h1 em, h2 em, h3 em { font-style: normal; color: var(--gold-hi); }
/* A small heading outside a panel (help sections, the thank-you page). */
.h-sm { font-size: 28px; letter-spacing: -.012em; }
p { margin: 0 0 1em; }

/* ---------- preview notice: a small pill, not a banner ---------- */
.notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px; border: 1px solid rgba(70, 176, 143, .45); background: rgba(11, 21, 23, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--moon-muted); font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.notice::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.notice b { color: var(--moon); font-weight: 600; }
.notice.mini { padding: 6px 4px 6px 14px; font-size: 0; gap: 8px; }
.notice.mini b { font-size: 12px; }
.notice.mini button { font-size: 16px; }
.notice button { flex: none; background: none; border: 0; color: var(--moon-muted); font-size: 20px; width: 44px; height: 44px; margin: -8px -6px -8px 0; border-radius: 50%; cursor: pointer; }
.notice button:hover { color: var(--moon); background: rgba(233, 239, 236, .08); }

/* ---------- header: light, transparent, small spaced capitals ---------- */
.site-head { position: sticky; top: 0; z-index: 60; transition: background .6s, transform .7s var(--ease), padding .6s; }
.site-head.solid { background: rgba(11, 21, 23, .86); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); box-shadow: 0 1px 0 rgba(212, 174, 85, .12); }
body.story .site-head { position: fixed; left: 0; right: 0; }
.site-head.hide:not(:focus-within) { transform: translateY(-110%); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 84px; max-width: none; padding: 0 var(--gutter); }
.site-head.solid .wrap { height: 70px; }
/* The bar gets 14px shorter once the page is scrolled. On the store pages it is part of the page flow (sticky), so the
   same 14px is given back as a margin: without it everything below jumped up by 14px at the first scroll. */
.site-head.solid { margin-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
/* The approved logo files (brand guidelines, 20 Nov 2026) are used as they are: never recoloured, stretched or redrawn. */
.logo img { display: block; height: 40px; width: auto; }
/* The garden gate is shown at 96px or taller (its smallest allowed size); the header uses the small arch made for it. */
.logo-foot img { height: 112px; margin-left: -14px; }
@media (max-width: 520px) { .site-head .logo img { height: 34px; } }
.nav { display: flex; gap: 34px; margin: 0 auto; }
.nav a { position: relative; text-decoration: none; padding: 6px 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--moon-muted); transition: color .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--moon); cursor: pointer; text-decoration: none; transition: background .3s;
}
.icon-btn:hover { background: rgba(233, 239, 236, .08); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(212, 174, 85, .45);
  color: var(--moon); font: 600 13px/1 var(--body); letter-spacing: .06em; background: rgba(17, 33, 31, .45); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, background .3s;
}
.cart-pill:hover { border-color: var(--gold); background: rgba(212, 174, 85, .12); }
.cart-pill.preorder { text-decoration: none; background: transparent; }
@media (max-width: 760px) { .cart-pill.preorder { display: none; } }
.cart-pill svg { width: 17px; height: 17px; }
.cart-pill .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 700; display: none; place-items: center; line-height: 1; }
.cart-pill .count.on { display: inline-grid; }
.cart-pill .count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.account-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(70, 176, 143, .5); }
.account-chip .av { font-weight: 700; font-size: 13px; color: var(--emerald); }
.account-chip span:last-child:not(.av) { display: none; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--night); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 13px; border-bottom: 1px solid rgba(36, 64, 58, .5); }
  .nav a::after { display: none; }
  .menu-btn { display: inline-grid; order: -1; margin-left: -10px; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 520px) { .cart-pill .lbl { display: none; } .cart-pill { padding: 11px 14px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241A06; box-shadow: 0 8px 30px -10px rgba(212, 174, 85, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { box-shadow: 0 14px 40px -12px rgba(212, 174, 85, .75), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--moon); border-color: rgba(233, 239, 236, .25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--gold-hi); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 35%, rgba(70, 176, 143, .16), transparent 70%), radial-gradient(ellipse 40% 40% at 20% 10%, rgba(212, 174, 85, .1), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .ar-big { font-family: var(--arabic); color: var(--gold); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.4; margin: 0 0 8px; text-shadow: 0 0 40px rgba(212, 174, 85, .3); }
.hero p.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 32em; margin-bottom: 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); padding: 0; list-style: none; }
.hero .assure li::before { content: '✓'; color: var(--emerald); margin-right: 8px; font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* ---------- the wall display: a wood frame around the Wall's real Home screen (canvas) ---------- */
.wall { position: relative; perspective: 1400px; padding: 4% 3% 9%; }
.wall .shadow { position: absolute; left: 12%; right: 12%; bottom: 2%; height: 9%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); filter: blur(10px); }
.device {
  --frame: #5B3A22; --frame-hi: #7A5333; --frame-lo: #3B2414;
  position: relative; border-radius: 11px; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 4deg));
  transition: transform .9s var(--ease), --frame .7s, --frame-hi .7s, --frame-lo .7s;
  background: linear-gradient(135deg, var(--frame-hi), var(--frame) 38%, var(--frame-lo));
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .85), 0 18px 30px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .35),
    inset 0 1.5px 0 rgba(255, 255, 255, .22), inset 1.5px 0 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .35), inset -1.5px 0 0 rgba(0, 0, 0, .2);
  padding: 3.6%;
}
/* wood grain: fine lines running along the frame, with a few slow darker bands */
.device::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background:
    repeating-linear-gradient(91deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 6px, rgba(0, 0, 0, .08) 6px 7px, transparent 7px 15px),
    repeating-linear-gradient(88deg, transparent 0 46px, rgba(0, 0, 0, .1) 46px 60px, transparent 60px 131px),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%, transparent 70%, rgba(0, 0, 0, .14)); }
/* the lip where the wood meets the glass */
.device::before { content: ''; position: absolute; inset: 2.7%; border-radius: 5px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 5px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07); }
.device[data-frame="oak"] { --frame: #C49A62; --frame-hi: #DDB884; --frame-lo: #9C7444; }
.device[data-frame="ebony"] { --frame: #1E1A17; --frame-hi: #3A332D; --frame-lo: #0E0C0A; }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden; background: #050d0a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.screen canvas { display: block; width: 100%; height: 100%; }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 22%, transparent 34%, transparent 74%, rgba(255, 255, 255, .035) 100%); }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(70px, 10vw, 140px) 0; }
.band-parch { background: var(--parchment); color: var(--ink); }
.band-parch .muted { color: var(--ink-muted); }
.band-parch .eyebrow { color: var(--gold-deep); }
.band-parch h2 em { color: var(--gold-deep); }
.band-raised { background: linear-gradient(180deg, var(--night), var(--night-raised) 30%, var(--night-raised) 70%, var(--night)); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 19px; color: var(--muted); }
.band-parch .section-head p { color: var(--ink-muted); }

/* day scroller */
.day { height: 420vh; }
.day .stick { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; place-items: center; overflow: hidden; }
.day .sky { position: absolute; inset: 0; transition: background 1s linear; background: var(--sky, #0B1517); }
.day .sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars, 0); transition: opacity 1s; }
.day .sun { position: absolute; width: 28vmin; height: 28vmin; border-radius: 50%; left: var(--sx, 50%); top: var(--sy, 80%); transform: translate(-50%, -50%); background: radial-gradient(circle, var(--sun, rgba(255, 220, 150, .7)), transparent 65%); filter: blur(4px); transition: background 1s; }
.day .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%; max-width: var(--max); padding: 0 var(--gutter); }
.day .cap { min-height: 15em; }
.day .cap .eyebrow { transition: color 1s; }
.day .cap h2 { font-size: clamp(30px, 4vw, 52px); }
.day .cap p { color: var(--muted); font-size: 19px; max-width: 26em; }
.day .steps { display: flex; gap: 8px; margin-top: 26px; }
.day .steps i { width: 26px; height: 3px; border-radius: 2px; background: rgba(233, 239, 236, .2); transition: background .4s, width .4s; }
.day .steps i.on { background: var(--gold); width: 46px; }
.cap-swap { animation: capIn .7s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 900px) {
  .day .inner { grid-template-columns: 1fr; gap: 10px; }
  .day .cap { min-height: 13em; order: 2; text-align: center; }
  .day .cap p { margin: 0 auto; font-size: 17px; }
  .day .steps { justify-content: center; }
  .day .wall { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(36, 28, 20, .12); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--parchment); padding: clamp(26px, 3vw, 40px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(30, 107, 85, .1); color: var(--emerald-deep); margin-bottom: 18px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; text-decoration: none; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 174, 85, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.card .art { position: relative; aspect-ratio: 4 / 3.2; background: radial-gradient(ellipse at 50% 30%, var(--night-high), var(--night) 80%); display: grid; place-items: center; overflow: hidden; }
.card .art .wall { width: 82%; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-family: var(--display); font-size: 27px; line-height: 1.15; letter-spacing: -.012em; }
.card .short { color: var(--muted); font-size: 15px; flex: 1; }
.card .price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; font-weight: 600; font-size: 18px; }
.card .price s { color: var(--muted); font-weight: 400; font-size: 15px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(11, 21, 23, .8); border: 1px solid var(--hair); color: var(--gold-hi); font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.badge.soon { color: var(--moon-muted); border-color: var(--line); }
.card.soon { opacity: .85; }
.card.soon:hover { transform: none; }
.card .art .art-svg { width: 64%; height: auto; }
.card .art .wall .device { transition: transform 1.1s var(--ease); }
.card:hover .art .wall .device { --ry: -6deg; --rx: 2deg; }
.card .go { margin-top: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); display: inline-flex; align-items: center; gap: 10px; }
.card .go::after { content: ''; width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.card:hover .go::after { width: 40px; }

/* shop layout: one lead product, the rest in support */
.page-head { max-width: 760px; }
.page-lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 36em; margin: 0; }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin: clamp(56px, 7vw, 92px) 0 26px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 0; white-space: nowrap; letter-spacing: -.012em; }
.sec-head .rule { flex: 1; height: 1px; background: var(--hair); align-self: center; }
.sec-head .note { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sec-note { color: var(--muted); max-width: 44em; margin: -10px 0 26px; }
.grid-lead { grid-template-columns: repeat(3, 1fr); }
.grid-lead .card[data-card="rawdeena-home"] { grid-column: span 2; grid-row: span 2; }
.grid-lead .card:not([data-card="rawdeena-home"]) .art { aspect-ratio: 16 / 10; }
.grid-lead .card:not([data-card="rawdeena-home"]) .art .wall { width: 68%; }
.grid-lead .card[data-card="rawdeena-home"] .art { aspect-ratio: auto; flex: 1; min-height: 340px; background: radial-gradient(ellipse 80% 70% at 50% 36%, #1B3830, var(--night-raised) 64%, var(--night)); }
.grid-lead .card[data-card="rawdeena-home"] .art .wall { width: min(78%, 640px); }
.grid-lead .card[data-card="rawdeena-home"] .body { flex: 0 0 auto; padding: 26px 30px 30px; }
.grid-lead .card[data-card="rawdeena-home"] .name { font-size: clamp(30px, 3vw, 40px); }
.grid-lead .card[data-card="rawdeena-home"] .short { font-size: 17px; max-width: 30em; }
.grid-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-side .card { flex-direction: row; align-items: stretch; }
.grid-side .card .art { flex: 0 0 38%; aspect-ratio: auto; min-height: 170px; }
.grid-side .card .art .art-svg { width: 78%; }
.grid-side .card .art .wall { width: 86%; }
.grid-side .card .body { justify-content: center; padding: 20px 24px; }
.grid-side .card .short { flex: 0 1 auto; }
.grid-later { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-lead { grid-template-columns: 1fr 1fr; } .grid-later { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-lead, .grid-later { grid-template-columns: 1fr; } .grid-lead .card[data-card="rawdeena-home"] { grid-column: auto; grid-row: auto; } .grid-lead .card[data-card="rawdeena-home"] .art { min-height: 0; aspect-ratio: 4 / 3.2; } .sec-head .note { display: none; } }
@media (max-width: 420px) { .grid-side .card .art { flex-basis: 34%; min-height: 150px; } .grid-side .card .body { padding: 16px 18px; } }

/* masjid art */
.masjid-art { width: 86%; aspect-ratio: 16 / 9.6; border-radius: 6px; background: #0A0F0F; padding: 3%; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), 0 0 0 1px #222; }
.masjid-art .scr { height: 100%; border-radius: 2px; background: linear-gradient(160deg, #0F2A24, #08100F); display: grid; grid-template-columns: 1.1fr 1fr; gap: 4%; padding: 5%; container-type: inline-size; color: #F2EBDD; }
.masjid-art .clk { font-family: var(--display); font-weight: 300; font-size: 11cqw; line-height: 1; align-self: center; font-variant-numeric: tabular-nums; }
.masjid-art .clk small { display: block; font-family: var(--body); font-size: 2.4cqw; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-top: 2cqw; }
.masjid-art .clk small.city { color: rgba(242, 235, 221, .5); font-size: 1.9cqw; margin-top: 1cqw; }
.masjid-art table { width: 100%; border-collapse: collapse; font-size: 2.6cqw; align-self: center; }
.masjid-art th { color: var(--gold); font-weight: 600; text-align: right; font-size: 2cqw; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 1cqw; }
.masjid-art td { padding: .9cqw 0; border-top: 1px solid rgba(212, 174, 85, .18); text-align: right; font-variant-numeric: tabular-nums; }
.masjid-art td:first-child, .masjid-art th:first-child { text-align: left; }
.masjid-art tr.on td { color: var(--gold-hi); }


/* ---------- product page ---------- */
.pdp { padding: clamp(20px, 3vw, 44px) 0 0; }
.pdp-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.pdp-missing { text-align: center; padding-top: 60px; padding-bottom: 120px; }
.pdp .gallery { position: sticky; top: 96px; }
.pdp .gallery .wall { max-width: 640px; margin: 0 auto; }
/* Sized so 'Rawdeena Home' stays on one line in the buy column (at 68px it broke after the first word). */
.pdp-top h1 { font-size: clamp(40px, 4.2vw, 58px); margin-bottom: 14px; line-height: 1.08; }
.pdp .price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--hair); }
.pdp .price-line span { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.pdp .price-line s { font-size: 19px; color: var(--muted); font-weight: 400; }
.pdp .price-line small { flex-basis: 100%; font-size: 14px; color: var(--muted); margin-top: 6px; }
.pdp .lede { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--moon); opacity: .86; margin: 0; max-width: 24em; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span[aria-hidden] { color: var(--gold); opacity: .6; }

/* the stage: the display on a quiet wall, in the light of the chosen time of day */
.stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); padding: clamp(22px, 5%, 48px) 6% 0;
  background: radial-gradient(ellipse 80% 60% at 50% 34%, #1B3830, #11211F 62%, #0D1A19); }
.stage .glow { position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease); }
.glow-dawn { background: linear-gradient(180deg, rgba(8, 12, 26, .62), rgba(8, 12, 26, .2)), radial-gradient(ellipse 95% 60% at 50% 112%, rgba(96, 130, 184, .42), transparent 70%); }
.glow-noon { background: radial-gradient(ellipse 85% 75% at 18% -12%, rgba(255, 240, 206, .3), transparent 70%), linear-gradient(180deg, rgba(233, 239, 236, .05), transparent); }
.glow-dusk { background: linear-gradient(180deg, rgba(20, 10, 16, .4), transparent), radial-gradient(ellipse 85% 70% at 90% 108%, rgba(228, 142, 72, .3), transparent 70%), radial-gradient(ellipse 60% 50% at 6% -6%, rgba(128, 76, 116, .22), transparent 70%); }
.glow-night { background: linear-gradient(180deg, rgba(3, 6, 9, .78), rgba(3, 6, 9, .66)); }
.stage[data-view="fajr"] .glow-dawn, .stage[data-view="dhuhr"] .glow-noon, .stage[data-view="maghrib"] .glow-dusk, .stage[data-view="night"] .glow-night { opacity: 1; }
.stage .device { transition: transform .9s var(--ease), --frame .7s, --frame-hi .7s, --frame-lo .7s, filter 1.4s var(--ease); }
.stage[data-view="night"] .device { filter: brightness(.62); }
.stage[data-view="fajr"] .device { filter: brightness(.82) saturate(.92); }
.views { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(0px, .8vw, 10px); margin-top: -6px; }
.views button { position: relative; min-height: 44px; padding: 0 12px; border: 0; background: none; cursor: pointer; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #C9D5D0; text-shadow: 0 1px 8px rgba(5, 10, 11, .8); transition: color .3s, opacity .3s; }
.views button:disabled { opacity: .45; cursor: default; }
.views button::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.views button:hover { color: var(--moon); }
.views button[aria-pressed="true"] { color: var(--gold-hi); }
.views button[aria-pressed="true"]::after { transform: scaleX(1); }
.view-cap { text-align: center; font-size: 14px; color: #C9D5D0; text-shadow: 0 1px 8px rgba(5, 10, 11, .8); margin: 2px 0 22px; min-height: 1.6em; }
.stage-art { display: grid; place-items: center; padding: 9% 12%; }
.stage-art .art-svg { width: min(100%, 440px); height: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); }
.art-svg { display: block; }
@media (max-width: 520px) { .views button { padding: 0 7px; letter-spacing: .13em; font-size: 11px; } .views button::after { left: 7px; right: 7px; } .stage { border-radius: 20px; } }

.assure-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.assure-list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.assure-list svg { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.pdp-back { margin-top: 26px; font-size: 15px; }
.opt-label { font-size: 14px; color: var(--muted); margin: 28px 0 10px; }
.opt-label b { color: var(--moon); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; transition: border-color .2s, background .2s; font-size: 15px; min-height: 44px;
}
.swatch i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.swatch:hover { border-color: rgba(212, 174, 85, .5); }
.swatch[aria-checked="true"] { border-color: var(--gold); background: rgba(212, 174, 85, .08); }
.buy-row { display: flex; gap: 12px; margin-top: 26px; }
/* Shown in place of the buy button while pre-orders are not open (SALES_MODE 'soon'). */
.soon-note { margin-top: 26px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--hair); background: rgba(212, 174, 85, .06); display: grid; gap: 4px; }
.soon-note b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--gold-hi); }
.soon-note span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.buy .soon-note { margin: 0 0 16px; }
.prose .soon-note { margin: 0 0 30px; }
/* The waitlist form under the note (shown only when the list is open). */
[data-waitlist] { margin-top: 16px; }
.buy [data-waitlist] { margin: 0 0 18px; }
.waitlist .wl-title { font-family: var(--display); font-size: 21px; line-height: 1.25; margin: 0 0 12px; color: var(--moon); }
.waitlist .wl-row { display: flex; gap: 10px; margin-bottom: 12px; }
.waitlist .wl-row .input { flex: 1; min-width: 0; }
.waitlist .wl-row .btn { flex-shrink: 0; }
.waitlist .check { margin: 0 0 8px; font-size: 14.5px; }
.waitlist .wl-small { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.waitlist .err { margin-top: 6px; }
.waitlist .err:empty { display: none; }
.wl-done { margin: 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--hair); color: var(--muted); font-size: 15px; }
.wl-done b { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 420px) { .waitlist .wl-row { flex-direction: column; } .waitlist .wl-row .input { flex: none; width: 100%; } .waitlist .wl-row .btn { width: 100%; } }
/* Wording that depends on whether pre-orders are open. "Closed" is the default, with or without scripts;
   ui.js adds .shop-open to <html> when they are open. */
html:not(.shop-open) [data-when="open"], html.shop-open [data-when="closed"] { display: none !important; }
/* While prices are not shown: a quiet line where the amount will go. */
.pdp .price-line.tba span { font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.005em; color: var(--muted); }
.card .price .tba { font-weight: 400; font-size: 15px; color: var(--muted); }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--moon); border-radius: 999px; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 17px; }
.pdp-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.pdp-list li { padding-left: 28px; position: relative; color: var(--muted); }
.pdp-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg) scale(.6); background: var(--gold); }
.specs { margin-top: 34px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.band-parch .specs, .band-parch .specs div { border-color: rgba(36, 28, 20, .16); }
.band-parch .specs dt { color: var(--ink-muted); }
.band-parch .specs { margin-top: 0; }
@media (max-width: 900px) { .pdp-top { grid-template-columns: 1fr; } .pdp .gallery { position: relative; top: 0; } .crumbs { display: none; } }

/* product story below the fold */
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(26px, 4vw, 60px); }
.points li { border-top: 1px solid var(--hair); padding-top: 26px; }
.num { font-family: var(--display); font-size: 13px; letter-spacing: .1em; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 50%; color: var(--gold-hi); }
.points .num { margin-bottom: 20px; }
.points h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 12px; }
.points p { color: var(--muted); margin: 0; }
.points-later { margin: clamp(30px, 4vw, 50px) 0 0; padding-left: 14px; border-left: 1px solid var(--emerald); color: var(--muted); font-size: 15px; max-width: 44em; }
.pdp-points .section-head h2, .pdp-specs h2 { font-size: clamp(30px, 3.8vw, 52px); }
.pdp-promise .promise b { margin-bottom: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 100px); align-items: start; }
.pdp-with { padding-bottom: 0; }
.pdp-with .sec-head { margin-top: 0; }
.wrap.narrow { max-width: 900px; }
.center-row { text-align: center; margin: 34px 0 0; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr; gap: 30px; } .two-col { grid-template-columns: 1fr; } }

/* the buy bar that follows once the main button has scrolled away */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
  transform: translateY(130%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.buybar.on { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.buybar .in { pointer-events: auto; max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(17, 33, 31, .92); border: 1px solid var(--hair); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85); }
.buybar .tb .thumb { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, var(--night-line), var(--night)); display: grid; place-items: center; overflow: hidden; }
.buybar .tb .mini { width: 30px; height: 24px; border-radius: 2px; background: var(--c, #5B3A22); padding: 3px; }
.buybar .tb .mini i { display: block; height: 100%; border-radius: 1px; background: linear-gradient(160deg, #1A3A33, #0C1A18); }
.buybar .tb .art-svg { width: 34px; height: auto; }
.buybar .nm { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.buybar .nm b { font-family: var(--display); font-weight: 400; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .nm small { font-size: 12.5px; color: var(--muted); }
.buybar .pr { font-family: var(--display); font-weight: 300; font-size: 24px; font-variant-numeric: lining-nums; }
.buybar .btn { min-height: 46px; padding: 0 24px; font-size: 15px; }
body.has-buybar .notice { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) { .buybar .tb { display: none; } .buybar .in { padding-left: 20px; gap: 12px; } .buybar .btn { padding: 0 20px; } .buybar .nm b { font-size: 18px; } }

/* ---------- cart drawer ---------- */
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(3, 8, 8, .6); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; backdrop-filter: blur(3px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(440px, 100vw); background: var(--night-raised); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .6);
}
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-mask { opacity: 1; visibility: visible; }
body.cart-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--night-high); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .thumb { width: 72px; height: 72px; border-radius: 10px; background: radial-gradient(circle at 50% 30%, var(--night-line), var(--night)); display: grid; place-items: center; overflow: hidden; }
.line .thumb .mini { width: 52px; height: 42px; border-radius: 3px; background: var(--c, #5B3A22); padding: 4px; }
.line .thumb .mini i { display: block; height: 100%; border-radius: 1px; background: linear-gradient(160deg, #1A3A33, #0C1A18); }
.line .thumb svg { width: 34px; height: 34px; color: var(--gold); }
.line .thumb .art-svg { width: 58px; height: auto; }
.line .nm { font-weight: 600; line-height: 1.3; }
.line .op { font-size: 14px; color: var(--muted); }
.line .ctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.line .rm:hover { color: var(--danger); }
.line .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.sum { display: grid; gap: 6px; font-size: 15px; margin-bottom: 16px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font-size: 19px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum .muted { font-size: 13.5px; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--night-line); margin-bottom: 14px; }
.free-bar { font-size: 13.5px; color: var(--muted); margin: 14px 0 4px; }
.free-bar .bar { height: 4px; border-radius: 2px; background: var(--night-line); margin-top: 8px; overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); width: var(--w, 0%); transition: width .6s var(--ease); }
.upsell { margin: 18px 0 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.upsell .grow { flex: 1; }
.upsell button { background: none; border: 1px solid var(--hair); color: var(--gold-hi); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
textarea.gift-note { width: 100%; margin-top: 10px; background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; resize: vertical; min-height: 64px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 500; }
.input, select.input {
  width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); padding: 0 16px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 174, 85, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; min-height: 1.4em; }
/* A message under the box it is about. */
.field-err { color: var(--danger); font-size: 13.5px; line-height: 1.35; }
.field-err:empty { display: none; }
/* Keeps a hyphenated word on one line. */
.nb { white-space: nowrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; margin: 6px 0 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.code-input { letter-spacing: .5em; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; height: 62px; padding-left: .5em; }

/* ---------- checkout / account ---------- */
.page { padding: clamp(32px, 5vw, 70px) 0 clamp(60px, 8vw, 110px); }
.page-title { font-size: clamp(36px, 4.8vw, 62px); margin-bottom: 14px; }
/* min-width: 0 lets the columns shrink to the screen; the pay button's long label may wrap on a phone */
.co > * { min-width: 0; }
.co .btn-block { white-space: normal; text-align: center; padding-top: 12px; padding-bottom: 12px; line-height: 1.3; }
.co { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: start; margin-top: 30px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 25px; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.panel h2 .n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair); color: var(--gold-hi); display: grid; place-items: center; font: 400 14px/1 var(--display); font-variant-numeric: lining-nums; }
.co-assure { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.co-assure li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.co-assure svg { width: 16px; height: 16px; color: var(--emerald); margin-top: 3px; }
.co .summary { position: sticky; top: 92px; }
.signed { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(70, 176, 143, .08); border: 1px solid rgba(70, 176, 143, .3); font-size: 15px; }
.signed .av { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald-deep); display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.signed .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 16px 0; text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.secure { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.secure svg { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; }
.pay-marks { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.pay-marks span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--line); color: var(--muted); padding: 4px 9px; border-radius: 6px; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co .summary { position: relative; top: 0; order: -1; } }
.demo-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(212, 174, 85, .08); border: 1px dashed var(--hair); font-size: 14px; color: var(--gold-hi); }
.demo-box b { font-size: 20px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }

.acct { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 50px); margin-top: 30px; align-items: start; }
.acct nav { display: grid; gap: 4px; position: sticky; top: 92px; }
.acct nav button { text-align: left; background: none; border: 0; padding: 12px 16px; border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 16px; }
.acct nav button[aria-selected="true"] { background: var(--surface); color: var(--moon); box-shadow: inset 2px 0 0 var(--gold); }
@media (max-width: 800px) { .acct { grid-template-columns: 1fr; } .acct nav { position: relative; top: 0; grid-auto-flow: column; overflow-x: auto; } .acct nav button { white-space: nowrap; } }
/* Phones: the four account tabs fit the screen without the last one being cut off. */
@media (max-width: 520px) { .acct nav { gap: 2px; } .acct nav button { padding: 12px 9px; font-size: 15px; text-align: center; } }
.order { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.order .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.status { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: rgba(70, 176, 143, .14); color: var(--emerald); text-transform: uppercase; }
.status.test { background: rgba(212, 174, 85, .14); color: var(--gold-hi); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 6px; }
.track i { height: 4px; border-radius: 2px; background: var(--night-line); }
.track i.on { background: var(--emerald); }
.track-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12.5px; color: var(--muted); }
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tile .ttl { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }

/* success */
.done-mark { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(70, 176, 143, .3), rgba(70, 176, 143, .05)); box-shadow: 0 0 0 1px rgba(70, 176, 143, .4); }
.done-mark svg { width: 40px; height: 40px; color: var(--emerald); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .8s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* masjid / quote, faq, prose */
.quote-form { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--gold); font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; max-width: 46em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 1.6em; letter-spacing: -.012em; }
.prose p, .prose li { color: var(--muted); }
.draft { border: 1px dashed var(--gold); color: var(--gold-hi); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 26px; }

/* app band */
.app-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.phone { width: min(300px, 70vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 44px; background: #050909; padding: 12px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px #2c3a37, inset 0 0 0 2px #111; }
.phone .ps { height: 100%; border-radius: 34px; background: linear-gradient(180deg, #102824, #0A1413); padding: 30px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone .pt { font-family: var(--display); font-size: 22px; text-align: center; color: var(--moon); }
.phone .streak { display: flex; justify-content: space-between; padding: 12px; background: rgba(255, 255, 255, .04); border-radius: 14px; border: 1px solid rgba(212, 174, 85, .18); }
.phone .streak i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4b5b57; }
.phone .streak i.g { background: radial-gradient(circle at 35% 35%, var(--gold-hi), var(--gold)); border-color: var(--gold); }
.phone .who { font-size: 13px; color: var(--moon-muted); display: flex; justify-content: space-between; }
.phone .word { margin-top: auto; text-align: center; padding: 20px 10px; border-radius: 16px; background: var(--parchment); color: var(--ink); }
.phone .word b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; }
.phone .word small { color: var(--ink-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .app-band .wrap { grid-template-columns: 1fr; } }

/* promise strip */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise div { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.promise b { display: block; color: var(--moon); font-weight: 600; }
.promise svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 60px 0 96px; margin-top: 0; background: #08100F; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--moon); }
.foot-grid .tag { color: var(--muted); max-width: 22em; margin-top: 14px; font-size: 15px; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; transition: all .45s var(--ease); background: var(--night-high); border: 1px solid var(--hair); color: var(--moon); padding: 12px 20px; border-radius: 999px; font-size: 15px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* moving between pages: a short, quiet cross-fade (browsers without it simply load the page) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* One story: the path (Masar Quran), the tree (Shajarah Labs), the garden (Rawdeena). Shared with the sister sites. */
.kin { list-style: none; margin: clamp(30px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.kin::before { content: ''; position: absolute; left: 8%; right: 8%; top: 9px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 12%, var(--gold) 88%, transparent); opacity: .7; }
.kin li { position: relative; padding: 40px clamp(14px, 2.4vw, 34px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kin li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 11px; height: 11px; margin-left: -6px; border-radius: 50%; background: var(--night); border: 1px solid var(--gold); }
.kin li.here::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(212, 174, 85, .14), 0 0 22px rgba(235, 203, 126, .5); }
.kin .kin-step { margin: 0; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.kin h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--moon); }
.kin li > p:not(.kin-step) { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 26em; }
.kin .link { margin-top: 4px; font-size: 15.5px; }
@media (max-width: 760px) {
  .kin { grid-template-columns: 1fr; gap: 34px; padding-left: 30px; }
  .kin::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold-deep), var(--gold)); }
  .kin li { padding: 0; text-align: left; align-items: flex-start; }
  .kin li::before { top: 4px; left: -30px; margin-left: 0; }
}

/* Checkout: where you are in the four steps */
.trail { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 14.5px; color: var(--muted); }
.trail li { display: flex; align-items: center; gap: 9px; }
.trail li + li::before { content: ''; width: clamp(16px, 4vw, 44px); height: 1px; background: var(--line); margin: 0 12px; }
.trail .n { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.trail .done { color: var(--moon); }
.trail .done .n { border-color: var(--emerald); color: var(--emerald); }
.trail [aria-current] { color: var(--gold-hi); }
.trail [aria-current] .n { border-color: var(--gold); background: var(--gold); color: var(--night); font-weight: 600; }
.co-switch { font-size: 14.5px; margin: 0; color: var(--muted); }
.co-switch button { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 700px) { .trail { flex-wrap: nowrap; } .trail li:not([aria-current]) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .trail li + li::before { margin: 0 8px; } }
