:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #0e1220;
  --muted: #4a526e;
  --line: #e3e2e8;
  --primary: #2c3b7a;
  --primary-strong: #1f2b5e;
  --on-primary: #ffffff;
  --gold: #e3a33b;
  --gold-text: #7a5600;
  --bubble-me: #1f2b5e;
  --on-gold: #1c1503;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 18, 32, .06), 0 8px 24px rgba(14, 18, 32, .07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220;
    --surface: #161c30;
    --text: #eef0f8;
    --muted: #9aa3c2;
    --line: #2a3250;
    --primary: #e3a33b;
    --primary-strong: #f0b84f;
    --on-primary: #1b1304;
    --gold: #e3a33b;
    --gold-text: #e9c26f;
    --bubble-me: #2c3b7a;
    --danger: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-strong); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

header.site { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { display: block; width: auto; height: 34px; }
nav.site { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
nav.site a:hover { color: var(--text); background: var(--surface); }
nav.site a.cta { background: var(--primary); color: var(--on-primary); }
nav.site a.cta:hover { background: var(--primary-strong); }

.hero { padding: 64px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 16px 0; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-strong); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.fine { color: var(--muted); font-size: 14px; }

.phone { justify-self: center; width: min(300px, 70vw); aspect-ratio: 9 / 18; border-radius: 36px; background: var(--surface); border: 8px solid var(--text); box-shadow: var(--shadow); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone .bar { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.phone .bar img { width: 24px; height: 24px; border-radius: 7px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; background: var(--bg); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--bubble-me); color: #fff; border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.bubble small { display: block; opacity: .7; margin-top: 3px; font-size: 11px; }
.lock { align-self: center; font-size: 11px; color: var(--muted); margin-top: auto; }

section.block { padding: 48px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.notes { white-space: pre-wrap; color: var(--muted); font-size: 15px; }

form.f { display: grid; gap: 16px; max-width: 640px; }
label.l { font-weight: 700; display: block; margin-bottom: 6px; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; }
.chips label { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--surface); }
.chips input:checked + label { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.chips input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.msg.ok { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-strong); }
.msg.err { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.m { white-space: pre-wrap; min-width: 240px; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose p, .prose li { color: var(--text); }

@media (max-width: 560px) {
  .hide-sm { display: none; }
  header.site .wrap { flex-wrap: nowrap; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .phone { order: -1; width: min(260px, 70vw); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page-head { padding-top: 48px; padding-bottom: 8px; }
.gap { margin-top: 48px; }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points .n { font-weight: 800; color: var(--gold-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.points p { margin: 0; color: var(--muted); max-width: 68ch; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band .lead { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend.l { padding: 0; font-weight: 700; margin-bottom: 8px; }
.chips.scale label { min-width: 48px; text-align: center; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; width: 100%; }
footer.site h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
footer.site .brand { color: var(--text); }
footer.site .legal { width: 100%; margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
footer.site .wrap { display: block; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.legal th, table.legal td { font-size: 14px; }
table.legal td { color: var(--text); }
.prose ul { padding-inline-start: 20px; }
.prose li { margin: 6px 0; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .cols { grid-template-columns: 1fr; } .points li { grid-template-columns: 40px 1fr; } }

.photos { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 24px 0 8px; }
@media (max-width: 640px) { .photos { grid-template-columns: 1fr; } }
.photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.photos .strip { grid-column: 1 / -1; }
.photos img { display: block; width: 100%; height: auto; }
.photos figcaption { padding: 12px 16px; color: var(--muted); font-size: 15px; }

/* The brand: deep navy and gold (docs/BRAND.md), with a woven lattice instead of a plain page. */
nav.site a.cta, .btn.primary { background: var(--gold); color: var(--on-gold); }
nav.site a.cta:hover, .btn.primary:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); }
.steps li::before { background: var(--gold); color: var(--on-gold); }
.steps li { grid-template-columns: 40px 1fr; }
.steps h3 { margin-top: 6px; }
.phone.weave {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 15l9 9-9 9-9-9z' fill='none' stroke='%23e2b04a' stroke-opacity='.28' stroke-width='1.2'/%3E%3Ccircle cx='24' cy='24' r='1.6' fill='%23e2b04a' fill-opacity='.28'/%3E%3C/svg%3E");
}
.order { align-self: stretch; display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--gold); font-size: 14px; }
.order .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.order .amount { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order .state { font-size: 12px; font-weight: 700; color: var(--primary-strong); }
.order small { color: var(--muted); font-size: 12px; }
.steps-line { display: flex; gap: 4px; margin: 4px 0 2px; }
.steps-line i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps-line i.on { background: var(--gold); }
h1 { background: linear-gradient(100deg, var(--text) 62%, var(--gold-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { h1 { background: none; color: CanvasText; } }
.steps p { margin: 2px 0 0; color: var(--muted); }
ul.guides { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
ul.guides a { font-weight: 600; }
.qa { margin: 12px 0; }
.qa h3 { margin: 0 0 4px; font-size: 18px; }
.qa p { margin: 0; }
.pb-48 { padding-bottom: 48px; }
.pad-404 { padding: 96px 0; text-align: center; }
.lead.center { margin-inline: auto; }
.actions.center-row { justify-content: center; }
.pb-64 { padding-bottom: 64px; }
.pay-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.pay-rows dt { color: var(--muted); }
.pay-rows dd { margin: 0; font-weight: 700; text-align: end; }
.pill-test { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--gold-light, #F6D070); color: #0E1220; font-weight: 700; font-size: 13px; }

/* Status page */
.status-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line, #d8d8d8); border-radius: .5rem; }
.status-ok { color: inherit; }
.status-bad { color: #b3261e; }
