/* ==========================================================================
   Dawim — site.css
   One stylesheet for every page. Design tokens first, then base, layout,
   components, sections. Logical properties throughout so /ar/ mirrors itself.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour. Contrast ratios are against --bg (white) unless noted. */
  --bg: #FFFFFF;
  --surface: #F5F7F5;      /* alternate sections, panels */
  --surface-2: #EEF2EE;    /* chat background, tracks */
  --ink: #0E1A13;          /* text — 17.9:1 */
  --ink-2: #2B3830;        /* strong secondary text — 11.9:1 */
  --muted: #56635B;        /* secondary text — 6.3:1 (5.9:1 on surface) */
  --line: #E2E7E3;         /* borders */
  --line-2: #CBD3CD;       /* stronger borders */
  --green: #77DD77;        /* FILL ONLY. Ink on green 11.8:1. Never text on light. */
  --green-hover: #8AE48A;
  --green-tint: #E9F8E9;   /* soft fill; ink 16:1, green-deep 5.9:1 on it */
  --green-deep: #1E6B34;   /* links, green text — 6.6:1 */
  --amber-tint: #FDF1D6;   /* evening-shift chip; ink on it 16:1 */
  --red-tint: #FDE4E0;     /* "Rejected" fill; ink on it 15.5:1 */
  --red-text: #B42318;     /* "Rejected" text — 6.6:1 */
  --dark: #0C1A12;         /* dark section */
  --dark-line: #24342A;
  --dark-muted: #A9B8AE;   /* on --dark: 9.1:1 */
  --focus: #1E6B34;

  /* Type */
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-h1: clamp(2.5rem, 1.55rem + 3.9vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-numeral: clamp(3.5rem, 2.2rem + 5.5vw, 6.5rem);
  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --track-tight: -0.03em;

  /* Space, radius, shadow */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem;
  --container: 76rem;
  --margin: 1.25rem;
  --section-pad: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 19, 0.06);
  --shadow: 0 1px 2px rgba(14, 26, 19, 0.05), 0 10px 30px -10px rgba(14, 26, 19, 0.16);
  --shadow-lg: 0 2px 4px rgba(14, 26, 19, 0.04), 0 30px 60px -20px rgba(14, 26, 19, 0.25);
  --header-h: 4.25rem;
}

/* Arabic: no negative tracking (it breaks letter joins), taller lines. */
html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lh-tight: 1.35;
  --lh-snug: 1.5;
  --lh-body: 1.8;
  --track-tight: 0;
}

@media (min-width: 40em) { :root { --margin: 1.5rem; } }
@media (min-width: 64em) { :root { --margin: 2rem; } }

/* ---------- 2. Fonts (self-hosted, subset) ---------- */
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, table { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: 1.125rem; line-height: var(--lh-snug); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
img, svg { display: block; max-inline-size: 100%; }

a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--ink); }
[id] { scroll-margin-block-start: calc(var(--header-h) + 1rem); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.vh { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; inset-inline-start: var(--margin); inset-block-start: -100px; background: var(--green); color: var(--ink); padding: var(--s1) var(--s2); border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { inset-block-start: var(--s1); }

/* Placeholder text the owner must fill in before launch */
.ph { font-family: var(--font-mono); font-size: 0.9em; background: #FFF6CC; color: var(--ink); padding: 0.05em 0.3em; border-radius: 4px; outline: 1px dashed #B58A00; }

@media (max-width: 39.99em) { .hide-sm { display: none !important; } }
@media (min-width: 40em) { .show-sm { display: none !important; } }

/* ---------- 4. Layout ---------- */
.wrap { inline-size: 100%; max-inline-size: var(--container); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; --focus: var(--green); }

.section__head { max-inline-size: 44rem; margin-block-end: var(--s6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-block-start: var(--s2); font-size: var(--fs-lead); color: var(--muted); }
.section--dark .section__head p { color: var(--dark-muted); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-block-end: var(--s2);
  padding: 0.3125rem 0.75rem;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
}
.pill::before { content: ""; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--green-tint), 0 0 0 3px var(--green-deep); }
.section--dark .pill { background: rgba(119, 221, 119, 0.12); color: var(--green); }
.section--dark .pill::before { box-shadow: none; }

/* ---------- 5. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-block-size: 3rem;
  padding: 0.75rem 1.375rem;
  background: var(--green);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 -2px 0 rgba(14, 26, 19, 0.12);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-block-size: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; border-radius: 10px; }
.btn--light { background: var(--bg); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--surface); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn--dark:hover { background: #22322A; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(2px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.chip--green { background: var(--green-tint); border-color: transparent; }
.chip--solid { background: var(--green); border-color: transparent; }
.chip svg { inline-size: 0.75rem; block-size: 0.75rem; }

.dot { display: inline-block; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }

/* Stamps: "Recorded ✓", "Approved ✓", "Rejected" */
.stamp {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: var(--green);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(14, 26, 19, 0.35);
  transform: rotate(-4deg);
}
.stamp--reject { background: var(--red-tint); }
.stamp--pending { background: var(--bg); border: 1px dashed var(--line-2); box-shadow: none; transform: none; }

/* Document glyph used by file cards and export buttons */
.doc { display: grid; place-items: end center; inline-size: 2.125rem; block-size: 2.625rem; padding-block-end: 0.3125rem; border: 1px solid var(--line-2); border-radius: 4px; border-start-end-radius: 0.625rem; background: var(--bg); font: 600 0.5625rem/1 var(--font-sans); letter-spacing: 0.02em; flex: none; }
.doc--xlsx { background: var(--green); border-color: transparent; }
.doc--pdf { background: var(--red-tint); border-color: transparent; }

/* Tick list */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-inline-start: 1.875rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.2em;
  inline-size: 1.25rem; block-size: 1.25rem; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%231E6B34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Toggle switch (static, inside previews) */
.switch { position: relative; display: inline-block; inline-size: 2.25rem; block-size: 1.25rem; border-radius: 999px; background: var(--green); flex: none; }
.switch::after { content: ""; position: absolute; inset-block-start: 2px; inset-inline-end: 2px; inline-size: 1rem; block-size: 1rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.switch--off { background: var(--line-2); }
.switch--off::after { inset-inline-end: auto; inset-inline-start: 2px; }

/* ---------- 6. Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 40; background: var(--bg); border-block-end: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s2); min-block-size: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; margin-inline-end: auto; color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { inline-size: 1.875rem; block-size: 1.875rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__link { color: var(--ink-2); font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
.nav__link:hover { color: var(--ink); text-decoration: underline; }
.nav__section { display: none; }
@media (min-width: 64em) { .nav__section { display: inline; } }
.nav__lang { display: inline-flex; align-items: center; min-block-size: 2.25rem; padding-inline: 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: var(--fs-small); text-decoration: none; }
.nav__lang:hover { background: var(--surface); }
@media (max-width: 39.99em) { .nav { gap: 1rem; } .nav .btn { display: none; } }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 39.99em) {
  .mbar {
    position: fixed; z-index: 45; inset-inline: 0; inset-block-end: 0;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.5rem;
    padding: 0.625rem var(--margin) calc(0.625rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-block-start: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(14, 26, 19, 0.2);
  }
  .mbar .btn { min-block-size: 2.75rem; padding-inline: 0.5rem; }
  body { padding-block-end: 4.5rem; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-pad); overflow: hidden; }
/* Surface band behind the product replica (desktop) */
@media (min-width: 64em) {
  .hero::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 50%; inset-inline-end: 0; background: var(--surface); border-end-start-radius: 48px; }
}
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 64em) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); } }
.hero h1 { max-inline-size: 15ch; }
.hero__sub { margin-block-start: var(--s3); font-size: var(--fs-lead); color: var(--muted); max-inline-size: 34rem; }
.hero .actions { margin-block-start: var(--s4); }
.hero__for { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: var(--s5); }
.hero__for-label { inline-size: 100%; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }

/* ==========================================================================
   Product replicas. These mirror the real Dawim screens (colours, labels,
   layout) with sample data. Text stays in Plex to keep the page light.
   ========================================================================== */
.od {
  --od-ink: #0F172A;      /* product heading colour */
  --od-text: #475569;     /* body text (7.6:1 on white) */
  --od-label: #64748B;    /* small caps labels (4.8:1 on white) */
  --od-line: #D9E6FF;     /* card borders */
  --od-bg: #F6F8FC;       /* canvas */
  --od-blue: #6EA8FE;
  --od-bar: #1F2A37;      /* top bar */
  --od-navy: #1F3A5F;     /* report headers */
  border-radius: var(--r-lg);
  background: var(--od-bg);
  box-shadow: 0 0 0 1px rgba(14, 26, 19, 0.08), var(--shadow-lg);
  overflow: hidden;
  color: var(--od-text);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: start;
}
.od__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.875rem; background: var(--od-bar); color: #E5E7EB; font-size: 0.8125rem; }
.od__bar b { font-weight: 500; color: #fff; white-space: nowrap; }
.od__bar nav { display: flex; gap: 0.875rem; color: #CBD5E1; white-space: nowrap; overflow: hidden; }
.od__apps { display: grid; grid-template-columns: repeat(3, 3px); gap: 2px; flex: none; }
.od__apps i { inline-size: 3px; block-size: 3px; border-radius: 1px; background: #CBD5E1; }
.od__barr { margin-inline-start: auto; display: flex; align-items: center; gap: 0.625rem; }
.od__dotred { inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: #DC2626; }
.od__av { display: grid; place-items: center; inline-size: 1.25rem; block-size: 1.25rem; border-radius: 4px; background: #A21CAF; color: #fff; font-size: 0.6875rem; font-weight: 600; }
.od__main { padding: 1rem; display: grid; gap: 0.75rem; }
.od__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.od__head .od__h { margin-inline-end: auto; color: var(--od-ink); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.od__filter { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.625rem; background: #fff; border: 1px solid var(--od-line); border-radius: 8px; color: var(--od-ink); font-size: 0.6875rem; white-space: nowrap; }
.od__filter svg { inline-size: 0.6875rem; block-size: 0.6875rem; color: #94A3B8; }
.od__card { background: #fff; border: 1px solid var(--od-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(110, 168, 254, 0.08); padding: 0.75rem 0.875rem; min-inline-size: 0; }
.od__card h5 { margin: 0; color: var(--od-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; }
.od__card h5 + small { display: block; color: var(--od-label); font-size: 0.6875rem; margin-block-end: 0.5rem; }

/* KPI strip */
.od__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border-radius: 14px; border-block-start: 2.5px solid var(--od-blue); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(110, 168, 254, 0.1); }
@media (min-width: 30em) { .od__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 48em) { .od__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.od__kpi { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0.625rem; min-inline-size: 0; }
@media (min-width: 48em) { .od__kpi + .od__kpi { border-inline-start: 1px solid #EEF2F7; } }
.od__ico { display: grid; place-items: center; inline-size: 1.875rem; block-size: 1.875rem; border-radius: 8px; flex: none; }
.od__ico svg { inline-size: 0.9375rem; block-size: 0.9375rem; }
.od__ico--blue { background: #DBEAFE; color: #2563EB; }
.od__ico--green { background: #DCFCE7; color: #16A34A; }
.od__ico--red { background: #FEE2E2; color: #DC2626; }
.od__ico--amber { background: #FEF3C7; color: #D97706; }
.od__ico--violet { background: #EDE9FE; color: #7C3AED; }
.od__kpi > span:last-child { min-inline-size: 0; }
.od__kpi small { display: block; color: var(--od-label); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od__kpi b { color: var(--od-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.od__delta { display: inline-block; margin-inline-start: 0.25rem; padding: 0.0625rem 0.375rem; border-radius: 20px; background: #ECFDF5; color: #047857; font-size: 0.5625rem; font-weight: 700; vertical-align: 0.3em; }
.od__delta--blue { background: #EAF1FF; color: #1D4ED8; }
html[lang="ar"] .od__kpi small { letter-spacing: 0; text-transform: none; font-size: 0.625rem; }

.od__row { display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .od__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.od__chart { inline-size: 100%; block-size: auto; overflow: visible; }
.od__chart text { font-family: var(--font-sans); font-size: 7px; fill: #64748B; }
.od__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.625rem; margin-block-start: 0.375rem; font-size: 0.625rem; color: var(--od-text); }
.od__legend i { display: inline-block; inline-size: 0.5625rem; block-size: 0.5625rem; border-radius: 50%; margin-inline-end: 0.25rem; vertical-align: -0.05em; }
@media (max-width: 29.99em) { .od__donut { display: none; } }

/* Product tables */
.od__tbl { inline-size: 100%; border-collapse: collapse; }
.od__tbl th { text-align: start; padding: 0.375rem 0.5rem; color: var(--od-label); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-block-end: 1px solid #EEF2F7; }
html[lang="ar"] .od__tbl th { letter-spacing: 0; text-transform: none; font-size: 0.6875rem; }
.od__tbl td { padding: 0.4375rem 0.5rem; border-block-end: 1px solid #F1F5F9; color: var(--od-ink); white-space: nowrap; }
.od__tbl tr:last-child td { border-block-end: 0; }
.od__tbl .num { font-variant-numeric: tabular-nums; }
.od__tag { display: inline-block; padding: 0.0625rem 0.4375rem; border-radius: 20px; font-size: 0.625rem; font-weight: 700; }
.od__tag--in { background: #DCFCE7; color: #166534; }
.od__tag--out { background: #DBEAFE; color: #1E40AF; }
.od__tag--late { background: #FEF3C7; color: #92400E; }
/* The newest check-in arrives once the replica is on screen (JS only; final state without JS) */
.js [data-reveal]:not(.is-visible) .is-new { opacity: 0; }
.is-new { transition: opacity 0.5s ease 0.6s; }
[data-reveal].is-visible .is-new td { animation: row-flash 2.2s ease 0.6s; }
@keyframes row-flash { 0%, 45% { background: #ECFDF5; } 100% { background: transparent; } }
@media (max-width: 29.99em) { .od__hide-xs { display: none; } }

/* ---------- 8. A working day (what it does) ---------- */
.day-grid { display: grid; gap: var(--s5); }
@media (min-width: 64em) {
  .day-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
  .day-grid .section__head { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); align-self: start; margin-block-end: 0; }
}
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 1.25rem; inset-inline-start: 2.875rem; inline-size: 2px; background: var(--line); }
.moment { position: relative; display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); gap: var(--s2); padding-block-end: var(--s3); }
.moment:last-child { padding-block-end: 0; }
.moment__time { position: relative; z-index: 1; justify-self: start; align-self: start; margin-block-start: 1rem; padding: 0.25rem 0.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font: 500 0.8125rem/1.2 var(--font-mono); white-space: nowrap; }
.moment--key .moment__time { background: var(--green); border-color: transparent; }
.moment__card { padding: 1.125rem 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.moment__card h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.moment__card p { margin-block-start: 0.375rem; color: var(--muted); font-size: var(--fs-small); }
.moment__card .chip { margin-block-start: 0.75rem; }

/* ---------- 9. Features ---------- */
.feature + .feature { margin-block-start: var(--s7); }
.feature__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 64em) {
  .feature__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
  .feature--flip .feature__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip .feature__text { order: 2; }
}
.feature__text h3 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); line-height: var(--lh-tight); }
.feature__text > p { margin-block-start: var(--s2); color: var(--muted); font-size: var(--fs-lead); max-inline-size: 32rem; }
.feature__text .ticks { margin-block-start: var(--s3); }
.feature__visual { padding: clamp(1rem, 0.5rem + 2vw, 2rem); background: var(--surface); border-radius: calc(var(--r-lg) + 4px); }

/* Star feature: WhatsApp bot */
.star { padding: clamp(1.25rem, 0.5rem + 3vw, 3.5rem); background: var(--dark); color: #fff; border-radius: 28px; --focus: var(--green); }
.star__head { display: grid; gap: var(--s3); margin-block-end: var(--s5); }
@media (min-width: 64em) { .star__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: var(--s6); } }
.star__head p { color: var(--dark-muted); font-size: var(--fs-lead); }
.star .pill { background: rgba(119, 221, 119, 0.12); color: var(--green); }
.star .pill::before { box-shadow: none; }
.flows { display: grid; gap: var(--s5); }
@media (min-width: 64em) { .flows { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); align-items: start; } }
.flow__head { margin-block-end: var(--s3); }
.flow__head h4 { display: flex; align-items: center; gap: 0.625rem; }
.flow__head p { margin-block-start: 0.375rem; color: var(--dark-muted); font-size: var(--fs-small); }
.flow__num { display: inline-grid; place-items: center; inline-size: 1.625rem; block-size: 1.625rem; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 0.8125rem; font-weight: 600; flex: none; }
.star__foot { display: grid; gap: var(--s3); margin-block-start: var(--s5); padding-block-start: var(--s4); border-block-start: 1px solid var(--dark-line); }
@media (min-width: 48em) { .star__foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s4); } }
.digest { display: flex; align-items: center; gap: 0.875rem; }
.digest__icon { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: var(--r); background: rgba(119, 221, 119, 0.12); flex: none; }
.digest__icon svg { inline-size: 1.375rem; block-size: 1.375rem; }
.digest b { display: block; font-weight: 600; }
.digest span { color: var(--dark-muted); font-size: var(--fs-small); }
.star__note { font-size: var(--fs-xs); color: var(--dark-muted); }

/* ---------- 10. Chat mockup (Dawim's own style, not a copy of any messenger) ---------- */
.chat { margin: 0; }
.chat--solo .phone { max-inline-size: 23rem; }
.duo { display: grid; gap: var(--s3); }
@media (min-width: 36em) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); } }
.phone-wrap { min-inline-size: 0; }
.phone-label { display: block; margin-block-end: var(--s1); font-size: var(--fs-xs); font-weight: 600; color: var(--dark-muted); }

.phone { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border-radius: 22px; box-shadow: 0 0 0 6px #1B2B21, var(--shadow-lg); overflow: hidden; font-size: 0.9375rem; line-height: 1.4; }
.phone__bar { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; border-block-end: 1px solid var(--line); }
.phone__avatar { inline-size: 2.125rem; block-size: 2.125rem; flex: none; }
.phone__name { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.phone__status { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
.phone__status::before { content: ""; inline-size: 0.4375rem; block-size: 0.4375rem; border-radius: 50%; background: var(--green); }
.phone__thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; padding: 0.875rem 0.75rem; background: var(--surface-2); transition: opacity 0.45s ease; }
.phone__compose { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.625rem; border-block-start: 1px solid var(--line); }
.phone__compose span:first-child { flex: 1; padding: 0.4375rem 0.875rem; background: var(--surface); border-radius: 999px; color: var(--muted); font-size: 0.875rem; }
.phone__send { inline-size: 2.125rem; block-size: 2.125rem; border-radius: 50%; background: var(--green); flex: none; display: grid; place-items: center; }
.phone__send svg { inline-size: 0.875rem; block-size: 0.875rem; }
html[dir="rtl"] .phone__send svg { transform: scaleX(-1); }

.day { align-self: center; font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.625rem; background: var(--bg); border-radius: 999px; color: var(--muted); margin-block-end: 0.25rem; box-shadow: var(--shadow-sm); }

.msg { max-inline-size: 86%; padding: 0.5rem 0.75rem 0.375rem; border-radius: 16px; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.msg--in { align-self: flex-start; background: var(--bg); border-start-start-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--green); border-start-end-radius: 4px; }
.msg__time { display: block; margin-block-start: 0.125rem; text-align: end; font-size: 0.6875rem; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg--out .msg__time { color: var(--ink-2); }

.msg__sum { display: grid; gap: 0.125rem; margin-block-start: 0.375rem; padding-block-start: 0.375rem; border-block-start: 1px solid var(--line); font-size: 0.875rem; }
.msg__sum div { display: flex; justify-content: space-between; gap: var(--s2); }
.msg__sum div span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

.file { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: center; min-inline-size: 13.5rem; }
.file__name { display: block; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.file__meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); margin-block-start: 0.1875rem; }
.file__ok { color: var(--green-deep); font-weight: 600; }
.file__bar { grid-column: 1 / -1; block-size: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.file__bar span { display: block; block-size: 100%; inline-size: 100%; background: var(--green); }

.req { position: relative; align-self: flex-start; inline-size: 92%; background: var(--bg); border-radius: 16px; border-start-start-radius: 4px; box-shadow: var(--shadow-sm); overflow: visible; }
.req__head { padding: 0.625rem 0.875rem; border-block-end: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; }
.req__body { padding: 0.5rem 0.875rem 0.625rem; display: grid; gap: 0.1875rem; font-size: 0.875rem; }
.req__body div { display: flex; justify-content: space-between; gap: 0.75rem; }
.req__body dt { color: var(--muted); }
.req__body dd { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.req__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0 0.625rem 0.625rem; }
.act { position: relative; overflow: hidden; display: grid; place-items: center; min-block-size: 2.375rem; border-radius: 10px; font-weight: 600; font-size: 0.875rem; background: var(--surface); }
.act--approve { background: var(--green); }
.req .stamp { position: absolute; inset-inline-end: 0.75rem; inset-block-end: 0.75rem; }

.sysline { align-self: center; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--ink-2); padding: 0.3125rem 0.75rem; background: var(--green-tint); border-radius: 999px; }

.typing { display: none; align-self: flex-start; gap: 4px; padding: 0.75rem 0.875rem; background: var(--bg); border-radius: 16px; border-start-start-radius: 4px; box-shadow: var(--shadow-sm); }
.typing--out { align-self: flex-end; background: var(--green); border-radius: 16px; border-start-end-radius: 4px; }
.typing.is-on { display: inline-flex; animation: msg-in 0.25s ease-out both; }
.typing span { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out infinite; }
.typing--out span { background: var(--ink); }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

.chat[data-variant="a"] [data-variant="b"],
.chat[data-variant="b"] [data-variant="a"] { display: none; }

.is-playing [data-step]:not(.is-in):not(.act):not(.stamp) { display: none; }
.is-playing .is-in:is(.msg, .req, .sysline) { animation: msg-in 0.35s cubic-bezier(.2, .7, .3, 1) both; }
.is-resetting .phone__thread { opacity: 0; }
.is-playing .file.is-in .file__bar span { animation: fill 0.9s ease-out 0.25s both; }
.is-playing .file.is-in .file__ok { animation: pop 0.3s ease-out 1.15s both; }
.is-playing .act--approve:not(.is-in) { background: var(--surface); }
.is-playing .act--approve.is-in { animation: press 0.4s ease-out; }
.is-playing .act--approve.is-in::after { content: ""; position: absolute; inset: 50% auto auto 50%; inline-size: 2.5rem; block-size: 2.5rem; margin: -1.25rem 0 0 -1.25rem; border-radius: 50%; background: var(--ink); opacity: 0; animation: ripple 0.6s ease-out; }
.is-playing .stamp:not(.is-in) { opacity: 0; }
.is-playing .stamp.is-in { animation: stamp-in 0.42s cubic-bezier(.3, 1.4, .5, 1) both; }

@media (max-width: 35.99em) {
  .is-playing .duo > .phone-wrap { grid-area: 1 / 1; }
  .is-playing .phone-wrap:not(.is-active) { visibility: hidden; }
  .is-playing .phone-wrap.is-active { animation: panel-in 0.35s ease-out; }
}

@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes fill { from { inline-size: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes press { 0% { transform: scale(1); } 35% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes ripple { from { opacity: 0.2; transform: scale(0.2); } to { opacity: 0; transform: scale(3); } }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(1.8) rotate(-12deg); } 70% { opacity: 1; transform: scale(0.95) rotate(-3deg); } 100% { opacity: 1; transform: scale(1) rotate(-4deg); } }
@keyframes panel-in { from { opacity: 0; } }

/* ---------- 11. Feature replicas ---------- */
.feature__visual .od { box-shadow: 0 0 0 1px rgba(14, 26, 19, 0.06), var(--shadow); }

/* Department bars (grouped) */
.od__bars { display: flex; align-items: flex-end; gap: 0.75rem; block-size: 8.5rem; padding: 0.25rem 0.25rem 0; border-block-end: 1px solid #E2E8F0; }
.od__bars > div { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; block-size: 100%; }
.od__bars i { display: block; inline-size: 30%; max-inline-size: 0.875rem; border-radius: 3px 3px 0 0; }
.od__bars-x { display: flex; gap: 0.75rem; padding: 0.375rem 0.25rem 0; }
.od__bars-x span { flex: 1; text-align: center; font-size: 0.5625rem; color: var(--od-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-present { background: rgba(45, 212, 191, 0.85); }
.c-absent { background: rgba(248, 113, 113, 0.85); }
.c-leave { background: rgba(167, 139, 250, 0.85); }
.od__state { display: inline-flex; align-items: center; gap: 0.3125rem; font-weight: 600; }
.od__state::before { content: ""; inline-size: 0.4375rem; block-size: 0.4375rem; border-radius: 50%; background: #16A34A; }
.od__state--pending::before { background: #D97706; }

/* Shift planner */
.od__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.od__plan { color: var(--od-ink); font-weight: 600; font-size: 0.75rem; padding: 0.3125rem 0.625rem; background: #fff; border: 1px solid var(--od-line); border-radius: 6px; white-space: nowrap; }
.od__badge { padding: 0.125rem 0.5rem; border-radius: 20px; background: #DCFCE7; color: #166534; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.04em; }
.od__btn { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3125rem 0.625rem; border-radius: 6px; background: #fff; border: 1px solid #CBD5E1; color: var(--od-ink); font-weight: 600; font-size: 0.6875rem; white-space: nowrap; }
.od__btn--primary { background: #3F6F8A; border-color: #3F6F8A; color: #fff; }
.od__push { margin-inline-start: auto; }
.od__paint { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.625rem; color: var(--od-label); }
.od__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--od-line); border-radius: 10px; }
.od__roster { inline-size: 100%; border-collapse: collapse; font-size: 0.6875rem; }
.od__roster th { padding: 0.375rem 0.25rem; color: var(--od-label); font-weight: 600; text-align: center; border-block-end: 1px solid #E2E8F0; line-height: 1.15; white-space: nowrap; }
.od__roster th b { display: block; color: var(--od-ink); font-size: 0.75rem; }
.od__roster th:first-child, .od__roster td:first-child { text-align: start; padding-inline: 0.625rem 0.5rem; }
.od__roster td { padding: 0.25rem; text-align: center; border-block-end: 1px solid #F1F5F9; }
.od__roster td:first-child b { display: block; color: var(--od-ink); font-weight: 600; white-space: nowrap; }
.od__roster td:first-child small { display: block; color: var(--od-label); font-size: 0.5625rem; }
.od__roster .hrs { color: var(--od-ink); font-weight: 600; white-space: nowrap; text-align: end; padding-inline-end: 0.625rem; }
.od__roster .hrs small { color: var(--od-label); font-weight: 400; }
.od__roster tfoot td { color: var(--od-label); font-weight: 600; border-block-end: 0; }
.sh { display: inline-grid; place-items: center; inline-size: 1.75rem; block-size: 1.375rem; border-radius: 4px; color: #fff; font-weight: 700; font-size: 0.625rem; }
.sh--m { background: #9365B8; }
.sh--e { background: #3E9FD1; }
.sh--n { background: #7B2D4F; }
.sh--d { background: #23A26A; }
.sh--o { background: #ECEFF3; color: #5F6B76; font-weight: 600; }
.od__legend--start { justify-content: flex-start; }
.od__legend .sh { inline-size: 1.375rem; block-size: 1.125rem; margin-inline-end: 0.25rem; font-size: 0.5625rem; }

/* Attendance rule form */
.od__form { background: #fff; border: 1px solid var(--od-line); border-radius: 10px; padding: 0.875rem 1rem; }
.od__form h5 { margin: 0 0 0.25rem; color: var(--od-ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.od__sec { margin-block: 0.875rem 0.375rem; padding-block-end: 0.25rem; border-block-end: 1px solid #E2E8F0; color: var(--od-ink); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="ar"] .od__sec { letter-spacing: 0; text-transform: none; font-size: 0.75rem; }
.od__fields { display: grid; gap: 0.375rem 1.25rem; }
@media (min-width: 36em) { .od__fields { grid-template-columns: 1fr 1fr; } }
.od__f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.od__f > span:first-child { color: var(--od-ink); font-weight: 600; }
.od__f > span:last-child { padding-block: 0.1875rem; border-block-end: 1px solid #CBD5E1; color: var(--od-ink); }
.od__check { display: inline-grid; place-items: center; inline-size: 0.875rem; block-size: 0.875rem; border-radius: 3px; background: #3F6F8A; color: #fff; font-size: 0.5625rem; vertical-align: -0.1em; }

/* Report sheet */
.od__dialog { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; padding: 0.625rem 0.75rem; background: #fff; border: 1px solid var(--od-line); border-radius: 10px; }
.od__dialog b { margin-inline-end: auto; color: var(--od-ink); font-size: 0.8125rem; }
.rpt { background: #fff; border: 1px solid #E3E8EF; border-radius: 10px; padding: 0.875rem; color: #2C3E50; min-inline-size: 0; }
.rpt__title { margin: 0 0 0.5rem; padding-block-end: 0.375rem; border-block-end: 2px solid var(--od-navy); color: var(--od-navy); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
html[lang="ar"] .rpt__title { letter-spacing: 0; text-transform: none; }
.rpt__chips { display: flex; flex-wrap: wrap; gap: 0.3125rem; margin-block-end: 0.5rem; }
.rpt__chip { padding: 0.1875rem 0.625rem; background: #EEF2F7; color: var(--od-navy); border: 1px solid #D9E2EC; border-radius: 12px; font-size: 0.625rem; font-weight: 600; white-space: nowrap; }
.rpt__chip--solid { background: var(--od-navy); border-color: var(--od-navy); color: #fff; }
.rpt__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rpt__tbl { inline-size: 100%; border-collapse: collapse; font-size: 0.6875rem; }
.rpt__tbl th { background: var(--od-navy); color: #fff; text-align: start; padding: 0.375rem 0.5rem; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--od-navy); white-space: nowrap; }
html[lang="ar"] .rpt__tbl th { letter-spacing: 0; text-transform: none; font-size: 0.6875rem; }
.rpt__tbl td { padding: 0.375rem 0.5rem; border: 1px solid #E3E8EF; white-space: nowrap; }
.rpt__tbl tr:nth-child(even) td { background: #F9FBFD; }
.rpt__tbl .num { text-align: center; font-variant-numeric: tabular-nums; }
.rpt__prog { display: flex; align-items: center; gap: 0.375rem; min-inline-size: 4.5rem; }
.rpt__prog i { flex: 1; block-size: 5px; border-radius: 3px; background: #E3E8EF; overflow: hidden; }
.rpt__prog i::before { content: ""; display: block; block-size: 100%; inline-size: var(--p); background: #1E874B; }

/* ---------- 11b. Inner pages: page hero, forms, partners, calculator ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-hero h1 { max-inline-size: 20ch; }
.page-hero p { margin-block-start: var(--s3); font-size: var(--fs-lead); color: var(--muted); max-inline-size: 40rem; }
.page-hero .actions { margin-block-start: var(--s4); }

/* Two-column page body */
.split { display: grid; gap: var(--s5); }
@media (min-width: 64em) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; } .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Forms */
.form { display: grid; gap: 1.125rem; padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 1.125rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 0.375rem; }
.fld label { font-size: var(--fs-small); font-weight: 600; }
.fld .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.fld textarea { min-block-size: 7rem; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid rgba(30, 107, 52, 0.35); outline-offset: 0; border-color: var(--green-deep); }
.fld input:user-invalid, .fld select:user-invalid { border-color: var(--red-text); }
.fld input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .fld input[type="email"], html[dir="rtl"] .fld input[type="tel"] { direction: ltr; text-align: end; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.form__note { font-size: var(--fs-xs); color: var(--muted); }
.status { font-size: var(--fs-small); font-weight: 600; }
.status:empty { display: none; }
.status[data-state] { padding: 0.75rem 1rem; border-radius: 10px; }
.status[data-state="sending"] { background: var(--surface); }
.status[data-state="ok"] { background: var(--green-tint); color: var(--ink); }
.status[data-state="error"] { background: var(--red-tint); color: var(--ink); }
form[data-state="sent"] .fld, form[data-state="sent"] .form__row, form[data-state="sent"] button[type="submit"] { opacity: 0.55; }
.noscript { padding: 0.75rem 1rem; border-radius: 10px; background: #FFF6CC; font-size: var(--fs-small); }

.aside-card { padding: clamp(1.25rem, 0.75rem + 2vw, 2rem); background: var(--surface); border-radius: var(--r-lg); }
.aside-card h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.steps-list { list-style: none; padding: 0; margin-block-start: var(--s3); display: grid; gap: var(--s3); counter-reset: n; }
.steps-list li { position: relative; padding-inline-start: 2.75rem; counter-increment: n; }
.steps-list li::before { content: counter(n); position: absolute; inset-inline-start: 0; inset-block-start: 0; display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: 50%; background: var(--green); font-weight: 600; font-size: var(--fs-small); }
.steps-list b { display: block; }
.steps-list span { color: var(--muted); font-size: var(--fs-small); }
.aside-card hr { border: 0; border-block-start: 1px solid var(--line-2); margin-block: var(--s4); }

/* Partners hero: the video is the hero */
.vhero { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--dark); color: #fff; --focus: var(--green); }
.vhero__head { max-inline-size: 52rem; margin: 0 auto var(--s3); text-align: center; }
.vhero__head .pill { margin-block-end: var(--s1); }
.vhero__head h1 { margin-inline: auto; max-inline-size: 26ch; font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); }
.vhero__head p { margin-block-start: var(--s1); color: var(--dark-muted); font-size: var(--fs-body); }
.vhero .pill { background: rgba(119, 221, 119, 0.12); color: var(--green); }
.vhero .pill::before { box-shadow: none; }
.vhero .ph { color: var(--ink); }
.vsl--hero { max-inline-size: min(62rem, calc((100vh - 21rem) * 16 / 9)); min-inline-size: min(100%, 36rem); margin-inline: auto; box-shadow: 0 0 0 1px #2E4536, 0 30px 80px -24px rgba(0, 0, 0, 0.7); }
.vsl--hero .vsl__poster { background: #12241A; }
.vhero__foot { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin-block-start: var(--s4); text-align: center; }
.vhero__foot .who { justify-content: center; margin: 0; }
.vhero__foot .actions { justify-content: center; }
.vhero .chip { background: transparent; color: #fff; border-color: #2E4536; }
.vhero .btn--light { background: transparent; color: #fff; border-color: #2E4536; box-shadow: none; }
.vhero .btn--light:hover { background: rgba(255, 255, 255, 0.06); }

/* VSL click-to-play facade */
.vsl { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); box-shadow: var(--shadow-lg); }
.vsl iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.vsl__poster { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s2); padding: var(--s3); inline-size: 100%; border: 0; background: var(--dark); color: #fff; font: inherit; text-align: center; cursor: pointer; text-decoration: none; }
.vsl__poster::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/vsl-poster.svg") center / cover no-repeat; opacity: 0.9; }
.vsl__play { position: relative; display: grid; place-items: center; inline-size: 4.5rem; block-size: 4.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 10px rgba(119, 221, 119, 0.2); transition: transform 0.2s ease; }
.vsl__play svg { inline-size: 1.5rem; block-size: 1.5rem; margin-inline-start: 4px; }
html[dir="rtl"] .vsl__play svg { margin-inline-start: 0; margin-inline-end: 4px; }
.vsl__poster:hover .vsl__play { transform: scale(1.06); }
.vsl__label { position: relative; font-weight: 600; font-size: var(--fs-lead); }
.vsl__meta { position: relative; font-size: var(--fs-xs); color: var(--dark-muted); }

/* Offer deck */
.offer { list-style: none; padding: 0; display: grid; gap: 0.75rem; counter-reset: o; }
.offer li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s2); align-items: start; padding: 1.25rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); counter-increment: o; }
.offer li::before { content: counter(o, decimal-leading-zero); display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: var(--r); background: var(--green-tint); color: var(--green-deep); font: 600 1rem/1 var(--font-mono); }
.offer h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.offer p { margin-block-start: 0.375rem; color: var(--muted); }
@media (min-width: 64em) { .offer { grid-template-columns: 1fr 1fr; } .offer li:first-child { grid-column: 1 / -1; } }

.who { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: var(--s3); }

/* Profit calculator */
.calc { display: grid; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
@media (min-width: 64em) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc__in { display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem); }
.calc__out { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem); background: var(--dark); color: #fff; }
.cur { display: flex; flex-wrap: wrap; gap: 0.375rem; border: 0; padding: 0; margin: 0; }
.cur legend { inline-size: 100%; margin-block-end: 0.5rem; font-size: var(--fs-small); font-weight: 600; padding: 0; }
.cur label { position: relative; }
.cur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cur span { display: inline-grid; place-items: center; min-inline-size: 3.25rem; min-block-size: 2.25rem; padding-inline: 0.625rem; border: 1px solid var(--line-2); border-radius: 999px; font: 600 0.8125rem/1 var(--font-mono); }
.cur input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cur input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.rng { display: grid; gap: 0.5rem; }
.rng__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rng__top label { font-size: var(--fs-small); font-weight: 600; }
.rng__top input { inline-size: 7.5rem; min-block-size: 2.5rem; padding: 0.375rem 0.625rem; border: 1px solid var(--line-2); border-radius: 10px; font: 600 1rem var(--font-mono); text-align: end; color: var(--ink); background: var(--bg); }
.rng__unit { font-size: var(--fs-xs); color: var(--muted); }
.rng input[type="range"] { inline-size: 100%; accent-color: var(--green-deep); }
.calc__label { color: var(--dark-muted); font-size: var(--fs-small); }
.calc__big { display: block; font: 600 clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem)/1.05 var(--font-mono); letter-spacing: -0.03em; color: var(--green); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__mid { display: block; font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1rem; border-block: 1px solid var(--dark-line); }
.calc__break { display: grid; gap: 0.375rem; font-size: var(--fs-small); color: var(--dark-muted); }
.calc__break div { display: flex; justify-content: space-between; gap: 1rem; }
.calc__break b { color: #fff; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__note { font-size: var(--fs-xs); color: var(--dark-muted); }

/* ---------- 12. Trust ---------- */
.trust__grid { display: grid; gap: var(--s5); }
@media (min-width: 64em) { .trust__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: center; } }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.num { padding: var(--s3); border: 1px solid var(--dark-line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.02); }
.numeral { display: block; font: 600 var(--fs-numeral)/0.95 var(--font-sans); letter-spacing: -0.045em; color: var(--green); font-variant-numeric: tabular-nums; }
.numeral__label { display: block; margin-block-start: var(--s1); color: var(--dark-muted); font-size: var(--fs-small); }
.trust__line { margin-block-start: var(--s4); font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); line-height: var(--lh-snug); letter-spacing: -0.015em; max-inline-size: 30ch; }
.trust__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.trust__list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.875rem; align-items: start; padding: 1rem; border: 1px solid var(--dark-line); border-radius: var(--r); }
.trust__list svg { inline-size: 2.5rem; block-size: 2.5rem; padding: 0.5rem; border-radius: 10px; background: rgba(119, 221, 119, 0.12); }
.trust__list b { display: block; font-weight: 600; }
.trust__list span { color: var(--dark-muted); font-size: var(--fs-small); }

/* ---------- 13. FAQ ---------- */
.faq__grid { display: grid; gap: var(--s4); }
@media (min-width: 64em) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); } .faq__grid .section__head { margin-block-end: 0; } }
.faq { display: grid; gap: 0.625rem; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow 0.15s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 1.125rem 1.25rem; font-weight: 600; font-size: 1.0625rem; line-height: var(--lh-snug); cursor: pointer; list-style: none; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; inline-size: 0.625rem; block-size: 0.625rem; border-inline-end: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq details > div p + p { margin-block-start: var(--s1); }

/* ---------- 14. Final CTA ---------- */
.cta__box { position: relative; overflow: hidden; display: grid; gap: var(--s4); padding: clamp(2rem, 1rem + 4vw, 4.5rem); background: var(--green); border-radius: 28px; }
@media (min-width: 64em) { .cta__box { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } .cta__box .actions { justify-content: flex-end; } }
.cta__box h2 { max-inline-size: 18ch; }
.cta__box p { margin-block-start: var(--s2); max-inline-size: 34rem; color: var(--ink-2); font-size: var(--fs-lead); }
.cta__box :focus-visible { outline-color: var(--ink); }

/* ---------- 15. Footer ---------- */
.site-footer { padding-block: var(--s6) var(--s4); background: var(--surface); border-block-start: 1px solid var(--line); font-size: var(--fs-small); }
.foot { display: grid; gap: var(--s4); }
@media (min-width: 48em) { .foot { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.foot__brand p { margin-block-start: var(--s2); color: var(--muted); max-inline-size: 30ch; }
.foot h2 { font-size: var(--fs-small); letter-spacing: 0; margin-block-end: var(--s2); }
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-block-start: var(--s5); padding-block-start: var(--s3); border-block-start: 1px solid var(--line); color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- 16. Consent banner ---------- */
.consent { position: fixed; z-index: 60; inset-inline: var(--margin); inset-block-end: var(--margin); max-inline-size: 30rem; padding: 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: var(--fs-small); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-block-end: 0.375rem; }
.consent p { color: var(--muted); }
.consent__acts { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-block-start: var(--s2); }
@media (max-width: 39.99em) { .consent { inset-block-end: 5rem; } }

/* ---------- 17. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------- Logo (rounded bold wordmark) ---------- */
.brand .logo { inline-size: auto; block-size: 1.625rem; color: var(--ink); }
.brand .logo--ar { block-size: 2.625rem; }
