/* The guides in site 5's frame (owner, 1 Nov: the luxury check found them in the old site's look; "yes fix it").
   The whole stylesheet of a guide page: build.py puts each guide's <main> in the app's bar, menu and footer
   (guide_shell.py), and this file gives them the app's night, star dust, Amiri titles in the brand gradient,
   numbered rows like the policy pages, and cards with a thin cyan-gold-pink foil rim. The bar, menu and footer
   rules are the app's own (app_template.html), kept in step by hand. */
:root {
  color-scheme: dark;
  --night: #0c0a11; --night-2: #150f1f; --plum: #1b1030;
  --ink: #f6f1fa; --soft: #d4cbde; --dim: #a99fb8;
  --pink: #ff4fb4; --gold: #ffbe3d; --cyan: #14e0ea;
  --grad: linear-gradient(270deg, var(--pink) 0%, var(--gold) 52%, var(--cyan) 100%);
  --foil: linear-gradient(135deg, rgba(20, 224, 234, .55), rgba(255, 190, 61, .42) 50%, rgba(255, 79, 180, .55));
  --card: rgba(21, 15, 31, .78);
  --ui-l: rgba(20, 224, 234, .78);
  --hair: rgba(246, 241, 250, .13); --hair-s: rgba(246, 241, 250, .07);
  --fd: "Amiri", "Noto Naskh Arabic", serif;
  --ft: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --fl: "Alexandria", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gut: clamp(20px, 4.4vw, 64px);
  --hd: 96px;
  --col: 860px;
}
@media (max-width: 700px) { :root { --hd: 68px; } }
html[lang="en"] { --fd: "Cormorant Garamond", "Amiri", Georgia, serif; --grad: linear-gradient(90deg, var(--pink) 0%, var(--gold) 52%, var(--cyan) 100%); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: transparent; color: var(--ink); font-family: var(--ft); font-weight: 300; font-size: 17.5px; line-height: 1.85; overflow-x: clip; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.75; }
body.locked { overflow: hidden; }
h1, h2, h3 { font-family: var(--fd); font-weight: 700; line-height: 1.45; margin: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { border: 2px solid var(--night); border-radius: 999px; background: linear-gradient(180deg, var(--pink), var(--gold) 50%, var(--cyan)); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--night); border-radius: 999px; }
.skip:focus { top: 12px; }

/* the night: a plum glow at the top and three colours of star dust, fixed behind the page */
.dust { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 22px 34px, rgba(255, 79, 180, .7), transparent 70%),
    radial-gradient(1.2px 1.2px at 150px 96px, rgba(255, 190, 61, .65), transparent 70%),
    radial-gradient(1.4px 1.4px at 88px 170px, rgba(20, 224, 234, .6), transparent 70%),
    radial-gradient(1px 1px at 210px 220px, rgba(246, 241, 250, .5), transparent 70%),
    radial-gradient(60% 45% at 50% 0%, rgba(27, 16, 48, .95), transparent 72%),
    radial-gradient(40% 35% at 85% 70%, rgba(255, 79, 180, .05), transparent 70%),
    radial-gradient(40% 35% at 10% 85%, rgba(20, 224, 234, .045), transparent 70%);
  background-size: 260px 260px, 330px 330px, 290px 290px, 370px 370px, 100% 100%, 100% 100%, 100% 100%; }

/* ---------- the bar, as the app's ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hd); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut);
  background: rgba(11, 10, 18, .82); border-bottom: 1px solid var(--hair-s); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hd-s { justify-self: start; display: flex; align-items: center; gap: 22px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0; min-height: 48px; cursor: pointer; font: 400 15px/1 var(--ft); color: var(--ink); }
.menu-btn i { display: block; width: 24px; height: 8px; border-block: 1px solid currentColor; transition: transform .5s var(--ease); }
.menu-btn:hover i { transform: scaleX(.75); transform-origin: right; }
.no-js .menu-btn { visibility: hidden; }
.mark { color: var(--ink); text-decoration: none; display: grid; justify-items: center; gap: 4px; line-height: 1; padding: 6px 10px; }
.mark b { font-family: var(--fd); font-weight: 700; font-size: 34px; line-height: 1.2; background: linear-gradient(270deg, var(--pink), var(--gold) 52%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-inline: 2px; }
.mark small { font-family: var(--fl); font-weight: 400; font-size: 9.5px; letter-spacing: .55em; padding-inline-start: .55em; color: rgba(212, 203, 222, .6); direction: ltr; }
.go { justify-self: end; font-size: 15px; font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--pink); padding: 10px 0 4px; line-height: 1.4; color: var(--ink); }
.go:hover { color: #ff9fd4; }
@media (max-width: 560px) { .mark b { font-size: 28px; } .mark small { display: none; } .go, .menu-btn { font-size: 14px; } }

/* ---------- the side menu, as the app's ---------- */
.nav { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s linear .7s; }
.nav.open { visibility: visible; transition: none; }
.nav-veil { position: absolute; inset: 0; background: rgba(8, 6, 14, .58); opacity: 0; transition: opacity .6s var(--ease); cursor: pointer; }
.nav.open .nav-veil { opacity: 1; }
.nav-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(460px, 88vw); display: grid; grid-template-rows: var(--hd) minmax(0, 1fr) auto; overflow: hidden;
  background: radial-gradient(120% 60% at 100% 0%, rgba(27, 16, 48, .95), transparent 70%), var(--night); transform: translateX(105%); transition: transform .6s var(--ease); }
html[dir="ltr"] .nav-panel { transform: translateX(-105%); }
.nav.open .nav-panel { transform: none; transition-duration: .8s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
.nav-panel::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 1px; background: linear-gradient(180deg, var(--cyan), var(--gold) 50%, var(--pink)); box-shadow: 0 0 18px 1px rgba(255, 190, 61, .35); }
.nav-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(24px, 3vw, 40px); position: relative; z-index: 2; border-bottom: 1px solid rgba(246, 241, 250, .07); }
.nav-top .mark { padding-inline: 0; }
.close-btn { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; min-height: 48px; cursor: pointer; font: 400 15px/1 var(--ft); color: var(--ink); }
.close-btn i { position: relative; width: 20px; height: 20px; transition: transform .5s var(--ease); }
.close-btn:hover i { transform: rotate(90deg); }
.close-btn i::before, .close-btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.close-btn i::after { transform: rotate(-45deg); }
.nav ul { list-style: none; margin: 0; position: relative; z-index: 2; display: grid; align-content: center; padding: 12px clamp(24px, 3vw, 40px); overflow-y: auto; }
.nav li { opacity: 0; transform: translateX(28px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.nav.open li { opacity: 1; transform: none; transition-delay: calc(180ms + var(--i) * 70ms); }
.nav li a { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 8px 0 10px; text-decoration: none; color: var(--ink); }
.nav li + li a { border-top: 1px solid rgba(246, 241, 250, .06); }
.nav .n { font-family: var(--fl); font-size: 11px; letter-spacing: .22em; color: var(--c1); opacity: .75; min-width: 2.2em; direction: ltr; }
.nav .t { font-family: var(--fd); font-weight: 400; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.45; padding-inline: 2px;
  background: linear-gradient(270deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; transition: transform .6s var(--ease); }
.nav li a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(270deg, var(--c1), var(--c2) 60%, transparent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav li a:hover .t, .nav li a:focus-visible .t, .nav li a[aria-current="page"] .t { transform: translateX(-6px); }
html[dir="ltr"] .nav li a:hover .t, html[dir="ltr"] .nav li a[aria-current="page"] .t { transform: translateX(6px); }
.nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); }
.nav li a[aria-current="page"] .n { opacity: 1; }
.nav-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px clamp(24px, 3vw, 40px) calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(246, 241, 250, .07); font-size: 14px; color: var(--dim); font-weight: 400; }
.nav-foot .soc { margin: 0; }

/* ---------- the page ---------- */
main { display: block; padding-top: var(--hd); }
main section { padding: 0 var(--gut); }
.copy { max-width: var(--col); margin: 0 auto; }

/* the head: centred, the title in the brand gradient, like a policy page */
.page-head { padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(36px, 6vh, 64px); text-align: center; }
.page-head h1 { display: inline-block; max-width: 100%; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.35; padding-bottom: .12em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-wrap: balance; }
.page-head .lede { margin: 22px auto 0; max-width: 58ch; color: var(--dim); font-size: 18px; text-wrap: balance; }
.guide-meta { color: var(--dim); font-size: 14.5px; font-weight: 400; }
.page-head .guide-meta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 4px; }
.guide-pillar { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.page-head .guide-pillar { padding: 8px 16px; border: 1px solid var(--gold); border-radius: 999px; margin-inline-end: 8px; transition: background .4s var(--ease); }
.page-head .guide-pillar:hover { background: rgba(255, 190, 61, .1); }

/* section titles: Amiri, with a short gradient line before them */
main h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 26px; display: flex; align-items: center; gap: 16px; }
main h2::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--grad); }
.band { padding-top: clamp(36px, 6vh, 64px); padding-bottom: clamp(20px, 3vh, 32px); }

/* the short answer: a foil-rimmed card with a soft glow */
.foil, .guide-answer, .copy-card, .guide-card > a {
  border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--foil) border-box; }
.guide-answer { padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 30px 90px -40px rgba(255, 79, 180, .35), 0 20px 70px -40px rgba(20, 224, 234, .3); }
.guide-answer h2 { font-family: var(--fl); font-weight: 400; font-size: 12px; letter-spacing: .3em; color: var(--ui-l); margin-bottom: 14px; }
html[lang="ar"] .guide-answer h2 { letter-spacing: 0; font-size: 14px; }
.guide-answer h2::before { width: 22px; }
.guide-answer p { font-family: var(--fd); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.7; color: var(--ink); }
html[lang="en"] .guide-answer p { font-weight: 500; }

/* the steps: numbered rows like the policy pages, the number in the gradient */
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.guide-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px; padding: 26px 0; border-top: 1px solid var(--hair); }
.guide-steps li:last-child { border-bottom: 1px solid var(--hair); }
.guide-steps .n { font-family: "Amiri", Georgia, serif; font-size: 30px; line-height: 1.2; direction: ltr; text-align: start;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.guide-steps .n::before { content: "0"; }
.guide-steps h3 { font-size: clamp(21px, 2vw, 25px); margin-bottom: 6px; }
.guide-steps p { color: rgba(239, 233, 245, .84); line-height: 1.95; }

/* text ready to copy: foil-rimmed cards, the text in a quiet well */
.guide-hint { color: var(--dim); font-size: 15px; margin: -14px 0 22px; }
.copy-cards { display: grid; gap: 18px; }
.copy-card { margin: 0; padding: 22px 22px 18px; display: grid; gap: 14px; }
.copy-card figcaption { font-family: var(--fd); font-weight: 700; font-size: 21px; line-height: 1.4; }
html[lang="en"] .copy-card figcaption { font-weight: 500; font-size: 23px; }
.copy-card pre { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; font: 300 16px/1.9 var(--ft); color: var(--soft);
  background: rgba(12, 10, 17, .7); border: 1px solid var(--hair-s); border-radius: 14px; }
.copy-status { min-height: 1.5em; margin-top: 10px; color: var(--gold); font-size: 14.5px; }

/* buttons: the pink pill and the hairline pill, as the app's */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  font: 400 16px/1 var(--ft); text-decoration: none; cursor: pointer; transition: background .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease); }
.btn-solid { background: var(--pink); color: #1a0612; }
@media (hover: hover) { .btn-solid:hover { background: #ff7cc8; box-shadow: 0 14px 44px -16px rgba(255, 79, 180, .75); } }
.btn-ghost { background: rgba(246, 241, 250, .04); color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.copy-btn { justify-self: start; }
.copy-btn svg { width: 16px; height: 16px; flex: none; }
.btn.done { border-color: var(--gold); color: var(--gold); }

/* the signs list: gold markers like the policy lists */
.terms { margin: 0; padding-inline-start: 22px; }
.terms li { margin: 0 0 8px; color: rgba(239, 233, 245, .84); line-height: 1.9; }
.terms li::marker { color: var(--gold); }

/* the close: a quiet note, the share call, the other guides */
.guide-close { padding-bottom: clamp(56px, 9vh, 110px); }
.guide-note { color: var(--dim); font-size: 15px; border-inline-start: 1px solid var(--cyan); padding-inline-start: 16px; margin-bottom: clamp(40px, 6vh, 64px); }
.guide-close > .copy > p:not(.guide-note) { color: var(--dim); margin: -12px 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-more { margin-top: clamp(56px, 8vh, 90px); }

/* guide cards: foil rims, the pillar's colour on its dot, a lift and a glow on hover */
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.guide-card { --tone: var(--pink); }
.guide-card > a { height: 100%; display: grid; align-content: start; gap: 10px; padding: 24px 24px 22px; text-decoration: none; color: var(--ink);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.guide-card > a:hover, .guide-card > a:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 70px -34px color-mix(in srgb, var(--tone) 70%, transparent); }
.guide-card .guide-pillar { font-size: 13.5px; font-weight: 400; color: var(--dim); }
.guide-card .guide-pillar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px 1px var(--tone); }
.guide-card h3 { font-size: 23px; line-height: 1.5; }
html[lang="en"] .guide-card h3 { font-size: 25px; line-height: 1.3; }
.guide-card p { color: var(--dim); font-size: 15.5px; line-height: 1.85; }
.guide-card .guide-meta { margin-top: auto; padding-top: 8px; font-size: 13.5px; color: rgba(212, 203, 222, .7); }
/* the guides index: each pillar centred under the title, its cards a fixed width, its title in its colour */
.guides-sec .copy { max-width: 1100px; }
.guides-sec h2 { justify-content: center; }
.guides-sec h2::after { content: ""; flex: none; width: 34px; height: 1px; background: var(--tone); box-shadow: 0 0 12px 1px var(--tone); }
.guides-sec .guide-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 350px)); justify-content: center; }
.guides-sec h2::before { background: var(--tone); box-shadow: 0 0 12px 1px var(--tone); }
.guides-sec:last-of-type { padding-bottom: clamp(56px, 9vh, 110px); }
.lesson-soon { display: grid; place-items: center; aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; border-radius: 22px; color: var(--dim);
  border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--foil) border-box; }

/* ---------- the footer, as the app's ---------- */
.ft { border-top: 1px solid var(--hair); padding: 90px var(--gut) calc(48px + env(safe-area-inset-bottom, 0px)); background: rgba(12, 10, 17, .85); }
.ft-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.ft-mark { font-family: var(--fd); font-weight: 700; font-size: 60px; line-height: 1.3; text-decoration: none; display: inline-block; padding-inline: 2px;
  background: linear-gradient(270deg, var(--pink), var(--gold) 52%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ft-brand p { color: var(--dim); font-size: 15.5px; margin-top: 18px; max-width: 34ch; }
.ft h2 { font-family: var(--fl); font-weight: 400; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(212, 203, 222, .6); direction: ltr; text-align: right; margin: 0 0 18px; display: block; }
html[dir="ltr"] .ft h2 { text-align: left; }
.ft h2::before { content: none; }
.ft nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft nav a { font-size: 16px; font-weight: 400; text-decoration: none; }
.ft nav a:hover { color: var(--gold); }
.ft .ct { display: grid; gap: 12px; font-size: 15.5px; font-weight: 400; }
.ft .ct span { color: var(--dim); display: block; font-size: 13.5px; }
.ft .ct a { text-decoration: none; }
.soc { display: flex; gap: 12px; margin-top: 4px; }
.soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--ink); border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, linear-gradient(135deg, var(--cyan), var(--gold) 50%, var(--pink)) border-box; transition: transform .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.soc a:hover, .soc a:focus-visible { transform: translateY(-3px); color: var(--gold); box-shadow: 0 0 22px -4px rgba(255, 79, 180, .45), 0 0 22px -6px rgba(20, 224, 234, .4); }
.soc svg { display: block; width: 21px; height: 21px; }
.ft-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .ft-pay { justify-content: flex-end; }
.ft-pay svg { width: 48px; height: 30px; display: block; border-radius: 6px; background: rgba(246, 241, 250, .05); box-shadow: inset 0 0 0 1px rgba(246, 241, 250, .16); }
.ft-cur { max-width: 1200px; margin: 56px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ft-lang { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(246, 241, 250, .04); color: var(--ink); font: 400 15px/1 var(--ft); text-decoration: none; transition: border-color .5s var(--ease); }
.ft-lang:hover, .ft-lang:focus-visible { border-color: var(--gold); }
.ft-note { max-width: 1200px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--hair-s); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; font-weight: 400; }
@media (max-width: 860px) {
  .ft { padding-top: 64px; }
  .ft-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ft-mark { font-size: 48px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .guide-steps li { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; }
  .guide-steps .n { font-size: 25px; }
  .copy-card { padding: 18px 16px 16px; }
  .copy-card pre { padding: 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; } }
