/* =========================================================================
   Sajel (سجل) - public web styles
   Mobile-first, RTL-ready (logical properties only), print-friendly.
   ========================================================================= */

:root, .phone, .float-card, .mini-track, .light-scope {
  --brand-950: #052a26;
  --brand-900: #0b3b36;
  --brand-800: #0d4d46;
  --brand-700: #0f766e;
  --brand-600: #0d9488;
  --brand-500: #14b8a6;
  --mint: #5eead4;
  --mint-200: #99f6e4;
  --mint-100: #ccfbf1;
  --mint-50: #f0fdfa;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --red: #dc2626;
  --red-100: #fee2e2;
  --wa: #1fa855;
  --wa-dark: #178a45;

  --bg: #f6faf9;
  --surface: #ffffff;
  --ink: #0f1f1c;
  --ink-2: #33433f;
  --muted: #64746f;
  --line: #e2ebe9;
  --line-2: #eef4f2;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-strong: #0d4d46;
  --tint: #f0fdfa;
  --tint-2: #ccfbf1;
  --tint-bd: #ccfbf1;
  --bar-bg: rgb(246 250 249 / 85%);
  --doc-top: #e8f4f1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(11 59 54 / 6%), 0 1px 1px rgb(11 59 54 / 4%);
  --shadow: 0 1px 3px rgb(11 59 54 / 6%), 0 8px 24px -6px rgb(11 59 54 / 12%);
  --shadow-lg: 0 24px 60px -18px rgb(5 42 38 / 45%);

  --container: 1160px;
}
:root {
  /* System font stacks only (no web-font download, no layout shift). Arabic-script and Devanagari pages get
     script-specific stacks; Latin glyphs inside them (codes, amounts) still come from the first matching face. */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-ar: "Noto Sans Arabic", "IBM Plex Sans Arabic", Tajawal, "Noto Kufi Arabic", "Segoe UI", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-ur: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, system-ui, sans-serif;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
html[lang="ur"] body { font-family: var(--font-ur); line-height: 1.9; }
html[lang="hi"] body { font-family: var(--font-hi); line-height: 1.75; }
[lang="ar"] { font-family: var(--font-ar); }
[lang="ur"] { font-family: var(--font-ur); }
[lang="hi"] { font-family: var(--font-hi); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
/* User content is wrapped in <bdi> (auto direction, isolated) so Latin names read correctly on RTL pages and
   vice versa, while the surrounding block keeps the page alignment. */

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--lg { width: 1.6em; height: 1.6em; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100;
  background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 14px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 14px; border-radius: 12px; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--brand-700); --btn-fg: #fff; --btn-bd: var(--brand-700); }
.btn--primary:hover { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-800); --btn-bd: #c6dad6; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-900); --btn-bd: #fff; }
.btn--ghost-light { --btn-bg: rgb(255 255 255 / 6%); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 22%); }
.btn--ghost-light:hover { --btn-bg: rgb(255 255 255 / 12%); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-dark); --btn-bd: var(--wa-dark); }
.btn--store {
  --btn-bg: #fff; --btn-fg: var(--brand-950); --btn-bd: #fff;
  min-height: 58px; padding: 10px 22px 10px 18px; border-radius: 16px; gap: 12px;
}
.btn--store .icon { color: var(--brand-600); }
.btn--store__text { display: flex; flex-direction: column; text-align: start; font-size: 1.08rem; font-weight: 750; }
.btn--store__text small { font-size: .74rem; font-weight: 550; opacity: .7; letter-spacing: .01em; }
.btn--store-light { box-shadow: 0 10px 30px -10px rgb(0 0 0 / 45%); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none;
  color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--accent-hover); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { border-radius: 10px; }
.brand__name { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand--sm .brand__name { font-size: 1.08rem; }
.brand--light, .brand--light:hover { color: #fff; }

/* ---------- Language menu (no-JS <details> dropdown) ---------- */
.lang-menu { position: relative; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 12px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-weight: 650; font-size: .9rem; cursor: pointer; list-style: none; user-select: none;
}
.lang-menu__btn::-webkit-details-marker { display: none; }
.lang-menu__btn:hover, .lang-menu[open] .lang-menu__btn { border-color: var(--accent-hover); color: var(--accent); }
.lang-menu__btn .icon { width: 1.1em; height: 1.1em; }
.lang-menu__chev { transition: transform .2s ease; opacity: .7; }
.lang-menu[open] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__current { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
}
.lang-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 550; text-align: start;
}
.lang-menu__list a:hover { background: var(--tint); color: var(--accent); }
.lang-menu__list a[aria-current] { color: var(--accent); font-weight: 750; background: var(--tint); }
.lang-menu__list .icon { width: 16px; height: 16px; }
@media (max-width: 420px) { .site-header .lang-menu__current { display: none; } .lang-menu__btn { padding-inline: 10px 8px; } }

/* ---------- Marketing header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid rgb(226 235 233 / 70%);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.site-nav { display: none; gap: 28px; margin-inline-start: 24px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .96rem; }
.site-nav a:hover { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
@media (max-width: 340px) { .site-header__actions .btn { display: none; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  margin-block-end: 14px;
}
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.eyebrow--light {
  color: var(--mint-100); background: rgb(94 234 212 / 10%); border: 1px solid rgb(94 234 212 / 22%);
  padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; text-transform: none; font-weight: 600;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(94 234 212 / 20%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(20 184 166 / 35%), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgb(94 234 212 / 16%), transparent 60%),
    linear-gradient(160deg, var(--brand-900) 0%, var(--brand-950) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 48px; padding-block: 56px 72px; }
.hero__title {
  font-size: clamp(2.2rem, 7.4vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
  max-width: 14ch; text-wrap: balance;
}
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .hero__title { letter-spacing: 0; line-height: 1.3; max-width: 16ch; }
.hero__accent {
  background: linear-gradient(90deg, var(--mint) 0%, #a7f3d0 50%, var(--amber) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-block-start: 20px; max-width: 54ch; font-size: 1.12rem; color: rgb(236 253 249 / 82%); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block-start: 32px; color: rgb(236 253 249 / 75%); font-size: .93rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--mint); width: 1.1em; height: 1.1em; }

.hero__visual { position: relative; display: flex; justify-content: center; padding-block: 8px 24px; }

/* phone mockup */
.phone {
  position: relative; width: 300px; max-width: 82vw; aspect-ratio: 300 / 610;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #1d2b29, #0a1311);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
  transform: rotate(-2.5deg);
}
[dir="rtl"] .phone { transform: rotate(2.5deg); }
.phone__notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #0a1311; border-radius: 20px; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); color: var(--ink);
  padding: 54px 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.35;
}
.app-top { display: flex; align-items: center; gap: 10px; }
.app-top__avatar, .avatar {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-weight: 800;
}
.app-top__name { font-weight: 750; font-size: 14px; }
.app-top__sub { color: var(--muted); font-size: 11px; }
.app-top__bell { margin-inline-start: auto; color: var(--brand-700); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mint-50); }
.app-top__bell .icon { width: 16px; height: 16px; }
.app-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-bal { border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-bal span { font-size: 11px; font-weight: 600; opacity: .85; }
.app-bal strong { white-space: nowrap; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.app-bal--get { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); color: #fff; }
.app-bal--give { background: #fff; border: 1px solid var(--line); color: var(--red); }
.app-section { font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-block-start: 4px; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .app-section { text-transform: none; letter-spacing: 0; }
.app-list { display: flex; flex-direction: column; gap: 6px; }
.app-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); }
.app-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.app-av--a { background: #fde68a; color: #92400e; }
.app-av--b { background: #c7d2fe; color: #3730a3; }
.app-av--c { background: #fbcfe8; color: #9d174d; }
.app-av--d { background: #bbf7d0; color: #166534; }
.amt--give { color: var(--red); }
.app-list__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-list__main b { font-size: 12.5px; }
.app-list__main small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt { font-weight: 800; font-size: 12.5px; }
.amt--get { color: var(--brand-700); }
.amt--zero { color: var(--muted); }
.app-fab {
  margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-900); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 12.5px;
  box-shadow: 0 8px 20px -8px rgb(5 42 38 / 60%);
}
.app-fab .icon { width: 14px; height: 14px; }

.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 18px;
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 45%); padding: 12px 14px; font-size: 12.5px; line-height: 1.4;
}
.float-card--sms { width: 250px; inset-block-end: 17%; inset-inline-start: -8px; animation: floaty 6s ease-in-out infinite; }
.float-card--sms p { color: var(--ink-2); }
.float-card__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 11px; margin-block-end: 6px; }
.float-card__icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-700); color: #fff; }
.float-card__icon .icon { width: 14px; height: 14px; }
.float-card--status { display: flex; align-items: center; gap: 10px; inset-block-start: 9%; inset-inline-end: -6px; animation: floaty 7s ease-in-out -2s infinite; }
.float-card--status small { display: block; color: var(--muted); font-size: 11px; }
.float-card--status b { font-size: 14px; }
.float-card__icon--ok { width: 36px; height: 36px; border-radius: 12px; background: var(--amber-100); color: var(--amber-600); }
.float-card__icon--ok .icon { width: 20px; height: 20px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section--tight { padding-block: 48px 72px; }
.section--tint { background: linear-gradient(180deg, var(--mint-50), #eaf6f3); border-block: 1px solid var(--line-2); }
.section__head { max-width: 720px; margin-block-end: 40px; }
.section__head h2, .showcase h2 {
  font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance;
}
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .section__head h2, html:is([lang="ar"],[lang="ur"],[lang="hi"]) .showcase h2 { letter-spacing: 0; line-height: 1.35; }
.section__sub { margin-block-start: 14px; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3df; }
.feature__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-block-end: 18px;
  background: var(--tint); color: var(--accent); border: 1px solid var(--tint-bd);
}
.feature--hl .feature__icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; border-color: transparent; }
.feature h3 { font-size: 1.12rem; font-weight: 750; letter-spacing: -0.01em; margin-block-end: 8px; }
.feature p { color: var(--muted); font-size: .97rem; }

.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step__num {
  position: absolute; inset-block-start: 20px; inset-inline-end: 22px;
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--mint-100); letter-spacing: -0.04em;
}
.step__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-block-end: 18px;
  background: var(--brand-900); color: var(--mint); box-shadow: 0 0 0 6px var(--mint-50);
}
.step h3 { font-size: 1.15rem; font-weight: 750; margin-block-end: 6px; }
.step p { color: var(--muted); }

.showcase { display: grid; gap: 40px; align-items: center; }
.checklist { display: flex; flex-direction: column; gap: 12px; margin-block-start: 24px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 550; color: var(--ink-2); }
.checklist .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-700); color: #fff; margin-block-start: 2px; }
.showcase__visual { display: flex; justify-content: center; }
.mini-track {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px;
  transform: rotate(1.5deg); color: var(--ink);
}
[dir="rtl"] .mini-track { transform: rotate(-1.5deg); }
.mini-track__head { display: flex; align-items: center; gap: 12px; }
.mini-track__head small { display: block; color: var(--muted); font-size: .82rem; }
.mini-track__hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); color: #fff; }
.mini-track__hero small { display: block; opacity: .85; font-size: .82rem; line-height: 1.4; }
.mini-track__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / 16%); flex: none; }
.mini-track__total { display: flex; justify-content: space-between; align-items: baseline; padding-block-start: 12px; border-block-start: 1px dashed var(--line); }
.mini-track__total span { color: var(--muted); }
.mini-track__total b { font-size: 1.2rem; }
.avatar--sm { width: 36px; height: 36px; border-radius: 12px; }

.persona-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.persona { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.persona__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--amber-100); color: var(--amber-600); }
.persona:nth-child(3n+2) .persona__icon { background: var(--tint-2); color: var(--accent); }
.persona:nth-child(3n) .persona__icon { background: #e0e7ff; color: #4338ca; }
.persona h3 { font-size: 1.05rem; font-weight: 750; }
.persona p { color: var(--muted); font-size: .95rem; margin-block-start: 2px; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; transition: box-shadow .2s ease; }
.faq__item[open] { box-shadow: var(--shadow); border-color: #d4e6e2; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px;
  font-weight: 700; font-size: 1.04rem; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--accent); transition: transform .2s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { padding-block-end: 18px; color: var(--ink-2); }

.section--cta { padding-block: 24px 80px; }
.final-cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 56px 24px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgb(94 234 212 / 35%), transparent 70%),
    linear-gradient(160deg, var(--brand-800), var(--brand-950));
  box-shadow: var(--shadow-lg);
}
.final-cta__logo { margin-inline: auto; margin-block-end: 20px; border-radius: 18px; box-shadow: 0 10px 30px -8px rgb(0 0 0 / 50%); }
.final-cta h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .final-cta h2 { letter-spacing: 0; line-height: 1.4; }
.final-cta p { margin: 14px auto 28px; max-width: 46ch; color: rgb(236 253 249 / 82%); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgb(236 253 249 / 70%); padding-block: 40px; font-size: .95rem; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__brand p { margin-block-start: 10px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer__copy { font-size: .85rem; opacity: .7; }
.site-footer__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; padding-block-start: 18px; border-block-start: 1px solid rgb(255 255 255 / 10%); }
.site-footer__langs a { color: rgb(236 253 249 / 70%); }
.site-footer__langs a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- Privacy ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-900), var(--brand-950)); color: #fff; padding-block: 56px; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .page-hero h1 { letter-spacing: 0; }
.page-hero__lead { margin-block-start: 14px; color: rgb(236 253 249 / 82%); font-size: 1.1rem; max-width: 62ch; }
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { font-size: 1.3rem; font-weight: 750; color: var(--ink); margin-block: 36px 10px; letter-spacing: -0.01em; }
.prose > h2:first-child { margin-block-start: 0; }
.prose p + p { margin-block-start: 12px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-inline-start: 26px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }
.callout { display: flex; gap: 16px; margin-block-start: 36px; padding: 20px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--tint-bd); }
.callout > .icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.callout h2 { margin-block: 0 6px; }
.callout--warn { background: var(--amber-100); border-color: rgb(245 158 11 / 30%); }
.callout--warn > .icon { color: var(--amber-600); }
.prose ol { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 1.4em; list-style: decimal; }
.prose ol li { padding-inline-start: 4px; }
.prose ol li::before { content: none; }

/* ---------- Store badges (landing #download) ---------- */
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Account deletion form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin-block-start: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink); }
.field small { font-weight: 450; color: var(--muted); font-size: .88rem; }
.field input {
  min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-weight: 500; font-size: 1.05rem;
}
.field input:focus-visible { outline: 3px solid var(--tint-2); border-color: var(--accent); }
.field input[name="code"] { letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 14ch; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-block-start: 2px; accent-color: var(--red); flex: none; }
.btn--danger { --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red); }
.btn--danger:hover { --btn-bg: #b91c1c; --btn-bd: #b91c1c; }
.form-note { margin-block-start: 12px; }
.prose .banner { margin-block: 16px; }
.prose .banner p { margin-block-start: 4px; font-weight: 450; }

/* =========================================================================
   Public documents (order tracking / invoice)
   ========================================================================= */
.page-order, .page-invoice, .page-notfound { background: linear-gradient(180deg, var(--doc-top) 0, var(--bg) 320px) no-repeat, var(--bg); }
/* sticky footer: short pages (404) never show a band of the wrong colour below the footer */
html { background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.doc-bar { position: sticky; top: 0; z-index: 40; background: var(--bar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block-end: 1px solid var(--line-2); }
.doc-bar__inner { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin-inline: auto; padding: 10px 16px; }
.doc { margin-inline: auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.doc--narrow { max-width: 620px; }
.doc--wide { max-width: 900px; }
.doc-footer { display: flex; justify-content: center; gap: 10px; padding: 8px 16px 36px; color: var(--muted); font-size: .88rem; }
.doc-footer a { color: var(--muted); text-decoration: none; }
.doc-footer a:hover { color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.card__title { font-size: .82rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-block-end: 16px; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .card__title { text-transform: none; letter-spacing: 0; font-size: .95rem; }

.banner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; font-weight: 550; }
.banner .icon { margin-block-start: 2px; }
.banner--ok { background: var(--mint-100); color: var(--brand-900); }
.banner--warn { background: var(--amber-100); color: #78350f; }
.banner--danger { background: var(--red-100); color: #7f1d1d; }

.seller { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; letter-spacing: .02em; }
.avatar--img { object-fit: cover; background: var(--line-2); }
.avatar--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
.seller__text { min-width: 0; flex: 1; }
.seller__label { color: var(--muted); font-size: .85rem; }
.seller__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.seller__num { flex: none; font-weight: 700; font-size: .86rem; color: var(--accent-strong); background: var(--tint); border: 1px solid var(--tint-bd); padding: 6px 10px; border-radius: 10px; }

/* status hero */
.status-hero {
  --sh-a: var(--brand-800); --sh-b: var(--brand-600);
  display: flex; gap: 16px; align-items: flex-start; color: #fff; border: 0; padding: 22px;
  background: radial-gradient(400px 200px at 100% 0%, rgb(255 255 255 / 14%), transparent 60%), linear-gradient(135deg, var(--sh-a), var(--sh-b));
  box-shadow: 0 16px 36px -18px rgb(5 42 38 / 60%);
}
.status-hero--delivered { --sh-a: #065f46; --sh-b: #059669; }
.status-hero--arrived { --sh-a: #155e75; --sh-b: #0891b2; }
.status-hero--cancelled, .status-hero--returned { --sh-a: #7f1d1d; --sh-b: #b91c1c; }
.status-hero--placed { --sh-a: var(--brand-900); --sh-b: var(--brand-700); }
.status-hero__icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; background: rgb(255 255 255 / 16%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
.status-hero__icon .icon { width: 30px; height: 30px; }
.status-hero__kicker { font-size: .8rem; font-weight: 650; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .status-hero__kicker { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.status-hero__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.status-hero__desc { margin-block-start: 4px; opacity: .92; }
.status-hero__meta { display: flex; align-items: center; gap: 6px; margin-block-start: 12px; font-size: .85rem; opacity: .85; }
.status-hero__meta .icon { width: 15px; height: 15px; }

/* timeline */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl { position: relative; display: flex; gap: 14px; padding-block-end: 22px; }
.tl:last-child { padding-block-end: 0; }
.tl::before {
  content: ""; position: absolute; inset-inline-start: 15px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px;
  background: var(--line);
}
.tl:last-child::before { display: none; }
.tl--done::before { background: var(--brand-600); }
.tl__dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); color: #fff;
}
.tl__dot .icon { width: 16px; height: 16px; }
.tl--done .tl__dot { background: var(--brand-600); border-color: var(--brand-600); }
.tl--current .tl__dot { background: var(--brand-700); border-color: var(--brand-700); box-shadow: 0 0 0 6px rgb(13 148 136 / 18%); animation: pulse 2.4s ease-in-out infinite; }
.tl--skipped .tl__dot { border-style: dashed; background: var(--line-2); }
.tl--cancelled .tl__dot { background: var(--red); border-color: var(--red); }
.tl--upcoming .tl__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tl__body { display: flex; flex-direction: column; padding-block-start: 4px; min-width: 0; }
.tl__label { font-weight: 700; line-height: 1.3; }
.tl--upcoming .tl__label, .tl--skipped .tl__label { color: var(--muted); font-weight: 600; }
.tl--current .tl__label { color: var(--accent-strong); }
.tl--cancelled .tl__label { color: var(--red); }
.tl__time { font-size: .84rem; color: var(--muted); }
.tl__note { margin-block-start: 6px; font-size: .9rem; color: var(--ink-2); background: var(--line-2); padding: 8px 12px; border-radius: 10px; border-start-start-radius: 2px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px rgb(13 148 136 / 18%); } 50% { box-shadow: 0 0 0 10px rgb(13 148 136 / 6%); } }
.timeline--mini .tl { padding-block-end: 12px; gap: 10px; align-items: center; }
.timeline--mini .tl::before { inset-inline-start: 11px; top: 24px; }
.timeline--mini .tl__dot { width: 24px; height: 24px; }
.timeline--mini .tl__dot .icon { width: 12px; height: 12px; }
.timeline--mini .tl--current .tl__dot { box-shadow: 0 0 0 4px rgb(13 148 136 / 18%); animation: none; }
.timeline--mini .tl__label { font-size: .92rem; }

/* items */
.items { display: flex; flex-direction: column; }
.items__row { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-block-end: 1px solid var(--line-2); }
.items__row:first-child { padding-block-start: 0; }
.items__thumb { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--line-2); }
.items__thumb--ph { display: grid; place-items: center; color: var(--accent); background: var(--tint); }
.items__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.items__name { font-weight: 650; overflow-wrap: anywhere; line-height: 1.35; }
.items__meta { font-size: .86rem; color: var(--muted); }
.items__meta span[dir] { display: inline-block; }
.items__total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.totals { display: flex; flex-direction: column; gap: 6px; margin-block-start: 16px; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.totals dd { font-weight: 600; white-space: nowrap; }
.totals__grand { margin-block-start: 6px; padding-block-start: 12px; border-block-start: 1px solid var(--line); color: var(--ink) !important; font-size: 1.2rem; font-weight: 800; }
.totals__grand dd { font-weight: 800; }
.totals__due { color: var(--accent-strong) !important; font-weight: 800; }
.pay-status { margin-block-start: 12px; display: flex; justify-content: flex-end; }
.note { margin-block-start: 16px; padding: 12px 14px; border-radius: 12px; background: var(--amber-100); color: #78350f; font-size: .94rem; }
/* delivery: courier + tracking number (copy) + "Track package" */
.delivery { display: flex; flex-direction: column; gap: 10px; }
.delivery > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-2); }
.delivery dt { color: var(--muted); }
.delivery dd { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; text-align: end; }
.delivery__code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.delivery__track { margin-block-start: 16px; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn .icon { width: 17px; height: 17px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 15px; height: 15px; }

/* CTA card (viral loop) */
.cta-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; margin-block-start: 6px;
  background: radial-gradient(320px 180px at 100% 0%, rgb(94 234 212 / 28%), transparent 70%), linear-gradient(150deg, var(--brand-900), var(--brand-950));
  box-shadow: var(--shadow); border: 1px solid rgb(94 234 212 / 14%);
}
.cta-card__head { display: flex; align-items: center; gap: 14px; }
.cta-card__head img { border-radius: 14px; flex: none; box-shadow: 0 8px 20px -8px rgb(0 0 0 / 50%); }
.cta-card__kicker { color: var(--mint); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.cta-card h2 { font-size: 1.22rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.cta-card__body { color: rgb(236 253 249 / 82%); font-size: .95rem; margin-block: 12px 12px; }
.cta-card__points { display: grid; gap: 8px; margin-block-end: 18px; font-size: .93rem; color: rgb(236 253 249 / 92%); }
.cta-card__points li { display: flex; align-items: center; gap: 10px; }
.cta-card__points .icon { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: rgb(94 234 212 / 14%); color: var(--mint); }
.cta-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-card__actions .btn .icon { color: var(--brand-600); }
.cta-card__link { color: var(--mint); font-weight: 600; font-size: .92rem; }
.cta-card__link:hover { color: #fff; }

.optout { text-align: center; color: var(--muted); font-size: .9rem; padding-block: 8px 0; }
.optout p { display: inline-flex; align-items: center; gap: 6px; }
.optout form p { display: block; }
.hint { text-align: center; color: var(--muted); font-size: .78rem; opacity: .8; }

/* empty / 404 */
.empty { text-align: center; padding: 40px 24px; margin-block-start: 24px; }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tint); color: var(--accent); margin-block-end: 12px; }
.empty__icon .icon { width: 30px; height: 30px; }
.empty__code { font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.empty h1 { font-size: 1.5rem; font-weight: 800; margin-block: 4px 8px; }
.empty p { color: var(--muted); margin-block-end: 22px; }
.empty .empty__hint {
  display: flex; align-items: flex-start; gap: 10px; text-align: start; margin-inline: auto; max-width: 420px;
  padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-bd); color: var(--ink-2); font-size: .93rem;
}
.empty__hint .icon { color: var(--accent); margin-block-start: 2px; }

/* ---------- Invoice paper ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar .btn { flex: 1 1 auto; }
.paper {
  position: relative; background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 24px 20px; overflow: hidden;
}
.paper::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--brand-700), var(--brand-500), var(--mint)); }
/* rubber stamp (paid / void / draft) */
.stamp {
  --stamp: #047857;
  position: absolute; z-index: 2; inset-block-start: 26px; inset-inline-end: 14px; pointer-events: none;
  transform: rotate(-10deg); color: var(--stamp); opacity: .88;
}
[dir="rtl"] .stamp { transform: rotate(10deg); }
.stamp span {
  display: block; padding: 4px 18px; border: 4px solid currentColor; border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 4px currentColor;
  font-size: 1.35rem; font-weight: 900; line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .stamp span { letter-spacing: 0; }
.stamp--void { --stamp: #dc2626; }
.stamp--draft { --stamp: #6b7280; opacity: .7; }
.paper--void .lines, .paper--void .totals { opacity: .6; }
.paper--void .totals__grand dd { text-decoration: line-through; text-decoration-thickness: 2px; }
.paper__due.paper__due--paid { background: #ecfdf5; border-color: #a7f3d0; }
.paper__due.paper__due--overdue { background: #fef2f2; border-color: #fecaca; }
.paper__due.paper__due--overdue dd { color: #b91c1c; }
.paper__due.paper__due--paid dd { color: #047857; }
.paper__head { display: flex; flex-direction: column; gap: 20px; padding-block-end: 20px; border-block-end: 1px solid var(--line); }
.paper__from { display: flex; gap: 14px; align-items: flex-start; }
.paper__biz { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.paper__addr { display: flex; flex-direction: column; color: var(--muted); font-size: .9rem; margin-block-start: 4px; }
.paper__title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.paper__kind { font-size: .82rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .paper__kind { letter-spacing: 0; font-size: 1.05rem; }
.paper__num { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 750; letter-spacing: .02em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--paid { background: #d1fae5; color: #065f46; }
.badge--partially_paid { background: #e0f2fe; color: #075985; }
.badge--due { background: var(--amber-100); color: #92400e; }
.badge--overdue { background: var(--red-100); color: #991b1b; }
.badge--draft { background: #e5e7eb; color: #374151; }
.badge--void { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }

.paper__meta { display: grid; gap: 20px; padding-block: 20px; }
.label { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: 4px; }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .label { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.paper__cust { font-weight: 700; font-size: 1.05rem; }
.paper__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paper__dates dd { font-weight: 650; }
.paper__dates .is-overdue { color: var(--red); }
.paper__due { grid-column: 1 / -1; background: var(--tint); border: 1px solid var(--tint-bd); border-radius: 14px; padding: 12px 16px; }
.paper__due dd { font-size: 1.6rem; font-weight: 800; color: var(--accent-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.lines { width: 100%; border-collapse: collapse; }
.lines .num { font-variant-numeric: tabular-nums; }
.lines th { text-align: start; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; background: var(--line-2); }
html:is([lang="ar"],[lang="ur"],[lang="hi"]) .lines th { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.lines th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.lines th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.lines td { padding: 12px 8px; border-block-end: 1px solid var(--line-2); vertical-align: top; }
.lines .num { text-align: end; white-space: nowrap; }
.lines__desc { overflow-wrap: anywhere; font-weight: 550; }
.lines__amt { font-weight: 700; }

/* stacked line items on small screens */
@media (max-width: 599px) {
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-block: 12px; border-block-end: 1px solid var(--line-2); }
  .lines td { padding: 0; border: 0; }
  .lines .lines__desc { grid-column: 1; }
  .lines .lines__amt { grid-column: 2; grid-row: 1; }
  .lines td[data-label] { grid-column: 1; text-align: start; font-size: .86rem; color: var(--muted); display: inline; }
  .lines td[data-label]::before { content: attr(data-label) ": "; }
}

.paper__foot { display: grid; gap: 20px; padding-block-start: 20px; }
.paper__notes p { color: var(--ink-2); font-size: .94rem; white-space: pre-line; margin-block-end: 14px; }
.totals--invoice { margin-block-start: 0; }
.paper__footer { margin-block-start: 24px; padding-block-start: 16px; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .88rem; }
.paper__made { display: inline-flex; align-items: center; gap: 6px; }
.paper__made img { border-radius: 4px; }

.toast {
  position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90vw; z-index: 200;
  background: var(--brand-950); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
}

/* ---------- Breakpoints ---------- */
@media (max-width: 599px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; border-radius: var(--radius); }
  .feature__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feature h3 { margin-block-end: 2px; font-size: 1.05rem; }
  .feature p { font-size: .94rem; }
  .step { padding: 22px 20px 20px; }
  .section { padding-block: 56px; }
  .section__head { margin-block-end: 28px; }
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .doc { padding-block-start: 28px; gap: 16px; }
  .card { padding: 24px; }
  .paper { padding: 36px 40px; }
  .stamp { inset-block-start: 46px; inset-inline: 0; margin-inline: auto; width: max-content; }
  .stamp span { font-size: 2rem; padding: 4px 20px; }
  .paper__head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .paper__title { align-items: flex-end; text-align: end; }
  .paper__meta { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .paper__foot { grid-template-columns: 1fr minmax(260px, 340px); align-items: start; }
  .toolbar .btn { flex: 0 0 auto; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__copy, .site-footer__langs { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-block: 88px 104px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step:not(:last-child)::after {
    content: ""; position: absolute; top: 54px; inset-inline-end: -16px; width: 16px; height: 2px; background: var(--mint-200);
  }
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 104px; }
  .section--cta { padding-block: 24px 104px; }
  .final-cta { padding: 80px 40px; }
}
@media (max-width: 380px) {
  .float-card--sms { width: 210px; inset-inline-start: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print (invoice / order) ---------- */
@page { size: A4; margin: 14mm; }
/* customer statement (/s/<token>) */
.stmt-head { display: flex; flex-direction: column; gap: 10px; }
.stmt-head__for { color: var(--muted); font-weight: 600; }
.stmt-head__asof { color: var(--muted); font-size: .85rem; }
.stmt-bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--line-2); font-weight: 700; }
.stmt-bal__amt { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt-bal--owe { background: var(--red-100); color: #991b1b; }
.stmt-bal--owed { background: var(--mint-100); color: var(--brand-900); }
.stmt-bal--settled { align-items: center; gap: 8px; justify-content: flex-start; background: var(--mint-100); color: var(--brand-900); }
.stmt-date { color: var(--muted); font-size: .84rem; font-weight: 500; }
.stmt-amt--added { color: #b91c1c; }
.stmt-amt--paid { color: #047857; }
.stmt-earlier td { color: var(--muted); }
.stmt-empty { color: var(--muted); }

@media print {
  :root { --shadow: none; --shadow-sm: none; --shadow-lg: none; }
  html, body { background: #fff !important; color: #000; font-size: 11pt; }
  .page-order, .page-invoice { background: #fff !important; }
  .doc-bar, .doc-footer, .toolbar, .cta-card, .no-print, .optout, .hint, .btn, .lang-menu, .skip-link, .toast, .banner { display: none !important; }
  body { display: block; min-height: 0; }
  .stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; inset-block-start: 30px; inset-inline: 0; margin-inline: auto; width: max-content; }
  .stamp span { background: transparent; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px currentColor; }
  .doc { padding: 0; max-width: none; }
  .paper { border: 0; border-radius: 0; padding: 12px 0 0; box-shadow: none; }
  .paper::before { height: 3px; }
  .paper__head { flex-direction: row; justify-content: space-between; }
  .paper__title { align-items: flex-end; text-align: end; }
  .paper__meta { grid-template-columns: 1.2fr 1fr; }
  .paper__foot { grid-template-columns: 1fr 300px; }
  .lines thead { display: table-header-group !important; }
  .lines { display: table !important; }
  .lines tbody { display: table-row-group !important; }
  .lines tr { display: table-row !important; }
  .lines td { display: table-cell !important; padding: 8px 6px !important; border-block-end: 1px solid #ddd !important; font-size: 10.5pt; color: #000 !important; }
  .lines td[data-label]::before { content: none !important; }
  .lines th { background: #f1f5f4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper__due, .badge, .avatar, .paper::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; }
  .status-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr, .totals, .paper__footer { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* =========================================================================
   Dark mode (follows the OS). Illustrations (.phone, .float-card, .mini-track) keep their light tokens.
   Screen only: printing always uses the light palette.
   ========================================================================= */
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07110f;
    --surface: #0f1d1a;
    --ink: #e8f3f0;
    --ink-2: #c3d3cf;
    --muted: #93a7a2;
    --line: #22332f;
    --line-2: #182724;
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --accent-strong: #99f6e4;
    --tint: rgb(20 184 166 / 12%);
    --tint-2: rgb(20 184 166 / 18%);
    --tint-bd: rgb(94 234 212 / 20%);
    --bar-bg: rgb(7 17 15 / 82%);
    --doc-top: #0b2522;
    --amber-100: rgb(245 158 11 / 16%);
    --red-100: rgb(220 38 38 / 18%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 1px 3px rgb(0 0 0 / 40%), 0 8px 24px -6px rgb(0 0 0 / 50%);
  }
  .site-header { border-block-end-color: var(--line); }
  .section--tint { background: linear-gradient(180deg, #0a1a17, #081513); border-color: var(--line-2); }
  .feature:hover, .faq__item[open] { border-color: #2c4a44; }
  .step__num { color: rgb(94 234 212 / 16%); }
  .step__icon { box-shadow: 0 0 0 6px rgb(20 184 166 / 14%); background: #0b3b36; }
  .persona__icon { color: #fbbf24; }
  .persona:nth-child(3n) .persona__icon { background: rgb(99 102 241 / 18%); color: #a5b4fc; }
  .btn--outline { --btn-fg: var(--accent); --btn-bd: #2c4a44; }
  .banner--ok { background: rgb(20 184 166 / 16%); color: #ccfbf1; }
  .banner--warn { color: #fde68a; }
  .banner--danger { color: #fecaca; }
  .callout--warn { border-color: rgb(245 158 11 / 25%); }
  .callout--warn > .icon { color: #fbbf24; }
  .note { color: #fde68a; }
  .tl--current .tl__dot { background: var(--brand-600); border-color: var(--brand-600); }
  .tl--done .tl__dot, .tl--done::before { background: var(--brand-700); border-color: var(--brand-700); }
  .tl--cancelled .tl__label { color: #f87171; }
  .paper__dates .is-overdue { color: #f87171; }
  .paper__due.paper__due--paid { background: rgb(16 185 129 / 12%); border-color: rgb(16 185 129 / 30%); }
  .paper__due.paper__due--paid dd { color: #6ee7b7; }
  .paper__due.paper__due--overdue { background: rgb(220 38 38 / 12%); border-color: rgb(248 113 113 / 30%); }
  .paper__due.paper__due--overdue dd { color: #fca5a5; }
  .stamp { --stamp: #34d399; }
  .stamp--void { --stamp: #f87171; }
  .stamp--draft { --stamp: #9ca3af; }
  .badge--paid { background: rgb(16 185 129 / 18%); color: #6ee7b7; }
  .badge--partially_paid { background: rgb(14 165 233 / 18%); color: #7dd3fc; }
  .badge--due { background: rgb(245 158 11 / 18%); color: #fcd34d; }
  .badge--overdue { background: rgb(220 38 38 / 20%); color: #fca5a5; }
  .badge--draft, .badge--void { background: rgb(156 163 175 / 16%); color: #d1d5db; }
  .avatar--img { background: var(--line); }
  .lang-menu__list { box-shadow: 0 20px 50px -12px rgb(0 0 0 / 70%); }
}
