/* ==========================================================================
   NeroFinance public site (resources/views/site/*).
   Plain CSS, no build step. The brand scale (--b50 ... --b950, "R, G, B" triples) and --navy-rgb are injected
   inline by the layout from the admin's default colour theme, so site and product always match.
   Logical properties (inline-start/end) are used throughout so right-to-left languages mirror correctly.
   ========================================================================== */

:root {
    --brand: rgb(var(--b500));
    --brand-strong: rgb(var(--b600));
    --brand-soft: rgb(var(--b100));
    --brand-text: rgb(var(--b600));
    /* The second colour of the website theme (--accent itself is injected by the active theme). */
    --accent-rgb: 20 184 106;
    --accent-strong: #0f9a55;
    --accent-soft: #dcf5e8;
    --accent-text: #0f9a55;
    --navy: rgb(var(--navy-rgb));

    --bg: #f6f7fc;
    --surface: #ffffff;
    --surface-2: #f0f2fa;
    --ink: #131a3a;
    --ink-2: #4b5675;
    --ink-3: #7c88a8;
    --line: #e4e8f3;
    --good: #12a36b;
    --good-soft: #dcf5ea;
    --bad: #e5484d;
    --bad-soft: #fde4e5;
    --warn: #f59e0b;
    --warn-soft: #fff1d6;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgb(19 26 58 / 0.05), 0 2px 8px rgb(19 26 58 / 0.04);
    --shadow: 0 2px 4px rgb(19 26 58 / 0.04), 0 12px 32px rgb(19 26 58 / 0.08);
    --shadow-lg: 0 4px 8px rgb(19 26 58 / 0.05), 0 30px 70px rgb(19 26 58 / 0.16);
    --header-h: 72px;

    --font: 'Plus Jakarta Sans', 'Zain Arabic', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

    color-scheme: light;
}

:root[data-mode='dark'] {
    --brand-soft: rgb(var(--b500) / 0.16);
    --brand-text: rgb(var(--b300));
    --bg: #0a1020;
    --surface: #121a31;
    --surface-2: #18223f;
    --ink: #eef1fb;
    --ink-2: #b4bedb;
    --ink-3: #8390b3;
    --line: rgb(255 255 255 / 0.09);
    --good-soft: rgb(18 163 107 / 0.18);
    --bad-soft: rgb(229 72 77 / 0.18);
    --warn-soft: rgb(245 158 11 / 0.16);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
    --shadow: 0 12px 32px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 30px 70px rgb(0 0 0 / 0.5);
    color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
/* The pricing section is wider, so a plan's feature lines fit on one row instead of wrapping. */
.container.wide { width: min(1360px, 100% - 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 10px; background: var(--brand-strong); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons & small bits */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
    font-size: 0.9375rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-primary {
    background: var(--brand-strong); color: #fff;
}
.btn-primary:hover { background: rgb(var(--b700)); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgb(var(--b400)); color: var(--brand-text); }
.btn-light { background: #fff; color: #1b2440; }
.btn-light:hover { background: rgb(var(--b50)); transform: translateY(-1px); }
.btn-secondary { background: rgb(var(--accent-rgb)); color: #fff; } /* the theme's accent at full strength (not the darkened one) */
.btn-secondary:hover { background: rgb(var(--accent-rgb)); filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline-primary { background: transparent; border-color: var(--brand-strong); color: var(--brand-text, var(--brand-strong)); }
.btn-outline-primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.btn-outline-light { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.1); }
.btn-block { width: 100%; }
[dir='rtl'] .btn .flip { transform: scaleX(-1); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-text);
    font-size: 0.8125rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent-rgb)); }

.gradient-text { color: var(--brand-text); } /* a plain colour: text is not drawn with a gradient */

/* ------------------------------------------------------------------ header */

.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--surface); /* solid: white in light mode, the dark surface in dark mode */
    border-bottom: 1px solid var(--line); /* always visible, also at the very top of the page; no shadow */
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }

/* The logo never shrinks to make room (Kurdish and Arabic menus are wider): when the header is crowded the menu goes tight / compact instead (nero-site.js). */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.logo-img { flex: none; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
    background: rgb(var(--b500));
    box-shadow: 0 6px 16px rgb(var(--b600) / 0.35);
}
.logo-mark svg { width: 20px; height: 20px; }
/* The name split like the NeroSpend logo: "Nero" violet, "Spend" green (brighter on dark backgrounds). */
.logo .nf-name-head { color: var(--logo-head, #845adf); }
.logo .nf-name-tail { color: var(--logo-tail, #14b86a); }
:root[data-mode='dark'] .logo .nf-name-head { color: var(--logo-head-dark, #fff); }
.app-side .logo .nf-name-head { color: var(--logo-head-dark, #fff); }
:root[data-mode='dark'] .logo .nf-name-tail { color: var(--logo-tail-dark, #2ee59d); }
.app-side .logo .nf-name-tail { color: var(--logo-tail-dark, #2ee59d); }

/* A wider header with roomy gaps between the links (no divider lines). */
.site-header .container.nav { width: min(1360px, 100% - 48px); }
.nav-links { display: flex; align-items: center; gap: 14px; margin-inline-start: 12px; }
.nav-links a { white-space: nowrap; padding: 8px 16px; border-radius: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: none; }
/* Nothing in the action row may shrink: a long language name (Central Kurdish) would otherwise squeeze the language
   button until its arrow is clipped. The row keeps its natural width and the nav links give way instead. */
.nav-actions > * { flex: none; }

.icon-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--brand-text); border-color: rgb(var(--b400)); }
.icon-btn svg { width: 20px; height: 20px; }
/* The light / dark switch is just its icon: no border, no fill; hover only tints it. */
.icon-btn.mode-toggle { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.icon-btn.mode-toggle:hover { color: var(--brand-text); background: transparent; }
.mode-toggle .i-moon { display: none; }
:root[data-mode='dark'] .mode-toggle .i-sun { display: none; }
:root[data-mode='dark'] .mode-toggle .i-moon { display: block; }

.lang { position: relative; }
.lang > summary { cursor: pointer; white-space: nowrap; flex: none; list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px; border-radius: 10px; border: 0; background: transparent; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s; }
.lang > summary:hover, .lang[open] > summary { color: var(--brand-text); background: transparent; }
.lang > summary svg:last-child { transition: transform .15s; }
.lang[open] > summary svg:last-child { transform: rotate(180deg); }
.lang > summary svg { width: 18px; height: 18px; flex: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
/* The language list: one column of rounded rows with the flag and the name; a thin scrollbar when there are more languages than fit. */
.lang-menu { max-height: min(26rem, calc(100vh - 110px)); overflow-y: auto; overscroll-behavior: contain; padding: 0.35rem; border-radius: 0.875rem; scrollbar-width: thin; scrollbar-color: rgb(var(--ink-rgb, 100 116 139) / 0.3) transparent; }
.lang-menu::-webkit-scrollbar { width: 4px; }
.lang-menu::-webkit-scrollbar-track { background: transparent; }
.lang-menu::-webkit-scrollbar-thumb { background: rgb(128 138 160 / 0.35); border-radius: 999px; }
.lang-menu a { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0.45rem 0.65rem; border-radius: 0.55rem; font-size: 0.875rem; color: var(--ink-2); }
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current='true'] { color: var(--brand-text); font-weight: 600; background: var(--brand-soft); }
.lang-menu svg { width: 16px; height: 16px; }

.menu-toggle { display: none; }

@media (max-width: 1080px) {
    .nav-links, .nav-actions .btn-ghost { display: none; }
    .menu-toggle { display: inline-grid; }
    .nav-links {
        position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch;
        margin: 0; gap: 2px; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-header[data-open='true'] .nav-links { display: flex; }
    .nav-links a { padding: 12px 14px; font-size: 1rem; }
    .nav-links .only-mobile { display: block; }
}
.nav-links .only-mobile { display: none; }

/* A tighter desktop header, chosen by nero-site.js when the full one does not fit (long languages such as Central Kurdish):
   the links stay visible and the spacing shrinks. The language button always keeps its name. */
.site-header.is-tight .nav { gap: 6px; }
.site-header.is-tight .nav-links { margin-inline-start: 0; gap: 2px; }
.site-header.is-tight .nav-links a { padding-inline: 9px; font-size: 0.875rem; }
.site-header.is-tight .nav-actions { gap: 4px; }
.site-header.is-tight .nav-actions .btn { padding-inline: 12px; }
.site-header.is-tight .lang > summary { padding-inline: 10px; gap: 4px; }

/* The same compact header as <= 1080px, but chosen by nero-site.js when the links + buttons do not fit (long languages). */
.site-header.is-compact .nav-links, .site-header.is-compact .nav-actions .btn-ghost { display: none; }
.site-header.is-compact .menu-toggle { display: inline-grid; }
.site-header.is-compact .nav-links {
    position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch;
    margin: 0; gap: 2px; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-header.is-compact[data-open='true'] .nav-links { display: flex; }
.site-header.is-compact .nav-links a { padding: 12px 14px; font-size: 1rem; }
.site-header.is-compact .nav-links .only-mobile { display: block; }
.site-header.is-compact .nav-links a.nav-cta { display: block; margin-top: 8px; text-align: center; background: var(--brand-strong); color: #fff; font-weight: 600; }
.site-header.is-compact .nav-actions > .btn-primary { display: none; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 72px 0 40px; overflow: clip; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
}
.hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { margin-top: 22px; font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero-lead { margin: 22px auto 0; max-width: 640px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-points { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--ink-2); font-size: 0.9375rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--good); }

.hero-visual { position: relative; margin-top: 56px; }

/* ------------------------------------------------------------------ dashboard mock-up */

.mock {
    position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); overflow: hidden; direction: ltr; text-align: start;
}
[dir='rtl'] .mock { direction: rtl; }
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.mock-dots i:nth-child(1) { background: #ff6058; } .mock-dots i:nth-child(2) { background: #ffbd2e; } .mock-dots i:nth-child(3) { background: #28c940; }
.mock-url { flex: 1; max-width: 340px; margin-inline: auto; padding: 5px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-3); text-align: center; }

.app { display: grid; grid-template-columns: 196px 1fr; min-height: 470px; }
.app-side { background: var(--navy); color: #b0b9d6; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side .logo { color: #fff; font-size: 1rem; padding: 4px 8px 16px; }
.app-side .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.app-side .logo-mark svg { width: 16px; height: 16px; }
.app-label { padding: 12px 10px 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7784ad; }
.app-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 0.8125rem; font-weight: 500; }
.app-item svg { width: 17px; height: 17px; flex: none; }
.app-item.on { background: rgb(255 255 255 / 0.1); color: #fff; }
.app-main { padding: 20px 22px 22px; background: var(--bg); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-top h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.app-top small { display: block; color: var(--ink-3); font-size: 0.75rem; font-weight: 500; }
.app-switch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; }
.app-switch i { width: 18px; height: 18px; border-radius: 6px; background: rgb(var(--b500)); display: block; }
.app-switch svg { width: 14px; height: 14px; color: var(--ink-3); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 4px; }
.stat-head { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 0.75rem; font-weight: 600; }
.stat-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.stat-ico.alt { background: rgb(var(--accent-rgb)); color: #fff; }
.stat-ico svg { width: 16px; height: 16px; }
.stat-ico.out { background: var(--bad-soft); color: var(--bad); }
.stat strong { font-size: 1.4375rem; letter-spacing: -0.02em; line-height: 1.2; }
.delta { font-size: 0.75rem; font-weight: 600; color: var(--good); display: inline-flex; align-items: center; gap: 4px; }
.delta.down { color: var(--bad); }
.delta svg { width: 13px; height: 13px; }
.spark { height: 26px; width: 100%; margin-top: 4px; }
.spark path { fill: none; stroke: rgb(var(--b500)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.out path { stroke: var(--bad); }

.panels { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h4 { font-size: 0.875rem; font-weight: 700; }
.legend { display: flex; gap: 12px; font-size: 0.6875rem; font-weight: 600; color: var(--ink-3); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-inline-end: 5px; background: rgb(var(--b500)); }
.legend i.o { background: rgb(var(--accent-rgb)); }
:root[data-mode='dark'] .legend i.o { background: rgb(var(--accent-rgb)); }

.bars { height: 150px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; border-bottom: 1px solid var(--line); }
.bars > div { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bars span { display: block; width: 38%; max-width: 12px; border-radius: 4px 4px 0 0; height: calc(var(--h) * 1%); background: rgb(var(--b500)); transform-origin: bottom; }
.bars span + span { background: rgb(var(--accent-rgb)); }
:root[data-mode='dark'] .bars span + span { background: rgb(var(--accent-rgb)); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 8px; font-size: 0.625rem; color: var(--ink-3); text-align: center; font-weight: 600; }

.tx { display: grid; gap: 4px; }
.tx li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.75rem; }
.tx li:last-child { border-bottom: 0; }
.tx-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--good-soft); color: var(--good); flex: none; }
.tx-ico.out { background: var(--bad-soft); color: var(--bad); }
.tx-ico svg { width: 15px; height: 15px; }
.tx b { display: block; font-weight: 600; font-size: 0.78rem; line-height: 1.3; }
.tx small { color: var(--ink-3); font-size: 0.6875rem; }
.tx em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--good); white-space: nowrap; }
.tx em.out { color: var(--bad); }

.float-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 280px;
    padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: 0.8125rem; line-height: 1.4;
}
.float-chip .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-chip .ico svg { width: 20px; height: 20px; }
.float-chip b { display: block; font-weight: 700; }
.float-chip span { color: var(--ink-3); font-size: 0.75rem; }
.float-chip.a { inset-inline-end: -28px; top: 96px; animation: bob 6s ease-in-out infinite; }
.float-chip.a .ico { background: var(--warn-soft); color: var(--warn); }
.float-chip.b { inset-inline-start: -28px; bottom: 70px; animation: bob 7s ease-in-out -2s infinite; }
.float-chip.b .ico { background: var(--good-soft); color: var(--good); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 1280px) { .float-chip.a { inset-inline-end: 12px; } .float-chip.b { inset-inline-start: 12px; } }
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .app-side { display: none; }
    .panels { grid-template-columns: 1fr; }
    .float-chip { display: none; }
}
@media (max-width: 560px) {
    .stat-row { gap: 8px; }
    .stat { padding: 10px; border-radius: 12px; }
    .stat-head { font-size: 0.6875rem; gap: 6px; }
    .stat-ico { display: none; }
    .stat strong { font-size: 1rem; }
    .delta { font-size: 0.6875rem; }
    .spark { height: 18px; }
    .app-main { padding: 14px; }
    .mock-url { display: none; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 16px; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; text-wrap: pretty; }

/* industries */
.industries { padding: 28px 0 8px; }
.industries-title { text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); transition: transform .2s, border-color .2s, color .2s;
}
.chip svg { width: 19px; height: 19px; color: rgb(var(--accent-rgb)); }
.chip:hover { transform: translateY(-2px); border-color: rgb(var(--b300)); color: var(--ink); }

/* bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
    position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgb(var(--b300) / 0.7); }
.card .ico {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: var(--brand-soft); color: var(--brand-text);
}
.card .ico svg { width: 24px; height: 24px; }
.card:nth-child(even) .ico { background: rgb(var(--accent-rgb)); color: #fff; }
.card.accent .ico, .card.accent:nth-child(even) .ico { background: rgb(255 255 255 / 0.14); color: rgb(var(--accent-rgb)); }
.card h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 0.9688rem; }
.card.span-6 { grid-column: span 6; } .card.span-3 { grid-column: span 3; } .card.span-2 { grid-column: span 2; } .card.span-4 { grid-column: span 4; }
.card.accent {
    color: #fff; border-color: transparent;
    background: var(--navy);
}
.card.accent p { color: rgb(255 255 255 / 0.78); }
.card.accent .ico { background: rgb(255 255 255 / 0.14); color: rgb(var(--accent-rgb)); }
.card.accent h3 { color: rgb(var(--accent-rgb)); } /* the title and the icon take the theme's secondary (accent) colour */

.mini { margin-top: 22px; display: grid; gap: 8px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.8438rem; }
.mini-row .tx-ico { width: 30px; height: 30px; }
.mini-row b { font-weight: 600; }
.mini-row em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--good); }
.mini-row em.out { color: var(--bad); }
.mini-row small { color: var(--ink-3); margin-inline-start: 6px; }
.pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.8125rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); }
.pill.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.swatches { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.zakat-meter { margin-top: 22px; }
.zakat-meter .track { height: 10px; border-radius: 999px; background: rgb(255 255 255 / 0.16); overflow: hidden; }
.zakat-meter .track i { display: block; height: 100%; width: 72%; border-radius: inherit; background: rgb(var(--accent-rgb)); }
.zakat-meter div + div { margin-top: 10px; display: flex; justify-content: space-between; font-size: 0.8125rem; color: rgb(255 255 255 / 0.75); }

@media (max-width: 1000px) { .card.span-3, .card.span-4, .card.span-6 { grid-column: span 6; } .card.span-2 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { gap: 14px; } .card { padding: 22px; } .card.span-2 { grid-column: span 6; } }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps::before {
    content: ''; position: absolute; top: 28px; inset-inline: 16%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, rgb(var(--accent-rgb)) 0 8px, transparent 8px 16px);
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-num {
    width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 18px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand-text);
    font-size: 1.25rem; font-weight: 800;
}
.step h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 320px; margin-inline: auto; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps::before { display: none; } }

/* split: isolation / control */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { margin-top: 16px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.split > div > p { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; }
.checks { margin-top: 28px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--accent-rgb)); color: #fff; flex: none; margin-top: 2px; }
.checks .tick svg { width: 15px; height: 15px; }
.checks b { display: block; font-weight: 700; }
.checks span { color: var(--ink-2); font-size: 0.9688rem; }

.biz-stack { position: relative; display: grid; gap: 14px; padding: 8px; }
.biz {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.biz:nth-child(2) { margin-inline-start: 36px; } .biz:nth-child(3) { margin-inline-start: 72px; }
.biz-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.biz-logo svg { width: 22px; height: 22px; }
.biz:nth-child(1) .biz-logo { background: rgb(var(--b500)); }
.biz:nth-child(2) .biz-logo { background: var(--accent, #14b86a); }
.biz:nth-child(3) .biz-logo { background: var(--warn, #f59e0b); }
.biz b { display: block; font-weight: 700; line-height: 1.3; }
.biz small { color: var(--ink-3); font-size: 0.8125rem; }
.biz .amount { margin-inline-start: auto; text-align: end; font-weight: 800; letter-spacing: -0.02em; }
.biz .amount small { display: block; font-weight: 600; color: var(--good); }
.lock-note { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; border: 1px dashed rgb(var(--b300)); background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 0.875rem; }
.lock-note svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .biz:nth-child(2), .biz:nth-child(3) { margin-inline-start: 0; } }

/* pricing */
.billing { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.billing button { padding: 8px 20px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 0.9063rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.billing button[aria-pressed='true'] { background: var(--brand-strong); color: #fff; }
.billing .save { margin-inline-end: 10px; padding: 3px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 0.75rem; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan.featured {
    color: #fff; border-color: transparent; transform: translateY(-12px);
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}
.plan .badge { position: absolute; top: -13px; inset-inline-start: 30px; padding: 5px 14px; border-radius: 999px; background: #fff; color: rgb(var(--b700)); font-size: 0.75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.25rem; font-weight: 800; }
.plan .tagline { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; min-height: 3em; }
.plan.featured .tagline { color: rgb(255 255 255 / 0.75); }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--ink-3); font-weight: 500; font-size: 0.9375rem; }
.plan.featured .per { color: rgb(255 255 255 / 0.7); }
.price .was { color: var(--ink-3); font-size: 1rem; font-weight: 500; text-decoration: line-through; }
.plan.featured .price .was { color: rgb(255 255 255 / 0.6); }
.price .save-chip { padding: 3px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.price { flex-wrap: wrap; }
.price-note { min-height: 1.4em; font-size: 0.8125rem; color: var(--ink-3); }
.plan.featured .price-note { color: rgb(255 255 255 / 0.7); }

/* Under a trial button: "Prefer to pay now? Buy this plan" - one quiet line, with room above and below (it used to sit on the divider). */
.price-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; margin: 0.85rem 0 1.1rem; font-size: 0.8125rem; color: var(--ink-3); text-align: center; }
.price-alt a { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.price-alt a:hover { text-decoration-color: currentColor; }
.plan.featured .price-alt { color: rgb(255 255 255 / 0.7); }
.plan.featured .price-alt a { color: #fff; }
.plan .btn { margin: 22px 0 26px; }
.plan ul { display: grid; gap: 13px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.plan.featured ul { border-color: rgb(255 255 255 / 0.16); }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-text); }
.plan.featured li svg { color: rgb(var(--accent-rgb)); }
.pricing-foot { margin-top: 36px; text-align: center; color: var(--ink-3); font-size: 0.875rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .plan.featured { transform: none; } .plan .tagline { min-height: 0; } }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: rgb(var(--accent-rgb)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.0313rem; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); color: rgb(var(--accent-rgb)); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); }

/* cta */
.cta { position: relative; overflow: hidden; padding: 72px 40px; border-radius: 30px; text-align: center; color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); }
.cta::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 720px; margin: 0 auto; font-size: clamp(1.75rem, 3.8vw, 2.875rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.cta p { max-width: 560px; margin: 16px auto 0; color: rgb(255 255 255 / 0.8); font-size: 1.0625rem; }
.cta .hero-cta { margin-top: 32px; }
@media (max-width: 600px) { .cta { padding: 52px 22px; border-radius: 24px; } }

/* footer: follows the site's light / dark mode (light by default), with a touch of the theme colour */
.footer {
    position: relative; overflow: hidden; margin-top: 16px; color: var(--ink-2);
    background: var(--surface);
    border-top: 1px solid var(--line); /* the same line as the bottom of the header */
}
.footer-card { position: relative; padding: 64px 0 28px; }
.footer-main { position: relative; display: grid; grid-template-columns: minmax(260px, 1.4fr) 3fr; gap: 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 40px; align-content: start; }
.footer .logo { color: var(--ink); }
.footer-about p { margin-top: 16px; max-width: 340px; color: var(--ink-2); font-size: 0.9375rem; }
.footer h4 { margin-bottom: 16px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--accent-rgb)); }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: var(--ink-2); font-size: 0.9375rem; transition: color .15s; }
.footer-links a:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(var(--b400)); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-legal a { color: var(--ink-2); }
.footer-legal a:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) {
    .footer-card { padding: 48px 0 24px; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
}
/* a page written under Website pages (Privacy Policy ...) */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.02em; }
.page-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--brand-text); }
.page-back svg { width: 16px; height: 16px; }
.page-meta { margin-top: 10px; color: var(--ink-3); font-size: 0.9375rem; }
.page-body { padding: 16px 0 72px; }
/* The page is as wide as the rest of the site (header, sections, footer: .container, 1200px), not a narrow column. */
.page-hero .container, .page-body .container { width: min(1200px, 100% - 48px); }
.prose { padding: 48px 56px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: 1.0313rem; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.125rem; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: rgb(var(--accent-rgb)); }
.prose strong, .prose b { color: var(--ink); }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-inline-start: 3px solid rgb(var(--accent-rgb)); background: var(--surface-2); border-radius: 0 10px 10px 0; }
[dir='rtl'] .prose blockquote { border-radius: 10px 0 0 10px; }
@media (max-width: 900px) { .prose { padding: 34px 30px; } }
@media (max-width: 640px) { .prose { padding: 26px 22px; } }

/* ------------------------------------------------------------------ motion */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bars span { transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 45ms + .2s); }
.js .mock.in .bars span { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .bars span { opacity: 1; transform: none; transition: none; }
    .float-chip { animation: none; }
    .btn, .card, .chip { transition: none; }
}

/* ------------------------------------------------------------------ right-to-left */

[dir='rtl'] body { line-height: 1.85; }
[dir='rtl'] .logo, [dir='rtl'] .section-head h2, [dir='rtl'] .hero h1, [dir='rtl'] .cta h2 { letter-spacing: 0; }
[dir='rtl'] .hero h1 { line-height: 1.35; font-size: clamp(2rem, 4.6vw, 3.5rem); }
[dir='rtl'] .section-head h2, [dir='rtl'] .split h2 { line-height: 1.35; }
[dir='rtl'] .price .amount, [dir='rtl'] .stat strong { font-family: var(--font); }
[dir='rtl'] .spark, [dir='rtl'] .bars, [dir='rtl'] .months { direction: ltr; }
[dir='rtl'] .eyebrow, [dir='rtl'] .pill, [dir='rtl'] .legend, [dir='rtl'] .footer h4, [dir='rtl'] .plan .badge { letter-spacing: 0; text-transform: none; }
[dir='rtl'] .steps::before { background: repeating-linear-gradient(270deg, rgb(var(--accent-rgb)) 0 8px, transparent 8px 16px); }

/* Money figures keep their sign in front of the number even inside right-to-left text. */
.tx em, .mini-row em, .biz .amount, .stat strong, .delta, .price .amount, .float-chip span:last-child { unicode-bidi: isolate; }
[dir='rtl'] .tx em, [dir='rtl'] .mini-row em, [dir='rtl'] .stat strong, [dir='rtl'] .price .amount, [dir='rtl'] .delta { direction: ltr; }
[dir='rtl'] .biz .amount { direction: ltr; text-align: start; }
@media (max-width: 560px) { .months span:nth-child(even) { visibility: hidden; } }

/* Small phones: the header keeps logo, language, colour mode and menu; the main button moves into the menu. */
.nav-links .nav-cta { display: none; }
@media (max-width: 640px) {
    .container, .container.wide { width: min(1200px, 100% - 32px); }
    .nav { gap: 12px; }
    .nav-actions { gap: 6px; }
    .nav-actions > .btn-primary { display: none; }
    .lang > summary { padding: 0 10px; }
    .lang > summary span, .lang > summary svg:last-child { display: none; }
    .nav-links { padding-inline: 16px; }
    .nav-links a.nav-cta { display: block; margin-top: 8px; text-align: center; background: var(--brand-strong); color: #fff; font-weight: 600; }
    .nav-links a.nav-cta:hover { background: rgb(var(--b700)); color: #fff; }
    .hero { padding-top: 48px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .hero-cta .btn-lg { width: 100%; }
}


/* ---- Your dashboard section: a drawn picture of the movable grid ---- */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 74px; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface-2, var(--bg-soft, rgba(128,128,128,.08))); border: 1px solid var(--line, rgba(128,128,128,.2)); box-shadow: var(--shadow, 0 20px 50px -25px rgba(0,0,0,.35)); }
.dcell { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, rgba(128,128,128,.2)); overflow: hidden; }
.dcell small { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.dcell b { font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.dcell.stat { grid-column: span 2; }
.dcell.chart { grid-column: span 3; grid-row: span 2; justify-content: flex-start; }
.dcell.pie { grid-column: span 1; grid-row: span 2; align-items: center; justify-content: flex-start; text-align: center; }
.dcell.table { grid-column: span 4; grid-row: span 2; justify-content: flex-start; }
.dh { position: absolute; top: 8px; inset-inline-end: 8px; width: 16px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 4px); opacity: .45; }
.dr { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); border-radius: 0 0 3px 0; opacity: .8; }
[dir='rtl'] .dr { border-right: 0; border-left: 2px solid var(--brand); border-radius: 0 0 0 3px; }
.dbars { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 8px; }
.dbars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); min-width: 0; }
.dbars i.out { background: rgb(var(--accent-rgb)); }
.dpie { width: 64px; height: 64px; margin-top: 8px; border-radius: 50%; background: conic-gradient(var(--brand) 0 42%, color-mix(in srgb, var(--brand) 55%, transparent) 42% 70%, color-mix(in srgb, var(--brand) 28%, transparent) 70% 100%); -webkit-mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%); mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%); }
.dtable { display: grid; gap: 8px; padding-top: 6px; }
.dtable span { display: grid; grid-template-columns: 22px 1fr 56px; align-items: center; gap: 10px; }
.dtable i { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); }
.dtable em { height: 8px; border-radius: 4px; background: rgba(128,128,128,.25); }
.dtable b { height: 8px; border-radius: 4px; background: var(--brand); opacity: .7; }
.dgrid-note { margin-top: 10px; font-size: .75rem; color: var(--ink-3); text-align: center; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--brand-text); }
.card-link svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .dgrid { grid-auto-rows: 62px; padding: 12px; gap: 8px; } }

/* A light and a dark logo: only the one that fits the mode shows. */
.logo-img.logo-dark { display: none; }
:root[data-mode='dark'] .logo-img.logo-light { display: none; }
:root[data-mode='dark'] .logo-img.logo-dark { display: inline-block; }

/* A logo painted in the theme colour: the picture is only the shape (a mask), the colour is the theme's (--logo-fill). */
.logo-img.logo-mask { display: inline-block; background: var(--logo-fill, rgb(var(--b500))); -webkit-mask: var(--logo-src) center / contain no-repeat; mask: var(--logo-src) center / contain no-repeat; }
