/*
 | Compatara portal — one stylesheet for the public pages, the sign-in
 | screens and the customer area. Same system as Tawarly's As3arBot: the
 | green is a signal (marks, chips, the active item), the ink carries the
 | buttons, and every colour comes from a role, never a raw value.
 | Logical properties only, so one file serves Arabic and English.
 */
:root {
  color-scheme: light;
  --green-50: #E7F7F1;
  --green-100: #C8EEDF;
  --green-500: #00A877;
  --green-700: #00805A;
  --green-800: #00704F;
  --green-900: #004D37;
  --ink-900: #0A0D12;
  --ink-800: #161B22;
  --ink-700: #232A33;
  --slate-600: #3F4753;
  --slate-500: #5A6370;
  --slate-400: #848C98;

  --brand: var(--green-500);
  --action: var(--ink-900);
  --action-hover: var(--ink-700);
  --on-action: #F7FAF9;
  --accent: var(--green-800);
  --link: var(--green-800);
  --chip: var(--green-100);
  --wash: var(--green-50);
  --heading: var(--ink-900);
  --body: var(--slate-600);
  --muted: var(--slate-500);
  --hint: var(--slate-400);
  --danger: #B42318;
  --danger-wash: #FEF3F2;
  --warn: #8A5A0B;
  --warn-wash: #FFF8E6;
  --paper: #FFFFFF;
  --card: #F6F7F9;
  --line: #E4E7EC;
  --line-2: #EEF0F3;
  --shadow: 10 13 18;

  --display: "Almarai", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shell: 1200px;
  --sb-w: 240px;
  --tp-h: 60px;
  --r: 14px;
}

/* Dark is the visitor's choice (the moon button), never the OS default. */
:root[data-theme="dark"],
.band--ink {
  color-scheme: dark;
  --paper: #0F141A;
  --card: #151B22;
  --line: #242C36;
  --line-2: #1C232C;
  --heading: #EEF2F5;
  --body: #C3CBD4;
  --muted: #98A2AE;
  --hint: #7A8491;
  --chip: #0D3A2C;
  --wash: #0B2A21;
  --accent: #33D6A1;
  --link: #33D6A1;
  --action: var(--green-500);
  --action-hover: #19C08C;
  --on-action: var(--ink-900);
  --danger: #F2856F;
  --danger-wash: #3A1711;
  --warn: #E7B25A;
  --warn-wash: #33260E;
  --shadow: 0 0 0;
}
:root[data-theme="dark"] body { background: var(--paper); }
.band--ink { background: var(--ink-900); color: var(--body); --paper: #131920; --card: #131920; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--text); font-size: 15.5px; line-height: 1.75; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }
img, svg { max-width: 100%; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.key { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; letter-spacing: .4px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The mark ─────────────────────────────────────────────── */
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink-900); color: #fff; flex: none; }
:root[data-theme="dark"] .mark, .band--ink .mark { box-shadow: inset 0 0 0 1px #2b333d; }
.mark svg { width: 21px; height: 21px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand small { display: block; font-family: var(--text); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: 0; margin-top: -3px; }

/* ── Buttons, fields, chips ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--action); background: var(--action); color: var(--on-action); border-radius: 11px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: .92rem; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--on-action); }
.btn--ghost { background: var(--paper); color: var(--heading); border-color: var(--line); }
.btn--ghost:hover { background: var(--wash); color: var(--heading); border-color: var(--brand); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn--danger:hover { background: var(--danger-wash); color: var(--danger); border-color: var(--danger); }
.btn--lg { padding: 13px 24px; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.btn--full { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { margin-block-end: 16px; }
.field label, .label { display: block; font-size: .84rem; font-weight: 700; color: var(--heading); margin-block-end: 6px; }
.input, .field input:not([type=checkbox]):not([type=file]), .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--heading); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-block-start: 5px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--body); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--green-800); }

.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--heading); font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; }
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: .76rem; font-weight: 700; background: var(--card); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--ok, .pill.valid, .pill.answered { background: var(--chip); color: var(--green-900); border-color: transparent; }
:root[data-theme="dark"] .pill--ok, :root[data-theme="dark"] .pill.valid, :root[data-theme="dark"] .pill.answered { color: var(--accent); }
.pill--warn, .pill.expired, .pill.pending, .pill.open { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.pill--bad, .pill.invalid { background: var(--danger-wash); color: var(--danger); border-color: transparent; }

.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; margin-block-end: 18px; font-size: .9rem; border: 1px solid transparent; }
.alert--ok { background: var(--wash); color: var(--green-900); border-color: var(--chip); }
:root[data-theme="dark"] .alert--ok { color: var(--accent); }
.alert--bad { background: var(--danger-wash); color: var(--danger); }
.alert--info { background: var(--card); color: var(--body); border-color: var(--line); }

/* ── Cards and tables ─────────────────────────────────────── */
.crd { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-block-end: 18px; }
.crd__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-block-end: 1px solid var(--line); }
.crd__head h2, .crd__head h3 { font-size: 1rem; }
.crd__head .end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crd__body { padding: 20px; }
.crd__foot { padding: 14px 20px; border-block-start: 1px solid var(--line); background: var(--card); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crd--pad { padding: 22px; }

.tb { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tb th { text-align: start; font-weight: 700; color: var(--muted); font-size: .74rem; letter-spacing: .3px; padding: 10px 20px; background: var(--card); border-block-end: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 12px 20px; border-block-end: 1px solid var(--line-2); vertical-align: middle; color: var(--body); }
.tb tr:last-child td { border-block-end: 0; }
.tb tbody tr:hover td { background: color-mix(in srgb, var(--wash) 55%, transparent); }
.tb a { font-weight: 600; text-decoration: none; }
.tb a:hover { text-decoration: underline; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border-block-end: 1px solid var(--line); }
.kv > div { background: var(--paper); padding: 14px 20px; }
.kv dt { font-size: .75rem; color: var(--muted); font-weight: 600; margin-block-end: 2px; }
.kv dd { margin: 0; color: var(--heading); font-weight: 700; }

.keybox { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px dashed var(--line); border-radius: 11px; padding: 8px 8px 8px 14px; }
[dir=rtl] .keybox { padding: 8px 14px 8px 8px; }
.keybox .key { flex: 1; font-size: .95rem; color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }

.empty { text-align: center; padding: 48px 20px; }
.empty .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--wash); color: var(--accent); display: inline-grid; place-items: center; margin-block-end: 14px; }
.empty .ico svg { width: 26px; height: 26px; }
.empty h3 { font-size: 1.1rem; margin-block-end: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }

/* ── Customer area: sidebar + top bar (As3arBot's shell) ──── */
.sb { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sb-w); background: var(--paper); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease; }
.sb__brand { height: var(--tp-h); display: flex; align-items: center; padding-inline: 18px; border-block-end: 1px solid var(--line); }
.sb nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sb__title { padding: 14px 20px 6px; font-size: .68rem; font-weight: 700; letter-spacing: 1px; color: var(--hint); text-transform: uppercase; }
.sb nav a { position: relative; display: flex; align-items: center; gap: 11px; margin: 2px 10px; padding: 9px 12px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: .9rem; font-weight: 500; }
.sb nav a svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.sb nav a:hover { background: var(--card); color: var(--heading); }
.sb nav a.on { background: var(--wash); color: var(--heading); font-weight: 700; }
.sb nav a.on svg { color: var(--accent); }
.sb nav a.on::before { content: ""; position: absolute; inset-inline-start: -10px; inset-block: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
.sb nav a .cnt { margin-inline-start: auto; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--card); color: var(--muted); }
.sb__foot { border-block-start: 1px solid var(--line); padding: 14px 18px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.sb__foot b { color: var(--heading); display: block; }

.mn { margin-inline-start: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; background: var(--card); }
.tp { position: sticky; top: 0; z-index: 30; height: var(--tp-h); display: flex; align-items: center; gap: 6px; padding-inline: 20px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-block-end: 1px solid var(--line); }
.tp .spacer { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 8px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: .82rem; }
.icon-btn:hover { background: var(--card); color: var(--heading); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.only-sm { display: none !important; }
.user { position: relative; }
.user > button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--heading); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
[dir=rtl] .user > button { padding-inline: 12px 6px; }
.avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--wash); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 210px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgb(var(--shadow) / .35); padding: 6px; display: none; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--body); font: inherit; font-size: .88rem; text-align: start; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--card); color: var(--heading); }
.menu .danger { color: var(--danger); }
.menu hr { border: 0; border-block-start: 1px solid var(--line); margin: 6px 0; }
.menu .who { padding: 8px 12px 10px; font-size: .78rem; color: var(--muted); border-block-end: 1px solid var(--line); margin-block-end: 6px; overflow-wrap: anywhere; }
.menu .who b { display: block; color: var(--heading); font-size: .88rem; }

.ct { padding: 26px 28px 40px; width: 100%; max-width: 1080px; flex: 1; }
.pagehead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-block-end: 22px; }
.pagehead h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.pagehead p { color: var(--muted); margin-block-start: 4px; }
.pagehead .end { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ft { border-block-start: 1px solid var(--line); background: var(--paper); padding: 14px 28px; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft a { color: var(--muted); text-decoration: none; }
.ft a:hover { color: var(--link); text-decoration: underline; }
.ft .end { margin-inline-start: auto; }
.ov { position: fixed; inset: 0; background: rgb(10 13 18 / .45); z-index: 35; display: none; }
.ov.show { display: block; }

@media (max-width: 960px) {
  body { overflow-x: hidden; }
  .sb { transform: translateX(-100%); box-shadow: 0 0 40px rgb(0 0 0 / .2); }
  [dir=rtl] .sb { transform: translateX(100%); }
  .sb.show, [dir=rtl] .sb.show { transform: none; }
  .mn { margin-inline-start: 0; }
  .only-sm { display: inline-grid !important; }
  .ct { padding: 18px 16px 32px; }
  .tp { padding-inline: 10px; }
  .tb th, .tb td { padding-inline: 14px; }
  .hide-sm { display: none; }
}

/* ── Messages (support) ───────────────────────────────────── */
.thread { display: flex; flex-direction: column; gap: 12px; margin-block-end: 18px; }
.msg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.msg__meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); margin-block-end: 8px; }
.msg__meta b { color: var(--heading); }
.msg--staff { border-inline-start: 3px solid var(--brand); }
.msg--internal { background: var(--warn-wash); border-color: transparent; }
.msg__body { white-space: pre-wrap; color: var(--heading); }
.msg__files { margin-block-start: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg__files a { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; padding: 4px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }

/* ── Public pages (landing, pricing) ──────────────────────── */
.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 7px 12px; border-radius: 9px; }
.top nav a:hover, .top nav a.on { color: var(--heading); background: var(--card); }
.top .end { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
@media (max-width: 860px) { .top nav { display: none; } .top .hide-sm { display: none; } }

.band { padding-block: clamp(48px, 6vw, 84px); }
.band--soft { background: var(--card); }
.secthead { max-width: 640px; margin-block-end: 34px; }
.secthead--center { margin-inline: auto; text-align: center; }
.secthead h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.015em; margin-block: 12px 10px; }
.secthead p { color: var(--muted); font-size: 1.02rem; }
.g { color: var(--accent); }

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 70px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-block: 16px 0; }
.hero h1 .g { display: inline-block; position: relative; }
.swoosh { display: block; width: min(300px, 80%); height: 16px; color: var(--brand); margin-block-start: 2px; }
.swoosh path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.hero .lede { margin-block-start: 18px; font-size: 1.1rem; color: var(--body); max-width: 46ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 26px; font-size: .86rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The product-page mock in the hero: the same answer box the plugin draws. */
.stage { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -36px rgb(var(--shadow) / .45); }
.stage__bar { display: flex; gap: 6px; margin-block-end: 16px; }
.stage__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage__product { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.stage__img { aspect-ratio: 1; border-radius: 14px; background: #E6EDF4; display: grid; place-items: center; }
.stage__img svg { width: 70%; }
.stage__name { font-family: var(--display); font-weight: 800; color: var(--heading); font-size: 1.15rem; }
.stage__price { color: var(--muted); font-size: .92rem; margin-block: 2px 12px; }
.answer { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; font-size: .9rem; }
.answer + .answer { margin-block-start: 10px; }
.answer b { display: block; font-family: var(--display); font-size: .96rem; }
.answer small { color: var(--muted); }
.answer .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: .85rem; }
.answer--fit { background: #ECFDF3; border-color: #B7EBCF; color: #05603A; }
.answer--fit .dot { background: #079455; }
.answer--no { background: #FEF3F2; border-color: #FBD0CB; color: #B42318; }
.answer--no .dot { background: #D92D20; }
:root[data-theme="dark"] .answer--fit { background: #0B2A1D; border-color: #155E3C; color: #6CE9A6; }
:root[data-theme="dark"] .answer--no { background: #2D1210; border-color: #6B2219; color: #FDA29B; }
.alts { margin-block-start: 10px; display: grid; gap: 8px; }
.alt { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px; font-size: .82rem; color: var(--heading); }
.alt i { width: 40px; height: 40px; border-radius: 8px; background: var(--card); display: block; }
.alt span { font-weight: 600; }
.alt em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--ink-900); color: #fff; }
.stage__tag { position: absolute; inset-inline-end: -10px; top: -14px; transform: rotate(3deg); }
[dir=rtl] .stage__tag { transform: rotate(-3deg); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--wash); color: var(--accent); display: grid; place-items: center; margin-block-end: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-block-end: 6px; }
.feature p { color: var(--muted); font-size: .93rem; }
.feature .tag { display: inline-block; margin-block-start: 12px; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.feature .tag--pro { background: var(--ink-900); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .feature .tag--pro { background: var(--green-500); color: var(--ink-900); }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: s; }
.step { position: relative; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink-900); color: #fff; font-weight: 800; font-family: var(--display); margin-block-end: 14px; }
:root[data-theme="dark"] .step::before { background: var(--green-500); color: var(--ink-900); }
.step h3 { font-size: 1.02rem; margin-block-end: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-block-start: 3px; border-radius: 6px; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2300704F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.band--ink .ticks li::before { background-color: #0D3A2C; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2333D6A1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--heading); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .86rem; }

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.plan--featured { border: 2px solid var(--ink-900); box-shadow: 0 24px 50px -30px rgb(var(--shadow) / .5); }
:root[data-theme="dark"] .plan--featured { border-color: var(--green-500); }
.plan__badge { position: absolute; top: -12px; inset-inline-start: 22px; }
.plan h3 { font-size: 1.1rem; }
.plan .for { color: var(--muted); font-size: .86rem; margin-block: 2px 16px; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.price b { font-size: 2.3rem; color: var(--heading); line-height: 1; }
.price span { color: var(--muted); font-size: .9rem; font-family: var(--text); }
.price s { color: var(--hint); font-size: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: .9rem; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-block-start: 3px; }
.offer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--ink-900); color: #E8EEF2; border-radius: 16px; padding: 14px 18px; margin-block-end: 22px; font-size: .92rem; }
.offer b { color: #fff; }
.offer .chip { background: var(--green-500); color: var(--ink-900); }

.compare { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .9rem; }
.compare th, .compare td { padding: 12px 18px; border-block-end: 1px solid var(--line-2); text-align: start; }
.compare thead th { background: var(--card); font-family: var(--display); color: var(--heading); font-size: .95rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare tbody td:first-child { color: var(--heading); }
.compare .yes { color: var(--accent); font-weight: 800; }
.compare .no { color: var(--hint); }
.compare-wrap { overflow-x: auto; border-radius: 18px; }

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--heading); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-block-end: 16px; color: var(--body); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; color: #fff; }
.cta-band p { color: #B9C3CE; margin-block: 10px 26px; }
.cta-band .row { justify-content: center; }

.foot { border-block-start: 1px solid var(--line); padding-block: 26px; font-size: .85rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--link); }
.foot .end { margin-inline-start: auto; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.themer .sun { display: none; }
:root[data-theme="dark"] .themer .sun { display: block; }
:root[data-theme="dark"] .themer .moon { display: none; }

/* ── Sign-in screens ──────────────────────────────────────── */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth__main { display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 56px); }
.auth__main .row--top { justify-content: space-between; }
.auth__box { width: 100%; max-width: 400px; margin: auto; padding-block: 32px; }
.auth__box h1 { font-size: 1.6rem; font-weight: 800; }
.auth__box .sub { color: var(--muted); margin-block: 6px 26px; }
.auth__alt { margin-block-start: 22px; text-align: center; font-size: .9rem; color: var(--muted); }
.auth__side { position: relative; background: var(--ink-900); color: #C9D2DB; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.auth__side h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-block: 18px 10px; max-width: 18ch; }
.auth__side p { max-width: 40ch; }
.auth__side .stage { margin-block-start: 30px; max-width: 420px; background: #131920; border-color: #242C36; --card: #1B222B; --paper: #131920; --line: #242C36; --heading: #EEF2F5; --muted: #98A2AE; }
.auth__side .stage__img { background: #1F2833; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--hint); font-size: .8rem; margin-block: 18px; }
.sep::before, .sep::after { content: ""; flex: 1; border-block-start: 1px solid var(--line); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__side { display: none; } }

.pager { display: flex; gap: 6px; justify-content: center; padding: 14px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding-inline: 8px; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; color: var(--body); font-size: .85rem; }
.pager .on { background: var(--ink-900); color: #fff; border-color: transparent; }
[dir=rtl] svg.flip { transform: scaleX(-1); }
main p > a > svg { width: 18px; height: 18px; flex: none; }
.crd__body > svg, .empty-inline svg { width: 20px; height: 20px; flex: none; }
