/* Daftar website — one stylesheet, generated by scripts/build-site.mjs (do not edit): tokens, base, landing, guides, site-811, site-v9 */
/* css/tokens.css */
/* Daftar design tokens — shared by the app, the landing page, the statement page and admin.
   V3 identity: the logo's teal + amber ribbon on soft green-grey neutrals. Every other hue is gone:
   "info" and "ok" are teal, "warn" is amber, and red is kept ONLY for money that is owed (debt).
   Logical properties only (RTL-first). Latin digits everywhere. */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-site.woff2?h=c44cbb8eab') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 8.0.1: «only» stops Chrome / Samsung «Darken websites» (auto dark) from repainting our light theme — the app has
     its own dark theme, chosen in Settings. Older browsers drop the second line and keep the first. */
  color-scheme: light;
  color-scheme: only light;

  /* Brand (logo teal) */
  --brand: #0F766E;
  --brand-strong: #0B5E57;
  --brand-hover: #0D6A63;
  --brand-soft: #D2EBE6;
  --brand-softer: #E7F3F0;
  --brand-ink: #FFFFFF;
  --brand-glow: rgba(15, 118, 110, .16);

  /* Accent (logo amber ribbon) — Pro, highlights, "attention" */
  --accent: #D97706;
  --accent-strong: #B45309;
  --accent-soft: #FBEFD5;
  --accent-ink: #78350F;

  /* Surfaces — 8.1: a clear ramp «ورق الدفتر» (page → card → section header), so cards no longer melt into the page
     (the «faded» look came from close surface tones: card/page was 1.22:1, its edge 1.14:1). */
  --bg: #E0EBE6;
  --bg-deep: #D3E2DB;
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F8F5;
  --surface-3: #E4EEEA;
  --section-head: #EEF5F2;   /* 8.1: the header strip of a section card */
  --overlay: rgba(9, 22, 20, .5);

  /* Text (on --bg / --surface: 17 / 9.4 / 5.4+ : 1) */
  --text: #0D1F1B;
  --text-2: #364A45;
  --text-3: #50635E;
  --text-inverse: #FFFFFF;
  --link: #0B5E57;           /* 8.1: links on the page 6.4:1 (--brand was 4.4) */
  --accent-text: #9A4A07;    /* 8.1: dollar numbers / «متأخر» as text, 5.3:1 on the page (#B45309 was 4.2) */

  /* Lines */
  --border: #C9D8D2;
  --border-strong: #B5C4BF;
  --field-border: #7A928B;   /* 8.1: a field's own edge ≥ 3:1 (WCAG 1.4.11) */
  --rule: #D5E2DD;           /* hairlines inside cards / under section headers */
  --focus: #0B5E57;
  --focus-gap: #FFFFFF;      /* 8.1: the inner ring of the 2-colour focus ring (visible on any background) */

  /* Semantic — mapped onto the two brand hues */
  --danger: #B42318;
  --danger-soft: #FBE4E1;
  --danger-ink: #8C1B12;
  --warn: #D97706;
  --warn-soft: #FBEFD5;
  --warn-ink: #78350F;
  --ok: #0F766E;
  --ok-soft: #D2EBE6;
  --ok-ink: #0B5E57;
  --info: #0F766E;
  --info-soft: #E2F1ED;
  --info-ink: #0B5E57;

  /* Money (8.1, owner decision): owed = brick red, paid = GREEN (it was the brand teal — a payment looked like a link).
     *-solid = button backgrounds, *-on = their text: red #B42318 / white 6.6:1, green #34AE78 / dark ink 5.8:1. */
  --debt: #B42318;
  --debt-soft: #FBE4E1;
  --debt-solid: #B42318;   /* background of "debt" buttons (white text) */
  --debt-on: #FFFFFF;
  --debt-border: #F1B5AE;
  --payment: #15703F;      /* «تسديد» as text / bars: 6.1:1 on white, 5.2 on the page */
  --payment-soft: #DCF1E4;
  --payment-solid: #34AE78;
  --payment-on: #03261A;
  --payment-border: #9FD3B4;

  /* Spacing (V5): one scale for every gap / padding — calm, not packed */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --section-gap: 28px;   /* between sections of a page */
  --row-min: 60px;       /* list rows: easy to tap */

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14, 40, 36, .07), 0 1px 1px rgba(14, 40, 36, .04);
  --shadow-md: 0 10px 24px -12px rgba(14, 60, 54, .30), 0 2px 6px -2px rgba(14, 40, 36, .08);
  --shadow-lg: 0 24px 48px -18px rgba(14, 40, 36, .34), 0 8px 16px -8px rgba(14, 40, 36, .12);
  --card-shadow: 0 1px 2px rgba(14, 40, 36, .08), 0 8px 18px -12px rgba(14, 60, 54, .30); /* 8.1: was .05 / −18px (invisible) */
  --gold: #F59E0B;
  --gold-2: #FBBF24;
  --gold-ink: #78350F;

  /* Background art (notebook lines from the logo) */
  --line-color: rgba(15, 118, 110, .075);
  --paper-line: rgba(15, 118, 110, .085); /* 8.1: the ruled lines of the page, down to its very end (look-v9.css) */
  --glow: rgba(15, 118, 110, .14);
  --ribbon: #F5B82E;                      /* 8.1: the logo's amber ribbon (balance card, section marks) */
  --hero-a: #0F766E;                      /* 8.1: the balance card's gradient (white text ≥ 5.4:1 across it) */
  --hero-b: #0A5751;

  /* Type */
  --font: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Noto Sans', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 13.5px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-4xl: 38px;
  --lh: 1.55;

  /* Spacing (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Layout */
  --nav-h: 64px;
  --topbar-h: 56px;
  --sidebar-w: 252px;
  --content-max: 1100px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 160ms;
}

/* Dark theme (8.0.1: lifted from near-black to a deep teal-grey — the owner found it «خافت وأسود»; text ≥ 4.5:1 on every
   surface): follows the system unless data-theme is set explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    color-scheme: only dark;
    --brand: #2DD4BF;
    --brand-strong: #5EEAD4;
    --brand-hover: #4BDCC8;
    --brand-soft: #1D504A;
    --brand-softer: #1A3F3B;
    --brand-ink: #042320;
    --brand-glow: rgba(45, 212, 191, .14);
    --accent: #FBBF24;
    --accent-strong: #FCD34D;
    --accent-soft: #4A3A1C;
    --accent-ink: #FDE68A;

    --bg: #172427;
    --bg-deep: #111C1E;
    --bg-elevated: #1D2D31;
    --surface: #22343A;
    --surface-2: #2A3E44;
    --surface-3: #33494F;
    --section-head: #273B41;
    --overlay: rgba(0, 0, 0, .58);

    --text: #EDF3F1;
    --text-2: #B9C9C4;
    --text-3: #ABBDB8; /* 8.0: ≥4.5:1 on --surface-3 too (was #93A59F, 4.4:1) */
    --text-inverse: #0E181A;
    --link: #5EEAD4;
    --accent-text: #FBBF24;

    --border: #3A5157;
    --border-strong: #4C666D;
    --field-border: #6B878E;
    --rule: #2E4449;
    --focus: #5EEAD4;
    --focus-gap: #0E181A;

    --danger: #FF928A;
    --danger-soft: #4D2622;
    --danger-ink: #FDA29B;
    --warn: #FBBF24;
    --warn-soft: #4A3A1C;
    --warn-ink: #FDE68A;
    --ok: #2DD4BF;
    --ok-soft: #1D504A;
    --ok-ink: #99F6E4;
    --info: #2DD4BF;
    --info-soft: #1C433F;
    --info-ink: #99F6E4;

    --debt: #FF928A;
    --debt-soft: #4D2622;
    --debt-solid: #C9301F;
    --debt-on: #FFFFFF;
    --debt-border: #6E3430;
    --payment: #6EE7A8;
    --payment-soft: #1E4A35;
    --payment-solid: #4CC08A;
    --payment-on: #062B1C;
    --payment-border: #2B5E44;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 10px 22px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .65);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, .025), 0 10px 22px -14px rgba(0, 0, 0, .7);
    --gold: #FBBF24;
    --gold-2: #FDE68A;
    --gold-ink: #FDE68A;

    --line-color: rgba(94, 234, 212, .05);
    --paper-line: rgba(94, 234, 212, .055);
    --glow: rgba(45, 212, 191, .12);
    --hero-a: #11524C;
    --hero-b: #0B3B37;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  color-scheme: only dark;
  --brand: #2DD4BF;
  --brand-strong: #5EEAD4;
  --brand-hover: #4BDCC8;
  --brand-soft: #1D504A;
  --brand-softer: #1A3F3B;
  --brand-ink: #042320;
  --brand-glow: rgba(45, 212, 191, .14);
  --accent: #FBBF24;
  --accent-strong: #FCD34D;
  --accent-soft: #4A3A1C;
  --accent-ink: #FDE68A;

  --bg: #172427;
  --bg-deep: #111C1E;
  --bg-elevated: #1D2D31;
  --surface: #22343A;
  --surface-2: #2A3E44;
  --surface-3: #33494F;
  --section-head: #273B41;
  --overlay: rgba(0, 0, 0, .58);

  --text: #EDF3F1;
  --text-2: #B9C9C4;
  --text-3: #ABBDB8; /* 8.0: ≥4.5:1 on --surface-3 too (was #93A59F, 4.4:1) */
  --text-inverse: #0E181A;
  --link: #5EEAD4;
  --accent-text: #FBBF24;

  --border: #3A5157;
  --border-strong: #4C666D;
  --field-border: #6B878E;
  --rule: #2E4449;
  --focus: #5EEAD4;
  --focus-gap: #0E181A;

  --danger: #FF928A;
  --danger-soft: #4D2622;
  --danger-ink: #FDA29B;
  --warn: #FBBF24;
  --warn-soft: #4A3A1C;
  --warn-ink: #FDE68A;
  --ok: #2DD4BF;
  --ok-soft: #1D504A;
  --ok-ink: #99F6E4;
  --info: #2DD4BF;
  --info-soft: #1C433F;
  --info-ink: #99F6E4;

  --debt: #FF928A;
  --debt-soft: #4D2622;
  --debt-solid: #C9301F;
  --debt-on: #FFFFFF;
  --debt-border: #6E3430;
  --payment: #6EE7A8;
  --payment-soft: #1E4A35;
  --payment-solid: #4CC08A;
  --payment-on: #062B1C;
  --payment-border: #2B5E44;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 22px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .65);
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, .025), 0 10px 22px -14px rgba(0, 0, 0, .7);
  --gold: #FBBF24;
  --gold-2: #FDE68A;
  --gold-ink: #FDE68A;

  --line-color: rgba(94, 234, 212, .05);
  --paper-line: rgba(94, 234, 212, .055);
  --glow: rgba(45, 212, 191, .12);
  --hero-a: #11524C;
  --hero-b: #0B3B37;
}

/* css/base.css */
/* Base reset + typography + utilities (shared) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-md); line-height: var(--lh);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
[dir='rtl'] body, body[dir='rtl'] { letter-spacing: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button, [role='button'], label { touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-4) 0; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input, textarea, select { background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input[type='number'] { -moz-appearance: textfield; }
input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type='date'], input[type='time'] { min-height: 46px; }
[hidden] { display: none !important; }

/* Numbers always tabular, Latin, LTR inside RTL text */
.num { font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums lining-nums; unicode-bidi: isolate; white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Utilities */
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.center { text-align: center; }
.start { text-align: start; }
.end { text-align: end; }
.row { display: flex; align-items: center; gap: var(--s-2); }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: var(--s-2); }
.grow { flex: 1 1 auto; min-width: 0; }
.self-start { align-self: flex-start; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1 { margin-block-start: var(--s-1); } .mt-2 { margin-block-start: var(--s-2); } .mt-3 { margin-block-start: var(--s-3); } .mt-4 { margin-block-start: var(--s-4); } .mt-6 { margin-block-start: var(--s-6); } .mt-8 { margin-block-start: var(--s-8); }
.mb-1 { margin-block-end: var(--s-1); } .mb-2 { margin-block-end: var(--s-2); } .mb-3 { margin-block-end: var(--s-3); } .mb-4 { margin-block-end: var(--s-4); } .mb-6 { margin-block-end: var(--s-6); }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-6 { gap: var(--s-6); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.debt-color { color: var(--debt); }
.payment-color { color: var(--payment); }
.brand-color { color: var(--brand); }
.accent-color { color: var(--accent-strong); }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
[dir='rtl'] .icon-flip { transform: scaleX(-1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* css/landing.css */
/* Daftar public website (V7) — needs tokens.css + base.css. Logical properties only (RTL-first).
   Colours come only from the tokens: logo teal, amber ribbon, neutrals; debt red / payment teal only on amounts.
   The one illustrative object is the paper daftar (section «الدفتر الورقي ينسى»): everything else stays quiet. */

:root {
  --l-deep: var(--brand);
  --l-on-deep: var(--brand-ink);
  --l-bezel: var(--text);
  --l-line: var(--line-color, color-mix(in srgb, var(--brand) 8%, transparent));
  --l-glow: var(--glow, color-mix(in srgb, var(--brand) 14%, transparent));
  --l-ribbon: var(--gold, var(--accent));
  --paper: #FFFDF8;
  --paper-rule: rgba(15, 118, 110, .17);
  --paper-margin: rgba(217, 119, 6, .55);
  --paper-ink: #24332F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --l-deep: color-mix(in srgb, var(--brand) 36%, var(--bg)); --l-on-deep: var(--text); --l-bezel: var(--surface-3); --paper: #1F2C2E; --paper-rule: rgba(94, 234, 212, .14); --paper-margin: rgba(251, 191, 36, .45); --paper-ink: #D9E4E1; }
  :root:not([data-theme='light']) .theme-btn .sun { display: block; }
  :root:not([data-theme='light']) .theme-btn .moon { display: none; }
}
:root[data-theme='dark'] { --l-deep: color-mix(in srgb, var(--brand) 36%, var(--bg)); --l-on-deep: var(--text); --l-bezel: var(--surface-3); --paper: #1F2C2E; --paper-rule: rgba(94, 234, 212, .14); --paper-margin: rgba(251, 191, 36, .45); --paper-ink: #D9E4E1; }
:root[data-theme='dark'] .theme-btn .sun { display: block; }
:root[data-theme='dark'] .theme-btn .moon { display: none; }

html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.landing { overflow-x: hidden; background: radial-gradient(64% 540px at 50% -110px, var(--l-glow), transparent) no-repeat, var(--bg); }
[hidden] { display: none !important; }
[dir='rtl'] .landing h1, [dir='rtl'] .landing h2, [dir='rtl'] .landing h3 { letter-spacing: 0; }
.ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
@media (max-width: 380px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md); background: var(--text); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-md); line-height: 1.2; white-space: nowrap; border: 1px solid transparent; text-decoration: none; user-select: none; transition: background var(--dur) var(--ease), border-color var(--dur), color var(--dur), transform 80ms var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn .ico { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: var(--fs-lg); border-radius: 15px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover, var(--brand-strong)); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-wa .ico { color: var(--brand); }
.btn-wa:hover { border-color: var(--brand); background: var(--surface); }
.btn-text { background: transparent; color: var(--text-2); padding-inline: 12px; }
.btn-text:hover { background: var(--surface-2); color: var(--text); }
.btn-inverse { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-md); }
.btn-inverse:hover { background: var(--surface-2); }
.btn-on-deep { background: transparent; color: var(--l-on-deep); border-color: color-mix(in srgb, var(--l-on-deep) 45%, transparent); }
.btn-on-deep:hover { background: color-mix(in srgb, var(--l-on-deep) 10%, transparent); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur), color var(--dur); }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn .ico { width: 20px; height: 20px; }
@media (max-width: 400px) { .cta-row .btn-lg { width: 100%; min-height: 54px; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.35; } }

/* ===== Header (transparent over the glow until the page scrolls) ===== */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: background-color var(--dur), border-color var(--dur); }
.js .site-head:not(.scrolled) { background-color: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.head-row { display: flex; align-items: center; gap: 6px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 800; font-size: 21px; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.mark { width: 36px; height: 36px; flex: 0 0 auto; color: var(--brand); }
.head-links { display: none; margin-inline-start: 28px; gap: 4px; }
.head-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.head-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.head-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.head-nav .login, .only-wide, .lang-cur { display: none; }
@media (min-width: 480px) {
  .head-nav { gap: 6px; }
  .head-nav .login { display: inline-flex; }
  .only-wide, .lang-cur { display: inline; }
  .only-narrow { display: none; }
}
/* 8.2.2: the Kurdish words are longer — keep the short header (no login link / long button label / language name) up to
   600 px, so the header never runs off the screen between 480 and 600 px (it did at 480–530) */
@media (min-width: 480px) and (max-width: 599.98px) {
  html[lang="ckb"] .head-nav { gap: 4px; }
  html[lang="ckb"] .head-nav .login, html[lang="ckb"] .only-wide, html[lang="ckb"] .lang-cur { display: none; }
  html[lang="ckb"] .only-narrow { display: inline; }
}
@media (min-width: 900px) { .head-links { display: flex; } }
.head-links .nav-new { display: none; }
@media (min-width: 1100px) { .head-links .nav-new { display: inline-flex; } }

.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang[open] > summary { background: var(--surface-2); color: var(--text); }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 168px; padding: 6px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; text-align: start; font-weight: 600; color: var(--text); text-decoration: none; }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a[aria-checked='true'] { color: var(--brand); }
.lang-menu a[aria-checked='true']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.theme-btn .sun { display: none; }

/* ===== Hero: faint notebook lines (like the logo) behind the hero only ===== */
.hero { position: relative; isolation: isolate; padding-block: 28px 56px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(transparent 0 37px, var(--l-line) 37px 38px); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-text { max-width: 620px; min-width: 0; }
.hero-title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
[dir='rtl'] .hero-title { line-height: 1.32; }
.is-sub .hero-title { font-size: clamp(30px, 4.6vw, 48px); }
.promise { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-notes { display: grid; gap: 8px; margin-top: 22px; font-size: var(--fs-sm); color: var(--text-2); }
.hero-notes li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.hero-notes .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.hero-notes .ribbon-ico { fill: var(--l-ribbon); stroke: none; }
.hero-notes b { color: var(--accent-strong); }
@media (min-width: 900px) {
  .hero { padding-block: 52px 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}
.hero-new { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; margin-bottom: 18px; padding-block: 4px; padding-inline: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color var(--dur), color var(--dur); }
.hero-new:hover { text-decoration: none; color: var(--text); border-color: var(--brand); }
.hero-new .ico { width: 16px; height: 16px; color: var(--brand); }
.hero-new > span { min-width: 0; }

/* Phone mockup (pure CSS, decorative) — the 7.0 home screen */
.phone-wrap { display: flex; justify-content: center; padding-block: 8px 16px; }
.phone { position: relative; width: 300px; padding: 10px; border-radius: 48px; background: var(--l-bezel); box-shadow: var(--shadow-lg), inset 0 0 0 1px color-mix(in srgb, var(--text-inverse) 10%, transparent); }
.screen { position: relative; display: flex; flex-direction: column; height: 660px; overflow: hidden; border-radius: 39px; background: var(--bg); color: var(--text); font-size: 12px; line-height: 1.4; }
.notch { position: absolute; top: 10px; left: 50%; z-index: 3; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: var(--l-bezel); }
.statusbar { display: flex; justify-content: space-between; align-items: center; direction: ltr; padding: 14px 26px 0; font-weight: 700; font-size: 12.5px; }
.status-icons { display: inline-flex; align-items: center; gap: 5px; }
.status-icons svg { height: 11px; width: auto; fill: currentColor; }
.m-toast { display: flex; align-items: center; gap: 10px; margin: 10px 10px 0; padding: 9px 12px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.m-toast i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.m-toast i .ico { width: 16px; height: 16px; }
.m-toast span, .m-who { display: flex; flex-direction: column; min-width: 0; }
.m-toast b { font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.m-toast small, .m-shop, .m-who small { font-size: 10px; font-weight: 600; color: var(--text-2); }
.apphead { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 16px 8px; }
.m-greet { font-weight: 800; font-size: 14.5px; }
.m-shop { font-size: 11px; }
.m-tools { display: flex; align-items: center; gap: 6px; }
.m-fx { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 32px; padding: 2px 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); line-height: 1.1; }
.m-fx small { font-size: 8px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.m-fx b { font-size: 11px; font-weight: 800; }
.m-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.m-bell .ico { width: 16px; height: 16px; }
.m-bell i { position: absolute; top: 6px; inset-inline-end: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--surface); }
.m-body { display: flex; flex-direction: column; gap: 9px; padding: 0 14px; }
.m-hero { position: relative; overflow: hidden; padding: 12px 14px; border-radius: 18px; background: var(--l-deep); color: var(--l-on-deep); box-shadow: var(--shadow-md); }
.m-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 21px, color-mix(in srgb, var(--l-on-deep) 7%, transparent) 21px 22px); }
.m-hero > * { position: relative; }
.m-hero .m-ribbon { position: absolute; top: 0; inset-inline-end: 14px; width: 12px; height: 20px; background: var(--l-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.m-top { display: flex; align-items: center; gap: 6px; padding-inline-end: 22px; }
.m-label { font-size: 10.5px; font-weight: 600; } /* 8.1.2: no opacity (contrast) */
.m-hero .tag { min-height: 16px; padding: 0 6px; font-size: 9px; background: color-mix(in srgb, var(--l-ribbon) 26%, transparent); color: inherit; }
.m-amount { margin-top: 2px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.m-amount span:last-child { font-size: 13px; font-weight: 700; opacity: .9; }
.m-usd { display: flex; align-items: baseline; gap: 6px; margin-top: 1px; font-size: 10.5px; font-weight: 600; opacity: .92; }
.m-usd b { font-size: 13px; font-weight: 800; }
.m-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.m-chip { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 11px; font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--l-on-deep) 13%, transparent); }
.m-chip > span { display: flex; align-items: center; gap: 4px; opacity: .9; }
.m-chip i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--l-on-deep) 50%, transparent); }
.m-chip i.dot { background: var(--l-ribbon); }
.m-chip b { font-size: 12.5px; font-weight: 800; }
.m-sec { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 0; font-weight: 700; font-size: 12.5px; }
.m-link { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-size: 11px; font-weight: 600; }
.m-link .ico { width: 13px; height: 13px; }
.m-list { overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.m-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; }
.m-row + .m-row { border-top: 1px solid var(--border); }
.m-who { flex: 1 1 auto; }
.m-who b { overflow: hidden; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.m-bal { font-size: 12.5px; font-weight: 800; color: var(--debt); }
.m-bal.pay { color: var(--payment); }
.m-wa { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-softer); color: var(--brand); }
.m-wa .ico { width: 14px; height: 14px; }
.m-wa.off { background: none; }
.m-ai { position: absolute; inset-inline-end: 14px; bottom: 72px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--accent); box-shadow: var(--shadow-md); }
.m-ai .ico { width: 20px; height: 20px; }
.av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-style: normal; font-weight: 700; font-size: 11.5px; }
.av.a2 { background: var(--brand-soft); color: var(--brand-strong); }
.av.a3 { background: color-mix(in srgb, var(--brand) 50%, var(--surface)); color: var(--text); }
.m-nav { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr)); align-items: end; height: 60px; padding: 0 10px 6px; background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); border-top: 1px solid var(--border); }
.m-ni { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 54px; font-size: 9.5px; font-weight: 600; color: var(--text-2); }
.m-ni em { max-width: 100%; overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.m-ni .ico { width: 17px; height: 17px; }
.m-ni.on { color: var(--brand); }
.fab { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 6px 2px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-md); }
.fab .ico { width: 18px; height: 18px; stroke-width: 2.4; }
@media (max-width: 420px) { .phone { width: 280px; } .screen { height: 640px; font-size: 11.5px; } .notch { width: 72px; } .statusbar { padding-inline: 22px; } }

/* The one load moment: the phone rises, then the "statement opened" toast slides in. */
.js .phone { animation: rise .8s var(--ease) both; }
.js .m-toast { animation: slide-in .5s var(--ease) 1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Amber pill = the Pro plan (the ribbon's colour) */
.tag { display: inline-flex; align-items: center; vertical-align: middle; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, var(--text)); font-size: var(--fs-xs); font-weight: 700; font-style: normal; line-height: 1.2; white-space: nowrap; }

/* ===== Strip under the hero ===== */
.strip { padding-block: 8px 24px; }
.strip-grid { display: grid; gap: 0; padding: 6px 0; border-block: 1px solid var(--border); }
.strip-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px; }
.strip-item > .ico { width: 26px; height: 26px; margin-top: 2px; color: var(--brand); }
.strip-t { font-weight: 700; }
.strip-item p + p { margin-top: 3px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.strip-item + .strip-item { border-top: 1px solid var(--border); }
@media (min-width: 720px) {
  .strip { padding-block: 16px 32px; }
  .strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-item { padding: 18px 20px; }
  .strip-item + .strip-item { border-top: 0; border-inline-start: 1px solid var(--border); }
  .strip-item:first-child { padding-inline-start: 4px; }
}

/* ===== Sections ===== */
.sec { padding-block: clamp(44px, 6.5vw, 80px); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
[dir='rtl'] .sec h2 { line-height: 1.4; }
.lead { margin-top: 12px; font-size: var(--fs-lg); line-height: 1.7; color: var(--text-2); max-width: 46em; text-wrap: pretty; }

/* ===== «الدفتر الورقي ينسى»: the paper page (the one illustrative object) ===== */
.pain-grid { display: grid; gap: 36px; align-items: center; }
.paper { position: relative; display: block; width: 100%; max-width: 400px; margin: 0 auto; padding: 22px 26px 46px; padding-inline-start: 62px; border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(transparent 0 39px, var(--paper-rule) 39px 40px) 0 72px / 100% calc(100% - 72px) no-repeat, var(--paper); color: var(--paper-ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent), var(--shadow-lg); transform: rotate(-1.4deg); font-weight: 600; }
[dir='ltr'] .paper { transform: rotate(1.2deg); }
.paper::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 44px; width: 2px; background: var(--paper-margin); }
.paper-title { display: block; height: 40px; margin-bottom: 10px; font-size: 15px; font-weight: 800; line-height: 40px; letter-spacing: .01em; color: color-mix(in srgb, var(--paper-ink) 70%, transparent); border-bottom: 2px solid var(--paper-rule); }
.paper-line { display: block; height: 40px; overflow: hidden; font-size: 19px; line-height: 44px; white-space: nowrap; text-overflow: ellipsis; }
.paper-line.l2 { transform: rotate(-.8deg); }
.paper-line.l3 { transform: translateX(-6px) rotate(1deg); color: color-mix(in srgb, var(--paper-ink) 78%, transparent); }
.paper-line s { text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--paper-ink) 80%, transparent); }
.paper-line.smudge { filter: blur(1.1px); opacity: .5; }
.paper-note { position: absolute; top: -14px; inset-inline-end: -10px; padding: 10px 14px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; font-weight: 800; line-height: 1.2; transform: rotate(5deg); box-shadow: var(--shadow-md); }
.paper-tear { position: absolute; inset-inline: 0; bottom: -1px; height: 14px; background: var(--bg); -webkit-mask: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 14px repeat-x; mask: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 14px repeat-x; }
.fixes { display: flex; flex-direction: column; }
.fixes li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--border); }
.fixes li:last-child { border-bottom: 1px solid var(--border); }
.fixes .was { font-size: 14.5px; font-weight: 600; color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.fixes .fix { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.55; }
.fixes .fix .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); stroke-width: 2.2; }
@media (min-width: 860px) {
  .pain-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
  .paper { margin: 0; }
}

/* ===== Trades ===== */
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 520px) { .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.trade { display: flex; align-items: center; gap: 12px; min-height: 60px; height: 100%; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; line-height: 1.35; text-decoration: none; transition: border-color var(--dur), background var(--dur); }
.trade:hover { text-decoration: none; border-color: var(--brand); }
.trade > .ico:first-child { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-softer); color: var(--brand); }
.trade span { flex: 1 1 auto; min-width: 0; }
.trade .chev { width: 18px; height: 18px; color: var(--text-3); }
.trade-free > .ico:first-child { background: var(--accent-soft); color: var(--accent-strong); }
@media (min-width: 720px) { .trade-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; } }
.trades .sec-head { margin-bottom: 24px; }
.trades h2 + .trade-grid { margin-top: 24px; }

/* ===== Features ===== */
.cards { display: grid; gap: 14px; }
.card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.card > .ico, .card > div > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--brand-softer); color: var(--brand); }
.card h3 { margin-top: 16px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; }
.card p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); max-width: 36em; }
.card.wide, .card.insight { display: grid; gap: 22px; }
.chat { display: flex; padding: 20px 18px; border-radius: 16px; background: var(--surface-2); }
.bubble { position: relative; align-self: center; max-width: 330px; margin-inline-start: auto; padding: 10px 12px 7px; border-radius: 14px; border-start-end-radius: 4px; background: var(--brand-soft); color: var(--text); font-size: 13.5px; line-height: 1.55; }
.bubble::before { content: ''; position: absolute; top: 0; inset-inline-end: -7px; border-style: solid; border-width: 0 0 10px 8px; border-color: transparent transparent transparent var(--brand-soft); }
[dir='ltr'] .bubble::before { border-width: 0 8px 10px 0; border-color: transparent var(--brand-soft) transparent transparent; }
.card .bubble p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 10.5px; color: var(--text-2); }
.bubble-meta .ico { width: 16px; height: 16px; color: var(--brand); stroke-width: 2; }
@media (max-width: 599px) {
  .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px; }
  .card > .ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; }
  .card > h3, .card > p { margin-top: 0; }
  .card.wide, .card.insight { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card.wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .card.insight { grid-column: span 2; }
}
@media (min-width: 600px) and (max-width: 899px) { .iv { display: none; } }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 24px; }
  .card.insight { grid-column: span 3; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 28px; }
  .iv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plan-hint { margin-top: 14px; max-width: 46em; color: var(--text-2); font-size: var(--fs-md); font-weight: 600; line-height: 1.7; }
.plan-hint .tag { margin-inline-end: 8px; vertical-align: 1px; }
.iv { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.iv-tile { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.iv-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.iv-t .ico { width: 15px; height: 15px; color: var(--brand); }
.iv-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.iv-v b { font-size: 24px; font-weight: 800; line-height: 1; }
.iv-v b.up { color: var(--brand); }
.iv-v small, .iv-legend { font-size: 12px; font-weight: 600; color: var(--text-2); }
.iv-avs { display: flex; }
.iv-avs .av { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--surface); }
.iv-avs .av + .av { margin-inline-start: -7px; }
.iv-avs .more { background: var(--surface-2); color: var(--text-2); }
.iv-bar { display: flex; gap: 2px; height: 10px; margin-top: 4px; border-radius: 999px; overflow: hidden; }
.iv-bar i { flex: 11 1 0; border-radius: 2px; }
.iv-bar i:nth-child(2) { flex-grow: 6; }
.iv-bar i:nth-child(3) { flex-grow: 3; }
.iv-bar i, .iv-legend i { background: color-mix(in srgb, var(--brand) 30%, var(--surface)); }
.iv-bar i:nth-child(2), .iv-legend span:nth-child(2) i { background: color-mix(in srgb, var(--brand) 62%, var(--surface)); }
.iv-bar i:nth-child(3), .iv-legend span:nth-child(3) i { background: var(--brand); }
.iv-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 11px; }
.iv-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.iv-legend b { font-weight: 600; }
.iv-legend i { width: 8px; height: 8px; border-radius: 50%; }
.iv-spark { width: 100%; height: 36px; overflow: visible; }
.iv-area { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.iv-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== «جديد» (8.0: Home + «وعدني يدفع») and the feature spotlights (dollar + assistant): sketches, then a list ===== */
.new-hero { display: grid; gap: 16px; }
.spot { display: grid; gap: 20px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.spot-text > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); }
.spot h3 { margin-top: 14px; font-size: var(--fs-xl); font-weight: 800; line-height: 1.35; }
.spot-text p { margin-top: 8px; line-height: 1.7; color: var(--text-2); }
.spot-art { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.amt { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.amt b { font-weight: 800; }
.amt small { font-size: .78em; font-weight: 700; } /* 8.1.2: full colour — PageSpeed contrast (was opacity .85 on the green / teal) */
.usd-card { width: 100%; max-width: 320px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.usd-who { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
.usd-bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.usd-bal .amt { font-size: 22px; color: var(--debt); }
.usd-pay { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 10px; border-radius: 11px; background: var(--payment-soft); color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.usd-pay .ico { width: 18px; height: 18px; color: var(--payment); stroke-width: 2.4; }
.ai-chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; font-size: 13.5px; line-height: 1.55; }
.ai-chat .ai-q { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px; border-end-end-radius: 4px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.ai-chat .ai-a { display: flex; align-items: flex-start; gap: 8px; max-width: 92%; padding: 9px 12px; border-radius: 14px; border-end-start-radius: 4px; background: var(--surface); border: 1px solid var(--border); }
.ai-a i { display: inline-flex; flex: 0 0 auto; color: var(--accent); }
.ai-a .ico { width: 18px; height: 18px; }
.ai-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border-strong); }
.ai-card-t { flex: 1 1 auto; font-weight: 700; }
.ai-card .amt { color: var(--payment); font-size: 16px; }
.ai-ok { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; }
@media (min-width: 1000px) { .new-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
/* 8.0.1: the Home sketch — the big number, the two buttons, «منو لازم يدفعلي اليوم؟» */
.feat-spots { margin-bottom: 16px; }
@media (min-width: 1000px) { .feat-spots { margin-bottom: 20px; } }
.h8 { display: grid; gap: 9px; width: 100%; max-width: 330px; font-size: 13px; }
.h8-hero { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--l-deep); color: var(--l-on-deep); box-shadow: var(--shadow-md); font-weight: 600; }
.h8-hero small { font-size: .85em; font-weight: 600; } /* 8.1.2: full colour on the deep hero (opacity .8 failed 4.5:1) */
.h8-hero .amt { font-size: 24px; }
.h8-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h8-btn, .m-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 8px; border-radius: 12px; font-weight: 800; text-align: center; }
.h8-btn .ico, .m-act .ico { width: 16px; height: 16px; flex: 0 0 auto; stroke-width: 2.4; }
.h8-btn.debt, .m-act.debt { background: var(--debt-soft); color: var(--debt); border: 1px solid color-mix(in srgb, var(--debt) 22%, transparent); }
.h8-btn.pay, .m-act.pay { background: var(--payment-soft); color: var(--payment); border: 1px solid color-mix(in srgb, var(--payment) 22%, transparent); }
.h8-t { margin-top: 3px; font-weight: 800; }
.h8-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.h8-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.h8-who b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.h8-who small { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.h8-who small.late { color: var(--debt); }
.h8-row .amt { color: var(--debt); font-size: 14px; }
.h8-wa { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #25D366; color: #fff; }
.h8-wa .ico { width: 16px; height: 16px; }
.p8-chip { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 10px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.p8-chip .ico { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-strong); }
.usd-pay small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
:root[data-theme='dark'] .p8-chip { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .p8-chip { color: var(--accent); } }
/* the hero phone: the two 8.0 buttons */
.m-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-act { min-height: 30px; padding: 4px 6px; border-radius: 10px; font-size: 11px; gap: 4px; }
.m-act .ico { width: 12px; height: 12px; }
.m-label small { font-size: .9em; } /* 8.1.2: no opacity (contrast) */

@media (min-width: 640px) and (max-width: 999px) { .spot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.news-list { display: grid; margin-top: 18px; padding: 0 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); overflow: hidden; }
.news-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: -1px; padding: 20px 2px; border-top: 1px solid var(--border); }
.news-item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-softer); color: var(--brand); }
.news-item h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; }
.news-item p { margin-top: 4px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.fx-live { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin-top: 6px; padding: 0 10px; border-radius: 999px; background: var(--brand-softer); color: var(--text); font-size: 13px; font-weight: 800; cursor: help; }
.fx-now { font-size: 12px; font-weight: 600; color: var(--text-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
@keyframes soon-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 6%, transparent); } }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: soon-pulse 2.2s ease-in-out infinite; } }
@media (min-width: 720px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; padding: 0 30px; } .news-item { padding-block: 24px; } }
@media (min-width: 1000px) { .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== How it works (a real sequence, so it is numbered) ===== */
.steps { max-width: 860px; padding: 6px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; }
.steps li + li { border-top: 1px solid var(--border); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--fs-lg); }
.steps h3 { padding-top: 6px; font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; }
.steps p { margin-top: 6px; line-height: 1.7; color: var(--text-2); max-width: 40em; }
@media (min-width: 720px) {
  .steps { padding: 10px 34px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 28px; padding: 28px 0; }
  .step-n { width: 44px; height: 44px; font-size: var(--fs-xl); }
}

/* ===== Pricing ===== */
.plans { display: grid; gap: 16px; max-width: 920px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.plan.pro { padding: 25px 21px; border: 2px solid var(--brand); }
.plan h3 { padding-inline-end: 44px; font-size: var(--fs-2xl); font-weight: 800; }
.plan-desc { margin-top: -8px; color: var(--text-2); }
.ribbon { position: absolute; top: -8px; inset-inline-end: 24px; width: 24px; height: 46px; border-radius: 4px 4px 0 0; background: var(--l-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.rates { margin: 0; border-block: 1px solid var(--border); }
.rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 14px; }
.rate + .rate { border-top: 1px solid var(--border); }
.rate dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 700; }
.rate dd { display: flex; align-items: baseline; gap: 6px; margin: 0; margin-inline-start: auto; }
.rate dd b { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.rate dd span { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.plan-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); stroke-width: 2.2; }
.plan-list .plan-lead { font-weight: 700; color: var(--text-2); }
.plan-note { margin-top: auto; font-size: var(--fs-sm); color: var(--text-2); }
.plan .btn { margin-top: auto; }
.plan .plan-note + .btn { margin-top: 0; }
.free-only { font-weight: 600; }
.launch-note { color: var(--accent-strong); font-weight: 700; }
.lock-note { font-weight: 700; color: var(--brand); }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .plan { padding: 30px 28px; }
  .plan.pro { padding: 29px 27px; }
}
.cmp-wrap { max-width: 920px; margin-top: 36px; }
.cmp-title { margin-bottom: 14px; font-size: var(--fs-xl); font-weight: 800; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; font-size: var(--fs-sm); }
.cmp th, .cmp td { padding: 12px 10px; border-top: 1px solid var(--border); text-align: center; vertical-align: middle; line-height: 1.45; }
.cmp thead th { border-top: 0; background: var(--surface-2); font-weight: 800; color: var(--text); }
.cmp th[scope='row'], .cmp thead th:first-child { text-align: start; font-weight: 600; padding-inline-start: 16px; }
.cmp thead th:first-child { width: 56%; }
.cmp td { font-weight: 700; }
.cmp .yes, .cmp .no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.cmp .yes { background: var(--brand-softer); color: var(--brand); }
.cmp .yes .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.cmp .no { color: var(--text-3); }
.cmp .no .ico { width: 18px; height: 18px; }
@media (min-width: 720px) { .cmp { font-size: var(--fs-md); } .cmp th, .cmp td { padding: 13px 16px; } .cmp thead th:first-child { width: 60%; } }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 920px; margin-top: 22px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.pay-badge img { height: 22px; width: auto; max-width: 88px; object-fit: contain; }
.pay-note { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.pay-note .ico { width: 20px; height: 20px; color: var(--brand); }

/* ===== Trust ===== */
.trust-grid { display: grid; gap: 0; border-top: 1px solid var(--border); }
.trust-grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.trust-grid .ico { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--brand-softer); color: var(--brand); }
.trust-grid h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; }
.trust-grid p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; } .trust-grid li { grid-template-columns: minmax(0, 1fr); align-content: start; border-bottom: 0; border-top: 2px solid var(--brand); padding-top: 22px; } .trust-grid .ico { grid-row: auto; margin-bottom: 10px; } }

/* ===== FAQ ===== */
#faq h2 { margin-bottom: 12px; }
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 2px; border-radius: 8px; list-style: none; cursor: pointer; font-weight: 700; font-size: var(--fs-lg); line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 22px; height: 22px; color: var(--text-2); transition: transform var(--dur) var(--ease); }
.faq-list details[open] summary .ico { transform: rotate(180deg); }
.faq-a { padding: 0 2px 20px; }
.faq-a p { max-width: 60em; line-height: 1.8; color: var(--text-2); }
.faq-a p + p { margin-top: 8px; }
.faq-a a { font-weight: 700; }
.pay-list { display: grid; gap: 8px; max-width: 520px; margin-top: 12px; }
.pay-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pay-list b { min-width: 5.5em; }
.pay-list small { font-size: var(--fs-sm); color: var(--text-2); }

/* ===== Closing band: the notebook cover (teal, ruled, with the amber ribbon) ===== */
.sec.cta { padding-top: 0; }
.band { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px); border-radius: 26px; background: repeating-linear-gradient(transparent 0 37px, color-mix(in srgb, var(--l-on-deep) 8%, transparent) 37px 38px), var(--l-deep); color: var(--l-on-deep); box-shadow: var(--shadow-lg); }
.band-ribbon { position: absolute; top: 0; inset-inline-end: clamp(24px, 6vw, 72px); width: 26px; height: 64px; background: var(--l-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.band h2 { max-width: 16em; padding-inline-end: 40px; }
.band p { max-width: 40em; margin-top: 12px; font-size: var(--fs-lg); line-height: 1.7; opacity: .9; }
.band .cta-row { margin-top: 28px; }

/* ===== Footer ===== */
.site-foot { padding: 44px 0 28px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; gap: 30px 40px; }
.foot-brand p { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.foot-brand p.foot-by { margin-top: 6px; }
.foot-by a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-h { margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--text-2); }
.foot-col ul { display: flex; flex-direction: column; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); font-weight: 600; }
.foot-col a:hover { color: var(--brand); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.foot-follow { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.foot-social ul { display: flex; gap: 8px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: color var(--dur), border-color var(--dur); }
.foot-social a:hover { color: var(--brand); border-color: var(--brand); }
.foot-social .ico { width: 20px; height: 20px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.foot-bottom a { color: inherit; font-weight: 600; }
.foot-bottom .foot-privacy { flex: 1 0 100%; order: 9; margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-3, var(--text-2)); max-width: 80ch; } /* 7.1 Meta Pixel note */
.foot-meta { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.version { display: inline-flex; gap: 6px; }
.by a { text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .foot-bottom a, .faq-a a { position: relative; } .foot-bottom a::after, .faq-a a::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(calc(100% + 8px), 44px); height: 44px; transform: translate(-50%, -50%); } } /* 7.0 QA: ≥ 44 wide too */
/* 7.0 QA sweep (tools/e2e-sweep-v7.mjs): ≥ 44 px tap areas on touch — invisible, the header / hero keep their size */
@media (pointer: coarse) {
  .iconbtn, .btn-sm, .hero-new { position: relative; }
  .iconbtn::after, .btn-sm::after, .hero-new::after { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .foot-col a { min-height: 44px; min-width: 44px; }
}

/* ===== Trade pages + the free page ===== */
.crumbs { padding-top: 14px; font-size: var(--fs-sm); color: var(--text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: '/'; color: var(--text-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; }
.crumbs [aria-current] { font-weight: 600; }
.seg-hero { padding-top: 16px; }
.seg-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-block: 6px; padding-inline: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.seg-badge .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--brand-softer); color: var(--brand); }
.ledger-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.ledger-card figcaption { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.lc-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: var(--fs-lg); }
.lc-rows { display: flex; flex-direction: column; }
.lc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.lc-kind { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.is-debt .lc-kind { background: var(--debt-soft); color: var(--debt); }
.is-pay .lc-kind { background: var(--payment-soft); color: var(--payment); }
.lc-label { font-weight: 600; line-height: 1.4; }
.lc-row .amt { font-size: 15px; }
.is-debt .amt { color: var(--debt); }
.is-pay .amt { color: var(--payment); }
.lc-bal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; padding-top: 14px; font-weight: 800; }
.lc-bal-v { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.lc-bal .amt { font-size: 22px; color: var(--debt); }
.free-card .free-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.free-price b { font-size: 40px; font-weight: 800; line-height: 1; }
.free-price span { font-weight: 700; color: var(--text-2); }
.free-price small { margin-inline-start: auto; font-weight: 700; color: var(--brand); }
.helps { display: flex; flex-direction: column; gap: 4px; }
.helps li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; line-height: 1.6; font-weight: 600; }
.helps .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); stroke-width: 2.2; }
.why-grid { display: grid; gap: 36px; }
.why-grid h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 32px); }
.paper-list { max-width: none; margin: 0; padding: 14px 24px 24px; padding-inline-start: 62px; background: repeating-linear-gradient(transparent 0 39px, var(--paper-rule) 39px 40px) 0 6px / 100% calc(100% - 6px) no-repeat, var(--paper); transform: none; font-size: 18px; }
[dir='ltr'] .paper-list { transform: none; }
.paper-list li { line-height: 40px; }
@media (max-width: 480px) { .paper-list { font-size: 16px; padding-inline: 50px 16px; } .paper-list::before { inset-inline-start: 34px; } }
.paper-list s { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
@media (min-width: 860px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.mini-plans { display: grid; gap: 12px; max-width: 920px; margin-top: 20px; }
.mini-plan { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; line-height: 1.6; }
.mini-plan.pro { border: 2px solid var(--brand); }
.mini-plan .ico { width: 24px; height: 24px; color: var(--brand); }
.mini-plan .ribbon-ico { fill: var(--l-ribbon); stroke: none; }
@media (min-width: 760px) { .mini-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-link { margin-top: 14px; font-weight: 700; }
.mini-link a { display: inline-flex; align-items: center; min-height: 40px; }
.more-card { display: flex; align-items: flex-start; gap: 16px; max-width: 860px; padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 2px solid var(--brand); }
.more-card > .ico { width: 28px; height: 32px; margin-top: 6px; fill: var(--l-ribbon); stroke: none; }
.more-card h2 { font-size: clamp(22px, 3vw, 30px); }
.more-card p { margin-top: 10px; line-height: 1.75; color: var(--text-2); }
.seg-why, .seg-plans, .seg-more { padding-block: clamp(36px, 6vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  .js .phone, .js .m-toast { animation: none; }
  .faq-list summary .ico { transition: none; }
}
.landing :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:focus-visible, .iconbtn:focus-visible { outline-offset: 2px; }

/* css/guides.css */
/* 7.1 «أدلة ونصائح» — the article pages and their index (scripts/site/guides.mjs). Builds on tokens / base / landing.css:
   same colours, type and cards; this file only adds the reading layout. RTL first, logical properties throughout. */

.guide { max-width: 780px; padding-block: 8px clamp(40px, 6vw, 72px); }
.guide-head { padding-block: clamp(18px, 3vw, 30px) clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--border); }
.guide-title { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.guide-lead { margin-top: 14px; font-size: var(--fs-lg); line-height: 1.85; color: var(--text-2); text-wrap: pretty; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: var(--fs-sm); color: var(--text-3, var(--text-2)); }
.guide-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta .ico { width: 16px; height: 16px; color: var(--brand); }

.guide-body { font-size: 17px; line-height: 1.95; }
.guide-body section { padding-top: clamp(22px, 3.4vw, 34px); }
.guide-body h2 { font-size: clamp(21px, 2.8vw, 26px); font-weight: 800; line-height: 1.4; text-wrap: balance; }
.guide-body p { margin-top: 12px; text-wrap: pretty; }
.guide-body ul, .guide-body ol { margin-top: 12px; padding-inline-start: 1.4em; display: grid; gap: 8px; }
.guide-body ul { list-style: disc; }
.guide-body ol { list-style: decimal; } /* Latin digits, as everywhere in Daftar */
.guide-body li::marker { color: var(--brand); font-weight: 800; }
.guide-body strong { font-weight: 800; color: var(--text); }
.guide-body a:not(.btn), .guide-faq a:not(.btn) { color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.guide-body a:not(.btn):hover, .guide-faq a:not(.btn):hover { text-decoration-thickness: 2.5px; }

.guide-tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent, #F59E0B) 35%, transparent); }
.guide-tip .ico { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 5px; color: var(--accent-ink, var(--text)); }
.guide-tip p { margin: 0; font-size: var(--fs-md); line-height: 1.8; color: var(--accent-ink, var(--text)); font-weight: 600; }

.guide-cta { display: grid; gap: 14px; margin-top: clamp(26px, 4vw, 38px); padding: 18px 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow, var(--shadow-sm)); }
.guide-cta-t { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.guide-cta p:not(.guide-cta-t) { margin: 4px 0 0; font-size: var(--fs-md); line-height: 1.7; color: var(--text-2); }
.guide-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-cta-row .btn { white-space: normal; text-align: center; }
@media (min-width: 720px) { .guide-cta { grid-template-columns: 1fr auto; align-items: center; } .guide-cta-row { justify-content: flex-end; } }

.guide-faq, .guide-related { padding-top: clamp(30px, 5vw, 48px); }
.guide-faq h2, .guide-related h2 { font-size: clamp(21px, 2.8vw, 26px); font-weight: 800; margin-bottom: 8px; }
.guide-faq .faq-a p { line-height: 1.85; color: var(--text-2); }

.guide-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .guides-index .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; height: 100%; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color var(--dur), transform 120ms var(--ease); }
.guide-card:hover { border-color: var(--brand); text-decoration: none; }
.guide-card > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-softer); color: var(--brand); }
.guide-card-t { font-size: var(--fs-lg); font-weight: 800; line-height: 1.45; text-wrap: balance; }
.guide-card-d { font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); }
.guide-card-m { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand); }
.guide-card-m .ico { width: 16px; height: 16px; }
.guides-index .guide-title { font-size: clamp(30px, 5vw, 46px); }
.guide-index-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }


/* css/site-811.css */
/* Daftar website — 8.1.1 (S1, SEO) parts: the line above the home H1, «أدلة لأصحاب المحلات» on the home pages,
   «اقرأ أكثر» on the trade pages, the longer trade / free pages (text, «مثال يوم كامل», «تبدي بخمس دقايق», the free vs
   Pro table), the /guides/ groups and the delete-account page. Built into /css/site.css by scripts/build-site.mjs
   after tokens, base, landing and guides — only their variables are used, so light / dark follow the site. */

/* the small line above the H1 (the words people search; the H1 stays the brand line) */
.hero-kicker { margin-bottom: 10px; font-size: var(--fs-md); font-weight: 700; line-height: 1.6; color: var(--brand); text-wrap: pretty; }
.hero-new + .hero-kicker { margin-top: -4px; }

/* guide cards outside /guides/ */
.home-guides .guide-cards, .read-more .guide-cards { margin-top: 0; }
@media (min-width: 1040px) { .home-guides .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guides-all { margin-top: 22px; }
.read-more h2 { margin-bottom: 20px; font-size: clamp(22px, 3vw, 30px); }
.read-more + .trades, .read-more + .sec { padding-top: 0; }
.guide-card-m > span { font-weight: 600; color: var(--text-2); }
.guide-link-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-lg, 14px); background: var(--surface); border: 1px solid var(--border); font-weight: 700; line-height: 1.6; }
.guide-link-line .ico { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); }
.guide-link-line a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.lang-note { font-size: var(--fs-xs, 12.5px); font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* /guides/: one heading per group */
.guide-group + .guide-group { margin-top: clamp(30px, 4.5vw, 46px); }
.guide-group h2 { margin-bottom: 4px; font-size: clamp(22px, 3vw, 30px); }
.guides-index .sec-head .lead + .lead { margin-top: 10px; }

/* longer trade / free pages: readable text column (the article styles of guides.css) */
.seo-text { padding-top: 0; }
.seo-prose > * { max-width: 820px; } /* the column starts where the other sections start */
.seo-prose > p:first-child { margin-top: 0; }
.seo-prose section:first-of-type { padding-top: 6px; }
.seg-plans .seo-prose h2 { margin-bottom: 4px; }

/* «مثال يوم كامل»: a timeline of one day at the counter */
.day-list { display: grid; gap: 0; max-width: 820px; margin-top: 20px; padding: 6px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.day-list li { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; line-height: 1.75; }
.day-list li + li { border-top: 1px solid var(--border); }
.day-time { font-weight: 800; color: var(--brand); white-space: nowrap; }
.day-outro { max-width: 820px; margin-top: 16px; line-height: 1.8; color: var(--text-2); }
.seo-day .lead { margin-top: 10px; }

/* «تبدي بخمس دقايق»: the numbered steps of the home page, with one line each */
.seo-start .steps { margin-top: 20px; }
.step-p { padding-top: 7px; line-height: 1.75; }
@media (min-width: 720px) { .step-p { padding-top: 9px; } }

/* free vs Pro table on /free/ */
.free-table .cmp-wrap { margin-top: 20px; }

/* delete-account page: the button under the steps */
.privacy .guide-body .btn { margin-top: 4px; text-decoration: none; }

/* a11y (target size ≥ 24 px): the short «دفتر» breadcrumb link */
.crumbs a { min-width: 44px; justify-content: center; }

/* 8.1.3 «app view» — the privacy / delete-account pages as the APP opens them (…?app=1, or inside a store app's
   WebView; <html class="app-view"> is set before the first paint by the page's own head script). Google Play wants the
   policy inside the app, and a store app may never lead to prices or ways to pay, so there:
     • no site menu, footer or breadcrumb (they link to the priced website), no skip link to nowhere;
     • [data-site-only] lines (payment methods, the «open the app» button) are hidden, their neutral [data-app-only]
       twins show instead;
     • a link to another page of this site shows only once landing.js gave it ?app=1 (so the next page is an app view
       too); links into /app/ never show — «رجوع» goes back instead. */
.app-back-row { display: none; }
html:not(.app-view) [data-app-only] { display: none !important; }
html.app-view .site-head, html.app-view .site-foot, html.app-view .crumbs, html.app-view .skip,
html.app-view [data-site-only], html.app-view main a[href^="/"]:not([href*="app="]) { display: none !important; } /* V9: any view marker (…?app=ios), not only app=1 */
html.app-view .app-back-row { display: block; position: sticky; top: 0; z-index: 50; padding-block: calc(8px + env(safe-area-inset-top, 0px)) 8px; background: var(--bg); border-bottom: 1px solid var(--border); }
html.app-view .app-back-row[hidden] { display: none; }
.app-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
[dir='rtl'] .app-back { padding: 0 8px 0 14px; }
[dir='ltr'] .app-back-ico { transform: scaleX(-1); } /* «back» points to where the text starts */
@media (hover: hover) { .app-back:hover { background: var(--brand-softer, rgba(0, 0, 0, .05)); } }
html.app-view .guide.privacy { padding-top: 12px; }

/* 8.1.3 — 320 px phones: the home pages scrolled sideways (/ku/ by 19 px, /en/ by 7 px). Two one-line things were wider
   than their column and widened it (a grid column is never narrower than its content unless told so):
     • the plan cards: the Kurdish button ««پیشەیی» بەخۆڕایی تاقی بکەرەوە» (277 px on one line) → the card may be as
       narrow as the page and the button's words wrap;
     • the little «home screen» drawing in «الجديد» (English: «1,220,000 IQD», «Record payment») → its columns shrink
       with the card, the names cut with «…» as on the phone drawing above. */
.plan { min-width: 0; }
.plan .btn { white-space: normal; }
.h8 { grid-template-columns: minmax(0, 1fr); }
.h8-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h8-hero, .h8-row { min-width: 0; }
/* English names and «IQD» are longer: on the narrowest phones the drawing's rows drop the repeated unit and the
   WhatsApp dot, so «Ali Hassan · 5 days late» stays readable (Arabic / Kurdish rows fit as they are). */
@media (max-width: 360px) { [dir='ltr'] .h8-row .amt small, [dir='ltr'] .h8-row .h8-wa { display: none; } }

/* css/site-v9.css */
/* Daftar website — V9 (site builder): store badges, the legal pages' views, /download/, /terms/, the hero's three
   answers, the phone drawing as the app looks now. Loaded last in /css/site.css (scripts/build-site.mjs buildSiteCss). */

/* ---------- views of the legal pages (templates.mjs bootstrapScript sets <html data-view>; D093 b) ----------
   A line tagged data-v="site ios" shows on the website and in the iPhone view only. «web» (the web app's own view) reads
   the «site» lines; «app» (an unknown app view) shows only what every view may show. landing.js also REMOVES the hidden
   lines from the page in an app view, so a price is not even in the page text of a store app. */
html:not(.app-view) [data-v]:not([data-v~='site']),
html[data-view='web'] [data-v]:not([data-v~='site']),
html[data-view='ios'] [data-v]:not([data-v~='ios']),
html[data-view='play'] [data-v]:not([data-v~='play']),
html[data-view='huawei'] [data-v]:not([data-v~='huawei']),
html[data-view='app'] [data-v]:not([data-v~='app']) { display: none !important; }
/* inside a store shell a marketing page is never shown (the head script sends it to the app); belt and braces */
html.in-store body { visibility: hidden; }

/* ---------- store badges (scripts/site/stores.mjs) ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.store-badges li { display: flex; margin: 0; padding: 0; }
/* a fixed box (152 × 48): a late web font can change the letters' width but never the badge's, so nothing beside it moves
   (no layout shift); both links are the same size (Google Play's rule: never smaller than the other badges) */
.store-badge { box-sizing: border-box; display: inline-flex; flex-direction: column; justify-content: center; height: 48px; width: 152px; padding: 4px 14px; overflow: hidden; white-space: nowrap; border-radius: 10px; background: var(--text); color: var(--bg); border: 1px solid var(--text); line-height: 1.15; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.store-badge .sb-get { font-size: 11px; font-weight: 600; opacity: .9; }
.store-badge .sb-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
a.store-badge:hover { text-decoration: none; filter: brightness(1.12); }
a.store-badge:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.store-badge.has-art { width: auto; padding: 0; border: 0; background: none; border-radius: 0; }
.store-badge.has-art img { display: block; height: 48px; width: auto; }
/* «قريباً على AppGallery»: a quiet text chip — not a button, not a link, no store artwork (D076 b) */
.store-badge.is-soon { align-items: center; width: auto; min-width: 136px; padding: 4px 16px; border-radius: 8px; background: #000; color: #fff; border: 1px solid #a6a6a6; cursor: default; }
.store-badge.is-soon .sb-soon { color: #ffd166; }
html.app-view .store-badges, html.app-view .foot-stores, html.in-store .store-badges, html.in-store .foot-stores { display: none !important; }
@media print { .store-badges, .foot-stores { display: none !important; } }

.foot-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.foot-stores .foot-h { margin: 0; flex: 0 0 auto; }
.foot-stores-alt { margin: 0; font-size: var(--fs-sm); }
.foot-stores-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link, var(--brand)); font-weight: 700; }
.foot-bottom .foot-tm { order: 10; }
/* 9.0.2: the WhatsApp button hides before the footer, so the footer needs no room kept for it */
.site-foot { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
html.app-view .site-foot { padding-bottom: 28px; }

/* ---------- hero: the three answers + honest proof ---------- */
.hero-notes { font-size: var(--fs-md); gap: 10px; }
.hero-notes li { line-height: 1.6; }
.hero-notes .ico { margin-top: 3px; flex: 0 0 auto; }
.hero-get { display: inline-block; color: var(--link, var(--brand)); font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .hero-get { position: relative; } .hero-get::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); } }
.hero-proof { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.hero-proof .ico { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }

/* ---------- plans: the day price, what happens when you stop, who answers ---------- */
.rate.rate-day { padding-block: 0 12px; border-top: 0; justify-content: flex-end; }
.rate.rate-day dd { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.rate.rate-day dd span { font-weight: 700; }
.keep-note { font-weight: 700; color: var(--text); }
.pay-owner { margin: 14px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.pay-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 10px 0 0; }
.pay-terms { display: inline-flex; align-items: center; min-height: 44px; color: var(--link, var(--brand)); font-weight: 700; }

/* ---------- the phone drawing = the app as it looks now (report 08 f13) ---------- */
.m-act.debt { background: var(--debt-solid); color: #fff; border-color: transparent; }
.m-act.pay { background: var(--payment-solid); color: var(--payment-on); border-color: transparent; }
.m-count { margin-top: 8px; font-size: 10px; font-weight: 600; opacity: .92; }
.m-ai-face { padding: 0; overflow: hidden; background: var(--brand-soft); }
.m-ai-face img { display: block; width: 34px; height: 34px; border-radius: 50%; }

/* ---------- /download/ ---------- */
.dl-hero .store-badges { margin-top: 26px; }
.dl-or { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dl-or p { margin: 0; font-weight: 700; color: var(--text-2); }
.dl-cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.dl-cards li { padding: 18px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1px solid var(--border); }
.dl-cards h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--fs-lg, 17px); }
.dl-cards h3 .ico { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; }
.dl-cards p { margin: 0; color: var(--text-2); line-height: 1.7; }
@media (min-width: 720px) { .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .dl-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dl-steps { counter-reset: dl; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 46em; }
.dl-steps li { counter-increment: dl; display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; }
.dl-steps li::before { content: counter(dl); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong, var(--brand)); font-weight: 800; font-variant-numeric: tabular-nums; }
.dl-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; max-width: 760px; }
.dl-shots figure { margin: 0; }
.dl-shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.dl-shots figcaption { margin-top: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); text-align: center; }
.dl-mock { max-width: 300px; margin-inline: auto; }

/* ---------- /terms/ ---------- */
.terms .terms-sum { margin: 0 0 26px; padding: 16px 18px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1px solid var(--border); }
.terms .terms-sum h2 { margin-top: 0; }
.terms .terms-sum ol { margin-bottom: 0; }
.terms-note { margin: 0 0 22px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink, var(--text)); font-size: var(--fs-sm); font-weight: 600; line-height: 1.7; }
.terms-law { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-start: 8px; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, var(--text)); font-size: 12px; font-weight: 700; white-space: nowrap; }
.terms section { scroll-margin-top: 84px; }
.terms-toc { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.terms-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.terms-toc a:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- guides: a sample statement (the «نموذج» the title promises) and a comparison table ---------- */
.guide-sample { margin: 18px 0; padding: 0; border-radius: var(--r-lg, 16px); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.guide-sample figcaption { padding: 10px 14px; font-size: var(--fs-sm); font-weight: 800; color: var(--text-2); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.guide-sample .gs-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; }
.guide-sample .gs-head b { font-size: var(--fs-lg, 17px); }
.guide-sample .gs-owe { color: var(--debt); font-weight: 800; }
.guide-table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.guide-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.guide-table th, .guide-table td { padding: 9px 12px; border-top: 1px solid var(--border); text-align: start; vertical-align: top; line-height: 1.6; }
.guide-table thead th { border-top: 0; background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.guide-table td.num, .guide-table th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide-table .is-debt { color: var(--debt); font-weight: 700; }
.guide-table .is-pay { color: var(--payment); font-weight: 700; }
.guide-copy { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-lg, 16px); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.guide-copy p { margin: 0 0 6px; }
.guide-copy .gc-text { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); line-height: 1.8; white-space: pre-line; user-select: all; }
.dl-more { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dl-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link, var(--brand)); font-weight: 700; }
.dl-cards li[hidden] { display: none; }

/* ===== 9.0.2: short home, sections centred on wide screens, the mascot as a picture, a small WhatsApp button ===== */
/* Section heads and the blocks narrower than the page (plans, payment row, questions) sit in the middle, not at the start. */
.sec-head { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-inline: auto; }
.sec-head .plan-hint { margin-inline: auto; }
.is-home .sec > .wrap > h2 { text-align: center; }
/* the other pages read as one column: in the middle on a wide screen, the words still start at the start */
.seo-prose > *, .is-sub .sec > .wrap > * { margin-inline: auto; }
.is-sub .sec > .wrap > :not(.band):not(.dl-cards):not(.guide-cards):not(.trade-grid):not(.cards) { max-width: 820px; }
.plans, .faq-list, .cmp-wrap { margin-inline: auto; }
.pay-row { flex-direction: column; justify-content: center; margin-inline: auto; text-align: center; }
.pay-row .pay-methods, .pay-row .pay-ask { justify-content: center; }
.pay-row .pay-note { justify-content: center; }
.band { text-align: center; }
.band h2 { margin-inline: auto; padding-inline: 40px; }
.band p { margin-inline: auto; }
.band .cta-row { justify-content: center; }
/* the home features: three cards, one line each */
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-3 .card { display: block; } .cards-3 .card > h3 { margin-top: 14px; } .cards-3 .card > p { margin-top: 6px; } }
/* the mascot: a small still picture inside the page, at its own 1× size (83 × 96; the 2× file for sharp screens) */
.mascot-pic { display: block; width: 83px; height: 96px; line-height: 0; }
.mascot-pic img { display: block; width: 83px; height: 96px; }
.band-mascot { margin: -8px auto 14px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .22)); }
.mascot-head { display: flex; align-items: center; gap: 14px; }
.mascot-head h2 { margin: 0; }
.dl-mascot { flex: 0 0 auto; width: 62px; height: 72px; }
.dl-mascot img { width: 62px; height: 72px; }
html.app-view .mascot-pic { display: none; }
/* the WhatsApp button: small, round, green, the usual glyph, in a «dock» that landing.js shows after the first screen
   and hides near the end of the page (class .off). Below 1240 px the dock is a thin bar along the bottom, like the
   header at the top: the page scrolls up behind it, so no word or card ever sits under the button. From 1240 px the
   margin beside the page is wider than the button, and the dock is just the button in that margin. */
.wa-dock { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center; box-sizing: border-box; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); transition: transform .2s ease, opacity .2s ease, visibility 0s linear 0s; }
.wa-dock[hidden] { display: none; }
.wa-dock.off { opacity: 0; visibility: hidden; transform: translateY(100%); pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.wa-fab { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 6px 16px -4px rgba(10, 60, 30, .45); -webkit-tap-highlight-color: transparent; }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { text-decoration: none; background: #1EBE5B; }
.wa-fab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (min-width: 1240px) {
  .wa-dock { inset-inline: auto; inset-inline-end: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: auto; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; }
  .wa-dock.off { transform: translateY(8px) scale(.9); }
}
html.app-view .wa-dock { display: none !important; }
@media (prefers-reduced-motion: reduce) { .wa-dock, .wa-dock.off { transition: none; } }
@media print { .wa-dock { display: none !important; } }

