/* Salah Sphere — salahsphere.app
   Self-hosted fonts, no trackers, no external requests. */

@font-face { font-family: "Pagella"; src: url("assets/fonts/pagella-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("assets/fonts/pagella-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("assets/fonts/pagella-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-var.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0A1022;
  --ink-2: #0F1830;
  --ink-3: #16213F;
  --navy-glow: #22346F;
  --gold: #E7BE69;
  --gold-deep: #C8933F;
  --gold-hi: #FBE3A2;
  --cream: #F5ECD8;
  --paper: #F7F1E4;
  --paper-ink: #1B2442;
  --text: #D7DCEA;
  --muted: #9BA7C4;
  --line: rgba(231, 190, 105, 0.22);
  --line-soft: rgba(215, 220, 234, 0.10);
  --teal: #6FC2B1;
  --crimson: #8E2A3A;
  --radius: 22px;
  --max: 1160px;
  --serif: "Pagella", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- The app's patterns, scattered as panels ----------
   Every SVG in assets/patterns is drawn from the app's own geometry
   (khatam, jali, zellige, quatrefoil, ogee, stars, mashrabiya). */
.deco { position: absolute; pointer-events: none; z-index: 0; background-repeat: no-repeat; background-position: center top; background-size: contain; }
.has-deco { position: relative; overflow: clip; }
.has-deco > .wrap { position: relative; z-index: 1; }
.arch { aspect-ratio: 424 / 690; }
.disc { aspect-ratio: 1; }
.arch-khatam { background-image: url("assets/patterns/arch-khatam.svg"); }
.arch-ogee { background-image: url("assets/patterns/arch-ogee.svg"); }
.arch-jali { background-image: url("assets/patterns/arch-jali.svg"); }
.arch-quatrefoil { background-image: url("assets/patterns/arch-quatrefoil.svg"); }
.arch-mashrabiya { background-image: url("assets/patterns/arch-mashrabiya.svg"); }
.arch-zellige { background-image: url("assets/patterns/arch-zellige.svg"); }
.disc-zellige { background-image: url("assets/patterns/disc-zellige.svg"); }
.disc-khatam { background-image: url("assets/patterns/disc-khatam.svg"); }
.disc-zellige-bronze { background-image: url("assets/patterns/disc-zellige-bronze.svg"); }
.band { background-size: 100% 100%; }
.band-khatam { background-image: url("assets/patterns/band-khatam.svg"); }
.band-ogee { background-image: url("assets/patterns/band-ogee.svg"); }

main, header, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
html { overflow-x: hidden; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: linear-gradient(180deg, rgba(10, 16, 34, 0.86), rgba(10, 16, 34, 0.62));
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,0.45); }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-hi); background: rgba(231, 190, 105, 0.08); }
.nav-links .pill {
  color: var(--ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 20px rgba(231, 190, 105, 0.25);
}
.nav-links .pill:hover { color: var(--ink); background: linear-gradient(135deg, #fff1c9, var(--gold-hi) 55%, var(--gold)); }
.brand span { white-space: nowrap; }
@media (max-width: 1060px) { .nav-links a.hide-md { display: none; } }
@media (max-width: 640px) {
  .nav-links a.hide-sm { display: none; }
  .brand span { font-size: 20px; }
  .nav-links .pill { padding: 7px 12px; font-size: 14px; }
}
@media (max-width: 400px) {
  .nav-links .pill { display: none; }
  .soon { font-size: 14px; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--cream); line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 7.2vw, 84px); }
h2, h3, .aside { text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 24px; }
.gold-text {
  background: linear-gradient(120deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 33%, 95% 25%, 72% 50%, 95% 75%, 61% 67%, 50% 100%, 39% 67%, 5% 75%, 28% 50%, 5% 25%, 39% 33%);
}
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Buttons & chips ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 750; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold { color: var(--ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 10px 30px rgba(231, 190, 105, 0.28); }
.btn-gold:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(231, 190, 105, 0.36); }
.btn-ghost { color: var(--cream); border-color: var(--line); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { color: var(--gold-hi); border-color: rgba(231,190,105,0.45); }

.soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(231, 190, 105, 0.07);
  color: var(--cream); font-weight: 650; font-size: 15px;
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(231, 190, 105, 0.18); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -220px; top: -160px;
  background: radial-gradient(circle, rgba(52, 76, 160, 0.55) 0%, rgba(25, 37, 88, 0.35) 35%, transparent 68%);
  filter: blur(10px);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 5.2vw, 70px); }
.hero h1 .nw { white-space: nowrap; }
.hero .lead { margin-top: 22px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-note strong { font-weight: inherit; font-family: var(--serif); font-style: italic; font-size: 1.14em; color: var(--gold-hi); }

.phones { position: relative; height: 640px; }
.phones .phone { position: absolute; top: 40px; width: 270px; }
.phones .p-left { left: 50%; transform: translateX(-112%) rotate(-7deg) scale(0.88); top: 84px; z-index: 1; }
.phones .p-mid { left: 50%; transform: translateX(-50%); z-index: 3; }
.phones .p-right { left: 50%; transform: translateX(12%) rotate(7deg) scale(0.88); top: 84px; z-index: 2; }
.phones .p-left img, .phones .p-right img { filter: saturate(0.95) brightness(0.92); }
.phones .halo {
  position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(231, 190, 105, 0.26), rgba(231, 190, 105, 0.05) 45%, transparent 70%);
  filter: blur(8px); z-index: 0;
}
.hero-arch { width: 700px; left: 50%; top: -60px; transform: translateX(-50%); opacity: 0.8; }
.d-stars {
  inset: 0; opacity: 0.34; background: url("assets/patterns/tile-stars-gold.svg") 0 0 / 104px 104px repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 18% 8%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 18% 8%, #000, transparent 70%);
}

.phone {
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(150deg, #39436A 0%, #141B33 38%, #0B1022 70%, #2B3354 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(231, 190, 105, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; background: #0d1428; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .phones { height: 560px; margin-top: 0; }
  .phones .phone { width: 240px; }
  .hero-arch { width: 600px; top: 24px; }
}
@media (max-width: 520px) {
  .phones { height: 470px; }
  .phones .phone { width: 210px; }
  .phones .p-left { transform: translateX(-104%) rotate(-7deg) scale(0.84); }
  .phones .p-right { transform: translateX(4%) rotate(7deg) scale(0.84); }
  .hero-arch { width: 400px; top: 18px; }
  .phones .halo { width: 380px; height: 380px; }
}

/* ---------- A pause ---------- */
.pause { border-bottom: 1px solid var(--line-soft); }
.d-pause-disc { width: 760px; left: -330px; top: 50%; transform: translateY(-50%); opacity: 0.42; }
.d-pause-band { width: 96px; right: max(18px, calc(50% - 700px)); top: 6%; bottom: 6%; opacity: 0.5; }
.pause .section-head em { font-family: var(--serif); color: var(--cream); font-size: 1.04em; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.stat {
  position: relative; text-align: center; padding: 34px 26px 30px;
  border: 1px solid var(--line-soft); border-radius: 26px;
  background: linear-gradient(170deg, rgba(231,190,105,0.07), rgba(10,16,34,0.6) 60%);
  backdrop-filter: blur(2px);
}
.stat b {
  display: block; font-family: var(--serif); font-weight: 400; line-height: 1; font-size: clamp(76px, 9vw, 112px);
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 16px; color: var(--text); font-size: 16.5px; }
.stat em {
  display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--cream);
}
.aside { text-align: center; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--cream); margin: 64px auto 0; max-width: 24em; }
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr; max-width: 460px; }
  .d-pause-disc { width: 520px; left: -300px; top: 32%; }
  .d-pause-band { display: none; }
}

/* ---------- Promise strip ---------- */
.promises { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015); }
.promises ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.promises li { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 650; font-size: 15.5px; }
.promises li::before {
  content: ""; width: 10px; height: 10px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 33%, 95% 25%, 72% 50%, 95% 75%, 61% 67%, 50% 100%, 39% 67%, 5% 75%, 28% 50%, 5% 25%, 39% 33%);
}

/* ---------- Sections ---------- */
section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin: 18px auto 0; max-width: 40em; color: var(--muted); font-size: 18px; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(160px, 26vw); background: linear-gradient(90deg, transparent, var(--line)); }
.ornament::after { transform: scaleX(-1); }
.ornament i {
  width: 14px; height: 14px; background: var(--gold); display: block;
  clip-path: polygon(50% 0, 61% 33%, 95% 25%, 72% 50%, 95% 75%, 61% 67%, 50% 100%, 39% 67%, 5% 75%, 28% 50%, 5% 25%, 39% 33%);
}

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(40px, 6vw, 70px) 0;
}
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding-top: 96px; }
.feature-media::before {
  content: ""; position: absolute; width: min(460px, 100vw); height: min(460px, 100vw); top: 52%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(52, 76, 160, 0.5), rgba(231, 190, 105, 0.05) 45%, transparent 68%); z-index: 0;
}
.feature-media .arch { width: 460px; left: 50%; top: 0; transform: translateX(-50%); opacity: 0.72; }
.feature-media .phone { width: 290px; position: relative; z-index: 1; }
.pat-cap { position: relative; z-index: 1; margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; letter-spacing: 0.01em; }
.pat-cap i { font-family: var(--serif); font-size: 15.5px; color: var(--gold); }
.feature-media .phone.second { position: absolute; width: 230px; z-index: 0; transform: translate(62%, 14%) rotate(6deg); opacity: 0.9; }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 14px; }
.feature p { color: var(--text); margin: 18px 0 0; max-width: 33em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 33%, 95% 25%, 72% 50%, 95% 75%, 61% 67%, 50% 100%, 39% 67%, 5% 75%, 28% 50%, 5% 25%, 39% 33%);
}
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { width: 250px; }
  .feature-media .arch { width: 380px; }
  .feature-media .phone.second { width: 190px; }
}

/* Du'as: a morning phone (light) and an evening phone (dark), side by side */
.duo { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-start; }
.duo .phone { width: 230px; }
@media (max-width: 880px) { .duo { gap: 12px; } .duo .phone { width: 42vw; max-width: 220px; } }

/* Small feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  padding: 26px 24px;
}
.card h3 { font-size: 22px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(251, 227, 162, 0.25), rgba(231, 190, 105, 0.08));
  border: 1px solid var(--line);
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--gold-hi); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 880px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Manifesto ---------- */
.manifesto {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(142, 42, 58, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(231, 190, 105, 0.10), transparent 70%),
    #080D1C;
}
.manifesto > .wrap { max-width: 860px; }
.d-band-l, .d-band-r { width: 88px; top: 0; bottom: 0; opacity: 0.55; }
.d-band-l { left: max(16px, calc(50% - 660px)); }
.d-band-r { right: max(16px, calc(50% - 660px)); }
.manifesto h2 { font-size: clamp(40px, 6vw, 74px); margin-top: 18px; line-height: 1.08; }
.m-body { margin: 54px auto 0; }
.m-body p { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 25px); line-height: 1.6; color: var(--text); margin: 0 0 22px; }
.m-body strong { font-weight: 400; color: var(--cream); background: linear-gradient(transparent 62%, rgba(231,190,105,0.28) 62%); }
.m-verdict {
  text-align: center; font-style: italic; color: var(--gold-hi) !important;
  font-size: clamp(30px, 4vw, 44px) !important; margin: 36px 0 34px !important;
}
.m-verdict::before, .m-verdict::after { content: ""; display: block; width: 60px; height: 1px; margin: 0 auto; background: var(--line); }
.m-verdict::before { margin-bottom: 22px; } .m-verdict::after { margin-top: 22px; }
.ledger { margin: 48px auto 0; max-width: 680px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,0.02); }
.ledger .row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 17px 24px; border-top: 1px dashed rgba(215,220,234,0.14); }
.ledger .row:first-child { border-top: 0; }
.ledger .row span { font-weight: 700; color: var(--muted); }
.ledger .row s { color: var(--muted); text-decoration-color: #C2566A; text-decoration-thickness: 2px; text-align: right; }
.ledger .row.new { background: linear-gradient(90deg, rgba(231,190,105,0.16), rgba(231,190,105,0.05)); border-top: 1px solid var(--line); }
.ledger .row.new span { color: var(--cream); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.ledger .row.new b { color: var(--gold-hi); text-align: right; }
.m-sign { text-align: center; margin: 40px 0 0; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 19px; }
.m-sign::before { content: "— "; }
@media (max-width: 760px) {
  .d-band-l, .d-band-r { width: 34px; opacity: 0.2; }
  .d-band-l { left: 0; } .d-band-r { right: 0; }
  .ledger .row { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .ledger .row s, .ledger .row.new b { text-align: left; }
}

/* ---------- Themes: swatches & gallery ---------- */
.swatches { list-style: none; padding: 0; margin: 0 auto 70px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatches li { text-align: center; }
.swatches b { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--cream); }
.swatches span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sw {
  aspect-ratio: 3 / 4; border-radius: 50% 50% 16px 16px / 30% 30% 16px 16px;
  border: 1px solid rgba(231,190,105,0.45);
  box-shadow: inset 0 0 0 5px rgba(0,0,0,0.25), inset 0 0 0 6px rgba(231,190,105,0.25), 0 18px 40px rgba(0,0,0,0.35);
  background-repeat: repeat;
}
.sw-midnight { background: radial-gradient(circle at 50% 30%, transparent, rgba(5,8,20,0.65) 85%), url("assets/patterns/tile-khatam-gold.svg") center / 46px, #121B3A; }
.sw-emerald { background: radial-gradient(circle at 50% 30%, transparent, rgba(3,14,10,0.6) 85%), url("assets/patterns/tile-jali-emerald.svg") center / 30px, #0F2C22; }
.sw-sandstone { background: radial-gradient(circle at 50% 30%, transparent, rgba(20,10,4,0.6) 85%), url("assets/patterns/tile-zellige-terracotta.svg") center / 52px, #2E1F16; }
.sw-iznik { background: radial-gradient(circle at 50% 30%, transparent, rgba(2,16,18,0.6) 85%), url("assets/patterns/tile-quatrefoil-turquoise.svg") center / 42px, #0C2D31; }
.sw-lantern { background: radial-gradient(circle at 50% 30%, transparent, rgba(18,6,20,0.6) 85%), url("assets/patterns/tile-ogee-amber.svg") center / 32px, #2C1830; }
.sw-minimal { background: radial-gradient(circle at 50% 30%, transparent, rgba(0,0,0,0.6) 85%), url("assets/patterns/tile-stars-gold.svg") center / 62px, #141414; }
@media (max-width: 980px) { .swatches { grid-template-columns: repeat(3, 1fr); gap: 26px 16px; } }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

.gallery { display: flex; gap: 26px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.gallery .phone { width: 230px; }
.gallery figure { margin: 0; }
.gallery figure.lift { margin-top: -26px; }
.gallery figure.lift .phone { width: 250px; box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(231,190,105,0.5), 0 0 70px rgba(94,211,198,0.12); }
.gallery figcaption { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 650; }
@media (max-width: 760px) {
  .gallery { flex-wrap: nowrap; gap: 10px; }
  .gallery .phone { width: 31vw; max-width: 200px; border-radius: 24px; padding: 5px; }
  .gallery .phone img { border-radius: 20px; }
  .gallery figure.lift { margin-top: -14px; }
  .gallery figure.lift .phone { width: 33vw; }
}

/* Paper section: privacy promise */
.paper {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(231, 190, 105, 0.22), transparent 55%),
    var(--paper);
  color: var(--paper-ink);
  position: relative;
}
.paper h2 { color: var(--paper-ink); }
.paper .eyebrow { color: #9A6E22; }
.paper .eyebrow::before { background: #B98634; }
.paper .section-head p { color: #4A5372; }
.paper .ornament { color: #B98634; }
.paper .ornament::before, .paper .ornament::after { background: linear-gradient(90deg, transparent, rgba(185, 134, 52, 0.45)); }
.paper .ornament i { background: #B98634; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise {
  background: #FFFDF7; border: 1px solid rgba(185, 134, 52, 0.28); border-radius: 18px; padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(27, 36, 66, 0.06);
}
.promise b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--paper-ink); }
.promise span { display: block; margin-top: 6px; font-size: 15px; color: #4A5372; }
.paper .quote { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 32px); color: var(--paper-ink); margin: 54px auto 0; max-width: 26em; }
.paper .quote small { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; color: #6B7391; }
.paper .quote a { color: #9A6E22; }
.d-paper-disc { width: 680px; right: -220px; top: -190px; opacity: 0.62; }
.d-paper-tile {
  left: 0; bottom: 0; width: 640px; height: 520px; opacity: 0.5;
  background: url("assets/patterns/tile-quatrefoil-bronze.svg") 0 0 / 44px repeat;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 68%);
          mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 68%);
}
@media (max-width: 760px) { .d-paper-disc { width: 380px; right: -200px; top: -130px; } .d-paper-tile { width: 300px; height: 300px; } }

/* Closing medallion */
.d-close-disc {
  width: 620px; left: 50%; top: -150px; transform: translateX(-50%); opacity: 0.4;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 78%); mask-image: linear-gradient(#000 45%, transparent 78%);
}
@media (max-width: 760px) { .d-close-disc { width: 460px; top: -110px; } }
@media (max-width: 880px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promise-grid { grid-template-columns: 1fr; } }

/* Price */
.price-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 30px; padding: clamp(36px, 6vw, 60px) clamp(22px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231, 190, 105, 0.16), transparent 60%),
    linear-gradient(170deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.price-card h2 { margin-top: 14px; }
.price-card p { color: var(--text); margin: 18px auto 0; max-width: 34em; }
.price-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.price-points li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--cream); font-weight: 650; font-size: 15px; background: rgba(231,190,105,0.06); }

/* Closing */
.closing { text-align: center; padding-bottom: clamp(80px, 10vw, 120px); }
.closing img { width: 120px; height: 120px; margin: 46px auto 30px; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,0.5), 0 0 80px rgba(231,190,105,0.22); }
.closing h2 { margin-top: 16px; }
.closing p { color: var(--muted); margin: 20px auto 0; max-width: 32em; }
.closing .actions { justify-content: center; }

/* ---------- Long-form pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(42px, 6vw, 66px); margin-top: 14px; }
.page-hero p { color: var(--muted); margin: 16px auto 0; max-width: 36em; }
.prose { max-width: 760px; margin: 0 auto; padding: 24px 0 110px; }
.prose h2 { font-size: clamp(28px, 3vw, 34px); margin: 56px 0 14px; }
.prose h3 { font-size: 22px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--gold); }
.summary {
  border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin-top: 20px;
  background: linear-gradient(160deg, rgba(231,190,105,0.08), rgba(231,190,105,0.02));
}
.summary h2 { margin-top: 0 !important; font-size: 26px !important; }
.summary ul { margin: 12px 0 0; }
.meta-line { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: 18px; padding: 0 22px; margin: 12px 0;
  background: rgba(255,255,255,0.02);
}
.faq details[open] { border-color: var(--line); background: rgba(231,190,105,0.04); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--serif); font-size: 22px; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; color: var(--gold); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--text); }
.faq .answer p { margin: 0 0 12px; }
.contact-card {
  max-width: 820px; margin: 10px auto 46px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px;
  background: radial-gradient(ellipse at 0% 0%, rgba(231,190,105,0.14), transparent 60%), rgba(255,255,255,0.02);
}
.contact-card .mail-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(231,190,105,0.08); }
.contact-card .mail-icon svg { width: 26px; height: 26px; stroke: var(--gold-hi); fill: none; stroke-width: 1.6; }
.contact-card h2 { font-size: 26px; }
.contact-card p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; text-align: left; } }

/* Long-form page tops carry a medallion too */
.page-top { padding-bottom: 6px; }
.d-page-disc {
  width: 660px; left: 50%; top: -330px; transform: translateX(-50%); opacity: 0.36;
  -webkit-mask-image: linear-gradient(#000 50%, transparent 88%); mask-image: linear-gradient(#000 50%, transparent 88%);
}
@media (max-width: 760px) { .d-page-disc { width: 460px; top: -220px; } }
@media (max-width: 600px) { .manifesto h2 br { display: none; } }
@media (max-width: 520px) { .d-band-l, .d-band-r { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 46px 0 56px; background: rgba(0,0,0,0.18); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot .brand span { font-size: 20px; }
.foot p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; max-width: 30em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot nav a:hover { color: var(--gold-hi); }
.legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
