/* «الوِرد» — the public website (phase W1). Loaded after app.css (palette, fonts, buttons) by
   layouts/public. Same identity as the app: green #1E5A46, gold #A77B22 / #D9B762, goldSoft
   #F3E4BC, paper #F6F0E1; Amiri for display, IBM Plex Sans Arabic for the interface; the
   eight-point star lattice. Light and dark. Logical properties only (ready for LTR locales).
   Motion is subtle and off with prefers-reduced-motion. */

:root {
  --gold-bright: #D9B762;
  --gold-text: #84601A; /* gold for small text on paper: 4.5:1 and more */
  --cta-bg: #D9B762;
  --cta-ink: #261C02;
  --green-deep: #0F3A2D;
  --band-green-1: #2B6E57;
  --band-green-2: #1E5A46;
  --band-green-3: #0F3A2D;
  --on-band: #F6F0E1;
  --on-band-2: rgba(246, 240, 225, .82);
  --footer-bg: #0E2E23;
  --page-w: 1180px;
  --band-pad: clamp(56px, 7vw, 104px);
  --fs-display: clamp(3.1rem, 2.2rem + 4.6vw, 5.6rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --fs-h2: clamp(1.85rem, 1.4rem + 1.9vw, 2.7rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --radius-lg: 26px;
  --shadow-lg: 0 2px 4px rgba(40, 34, 14, .05), 0 22px 44px -22px rgba(40, 34, 14, .32);
  --shadow-device: 0 34px 64px -30px rgba(8, 26, 19, .62), 0 12px 24px -16px rgba(8, 26, 19, .35);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M30 30h36v36H30z'/%3E%3Cpath d='M48 22.5 73.5 48 48 73.5 22.5 48z'/%3E%3Ccircle cx='48' cy='48' r='8.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold-text: #D9B762;
    --cta-bg: #D9B762; --cta-ink: #221900;
    --band-green-1: #1F4E3E; --band-green-2: #163F31; --band-green-3: #0B241B;
    --footer-bg: #0B1D16;
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -22px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --gold-text: #D9B762;
  --cta-bg: #D9B762; --cta-ink: #221900;
  --band-green-1: #1F4E3E; --band-green-2: #163F31; --band-green-3: #0B241B;
  --footer-bg: #0B1D16;
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -22px rgba(0, 0, 0, .6);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { font-synthesis: none; } /* Amiri ships one weight: never a fake bold */
.container { max-width: var(--page-w); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--green); color: var(--on-green); font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }
.site-main { padding: 0; }
.site-main:focus { outline: none; }
.site-main:not(.has-bands) { padding: 28px 0 56px; }
.flash-top { padding-top: 16px; }
.site-main a:focus-visible, .site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible, .faq-item summary:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 8px; }

/* ---- the lattice (decorative): a mask tinted with currentColor ---- */
.lattice {
  position: absolute; inset: 0; pointer-events: none; color: var(--gold-bright); opacity: .11;
  background-color: currentColor;
  -webkit-mask-image: var(--lattice); mask-image: var(--lattice);
  -webkit-mask-size: 96px 96px; mask-size: 96px 96px;
}

/* ---- buttons (site) ---- */
.btn.lg { min-height: 56px; padding: 0 26px; border-radius: 18px; font-size: 1.05rem; }
.btn.gold { background: var(--cta-bg); color: var(--cta-ink); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.light { background: var(--on-band); color: #17483A; }
.btn.outline-light { background: transparent; color: var(--on-band); border: 1.5px solid rgba(246, 240, 225, .5); }
.btn.outline-light:hover { background: rgba(246, 240, 225, .1); filter: none; }
.btn { transition: filter .15s, background .15s, transform .15s; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--green); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .link-arrow:hover svg { transform: translateX(-4px); } [dir="ltr"] .link-arrow:hover svg { transform: scaleX(-1) translateX(-4px); } }
[dir="ltr"] .link-arrow svg, [dir="ltr"] .door-go svg { transform: scaleX(-1); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-header-in { display: flex; align-items: center; gap: 18px; min-height: 68px; position: relative; }
.brand .mark, .brand svg.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: none; flex: none; }
.site-footer .brand svg.brand-mark { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav ul a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav ul a:hover { background: var(--surface-3); color: var(--ink); }
.site-nav ul a[aria-current="page"] { background: var(--green-soft); color: var(--on-green-soft); font-weight: 600; }
.site-nav-actions { display: flex; gap: 8px; }
.site-header-end { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; place-items: center; padding: 0;
}
.menu-icon { display: grid; gap: 5px; width: 20px; }
.menu-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
[data-open] .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[data-open] .menu-icon i:nth-child(2) { opacity: 0; }
[data-open] .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .site-nav-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .site-header-end { margin-inline-start: auto; }
  .js .menu-btn:not([hidden]) { display: grid; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; margin: 0; padding: 10px 16px 20px;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .js [data-open] .site-nav { display: flex; }
  @media (prefers-reduced-motion: no-preference) { .js [data-open] .site-nav { animation: menu-in .18s ease-out; } }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav ul a { padding: 12px 14px; border-radius: 14px; font-size: 1.05rem; min-height: 48px; }
  .js .site-nav-actions .btn { display: inline-flex; flex: 1; min-height: 48px; }
  /* Without JavaScript: the pages stay a scrollable row under the brand. */
  .no-js .site-header-in { flex-wrap: wrap; padding-bottom: 6px; }
  .no-js .site-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .header-cta { padding: 0 12px; } .brand { font-size: 1.5rem; } }
/* «حساب جديد»: beside «دخول» from 480px; below, only «دخول» shows and «حساب جديد» sits in the folded menu. */
.site-nav-actions .nav-register { display: none !important; }
@media (max-width: 479px) {
  .header-register { display: none; }
  .js .site-nav-actions .nav-register { display: inline-flex !important; flex: 1; min-height: 48px; }
}


/* ---- bands (full-width sections) ---- */
.band { position: relative; padding-block: var(--band-pad); }
.band-soft { background: var(--surface-2); border-block: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.band-green {
  color: var(--on-band); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 95% at 82% 0%, var(--band-green-1) 0%, var(--band-green-2) 46%, var(--band-green-3) 100%);
}
.band-green h1, .band-green h2, .band-green h3 { color: var(--on-band); }
.band-green .lead { color: var(--on-band-2); }
.band-green a:not(.btn) { color: var(--gold-bright); }
.band-gold { background: color-mix(in srgb, var(--gold-soft) 70%, var(--surface)); overflow: hidden; isolation: isolate; }
.band-gold .lattice { color: var(--gold); opacity: .1; }
.band > .container { position: relative; }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); color: var(--green); margin-bottom: .25em; }
.section-head .lead { font-size: var(--fs-lead); color: var(--ink-2); margin: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px;
  font-size: .9rem; font-weight: 700; color: var(--gold-text);
}
.kicker::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; transform: rotate(45deg); border-radius: 1px; opacity: .9; }
.kicker.on-dark, .band-green .kicker { color: var(--gold-bright); }
.lead { font-size: var(--fs-lead); }

.soon-pill {
  display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; vertical-align: middle;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700; line-height: 1.8;
  background: var(--gold-soft); color: var(--on-gold-soft); white-space: nowrap;
}
.band-green .soon-pill { background: rgba(217, 183, 98, .2); color: var(--gold-bright); }

/* ---- hero ---- */
.hero-band { padding-block: clamp(40px, 6vw, 84px) clamp(110px, 12vw, 160px); }
.hero-band .lattice { opacity: .09; }
.hero-band::after { /* soft light behind the devices */
  content: ""; position: absolute; z-index: -1; inset-inline-end: -10%; top: 10%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(217, 183, 98, .22), transparent); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-mark { line-height: 0; margin-bottom: 18px; }
.hero-mark svg { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(217, 183, 98, .35), 0 16px 30px -16px rgba(0, 0, 0, .6); }
.hero-title { margin: 0 0 18px; line-height: 1.1; }
.hero-name { display: block; font-size: var(--fs-display); color: var(--on-band); }
.hero-promise { display: block; margin-top: 10px; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.45; color: var(--gold-bright); max-width: 18em; }
.hero-lead { font-size: var(--fs-lead); line-height: 1.95; color: var(--on-band-2); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-band .latest-release { margin: 18px 0 0; font-size: .92rem; }
.hero-band .latest-release a { color: var(--on-band-2); text-decoration: none; border-bottom: 1px dashed rgba(246, 240, 225, .4); }
.hero-band .latest-release a:hover { color: var(--on-band); }
.hero-art { position: relative; padding-bottom: 36px; }
.hero-art .hero-tablet { width: 100%; }
.hero-art .hero-phone { position: absolute; inset-inline-end: -14px; bottom: -36px; width: clamp(130px, 30%, 210px); margin: 0; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art .hero-phone { inset-inline-end: -4px; width: 36%; }
}

/* ---- device frames ---- */
.mockup { margin: 0; }
.mockup-frame { position: relative; background: #141A16; box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.mockup-screen { overflow: hidden; background: var(--paper); }
.mockup-screen img { display: block; width: 100%; height: auto; }
.mockup-tablet .mockup-frame { border-radius: 26px; padding: clamp(8px, 1.3vw, 13px); }
.mockup-tablet .mockup-screen { border-radius: clamp(10px, 1vw, 15px); }
.mockup-tablet-portrait { max-width: 360px; }
.mockup-tablet-portrait .mockup-frame { border-radius: 30px; padding: 12px; }
.mockup-tablet-portrait .mockup-screen { border-radius: 16px; }
.mockup-phone .mockup-frame { border-radius: 40px; padding: 8px; }
.mockup-phone .mockup-screen { border-radius: 33px; }
.mockup-phone .mockup-frame::before { /* camera */
  content: ""; position: absolute; z-index: 2; top: 15px; inset-inline: 0; margin-inline: auto; width: 26%; height: 14px;
  border-radius: 10px; background: #141A16;
}
.mockup figcaption { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--ink-2); }
.band-green .mockup figcaption { color: var(--on-band-2); }

/* the tour's drawn mini-screens (public/css/tour.css) in their phone */
.mock-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.mock-phone { --phone-w: 272px; --phone-h: 560px; }
.mock-phone .phone { box-shadow: var(--shadow-device), 0 0 0 1px var(--line-strong); }
.mock-figure figcaption:not(.sr-only) { margin-top: 12px; font-size: .85rem; color: var(--ink-2); text-align: center; max-width: 280px; }
.no-js .mock-phone *, .no-js .mock-phone *::before, .no-js .mock-phone *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mock-phone *, .mock-phone *::before, .mock-phone *::after { animation: none !important; transition: none !important; }
}

/* ---- the four doors ---- */
.doors-band { position: relative; z-index: 3; margin-top: clamp(-120px, -9vw, -76px); padding-bottom: 8px; }
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.door {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 52px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s;
}
.door:hover { border-color: var(--green); }
@media (prefers-reduced-motion: no-preference) { .door:hover { transform: translateY(-3px); } }
.door-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-soft); color: var(--on-gold-soft); margin-bottom: 6px; }
.door-ico svg { width: 25px; height: 25px; }
.door-family .door-ico, .door-school .door-ico { background: var(--green-soft); color: var(--on-green-soft); }
.door-title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.3; color: var(--green); }
.door-text { color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.door-go { position: absolute; bottom: 16px; inset-inline-end: 18px; color: var(--gold); }
.door-go svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .doors { grid-template-columns: 1fr; } .door { padding: 18px 18px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; } .door-ico { margin: 0; } .door-text { flex-basis: 100%; } .door-go { bottom: auto; top: 26px; } }

/* ---- pillars ---- */
.pillars { padding-bottom: calc(var(--band-pad) * .4); }
.pillar { padding-block: clamp(36px, 5vw, 64px); }
.pillar + .pillar { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pillar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pillar.reverse .pillar-media { order: -1; }
.pillar-title { font-size: var(--fs-h3); color: var(--green); margin-bottom: .35em; }
.pillar-text { font-size: 1.06rem; line-height: 1.95; }
.how-title { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--ink); margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.how-title::after { content: ""; flex: 1; max-width: 80px; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--gold), transparent); }
[dir="ltr"] .how-title::after { background: linear-gradient(to right, var(--gold), transparent); }
.benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.benefits li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.8; }
.benefits svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-soft); color: var(--on-green-soft); margin-top: 1px; }
.benefits .is-soon svg { background: var(--gold-soft); color: var(--on-gold-soft); }
.benefits .is-soon { color: var(--ink-2); }

.pillar-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; isolation: isolate; }
.pillar-media::before { /* a soft gold halo with the lattice */
  content: ""; position: absolute; z-index: -1; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 85%, transparent), transparent);
}
.pillar-media.has-tablet { flex-direction: column; padding-bottom: 40px; }
.pillar-media.has-tablet .mockup-tablet { width: 100%; max-width: 560px; }
.pillar-media.has-tablet .mock-figure { position: absolute; bottom: -10px; inset-inline-start: -6px; transform: scale(.66); transform-origin: bottom left; }
[dir="rtl"] .pillar-media.has-tablet .mock-figure { transform-origin: bottom right; }
.pillar-media.has-tablet:has(.mockup-tablet-portrait) { flex-direction: row; justify-content: center; }
.pillar-media.has-tablet .mockup-tablet-portrait { max-width: 330px; margin-inline-start: 120px; }
.square-card { margin: 0; position: absolute; width: min(270px, 46%); inset-inline-end: 4%; top: 6%; transform: rotate(-6deg); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-device); }
[dir="ltr"] .square-card { transform: rotate(6deg); }
.square-card img { display: block; width: 100%; height: auto; }
.pillar-media.has-square .mock-figure { margin-inline-end: 22%; }
.badge-pair { margin: 0; position: absolute; inset-inline-end: 2%; top: 4%; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; width: min(300px, 48%); }
.badge-pair picture { width: calc(50% - 5px); }
.badge-pair img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-device); }
.badge-pair picture:first-child img { transform: rotate(5deg); }
.badge-pair picture:nth-child(2) img { transform: rotate(-4deg) translateY(18px); }
.badge-pair figcaption { flex-basis: 100%; margin-top: 26px; font-size: .85rem; color: var(--ink-2); text-align: center; }
.pillar-media.has-badges .mock-figure { margin-inline-end: 26%; }

@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar.reverse .pillar-media { order: 0; }
  .pillar-media { min-height: 0; }
  .pillar-media.has-tablet .mock-figure { position: relative; inset: auto; margin-top: -150px; transform: scale(.7); transform-origin: top center; margin-bottom: -168px; align-self: flex-start; }
  .pillar-media.has-tablet:has(.mockup-tablet-portrait) { flex-direction: column; }
  .pillar-media.has-tablet .mockup-tablet-portrait { margin: 0; max-width: 300px; }
  .pillar-media.has-tablet:has(.mockup-tablet-portrait) .mock-figure { align-self: center; }
  .square-card { width: 42%; inset-inline-end: 0; top: 0; }
  .badge-pair { width: 44%; inset-inline-end: 0; top: 0; }
  .pillar-media.has-square .mock-figure, .pillar-media.has-badges .mock-figure { margin-inline-end: 30%; }
}
@media (max-width: 480px) {
  .pillar-media.has-square .mock-figure, .pillar-media.has-badges .mock-figure { margin-inline-end: 22%; }
  .square-card { width: 46%; }
}

/* ---- «نظام متكامل» ---- */
.system-map { position: relative; max-width: 1040px; margin: 0 auto; }
.system-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.system-lines path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .75; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) { .system-map.in .system-lines path { animation: flow-dash 1.6s linear infinite; } }
@keyframes flow-dash { to { stroke-dashoffset: -22; } }
.system-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 214px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 20px;
  color: var(--on-band); background: radial-gradient(circle at 50% 30%, var(--band-green-1), var(--band-green-3));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold-soft) 60%, transparent), var(--shadow-device);
}
.system-hub strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.3; }
.system-hub small { color: var(--on-band-2); font-size: .85rem; }
.hub-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold-bright); color: var(--gold-bright); margin-bottom: 4px; }
.hub-ring svg { width: 28px; height: 28px; }
.system-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); gap: 36px 24px; position: relative; z-index: 1; }
.node {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start;
  padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.node-ico { grid-row: span 3; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--green-soft); color: var(--on-green-soft); }
.node-ico svg { width: 25px; height: 25px; }
.node-step { position: absolute; top: -12px; inset-inline-end: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: .9rem; }
.node strong { font-size: 1.1rem; color: var(--green); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.node > span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.node-1 { grid-column: 1; grid-row: 1; }
.node-2 { grid-column: 1; grid-row: 2; }
.node-3 { grid-column: 3; grid-row: 1; }
.node-4 { grid-column: 3; grid-row: 2; }
@media (max-width: 900px) {
  .system-lines { display: none; }
  .system-hub { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 30px; width: 190px; }
  .system-nodes { grid-template-columns: 1fr; gap: 18px; padding-inline-start: 22px; }
  .system-nodes::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 6px; width: 2px; background: repeating-linear-gradient(to bottom, var(--gold) 0 4px, transparent 4px 12px); }
  .node-1, .node-2, .node-3, .node-4 { grid-column: 1; grid-row: auto; }
}

/* ---- «الوِرد بالأرقام» ---- */
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 560px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat-tile { padding: 16px 14px; } .stat-note { font-size: .8rem; } }
.stat-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.stat-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--on-gold-soft); margin-bottom: 8px; }
.stat-ico svg { width: 22px; height: 22px; }
.stat-num { font-family: var(--font-ui); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); font-weight: 700; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 700; font-size: 1.05rem; }
.stat-note { color: var(--ink-2); font-size: .88rem; line-height: 1.7; }
.stat-sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 600; color: var(--gold-text); }
.stat-sub svg { width: 18px; height: 18px; }
.stats-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin: 18px 0 0; color: var(--ink-2); font-size: .9rem; }

/* ---- free forever ---- */
.free-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; max-width: 940px; }
.free-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--gold); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 14%, transparent); }
.free-ico svg { width: 34px; height: 34px; }
.free-band h2 { font-size: var(--fs-h2); color: var(--green); margin-bottom: .3em; }
.free-band .free-line { font-size: 1.15rem; font-weight: 600; line-height: 1.9; margin-bottom: .5em; }
.free-band .sadaqa-line { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 2; color: var(--on-gold-soft); margin-bottom: 1em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); font-weight: 600; font-size: .92rem; }
.chips svg { width: 17px; height: 17px; color: var(--success); }
.chips.on-dark li { background: rgba(246, 240, 225, .08); border-color: rgba(246, 240, 225, .22); color: var(--on-band); }
.chips.on-dark svg { color: var(--gold-bright); }
@media (max-width: 560px) { .free-grid { grid-template-columns: 1fr; } }

/* ---- the schools offer ---- */
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.offer-band h2 { font-size: var(--fs-h2); line-height: 1.45; }
.offer-band .chips { margin: 18px 0 26px; }
.offer-art { position: relative; display: flex; justify-content: center; gap: 18px; padding-block: 10px 30px; }
.offer-art picture { width: min(190px, 42%); }
.offer-art img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.offer-art picture:first-child img { transform: rotate(-5deg); }
.offer-art picture:last-child img { transform: rotate(6deg) translateY(26px); }
[dir="ltr"] .offer-art picture:first-child img { transform: rotate(5deg); }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } .offer-art { order: -1; } }

/* ---- tour + download ---- */
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.start-card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.start-card h2 { font-size: var(--fs-h3); color: var(--green); margin-bottom: .3em; }
.tour-card { padding-inline-end: clamp(24px, 40%, 250px); min-height: 360px; }
.tour-card-phone { position: absolute; inset-inline-end: 24px; top: 30px; width: min(200px, 34%); transform: rotate(-4deg); }
[dir="ltr"] .tour-card-phone { transform: rotate(4deg); }
.download-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin: 18px 0; }
.download-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.download-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 170px; }
.download-qr .qr { padding: 10px; border-radius: 16px; }
.download-qr .qr svg { width: 132px; height: 132px; display: block; }
.download-qr figcaption { font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .start-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tour-card { padding-inline-end: 24px; min-height: 0; } .tour-card-phone { position: relative; inset: auto; margin: 22px auto 0; width: 62%; transform: none; } }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 10px; margin-bottom: 22px; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq-item[open] { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-weight: 600; font-size: 1.05rem; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .2s; transform: rotate(0deg); }
.faq-item[open] summary svg { transform: rotate(-90deg); }
[dir="ltr"] .faq-item summary svg { transform: scaleX(-1); }
[dir="ltr"] .faq-item[open] summary svg { transform: rotate(90deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.95; }
.faq-a p { margin: 0; }

/* ---- the tour invitation (home, first visit) ---- */
.page-home .tour-invite {
  position: fixed; z-index: 50; inset-inline: 16px; bottom: 16px; max-width: 520px; margin: 0;
  box-shadow: var(--shadow-lg);
}
.page-home .tour-invite > svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) { .page-home .tour-invite:not([hidden]) { animation: menu-in .3s ease-out 1.2s both; } }

/* ---- page heroes (pillar pages, features, faq, stats) ---- */
.page-hero { padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.3; margin-bottom: .3em; }
.page-hero .lead { font-size: var(--fs-lead); line-height: 1.95; margin-bottom: 24px; max-width: 36em; }
.page-hero-art { display: flex; justify-content: center; position: relative; }
.page-hero .release-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 14px; border-radius: 14px; background: rgba(217, 183, 98, .16); color: var(--gold-bright); font-weight: 600; }
.page-hero .release-note svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

.signed-in-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 10px 14px; border-radius: 14px; background: rgba(246, 240, 225, .08); border: 1px solid rgba(246, 240, 225, .2); font-size: .95rem; }

/* ---- content sections of the pillar pages ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.reverse > :last-child { order: -1; }
.split h2, .split h3 { font-size: var(--fs-h3); color: var(--green); margin-bottom: .35em; }
.split p { font-size: 1.05rem; line-height: 1.95; }
.split-media { display: flex; justify-content: center; position: relative; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :last-child { order: 0; } }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.info-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h3 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; color: var(--green); margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.info-card p { margin: 0; color: var(--ink-2); line-height: 1.85; }
.info-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--on-green-soft); margin-bottom: 12px; }
.info-card .ico svg { width: 23px; height: 23px; }
.info-card.gold .ico { background: var(--gold-soft); color: var(--on-gold-soft); }

.title-cloud { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.title-cloud li { padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.15rem; color: var(--green); }
.title-cloud li:nth-child(3n) { background: var(--gold-soft); color: var(--on-gold-soft); border-color: transparent; }

.levels { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.levels li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.levels li::before { content: ""; grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; background: var(--green); }
.levels li:nth-child(2)::before { background: var(--gold); }
.levels li:nth-child(3)::before { background: var(--line-strong); }
.levels strong { font-size: 1.02rem; }
.levels span { color: var(--ink-2); font-size: .95rem; }

.ways { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ways li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 14px; background: var(--green-soft); color: var(--on-green-soft); font-weight: 600; }
.ways svg { width: 20px; height: 20px; }
.soon-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: .95rem; margin: 0; }

.scenarios { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.scenario { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scenario .who { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; background: var(--gold-soft); color: var(--on-gold-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.scenario:nth-child(even) .who { background: var(--green-soft); color: var(--on-green-soft); }
.scenario h3 { font-size: 1.4rem; color: var(--green); margin: 0; }
.scenario p { margin: 0; color: var(--ink-2); line-height: 1.9; }

.verse {
  margin: 0 auto; max-width: 900px; text-align: center; font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 2; color: var(--on-band);
}
.verse .orn { color: var(--gold-bright); }
.verse-ref { display: block; margin-top: 4px; font-family: var(--font-ui); font-size: .95rem; color: var(--on-band-2); }

.medals { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.medals li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.medals li::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F7E7B4, #D9B762 45%, #A77B22 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }

.audiences { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.audience h3 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; color: var(--green); }
.audience h3 .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-soft); color: var(--on-gold-soft); }
.audience h3 .ico svg { width: 24px; height: 24px; }
.audience ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.audience li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; line-height: 1.8; }
.audience li svg { width: 22px; height: 22px; color: var(--success); margin-top: 3px; }
@media (max-width: 960px) { .audiences { grid-template-columns: 1fr; } }

.grades-row { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grades-row li { display: grid; place-items: center; min-height: 64px; border-radius: 16px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.grades-row .g-excellent { background: var(--grade-excellent); color: var(--grade-excellent-on); }
.grades-row .g-good { background: var(--grade-good); color: var(--grade-good-on); }
.grades-row .g-acceptable { background: var(--grade-acceptable); color: var(--grade-acceptable-on); }
.grades-row .g-repeat { background: var(--grade-repeat); color: var(--grade-repeat-on); }
@media (max-width: 420px) { .grades-row { grid-template-columns: repeat(2, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 58px 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; top: 16px; inset-inline-start: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-green); font-weight: 700; }
.steps h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.steps p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.75; }
.steps-time { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-2); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); } }

.verified-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--on-gold-soft); font-weight: 700; font-size: .95rem; }
.verified-badge svg { width: 20px; height: 20px; color: var(--gold); }

.badges-show { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.badges-show picture { width: min(150px, calc(25% - 11px)); }
@media (max-width: 560px) { .badges-show picture { width: calc(50% - 7px); } }
.badges-show img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-device); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band .lead { margin: 0 auto 26px; max-width: 34em; }
.cta-band .hero-actions { justify-content: center; }

/* ---- /features ---- */
.feature-jump { position: sticky; top: 68px; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.feature-jump ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.feature-jump a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.feature-jump a:hover { border-color: var(--green); }
.feature-section { padding-block: clamp(32px, 5vw, 56px); scroll-margin-top: 130px; }
.feature-section + .feature-section { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.feature-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.feature-section-head .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--on-green); }
.feature-section-head .ico svg { width: 26px; height: 26px; }
.feature-section-head h2 { font-size: var(--fs-h3); color: var(--green); margin: 0; }
.feature-section-head .count { color: var(--ink-2); font-size: .9rem; }
.feature-section-head .link-arrow { margin-inline-start: auto; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.feature-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.feature-item.is-soon { background: color-mix(in srgb, var(--gold-soft) 22%, var(--surface)); border-style: dashed; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.feature-text { line-height: 1.85; }
.feature-text strong { color: var(--green); }
.feature-benefit { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .93rem; margin-top: auto; }
.feature-benefit svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.9; }
.status-pill.available { background: var(--green-soft); color: var(--on-green-soft); }
.status-pill.available::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.soon { background: var(--gold-soft); color: var(--on-gold-soft); }
.status-version, .status-note { font-size: .8rem; color: var(--ink-2); }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; color: var(--on-band-2); font-size: .92rem; }
.legend-row span { display: inline-flex; align-items: center; gap: 8px; }
.taglines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.taglines li { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.8; color: var(--green); }

/* ---- /stats ---- */
.stats-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats-how li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; line-height: 1.85; }
.stats-how svg { width: 24px; height: 24px; color: var(--green); }
.api-line { margin-top: 20px; font-size: .92rem; color: var(--ink-2); }
.api-line code { direction: ltr; unicode-bidi: isolate; display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--surface-3); color: var(--ink); font-size: .88rem; }

/* ---- footer ---- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--footer-bg); color: var(--on-band-2); padding: 56px 0 24px; font-size: .95rem; }
.site-footer .lattice { opacity: .05; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--gold-bright); margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-band-2); text-decoration: none; }
.site-footer a:hover { color: var(--on-band); text-decoration: underline; }
.site-footer .brand.on-dark { color: var(--on-band); font-size: 1.9rem; margin-bottom: 12px; }
.site-footer-brand p { margin: 0 0 12px; line-height: 1.85; max-width: 30em; }
.site-footer-free { display: flex; gap: 8px; align-items: flex-start; color: var(--on-band); }
.site-footer-free svg { width: 20px; height: 20px; color: var(--gold-bright); flex: none; margin-top: 4px; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(246, 240, 225, .14); font-size: .85rem; }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer-grid { grid-template-columns: 1fr; } }

/* ---- reveal on scroll: only once public/js/site.js runs (html.site-ready), never with reduced
   motion — without the script everything is simply visible ---- */
@media (prefers-reduced-motion: no-preference) {
  .site-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .site-ready .reveal.in { opacity: 1; transform: none; }
}
