/* Tiyjan — purple, gold and soft grey. One stylesheet, no inline styles (the site's CSP forbids them). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
/* Arabic glyphs. Latin letters and digits keep coming from the two faces above, because the stacks list them first. */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC;
}

:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --tint: #eeebf8;
  --ink: #1f1a3a;
  --muted: #5a5675;
  --line: #ddd9ec;
  --leaf: #5342b8;
  --leaf-strong: #3f3194;
  --on-leaf: #ffffff;
  --navy: #5a47c0;
  --gold: #d4a24c;
  --gold-strong: #e3b862;
  --on-gold: #1c1404;
  --sky: #4c3fa8;
  --sky-strong: #382e86;
  --on-sky: #ffffff;
  --hibiscus: #b3203f;
  --hibiscus-strong: #961a34;
  --on-hibiscus: #ffffff;
  --ok-bg: #dcefd9;
  --ok-ink: #1d4a27;
  --warn-bg: #fbeccb;
  --warn-ink: #6b4a05;
  --bad-bg: #f8dbe1;
  --bad-ink: #7d1630;
  --focus: #b45309;
  --shadow: 0 1px 2px rgb(31 26 58 / 0.08), 0 8px 24px -12px rgb(31 26 58 / 0.16);
  --display: "Bricolage Grotesque", "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14112a;
  --surface: #1d1938;
  --tint: #272248;
  --ink: #ece9fa;
  --muted: #aaa5cc;
  --line: #352f5e;
  --leaf: #b2a4f5;
  --leaf-strong: #cbc1fa;
  --on-leaf: #14112a;
  --navy: #231c52;
  --sky: #9d8df0;
  --sky-strong: #b5a9f5;
  --on-sky: #120e28;
  --hibiscus: #e0617c;
  --hibiscus-strong: #ea7f95;
  --on-hibiscus: #1a0a0f;
  --ok-bg: #1c3a25;
  --ok-ink: #b6e6bf;
  --warn-bg: #3b3011;
  --warn-ink: #f1d58c;
  --bad-bg: #44161f;
  --bad-ink: #f6b6c2;
  --focus: #ffb27a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }
.right { text-align: end; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }

/* ---- top bar ------------------------------------------------------------------------------------ */
.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--leaf); }
.topnav { display: flex; gap: 0.25rem; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.topnav a, .topnav button.linklike { color: var(--ink); text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 999px; font-weight: 550; background: none; border: 0; font: inherit; font-weight: 550; cursor: pointer; }
.topnav a:hover, .topnav button.linklike:hover { background: var(--tint); color: var(--ink); }
.topnav a[aria-current="page"] { background: var(--tint); }
.btn.theme-toggle { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }
.btn.theme-toggle svg { width: 18px; height: 18px; max-width: none; flex: none; }

/* ---- buttons and forms -------------------------------------------------------------------------- */
.btn { --b: var(--leaf); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.2rem; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--b); background: transparent; color: var(--b); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s, transform 0.1s; }
.btn:hover { background: color-mix(in srgb, var(--b) 12%, transparent); color: var(--b); }
.btn:active { transform: translateY(1px); }
.btn.primary { --b: var(--sky); background: var(--sky); color: var(--on-sky); }
.btn.primary:hover { background: var(--sky-strong); border-color: var(--sky-strong); color: var(--on-sky); }
.btn.leaf { background: var(--leaf); color: var(--on-leaf); }
.btn.leaf:hover { background: var(--leaf-strong); border-color: var(--leaf-strong); color: var(--on-leaf); }
.btn.danger { --b: var(--hibiscus); }
.btn.small { min-height: 36px; padding: 0.35rem 0.85rem; font-size: 0.9rem; }
.btn.ghost { border-color: transparent; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; pointer-events: none; }
.btn.block { width: 100%; }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 550; }
.check input { width: 20px; height: 20px; accent-color: var(--leaf); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 0.45rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg input:checked + label { background: var(--leaf); color: var(--on-leaf); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-error { background: var(--bad-bg); color: var(--bad-ink); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0 0 1rem; font-weight: 550; }
.form-note { background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0 0 1rem; font-weight: 550; }
.form-warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0 0 1rem; }

/* ---- landing ------------------------------------------------------------------------------------ */
.hero { overflow-x: clip; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* The tea tag: a live "what you take home" calculator. It is the one memorable thing on the page. */
.tag-wrap { display: grid; justify-items: center; overflow-x: clip; }
.tag-string { width: 2px; height: 34px; background: var(--leaf); opacity: 0.6; }
.tag { position: relative; width: min(100%, 360px); background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px 22px 18px 18px; padding: 2.4rem 1.6rem 1.5rem; box-shadow: var(--shadow); transform-origin: 50% 0; }
.tag::before { content: ""; position: absolute; top: 14px; inset-inline: 0; width: 16px; height: 16px; margin-inline: auto; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .tag { animation: sway 1.6s ease-out 0.2s 1 both; }
  @keyframes sway { 0% { transform: rotate(-4deg); } 30% { transform: rotate(2.6deg); } 60% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }
}
.tag h2 { font-size: 1rem; font-family: var(--body); letter-spacing: 0; font-weight: 600; color: var(--muted); margin-bottom: 0.25rem; }
.tag .price-input { display: flex; align-items: baseline; gap: 0.3rem; font-family: var(--display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; }
.tag .price-input input { font: inherit; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; padding: 0 0 0.1rem; width: 5.5ch; min-width: 0; min-height: 0; text-align: start; letter-spacing: inherit; }
.tag .price-input input:focus-visible { outline-offset: 4px; }
.tag input[type="range"] { width: 100%; accent-color: var(--sky); margin: 0.9rem 0 1rem; min-height: 0; padding: 0; }
.tag dl { margin: 0; display: grid; gap: 0.15rem; }
.tag .line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dotted var(--line); font-variant-numeric: tabular-nums; }
.tag .line dt { color: var(--muted); }
.tag .line dd { margin: 0; font-weight: 600; }
.tag .line.total { border-bottom: 0; border-top: 2px solid var(--leaf); margin-top: 0.4rem; padding-top: 0.6rem; font-family: var(--display); font-size: 1.35rem; }
.tag .line.total dt { color: var(--ink); font-weight: 650; }
.tag .line.total dd { color: var(--leaf); font-weight: 700; }
.tag .fine { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--muted); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tinted { background: var(--tint); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--leaf); }
.steps li::before { content: attr(data-step) " " counter(step); display: block; font-weight: 650; color: var(--leaf); font-size: 0.9rem; margin-bottom: 0.4rem; }
.steps h3 { margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 2rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.split ul { margin: 0; padding-inline-start: 1.2rem; }
.split li { margin-bottom: 0.5rem; }

/* The course menu: title, dotted leader, price — like a tea menu. */
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.menu-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.menu-item:first-child { border-top: 1px solid var(--line); }
.menu-line { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-line .name { font-family: var(--display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; }
.menu-line .leader { flex: 1 1 2rem; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 1rem; }
.menu-line .cost { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item .desc { color: var(--muted); margin: 0.35rem 0 0.5rem; max-width: 70ch; }
.menu-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--muted); font-size: 0.9rem; align-items: center; }
.menu-options { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.menu-option { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; background: var(--tint); border-radius: 10px; }

/* ---- auth pages --------------------------------------------------------------------------------- */
.auth { padding-block: clamp(2rem, 6vw, 4rem); }
.auth .wrap { display: grid; gap: 2rem; }
@media (min-width: 860px) { .auth .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.auth-panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); max-width: 480px; width: 100%; }
.auth-aside { color: var(--muted); }
.auth-aside h2 { color: var(--ink); }
.auth-aside ul { padding-inline-start: 1.2rem; }

/* ---- app shell (dashboards) --------------------------------------------------------------------- */
.shell { padding-block: 1.5rem 3rem; }
.shell-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.shell-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1.5px solid var(--line); margin-bottom: 1.5rem; scrollbar-width: thin; }
.tabs a { padding: 0.65rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--leaf); border-bottom-color: var(--leaf); }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.75rem; }
.stat { padding: 0.9rem 1rem; border-inline-start: 4px solid var(--leaf); background: var(--surface); border-start-end-radius: 10px; border-end-end-radius: 10px; }
.stat.owed { border-inline-start-color: #a39bc4; }
.stat .k { color: var(--muted); font-size: 0.88rem; }
.stat .v { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel + .panel { margin-top: 1.25rem; }

.course { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.course + .course { margin-top: 1rem; }
.course header { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: start; }
.course h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.course .meta { color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.product { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.product-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; }
.product-head .pname { font-weight: 650; }
.product-head .pprice { font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.links { margin-top: 0.6rem; display: grid; gap: 0.5rem; }
.link-row { display: grid; gap: 0.5rem; padding: 0.6rem 0.75rem; background: var(--tint); border-radius: 10px; }
@media (min-width: 760px) { .link-row { grid-template-columns: 1fr auto; align-items: center; } }
.link-row .url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; overflow-wrap: anywhere; color: var(--muted); }
.link-row .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.link-row.off { opacity: 0.7; }

.badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 650; background: var(--tint); color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 0.65rem 0.9rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); font-weight: 650; background: color-mix(in srgb, var(--tint) 55%, var(--surface)); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: end; }
td .sub { display: block; color: var(--muted); font-size: 0.82rem; }
.pager { display: flex; gap: 0.75rem; align-items: center; justify-content: flex-end; margin-top: 0.9rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; align-items: end; }
.toolbar .field { margin: 0; min-width: 180px; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty h3 { color: var(--ink); }
.empty p { margin-inline: auto; }

.share-list { display: grid; gap: 0.9rem; }
.share { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .share { grid-template-columns: 1fr auto; align-items: center; } }
.share h3 { margin: 0; font-size: 1.15rem; }
.share .quote { margin: 0.4rem 0 0; padding-inline-start: 0.8rem; border-inline-start: 3px solid var(--leaf); color: var(--muted); white-space: pre-wrap; }

.bars { display: grid; gap: 0.5rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 6.5rem; gap: 0.6rem; align-items: center; font-size: 0.92rem; }
.bar { height: 14px; border-radius: 999px; background: var(--tint); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; }
.bar .s-stripe { background: #9a94b5; }
.bar .s-platform { background: var(--leaf); }
.bar .s-tax { background: #c9a227; }
.bar .s-trainer { background: var(--sky); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 0.35rem; }

/* ---- dialogs and toasts ------------------------------------------------------------------------- */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(100% - 2rem, 540px); max-height: calc(100vh - 2rem); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px -16px rgb(0 0 0 / 0.45); }
dialog::backdrop { background: rgb(10 12 28 / 0.55); }
.dialog-body { padding: 1.4rem 1.5rem 1.5rem; overflow-y: auto; max-height: calc(100vh - 2rem); }
.dialog-body h2 { font-size: 1.4rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1.25rem; }
.copy-box { display: flex; gap: 0.5rem; align-items: center; }
.copy-box input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }

.toasts { position: fixed; inset: auto 0 1rem 0; display: grid; justify-items: center; gap: 0.5rem; pointer-events: none; z-index: 60; padding-inline: 1rem; }
.toast { background: var(--ink); color: var(--bg); padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); max-width: 560px; }
.toast.bad { background: var(--hibiscus); color: var(--on-hibiscus); }

.loading { padding: 3rem 0; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--leaf); margin: 0 auto 0.75rem; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }

.footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }

.notice-page { padding-block: 4rem; text-align: center; }
.notice-page p { margin-inline: auto; }
.tick { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--leaf); }

/* ---- refinements -------------------------------------------------------------------------------- */
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
.tag .price-input input { line-height: 1.1; }

/* ---- Arabic (right to left) --------------------------------------------------------------------- */
/* Tracking and negative letter-spacing break Arabic letter joining, so it is switched off. */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] { font-size: 106.25%; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.35; font-weight: 600; }
/* Things that are always left to right, even inside an Arabic page: addresses, links, codes. */
.ltr, input[type="email"], input[type="password"], input[type="url"], .url, .copy-box input { direction: ltr; unicode-bidi: plaintext; }
input[type="email"], input[type="password"] { text-align: start; }
html[dir="rtl"] input[type="email"]:placeholder-shown, html[dir="rtl"] input[type="password"]:placeholder-shown { text-align: right; }
.lang-toggle { font-weight: 650; min-width: 44px; }
html[dir="rtl"] .tag .price-input { direction: ltr; justify-content: flex-end; }
html[dir="rtl"] .tag .line dd { direction: ltr; unicode-bidi: plaintext; }
html[dir="rtl"] .pname .badge { margin-inline-start: 0.3rem; }
html[dir="rtl"] .bar { direction: rtl; }

/* ---- tables become stacked cards on phones ------------------------------------------------------ */
.cell { display: block; min-width: 0; }
@media (max-width: 680px) {
  .table-wrap { border: 0; background: none; overflow: visible; border-radius: 0; }
  table.dt, table.dt tbody, table.dt tr, table.dt td { display: block; }
  table.dt thead { display: none; }
  table.dt tr { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.9rem; margin-bottom: 0.8rem; }
  table.dt td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.35rem 0; text-align: start; }
  table.dt td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; font-weight: 650; flex: none; max-width: 45%; }
  table.dt td.num { text-align: start; }
  table.dt td .cell { text-align: end; }
  table.dt td:empty, table.dt td[data-label=""]::before { display: none; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .table-wrap { overflow-x: auto; }
  th, td { padding: 0.55rem 0.7rem; }
}

/* ---- Professional shell: top menu, hero, services ------------------------------------------------ */
.topbar { background: var(--surface); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
.topbar .wrap { flex-wrap: nowrap; min-height: 72px; gap: 1.5rem; }
.brand { color: var(--navy); }
html[data-theme="dark"] .brand { color: var(--ink); }
.brand:hover { color: var(--leaf); }
.menu-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; max-width: none; }
.topnav { display: flex; flex: 1; align-items: center; gap: 1rem; }
.topnav .menu { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: 1rem; }
.topnav .actions { display: flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; }
.topnav .menu a { position: relative; padding: 0.5rem 0.9rem; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; background: none; }
.topnav .menu a:hover { background: var(--tint); color: var(--ink); }
.topnav .menu a[aria-current="page"] { color: var(--leaf); }
.topnav .menu a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0.9rem; bottom: 0.15rem; height: 2px; background: var(--gold); border-radius: 2px; }
.topnav .actions .signin-link { padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.topnav .actions .signin-link:hover { background: var(--tint); }
.btn.gold { --b: var(--gold); background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: var(--on-gold); }
.btn.light { --b: #fff; color: #fff; border-color: rgb(255 255 255 / 0.55); background: transparent; }
.btn.light:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.btn.light.ghost { border-color: transparent; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .topnav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem var(--gutter) 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(31 26 58 / 0.35); }
  .menu-open .topnav { display: flex; }
  .topnav .menu { flex-direction: column; align-items: stretch; margin: 0; }
  .topnav .menu a { padding: 0.8rem 0.5rem; border-radius: 8px; }
  .topnav .menu a[aria-current="page"]::after { inset-inline: 0.5rem; bottom: 0.35rem; }
  .topnav .actions { margin: 0.5rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .topnav .actions .signin-link { padding: 0.7rem 0.9rem; }
}
.topbar .wrap { position: relative; }
.topbar { position: sticky; }

.hero { background-color: var(--navy); color: #fff; padding-block: clamp(3rem, 8vw, 6rem) clamp(5.5rem, 10vw, 8rem); background-image: radial-gradient(60rem 28rem at 85% -10%, rgb(150 130 240 / 0.35), transparent 70%); }
.hero .wrap { display: block; }
.hero-copy { max-width: 44rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; margin-bottom: 0.5em; }
.hero .lede { color: rgb(255 255 255 / 0.82); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; }
.hero .cta { margin-top: 2rem; }

.pillars { margin-top: calc(-1 * clamp(2.6rem, 5vw, 3.6rem)); position: relative; z-index: 2; }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pillars a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px -18px rgb(31 26 58 / 0.45); color: var(--ink); text-decoration: none; font-weight: 650; transition: transform 0.15s, border-color 0.15s; }
.pillars a:hover { border-color: var(--leaf); transform: translateY(-2px); color: var(--ink); }
@media (max-width: 980px) { .pillars ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars li:last-child { grid-column: 1 / -1; } }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--leaf); flex: none; }
.service-icon svg { width: 24px; height: 24px; max-width: none; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head h2, .page-head h1 { letter-spacing: -0.02em; }
.page-head { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { color: #fff; margin: 0 0 0.3em; }
.page-head .lede { color: rgb(255 255 255 / 0.82); margin: 0; max-width: 46ch; font-size: 1.15rem; }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.service.live { border-color: var(--leaf); box-shadow: var(--shadow); }
.service-top { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; justify-content: space-between; width: 100%; }
.service h2, .service h3 { margin: 0; font-size: 1.2rem; }
.service p { margin: 0; color: var(--muted); flex: 1; }

.cta-band { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 0.3em; }
.cta-band p { margin: 0; color: rgb(255 255 255 / 0.8); }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

.steps li { border-top-color: var(--gold); }
.steps li::before { color: var(--leaf); }
.calc { margin-top: 1.5rem; }
.calc[hidden] { display: none; }

/* Hero: deep navy with a fine grid, a soft glow and an illustration */
.hero { background-image: radial-gradient(48rem 30rem at 82% 40%, rgb(140 120 240 / 0.38), transparent 70%), linear-gradient(135deg, #4a3a9e 0%, #5d4bc0 55%, #7662d6 100%); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero-art { display: none; width: 100%; height: auto; max-width: 560px; justify-self: end; }
html[dir="rtl"] .hero-art { justify-self: start; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } .hero-art { display: block; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 14ch; }
html[lang="ar"] .hero h1 { max-width: 16ch; }
