/* Sysofina marketing site. No JavaScript, no third-party requests, no cookies.
   Design system: Awwwards UI (pale grey canvas, near-black raised panels, oversized bold Inter,
   quiet greys, strict 4px grid), with the Sysofina teal as the single accent.
   Brand colours kept for the logo and accents: navy #0b2545, teal #0d9488 / #2dd4bf, mint #a7e0d7.
   Latin: Inter (Manrope 800 for big headings; the Sysofina wordmark is an outlined SVG from brand/logo). Arabic: IBM Plex Sans Arabic.
   Every text colour below is paired with the surface it sits on; ratios are in test/website-site.test.js. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/manrope-latin-700.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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("fonts/manrope-latin-800.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/inter-latin-400.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/inter-latin-500.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/inter-latin-600.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/inter-latin-700.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: "Plex Arabic";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/plex-arabic-arabic-400.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: "Plex Arabic";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/plex-arabic-arabic-500.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: "Plex Arabic";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/plex-arabic-arabic-600.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: "Plex Arabic";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/plex-arabic-arabic-700.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;
}


/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --surface-base: #E4E4E4;
  --surface-raised: #2F2E30;
  --surface-overlay: #191919;
  --border-default: #3A3A3A;
  /* Text on surface-base */
  --text-strong: #1C1C1C;
  --text-primary: #3C3C3C;
  --text-secondary: #565656;
  --text-muted: #646464;
  /* Text on surface-raised / surface-overlay */
  --text-on-dark-strong: #ECEEE4;
  --text-on-dark: #B5B5B5;
  --text-on-dark-muted: #939393;
  /* The one accent: Sysofina teal. Text only on dark surfaces; on the light canvas it is a fill
     behind dark text, never a text colour. */
  --accent: #2dd4bf;
  --accent-deep: #0d9488;
  --accent-soft: #a7e0d7;
  --brand-navy: #0b2545;
  /* Shape and rhythm */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --gutter: 32px;
  --header-h: 64px;
  --font-sans: "Inter", "Plex Arabic", ui-sans-serif, system-ui, sans-serif;
  --font-ar: "Plex Arabic", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mark: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (max-width: 767px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(ar) { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font-sans); }
h1, h2, h3 { margin: 0; color: var(--text-strong); text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 700; color: var(--text-strong); }
small { font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--text-strong); color: var(--text-on-dark-strong); }

:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; border-radius: var(--radius-sm); }
.dark :focus-visible, .dark:focus-visible { outline-color: var(--text-on-dark-strong); }

.wrap { width: 100%; max-width: calc(1600px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 50; padding: 8px 16px; border-radius: var(--radius-md); background: var(--text-strong); color: var(--text-on-dark-strong); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Type styles (Awwwards scale) ---------- */
.display, .hero h1, .notfound .code, .page h1 {
  font-size: clamp(56px, 6.6vw, 127px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
:lang(ar) .display, :lang(ar).display, .hero h1:lang(ar), .page h1:lang(ar) {
  font-size: clamp(44px, 5.6vw, 104px);
  line-height: 1.2;
  letter-spacing: 0;
}
h2 { font-size: 28px; font-weight: 700; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--text-primary); }
.micro, .kicker, .eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-secondary);
}
:lang(ar) .micro, :lang(ar) .kicker, :lang(ar) .eyebrow, .kicker:lang(ar) { font-size: 14px; text-transform: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* Section label: a small teal square and an index, like a catalogue entry */
.kicker { display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--radius-xs); background: var(--accent-deep); }
.dark .kicker { color: var(--text-on-dark); }
.dark .kicker::before { background: var(--accent); }

/* ---------- Logo lockup: mark + Sysofina wordmark + tagline. Always left to right. ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; color: var(--text-strong); text-decoration: none; border-radius: var(--radius-sm); }
.brand > svg { width: 34px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
/* The wordmark: SYSOFINA in Cinzel capitals, outlined from brand/logo (ink follows the text colour) */
.brand-name { display: block; line-height: 0; color: var(--text-strong); }
.brand-name svg { display: block; height: 20px; width: auto; }
/* The tagline: the outlined capitals from brand/logo, set exactly as wide as the name. width 0 + min-width
   100% means it never widens the lockup and always fills it, so the two lines start and end together. */
.brand-tag { display: block; width: 0; min-width: 100%; line-height: 0; color: var(--text-secondary); }
.brand-tag svg { display: block; width: 100%; height: auto; }
@media (max-width: 479px) { .brand-tag { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: var(--surface-base);
  border-bottom: 1px solid var(--border-default);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; height: 40px; padding-inline: 12px;
  border-radius: var(--radius-md); color: var(--text-secondary); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 150ms ease-out;
}
.nav a:not(.btn):hover { background: rgba(28, 28, 28, 0.06); color: var(--text-strong); }
.nav .lang { color: var(--text-strong); border: 1px solid var(--border-default); margin-inline: 8px; }
.nav .lang:lang(ar) { font-family: var(--font-ar); }
.nav .lang:lang(en) { font-family: "Inter", sans-serif; }
@media (max-width: 1023px) { .hide-sm, .nav a.hide-sm { display: none; } }
@media (max-width: 479px) { .nav .lang { margin-inline: 0; padding-inline: 8px; } .nav { gap: 8px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 16px; border: 0; border-radius: var(--radius-md);
  background: var(--text-strong); color: var(--text-on-dark-strong);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, opacity 150ms ease-out;
}
.btn:hover { background: var(--text-primary); }
.btn-lg { height: 48px; padding-inline: 24px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--border-default); }
.btn-ghost:hover { background: rgba(28, 28, 28, 0.06); }
.btn-brand { background: var(--text-strong); }
.btn .arrow { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.dark .btn { background: var(--text-on-dark-strong); color: var(--surface-overlay); }
.dark .btn:hover { background: #FFFFFF; }
.dark .btn-ghost { background: transparent; color: var(--text-on-dark-strong); box-shadow: inset 0 0 0 1px var(--text-on-dark-muted); }
.dark .btn-ghost:hover { background: var(--border-default); }
@media (max-width: 479px) { .site-header .btn { padding-inline: 12px; } }

/* ---------- Sections ---------- */
main > section { padding-block: 96px; overflow-x: clip; }
@media (max-width: 767px) { main > section { padding-block: 64px; } }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.rule { border-top: 1px solid var(--border-default); }

/* Editorial split: a sticky label column and a content column, on a 12-column grid */
.split-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.split-12 > .section-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.split-12 > .section-body { grid-column: 6 / span 7; }
@media (max-width: 1023px) {
  .split-12 { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .split-12 > .section-head, .split-12 > .section-body { grid-column: 1; position: static; }
}

.section-head { display: grid; gap: 16px; max-width: 560px; }
.section-head p { color: var(--text-secondary); font-size: 16px; }
.section-head.wide { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 64px; }
.section-head.wide > .kicker { grid-column: 1 / -1; }
.section-head.wide > h2 { grid-column: 1 / span 6; }
.section-head.wide > p { grid-column: 8 / span 5; }
@media (max-width: 1023px) {
  .section-head.wide { grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin-bottom: 40px; }
  .section-head.wide > h2, .section-head.wide > p { grid-column: 1; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 64px 96px; }
@media (max-width: 767px) { .hero { padding-block: 40px 64px; } }
.hero .eyebrow { margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero .eyebrow span { display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow span::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-xs); background: var(--accent-deep); }
.hero h1 { max-width: 14ch; }
.hero h1:lang(ar) { max-width: 16ch; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; margin-top: 64px; align-items: end; }
.hero-copy { grid-column: 1 / span 5; display: grid; gap: 32px; }
.lede { font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--text-primary); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ledger-stage { grid-column: 7 / span 6; perspective: 1400px; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .hero-copy, .ledger-stage { grid-column: 1; }
}

/* Fact strip under the hero: four confirmed facts as a catalogue row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 96px; border-top: 1px solid var(--border-default); }
.facts li { display: grid; gap: 8px; padding: 20px 24px 0 0; }
.facts li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--border-default); }
.facts .micro { color: var(--text-muted); }
.facts strong { font-size: 18px; font-weight: 600; line-height: 1.3; }
@media (max-width: 1023px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; }
  .facts li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--border-default); margin-top: 20px; }
}
@media (max-width: 479px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding-inline: 0; border-inline-start: 0; }
  .facts li + li { border-top: 1px solid var(--border-default); margin-top: 20px; }
}

/* Hero illustration: a day-end panel, dark and raised */
.ledger { background: var(--surface-raised); color: var(--text-on-dark); border-radius: var(--radius-md); padding: 8px; }
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 20px; color: var(--text-on-dark); font-size: 12px; text-transform: uppercase; }
.ledger-head:lang(ar), :lang(ar) .ledger-head { font-size: 14px; text-transform: none; }
.ledger-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text-on-dark-strong); font-size: 14px; font-weight: 600; text-transform: none; }
.ledger-title::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }
.ledger-rows { display: grid; gap: 4px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-overlay); color: var(--text-on-dark-strong); font-size: 15px; font-weight: 500; }
.ledger-row small { display: block; margin-top: 4px; color: var(--text-on-dark-muted); font-size: 14px; font-weight: 400; }
.pill { flex: none; display: inline-flex; align-items: center; height: 24px; padding-inline: 12px; border-radius: 9999px; background: var(--accent-soft); color: var(--surface-overlay); font-size: 12px; font-weight: 600; }
.pill:lang(ar), :lang(ar) .pill { font-size: 14px; }
.ledger-foot { padding: 20px 16px 16px; color: var(--text-on-dark); font-size: 14px; }

/* ---------- Pains: a numbered list with hairlines ---------- */
.pains { counter-reset: pain; border-top: 1px solid var(--border-default); }
.pain { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding-block: 32px; border-bottom: 1px solid var(--border-default); }
.pain .num { font-size: 28px; font-weight: 700; line-height: 1; color: var(--text-strong); }
.pain p { display: grid; gap: 8px; color: var(--text-secondary); font-size: 16px; }
.pain strong { font-size: 18px; font-weight: 600; line-height: 1.3; }
@media (max-width: 479px) { .pain { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 24px; } }

/* ---------- Dark showcase panel (features, CTA) ---------- */
.dark { background: var(--surface-raised); color: var(--text-on-dark); border-radius: var(--radius-md); }
.dark h2, .dark h3, .dark strong { color: var(--text-on-dark-strong); }
.dark p { color: var(--text-on-dark); }
.showcase { padding: 64px 48px 48px; }
@media (max-width: 767px) { .showcase { padding: 40px 20px 20px; } }
.showcase .section-head p { color: var(--text-on-dark); }

/* Features: a 3-column grid of tiles on the dark panel */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.feature { display: grid; align-content: start; gap: 12px; padding: 32px; min-height: 260px; border-radius: var(--radius-sm); background: var(--surface-overlay); transition: background-color 150ms ease-out; }
.feature:hover { background: var(--border-default); }
.feature .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--accent); }
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { color: var(--text-on-dark); font-size: 15px; font-weight: 400; }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .features { grid-template-columns: minmax(0, 1fr); } .feature { min-height: 0; padding: 24px; } }

.addon-row { margin-top: 4px; }
.feature.addon { grid-template-columns: 40px minmax(0, 1fr); column-gap: 24px; min-height: 0; background: var(--surface-overlay); box-shadow: inset 0 0 0 1px var(--border-default); }
.feature.addon .icon { grid-row: span 2; margin-bottom: 0; background: var(--accent); color: var(--surface-overlay); }
.feature.addon h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; line-height: 1.15; }
.feature.addon p { max-width: 72ch; font-size: 16px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding-inline: 12px; border-radius: 9999px; background: var(--accent); color: var(--surface-overlay); font-size: 12px; font-weight: 600; line-height: 1; }
:lang(ar) .tag { font-size: 14px; }
@media (max-width: 639px) { .feature.addon { grid-template-columns: minmax(0, 1fr); } .feature.addon .icon { grid-row: auto; } .feature.addon h3 { font-size: 24px; } }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-col { padding: 32px; border-radius: var(--radius-md); }
.compare-col h3 { margin-bottom: 24px; font-size: 18px; font-weight: 600; }
.compare-col.us { background: var(--surface-raised); }
.compare-col.us h3 { color: var(--text-on-dark-strong); }
.compare-col.them { box-shadow: inset 0 0 0 1px var(--border-default); }
.compare-col.them h3 { color: var(--text-strong); }
.ticks { display: grid; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding-block: 16px; font-size: 16px; }
.ticks li + li { border-top: 1px solid var(--border-default); }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; }
.us .ticks li { color: var(--text-on-dark); }
.us .ticks svg { color: var(--accent); }
.them .ticks li { color: var(--text-secondary); }
.them .ticks svg { color: var(--text-muted); }
@media (max-width: 1023px) { .compare { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .compare-col { padding: 24px 20px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-default); }
.steps li::before {
  content: "0" counter(step);
  margin-bottom: 40px;
  font-size: clamp(56px, 6.6vw, 127px); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text-strong);
  font-family: "Inter", ui-sans-serif, sans-serif;
}
.steps h3 { font-size: 18px; font-weight: 600; color: var(--text-strong); }
.steps p { color: var(--text-secondary); font-size: 15px; font-weight: 400; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 479px) { .steps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } .steps li::before { margin-bottom: 16px; } }

/* ---------- Plans: each card opens its price panel (#price-<id>, shown with :target; no JavaScript) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.plan {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 32px;
  padding: 24px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-default);
  transition: background-color 150ms ease-out, translate 300ms var(--ease);
}
.plan:hover { background: rgba(28, 28, 28, 0.06); translate: 0 -4px; }
.plan-top { display: grid; gap: 8px; }
.plan h3 { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--text-strong); }
.plan .rooms { color: var(--text-secondary); font-size: 16px; font-variant-numeric: tabular-nums; }
.plan-list { display: grid; align-content: start; border-top: 1px solid var(--border-default); }
.plan-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--border-default); color: var(--text-primary); font-size: 15px; font-weight: 400; }
.plan-list li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: var(--radius-xs); background: var(--accent-deep); }
.plan-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 48px; padding-inline: 16px; border-radius: var(--radius-md);
  background: var(--text-strong); color: var(--text-on-dark-strong); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color 150ms ease-out;
}
.plan-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.plan:hover .plan-cta { background: var(--text-primary); }
.plan-cta .arrow { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.plan:hover .plan-cta .arrow { transform: translateX(4px); }
[dir="rtl"] .plan-cta .arrow { transform: scaleX(-1); }
[dir="rtl"] .plan:hover .plan-cta .arrow { transform: scaleX(-1) translateX(4px); }
.plan.featured { background: var(--surface-raised); box-shadow: none; }
.plan.featured:hover { background: var(--surface-raised); }
.plan.featured h3 { color: var(--text-on-dark-strong); }
.plan.featured .rooms { color: var(--text-on-dark); }
.plan.featured .plan-list { border-top-color: var(--border-default); }
.plan.featured .plan-list li { color: var(--text-on-dark); border-bottom-color: var(--border-default); }
.plan.featured .plan-list li::before { background: var(--accent); }
.plan.featured .plan-cta { background: var(--accent); color: var(--surface-overlay); }
.plan.featured:hover .plan-cta { background: var(--text-on-dark-strong); }
.plan.featured .plan-cta:focus-visible { outline-color: var(--text-on-dark-strong); }
.plans-note { margin-top: 24px; color: var(--text-secondary); font-size: 15px; font-weight: 400; max-width: 72ch; }
@media (max-width: 1023px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan { gap: 24px; } }

/* The chosen card is outlined; the restaurant rate is a quiet link under the cards. */
#plans:has(#price-boutique:target) .plan[data-pkg="boutique"],
#plans:has(#price-mid:target) .plan[data-pkg="mid"],
#plans:has(#price-large:target) .plan[data-pkg="large"],
#plans:has(#price-group:target) .plan[data-pkg="group"] { box-shadow: inset 0 0 0 2px var(--accent-deep); }
#plans:has(#price-mid:target) .plan[data-pkg="mid"] { box-shadow: inset 0 0 0 2px var(--accent); }
.plans-secondary { margin-top: 16px; }
.plans-secondary a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.plans-secondary .arrow { width: 16px; height: 16px; }
[dir="rtl"] .plans-secondary .arrow, [dir="rtl"] .pkg-book .arrow { transform: scaleX(-1); }

/* Price panels: hidden until their card is chosen. */
.pkg-details { margin-top: 32px; }
.pkg-empty { padding: 24px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-default); color: var(--text-secondary); font-size: 15px; }
#plans:has(.pkg-panel:target) .pkg-empty { display: none; }
.pkg-panel {
  display: none; gap: 24px; padding: 32px; border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--text-on-dark);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.pkg-panel:target { display: grid; }
.pkg-head { display: grid; gap: 8px; }
.pkg-head h3 { font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--text-on-dark-strong); }
.pkg-head p, .pkg-group { color: var(--text-on-dark); font-size: 15px; max-width: 72ch; }
.pkg-panel h4 { margin: 8px 0 0; font-size: 18px; font-weight: 600; color: var(--text-on-dark-strong); }

/* Stock Control and billing switches: radio buttons styled as a segmented control. */
.pkg-switches { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.pkg-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pkg-switch legend { float: inline-start; margin-inline-end: 12px; padding: 0; color: var(--text-on-dark-muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.pkg-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pkg-switch label {
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-default); color: var(--text-on-dark); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.pkg-switch label:hover { color: var(--text-on-dark-strong); }
.pkg-switch input:checked + label { background: var(--accent); color: var(--surface-overlay); box-shadow: none; }
.pkg-switch input:focus-visible + label { outline: 2px solid var(--text-on-dark-strong); outline-offset: 2px; }

/* The four price lines. */
.pkg-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; }
.pkg-prices > div { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: var(--radius-md); background: var(--surface-overlay); }
.pkg-prices dt { color: var(--text-on-dark-muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.pkg-prices dd { display: grid; gap: 6px; margin: 0; }
.pkg-prices b { color: var(--text-on-dark-strong); font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pkg-prices .per { color: var(--text-on-dark); font-size: 14px; }
.pkg-prices small { color: var(--text-on-dark); font-size: 13px; line-height: 1.5; }
.pkg-prices dd > b + .per { margin-top: -6px; }

/* Add-ons. */
.pkg-extras { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-default); }
.pkg-extras li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--border-default); color: var(--text-on-dark); font-size: 15px; }
.pkg-extras strong { flex: none; color: var(--text-on-dark-strong); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-extras small { color: var(--text-on-dark); font-weight: 400; font-size: 13px; }
.pkg-book { justify-self: start; background: var(--accent); color: var(--surface-overlay); }
.pkg-book:hover { background: var(--text-on-dark-strong); }
.pkg-book:focus-visible { outline-color: var(--text-on-dark-strong); }

/* Which price shows: Core or Core + Stock Control, billed yearly or monthly. */
.pv { display: none; }
.pkg-panel:has(.mc-no:checked):has(.bill-year:checked) .pv-cy,
.pkg-panel:has(.mc-no:checked):has(.bill-month:checked) .pv-cm,
.pkg-panel:has(.mc-yes:checked):has(.bill-year:checked) .pv-my,
.pkg-panel:has(.mc-yes:checked):has(.bill-month:checked) .pv-mm,
.pkg-panel:has(.mc-no:checked) .pv-c,
.pkg-panel:has(.mc-yes:checked) .pv-m,
.pkg-panel:has(.bill-year:checked) .pv-y,
.pkg-panel:has(.bill-month:checked) .pv-mo { display: inline; }
/* A browser without :has() sees every panel and every price, labelled, rather than none. */
@supports not selector(:has(*)) {
  .pkg-panel { display: grid; margin-bottom: 4px; }
  .pkg-empty, .pkg-switches { display: none; }
  .pv { display: block; }
}
@media (max-width: 1023px) { .pkg-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .pkg-panel { padding: 20px; }
  .pkg-prices { grid-template-columns: minmax(0, 1fr); }
  .pkg-extras li { flex-direction: column; gap: 4px; }
}

/* ---------- Statement: who builds Sysofina ---------- */
.statement .display { max-width: 18ch; }
.statement .display:lang(ar) { max-width: 20ch; }
.statement-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border-default); }
.statement-foot p { grid-column: 7 / span 6; color: var(--text-primary); font-size: 18px; max-width: 56ch; }
.statement-foot .micro { grid-column: 1 / span 4; color: var(--text-muted); }
@media (max-width: 1023px) {
  .statement-foot { grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin-top: 40px; }
  .statement-foot p, .statement-foot .micro { grid-column: 1; }
}

/* ---------- Advisers (generated from website/advisers.json; only advisers who signed the consent form) ---------- */
#advisers .section-head { margin-bottom: 48px; }
.advisers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.adviser { display: grid; align-content: start; gap: 8px; padding: 32px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-on-dark); }
.adviser img, .adviser-initials { display: block; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 9999px; object-fit: cover; }
.adviser-initials { display: grid; place-items: center; background: var(--accent-soft); color: var(--surface-overlay); font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; }
.adviser h3 { font-size: 18px; font-weight: 600; color: var(--text-on-dark-strong); }
.adviser .adviser-role { color: var(--accent); font-size: 15px; font-weight: 500; }
.adviser p { color: var(--text-on-dark); font-size: 15px; font-weight: 400; }
.adviser a { justify-self: start; margin-top: 8px; color: var(--text-on-dark-strong); font-size: 15px; font-weight: 600; }
.adviser a:focus-visible { outline-color: var(--text-on-dark-strong); }
@media (max-width: 1023px) { .advisers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .advisers { grid-template-columns: minmax(0, 1fr); } .adviser { padding: 24px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-default); }
.faq details { border-bottom: 1px solid var(--border-default); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding-block: 20px; cursor: pointer; list-style: none;
  color: var(--text-strong); font-size: 18px; font-weight: 600; line-height: 1.3;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-default);
  background:
    linear-gradient(var(--text-strong), var(--text-strong)) center / 12px 2px no-repeat,
    linear-gradient(var(--text-strong), var(--text-strong)) center / 2px 12px no-repeat;
  transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { background-color: rgba(28, 28, 28, 0.06); }
.faq details p { padding-bottom: 24px; padding-inline-end: 64px; color: var(--text-secondary); font-size: 16px; max-width: 72ch; }
@media (max-width: 479px) { .faq details p { padding-inline-end: 0; } }

/* ---------- Closing call to action ---------- */
.cta-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: 96px 48px 48px; background: var(--surface-overlay); }
.cta-band .kicker { grid-column: 1 / -1; }
.cta-band h2.display { grid-column: 1 / span 9; color: var(--text-on-dark-strong); }
.cta-copy { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: end; }
.cta-copy p { color: var(--text-on-dark); font-size: 18px; max-width: 48ch; }
.cta-actions { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; align-self: end; }
.cta-actions small { flex-basis: 100%; text-align: end; color: var(--text-on-dark-muted); font-size: 14px; }
@media (max-width: 1023px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 64px 32px 32px; row-gap: 32px; }
  .cta-band h2.display, .cta-copy, .cta-actions { grid-column: 1; }
  .cta-actions { justify-content: flex-start; }
  .cta-actions small { text-align: start; }
}
@media (max-width: 479px) { .cta-band { padding: 48px 20px 24px; } .cta-actions .btn { width: 100%; } }

/* ---------- Footer, with the oversized wordmark ---------- */
.site-footer { padding-block: 48px calc(24px + env(safe-area-inset-bottom)); overflow: clip; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--border-default); color: var(--text-secondary); font-size: 14px; font-weight: 400; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a { display: inline-flex; align-items: center; height: 40px; padding-inline: 12px; border-radius: var(--radius-md); color: var(--text-strong); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 150ms ease-out; }
.site-footer nav a:hover { background: rgba(28, 28, 28, 0.06); }
.wordmark {
  display: block; direction: ltr; margin-top: 48px;
  line-height: 0; color: var(--text-strong); user-select: none;
}
.wordmark svg { display: block; width: 100%; height: auto; }
[dir="rtl"] .wordmark { text-align: right; }

/* ---------- Plain pages (privacy, 404) ---------- */
.page { padding-block: 64px 96px; }
.page .wrap > * { max-width: 720px; }
.page .wrap > h1 { max-width: none; margin-bottom: 24px; }
.page .updated { margin-bottom: 64px; color: var(--text-muted); font-size: 14px; }
.page h2 { margin-top: 48px; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--border-default); }
.page p { margin-bottom: 16px; color: var(--text-primary); font-size: 16px; }
.page p a { color: var(--text-strong); font-weight: 600; }

.notfound { padding-block: 64px 96px; }
.notfound .code { font-size: clamp(120px, 24vw, 360px); line-height: 0.8; font-variant-numeric: tabular-nums; margin-bottom: 64px; }
.notfound .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--border-default); }
.notfound .split > div { display: grid; gap: 16px; align-content: start; justify-items: start; padding-top: 24px; }
.notfound h1, .notfound h2 { font-size: 28px; }
.notfound p { color: var(--text-secondary); }
@media (max-width: 767px) { .notfound .split { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* ---------- App access (home page) ---------- */
.nav .btn-login { margin-inline-end: 8px; }
.nav .btn-staff { margin-inline-end: 8px; }
@media (max-width: 559px) { .hide-xs, .nav a.hide-xs { display: none; } .nav .btn-login { margin-inline-end: 0; } }
.hero-login { margin-top: 16px; color: var(--text-secondary); font-size: 15px; }
.hero-login a { color: var(--text-strong); font-weight: 600; }
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
.access-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 32px; border-radius: var(--radius-sm); background: var(--surface-overlay); color: var(--text-on-dark); }
.access-card .micro { color: var(--text-on-dark); }
.access-card h3 { color: var(--text-on-dark-strong); font-size: 22px; font-weight: 600; }
.access-card p { color: var(--text-on-dark); }
.access-card .card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 1023px) { .access { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .access-card { padding: 24px; } }

/* ---------- Guides (help centre) ---------- */
.guide { padding-block: 48px 96px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--text-muted); font-size: 14px; }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text-strong); text-decoration: underline; }
.guide-head { display: grid; gap: 16px; justify-items: start; max-width: 960px; padding-bottom: 48px; border-bottom: 1px solid var(--border-default); }
.guide-head h1 { font-size: clamp(44px, 5.6vw, 96px); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; color: var(--text-strong); }
.guide-head h1:lang(ar) { letter-spacing: 0; line-height: 1.15; }
.guide-lede { max-width: 720px; color: var(--text-primary); font-size: 20px; line-height: 1.5; }
.guide .updated { color: var(--text-muted); font-size: 14px; }
.guide-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn .dl { width: 16px; height: 16px; flex: none; }
.guide-grid { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 64px; padding-top: 48px; }
.guide-aside { position: relative; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.toc h2 { margin: 0; color: var(--text-muted); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: rgba(28, 28, 28, 0.06); color: var(--text-strong); }
@media (max-width: 1023px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .toc { position: static; padding: 16px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
}

/* Long-form text */
.doc { color: var(--text-primary); font-size: 17px; line-height: 1.65; }
.doc:lang(ar) { font-size: 18px; line-height: 1.85; }
.doc > * + * { margin-top: 16px; }
.doc h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-default); font-size: 28px; line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc > h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 32px; color: var(--text-strong); font-size: 20px; font-weight: 600; }
.doc ul, .doc ol { display: grid; gap: 8px; padding-inline-start: 24px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--accent-deep); font-weight: 600; }
.doc a { color: var(--text-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text-strong); font-weight: 600; }
.doc code { padding: 1px 6px; border-radius: var(--radius-xs); background: rgba(28, 28, 28, 0.08); font-size: 0.9em; }
.doc .note { padding: 16px 20px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--surface-overlay); }
.doc .note p, .doc .note strong, .doc .note a { color: var(--surface-overlay); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(58, 58, 58, 0.25); }
.doc th { background: var(--text-strong); color: var(--text-on-dark-strong); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) { .doc { font-size: 16px; } .doc th, .doc td { padding: 10px 12px; } .doc h2 { font-size: 24px; } }

/* Previous / next and the sign-in band */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 64px; }
.pager-link { display: grid; gap: 4px; padding: 20px 24px; border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-strong); font-size: 18px; font-weight: 600; text-decoration: none; }
.pager-link .micro { color: var(--text-muted); }
.pager-link.next { text-align: end; }
.pager-link:hover { background: rgba(28, 28, 28, 0.06); }
.guide-access { margin-top: 64px; }
.access-band { display: grid; gap: 16px; justify-items: start; padding: 48px; }
.access-band h2 { color: var(--text-on-dark-strong); font-size: clamp(28px, 3vw, 44px); }
.access-band p { max-width: 640px; color: var(--text-on-dark); }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 767px) { .access-band { padding: 32px 20px; } .pager { grid-template-columns: minmax(0, 1fr); } }

/* The guides hub */
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
.guide-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 32px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-on-dark); }
.guide-card .num { color: var(--accent); font-size: 14px; font-weight: 600; }
.guide-card h2 { font-size: 28px; }
.guide-card h2 a { color: var(--text-on-dark-strong); text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; }
.guide-card p { color: var(--text-on-dark); }
.card-toc { display: grid; align-content: start; gap: 6px; padding-top: 16px; border-top: 1px solid var(--border-default); color: var(--text-on-dark); font-size: 14px; list-style: decimal; padding-inline-start: 20px; }
.guide-card .card-actions { margin-top: 8px; }
.complete-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding: 32px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.complete-row h2 { font-size: 24px; }
.complete-row p { color: var(--text-secondary); }
@media (max-width: 1023px) { .guide-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .guide-card, .complete-row { padding: 24px; } }

/* ---------- Print: the PDFs and anyone printing a guide ---------- */
@page { size: A4; margin: 16mm 16mm 18mm; }
@media print {
  html, body { background: #FFFFFF; }
  .site-header, .site-footer, .skip, .crumbs, .guide-aside, .guide-actions, .pager, .guide-access, .card-actions, .complete-row .btn { display: none; }
  .guide { padding: 0; }
  .guide-grid { display: block; padding-top: 24px; }
  .guide-head { padding-bottom: 24px; }
  .doc { font-size: 11pt; line-height: 1.55; }
  .doc:lang(ar) { font-size: 12pt; line-height: 1.75; }
  .doc h2 { margin-top: 28px; font-size: 18pt; break-after: avoid; page-break-after: avoid; }
  .doc h3 { font-size: 13pt; break-after: avoid; page-break-after: avoid; }
  .doc tr, .doc .note, .doc li { break-inside: avoid; page-break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .doc a { text-decoration: none; }
}
.print-doc { background: #FFFFFF; }
.print-cover { display: grid; grid-template-rows: auto 1fr auto auto; gap: 32px; min-height: 255mm; padding: 8mm 0; break-after: page; page-break-after: always; }
.print-brand { justify-self: start; pointer-events: none; }
.print-cover-main { display: grid; align-content: center; gap: 16px; }
.print-cover h1 { font-size: 56pt; font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; color: var(--text-strong); }
.print-cover h1:lang(ar) { letter-spacing: 0; line-height: 1.2; }
.print-cover .guide-lede { font-size: 15pt; }
.print-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 2px solid var(--text-strong); margin: 0; }
.print-meta dt { color: var(--text-muted); font-size: 9pt; text-transform: uppercase; letter-spacing: 0.08em; }
.print-meta dt:lang(ar) { text-transform: none; letter-spacing: 0; }
.print-meta dd { margin: 4px 0 0; color: var(--text-strong); font-size: 11pt; font-weight: 600; }
.print-note { color: var(--text-secondary); font-size: 9pt; }
.print-toc { break-after: page; page-break-after: always; }
.print-toc h2 { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--text-strong); font-size: 24pt; }
.print-toc ol { display: grid; gap: 6px; padding-inline-start: 24px; list-style: decimal; font-size: 11pt; }
.print-toc ol ol { margin: 6px 0 10px; color: var(--text-secondary); font-size: 10pt; }
.print-toc a { color: var(--text-strong); text-decoration: none; }
.print-guide + .print-guide { break-before: page; page-break-before: always; }
.print-guide-title { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--text-strong); font-size: 30pt; font-weight: 700; color: var(--text-strong); }

/* ---------- Disabled (for completeness: the site has no forms) ---------- */
[aria-disabled="true"], :disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Moving facts band under the hero ---------- */
.marquee { margin-top: 64px; overflow: clip; border-block: 1px solid var(--border-default); background: var(--text-strong); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; }
.marquee-group li { display: flex; align-items: center; gap: 24px; padding: 20px 24px 20px 0; color: var(--text-on-dark-strong); font-size: 18px; font-weight: 600; white-space: nowrap; }
.marquee-group li::after { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }
[dir="rtl"] .marquee-group li { padding: 20px 0 20px 24px; }
@media (max-width: 767px) { .marquee { margin-top: 48px; } .marquee-group li { font-size: 16px; padding-block: 16px; } }

/* ==========================================================================
   MOTION SYSTEM
   CSS only: the CSP allows no scripts, so every effect below is a keyframe, a transition,
   a scroll-driven timeline (animation-timeline) or a cross-document view transition.
   Rules of the system:
   1. The page is complete without motion. Every element's resting style is its final state;
      animations only describe where it comes from ("from" keyframes), so a browser without
      support, or a visitor with reduced motion, sees the finished page.
   2. Animate transform and opacity (plus one small @property counter and one ring angle).
      Hover effects use the individual translate / rotate / scale properties, so they add to
      scroll animations on `transform` instead of fighting them.
   3. Scroll-driven effects sit inside @supports (animation-timeline: view()): Chrome, Edge and
      Safari 26+. Firefox gets the time-based entrance and hover motion only.
   4. Clipping uses overflow: clip, never "hidden": a hidden overflow turns a box into a scroll
      container, and view() timelines inside it would then track that box instead of the page.
   5. Everything is inside prefers-reduced-motion: no-preference, and the reduce block switches
      the rest off.
   ========================================================================== */

/* Resting styles for the motion hooks (visible and final with or without motion) */
.kinetic > span { display: block; }
.kinetic .w { display: inline-block; overflow: clip; padding-block: 0.06em 0.14em; margin-block: -0.06em -0.14em; }
.kinetic .w > span { display: inline-block; }
.lit > span { display: block; }

.hero { position: relative; isolation: isolate; overflow-x: clip; }
/* A soft teal light behind the day-end panel (decorative; it never sits behind small grey text) */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block-start: -12%; inset-inline-end: -16%;
  width: min(72vw, 1100px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.18), rgba(45, 212, 191, 0.06) 55%, rgba(45, 212, 191, 0));
}
@media (max-width: 1023px) { .hero::before { inset-block-start: 28%; width: 120vw; } }

/* Day-end progress: a bar and a "4 / 4" counter (an @property integer, so it can count up) */
@property --posted { syntax: "<integer>"; inherits: false; initial-value: 4; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ledger-progress { display: flex; align-items: center; gap: 12px; padding: 20px 16px 0; }
.ledger-bar { position: relative; flex: 1; height: 4px; overflow: clip; border-radius: 9999px; background: var(--surface-overlay); }
.ledger-bar::after { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: var(--accent); transform-origin: left center; }
[dir="rtl"] .ledger-bar::after { transform-origin: right center; }
.ledger-count { counter-reset: posted var(--posted); direction: ltr; min-width: 5ch; text-align: end; color: var(--text-on-dark-strong); font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-count::before { content: counter(posted) " / 4"; }
.ledger-row { position: relative; overflow: clip; }

.pin-rail { display: none; }
.pain { position: relative; }
.cta-band { position: relative; isolation: isolate; overflow: clip; }
/* A slow teal light in the closing panel's top corner, kept away from the small grey line */
.cta-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block-start: -45%; inset-inline-start: -15%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0));
}

/* Featured plan: a ring that a light runs around (a masked conic gradient on an @property angle) */
.plan.featured { isolation: isolate; }
.plan.featured::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius-md); pointer-events: none;
  background: conic-gradient(from var(--spin), rgba(45, 212, 191, 0) 0deg, rgba(45, 212, 191, 0) 250deg, var(--accent) 320deg, rgba(45, 212, 191, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes word-rise { from { transform: translateY(112%) rotate(4deg); } }
@keyframes word-rise-rtl { from { transform: translateY(112%) rotate(-4deg); } }
@keyframes tilt-in { from { opacity: 0; transform: rotateX(22deg) translateY(56px) scale(0.94); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px); } }
@keyframes slide-in-rtl { from { opacity: 0; transform: translateX(24px); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes count { from { --posted: 0; } }
@keyframes sheen { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes sheen-rtl { 0%, 70% { transform: translateX(110%); } 100% { transform: translateX(-110%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }
@keyframes spin { to { --spin: 360deg; } }
@keyframes glow-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.08); } 100% { transform: translate(3%, -3%) scale(0.96); } }
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } }
@keyframes reveal-start { from { opacity: 0; transform: translateX(-48px); } }
@keyframes reveal-end { from { opacity: 0; transform: translateX(48px); } }
@keyframes reveal-scale { from { opacity: 0.35; transform: scale(0.92); } }
@keyframes square-in { from { transform: rotate(-135deg) scale(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes line-in { from { transform: scaleX(0); } }
@keyframes lit { from { opacity: 0.16; } }
@keyframes letter-up { from { transform: translateY(70%); } }
@keyframes hero-out { to { opacity: 0.25; transform: translateY(-18%); } }
@keyframes drift-up { to { transform: translateY(-72px); } }
@keyframes progress { from { transform: scaleX(0); } }
@keyframes pin-x { to { transform: translateX(calc(-100% + var(--pin-w))); } }
@keyframes pin-x-rtl { to { transform: translateX(calc(100% - var(--pin-w))); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

@media (prefers-reduced-motion: no-preference) {
  /* ---------- Page changes (English and Arabic, privacy): a cross-document view transition ---------- */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 280ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 520ms var(--ease) 80ms both; }

  /* ---------- Hero entrance ---------- */
  .hero .eyebrow { animation: fade 700ms var(--ease) both; }
  .hero .eyebrow span::before { animation: pop 500ms var(--ease) 200ms both; }
  .hero .kinetic .w > span { animation: word-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  [dir="rtl"] .hero .kinetic .w > span { animation-name: word-rise-rtl; }
  .kinetic .w:nth-child(1) > span { animation-delay: 100ms; }
  .kinetic .w:nth-child(2) > span { animation-delay: 170ms; }
  .kinetic .w:nth-child(3) > span { animation-delay: 240ms; }
  .kinetic .w:nth-child(4) > span { animation-delay: 310ms; }
  .kinetic .w:nth-child(5) > span { animation-delay: 380ms; }
  .kinetic .w:nth-child(6) > span { animation-delay: 450ms; }
  .kinetic .w:nth-child(7) > span { animation-delay: 520ms; }
  .kinetic .w:nth-child(8) > span { animation-delay: 590ms; }
  .kinetic .w:nth-child(9) > span { animation-delay: 660ms; }
  .kinetic .w:nth-child(n + 10) > span { animation-delay: 730ms; }
  .hero .lede { animation: rise 800ms var(--ease) 560ms both; }
  .hero .hero-cta { animation: rise 800ms var(--ease) 660ms both; }
  .hero::before { animation: glow-drift 18s ease-in-out infinite alternate; }

  /* The day-end panel tilts up into place, posts its rows one by one and counts to 4 */
  .hero .ledger { transform-origin: 50% 100%; animation: tilt-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both; }
  .ledger-row { animation: slide-in 600ms var(--ease) both; }
  [dir="rtl"] .ledger-row { animation-name: slide-in-rtl; }
  .ledger-row:nth-child(1) { animation-delay: 820ms; }
  .ledger-row:nth-child(2) { animation-delay: 940ms; }
  .ledger-row:nth-child(3) { animation-delay: 1060ms; }
  .ledger-row:nth-child(4) { animation-delay: 1180ms; }
  .ledger-row .pill { animation: pop 450ms var(--ease) both; }
  .ledger-row:nth-child(1) .pill { animation-delay: 1200ms; }
  .ledger-row:nth-child(2) .pill { animation-delay: 1400ms; }
  .ledger-row:nth-child(3) .pill { animation-delay: 1600ms; }
  .ledger-row:nth-child(4) .pill { animation-delay: 1800ms; }
  .ledger-bar::after { animation: fill 1000ms cubic-bezier(0.65, 0, 0.35, 1) 1100ms both; }
  .ledger-count { animation: count 1000ms cubic-bezier(0.65, 0, 0.35, 1) 1100ms both; }
  /* A light sweeps across each row every few seconds once the day is closed */
  .ledger-row::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(236, 238, 228, 0) 30%, rgba(236, 238, 228, 0.06) 50%, rgba(236, 238, 228, 0) 70%);
    transform: translateX(-110%);
    animation: sheen 6s ease-in-out 2.6s infinite;
  }
  [dir="rtl"] .ledger-row::after { animation-name: sheen-rtl; }
  .ledger-row:nth-child(2)::after { animation-delay: 2.75s; }
  .ledger-row:nth-child(3)::after { animation-delay: 2.9s; }
  .ledger-row:nth-child(4)::after { animation-delay: 3.05s; }
  .ledger-title::before { animation: pulse 2s ease-in-out 2.2s infinite; }
  .facts li { animation: rise 700ms var(--ease) both; }
  .facts li:nth-child(1) { animation-delay: 800ms; }
  .facts li:nth-child(2) { animation-delay: 880ms; }
  .facts li:nth-child(3) { animation-delay: 960ms; }
  .facts li:nth-child(4) { animation-delay: 1040ms; }

  /* The facts band keeps moving; hovering it pauses it */
  .marquee-track { animation: marquee 40s linear infinite; }
  [dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* ---------- Micro-interactions ---------- */
  /* Buttons: a fill sweeps in from the reading side, the arrow nudges forward */
  .btn { position: relative; isolation: isolate; overflow: clip; }
  .btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--text-primary); transform: scaleX(0); transform-origin: right center;
    transition: transform 450ms cubic-bezier(0.65, 0, 0.35, 1);
  }
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  [dir="rtl"] .btn::before { transform-origin: left center; }
  [dir="rtl"] .btn:hover::before { transform-origin: right center; }
  .btn:hover { background: var(--text-strong); }
  .btn-ghost::before { background: rgba(28, 28, 28, 0.08); }
  .btn-ghost:hover { background: transparent; }
  .dark .btn::before { background: #FFFFFF; }
  .dark .btn:hover { background: var(--text-on-dark-strong); }
  .dark .btn-ghost::before { background: var(--border-default); }
  .dark .btn-ghost:hover { background: transparent; }
  .btn:active, .plan-cta:active { scale: 0.97; }
  .btn, .plan-cta { transition: background-color 150ms ease-out, scale 150ms ease-out; }

  /* Nav links: an underline draws in */
  .nav a.hide-sm { position: relative; }
  .nav a.hide-sm::after {
    content: ""; position: absolute; inset-inline: 12px; bottom: 8px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right center; transition: transform 300ms var(--ease);
  }
  .nav a.hide-sm:hover::after { transform: scaleX(1); transform-origin: left center; }
  [dir="rtl"] .nav a.hide-sm::after { transform-origin: left center; }
  [dir="rtl"] .nav a.hide-sm:hover::after { transform-origin: right center; }
  .nav .lang { transition: background-color 150ms ease-out, translate 300ms var(--ease); }
  .nav .lang:hover { translate: 0 -2px; }

  /* Tiles and cards lift; icons turn; a teal line runs along the tile's top edge */
  .feature, .adviser, .compare-col { transition: background-color 150ms ease-out, translate 300ms var(--ease); }
  .feature:hover, .adviser:hover { translate: 0 -4px; }
  .feature { position: relative; overflow: clip; }
  .feature::after {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ease);
  }
  [dir="rtl"] .feature::after { transform-origin: right center; }
  .feature:hover::after { transform: scaleX(1); }
  .feature .icon { transition: rotate 300ms var(--ease), scale 300ms var(--ease); }
  .feature:hover .icon { rotate: -8deg; scale: 1.08; }
  .plan-list li { transition: translate 300ms var(--ease); }
  .plan:hover .plan-list li { translate: 4px 0; }
  [dir="rtl"] .plan:hover .plan-list li { translate: -4px 0; }
  .plan:hover .plan-list li:nth-child(2) { transition-delay: 40ms; }
  .plan:hover .plan-list li:nth-child(3) { transition-delay: 80ms; }
  .plan:hover .plan-list li:nth-child(4) { transition-delay: 120ms; }
  .plan.featured::before { animation: spin 6s linear infinite; }
  .faq summary { transition: color 150ms ease-out; }
  .faq summary::after { transition: transform 300ms var(--ease), background-color 150ms ease-out; }
  .faq summary:hover::after { transform: rotate(90deg); }
  .faq details[open] summary:hover::after { transform: rotate(135deg); }
  .cta-band::before { animation: glow-drift 22s ease-in-out infinite alternate; }
  .site-footer nav a, .wordmark svg { transition: translate 400ms var(--ease); }
  .wordmark:hover svg { translate: 0 -4%; }
}

/* ---------- FAQ answers open and close smoothly (Chrome 131+; others open instantly) ---------- */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size 450ms var(--ease), content-visibility 450ms allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Scroll-driven motion (Chrome, Edge, Safari 26+) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Reading progress: a teal line under the header fills as the page scrolls */
    .site-header::after {
      content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--accent-deep);
      transform-origin: left center; animation: progress linear both; animation-timeline: scroll(root block);
    }
    [dir="rtl"] .site-header::after { transform-origin: right center; }

    /* The hero headline lifts away and the panel drifts up as the hero scrolls out */
    .hero h1 { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .ledger-stage { animation: drift-up linear both; animation-timeline: view(); animation-range: cover 50% cover 100%; }

    /* Section headings and blocks rise in as they enter */
    main > section:not(.hero) .section-head,
    .addon-row, .steps li, .statement-foot, .advisers, .faq details,
    .cta-band .kicker, .cta-copy, .cta-actions, .plans-note {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0px entry 240px;
    }
    .kicker::before { animation: square-in linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }

    /* Pain points slide in from the reading side, and a darker hairline draws under each */
    .pain { animation: reveal-start linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    [dir="rtl"] .pain { animation-name: reveal-end; }
    .pain::after {
      content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--text-strong);
      transform-origin: left center; animation: line-in linear both; animation-timeline: view(); animation-range: entry 60% cover 45%;
    }
    [dir="rtl"] .pain::after { transform-origin: right center; }

    /* The dark showcase opens out from the page, then its tiles cascade in */
    .showcase { animation: reveal-scale linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .feature:not(.addon) { animation: reveal linear both; animation-timeline: view(); }
    .features .feature:nth-child(3n + 1) { animation-range: entry 0% entry 80%; }
    .features .feature:nth-child(3n + 2) { animation-range: entry 12% entry 92%; }
    .features .feature:nth-child(3n) { animation-range: entry 24% entry 100%; }

    /* Switching: the two columns arrive from opposite sides; Sysofina's ticks draw themselves */
    .compare-col.us { animation: reveal-start linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .compare-col.them { animation: reveal-end linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
    [dir="rtl"] .compare-col.us { animation-name: reveal-end; }
    [dir="rtl"] .compare-col.them { animation-name: reveal-start; }
    .ticks li { view-timeline: --tick block; }
    .us .ticks path { stroke-dasharray: 1; animation: draw linear both; animation-timeline: --tick; animation-range: entry 40% cover 40%; }

    /* Plans rise one after another */
    .plan { animation: reveal linear both; animation-timeline: view(); }
    .plan:nth-child(1) { animation-range: entry 0% entry 60%; }
    .plan:nth-child(2) { animation-range: entry 10% entry 70%; }
    .plan:nth-child(3) { animation-range: entry 20% entry 80%; }
    .plan:nth-child(4) { animation-range: entry 30% entry 90%; }

    /* The company statement lights up word by word as it is read */
    .lit { view-timeline: --lit block; }
    .lit .sw { animation: lit linear both; animation-timeline: --lit; }
    .lit .sw:nth-child(1) { animation-range: cover 8% cover 16%; }
    .lit .sw:nth-child(2) { animation-range: cover 11% cover 19%; }
    .lit .sw:nth-child(3) { animation-range: cover 14% cover 22%; }
    .lit .sw:nth-child(4) { animation-range: cover 17% cover 25%; }
    .lit .sw:nth-child(5) { animation-range: cover 20% cover 28%; }
    .lit .sw:nth-child(6) { animation-range: cover 23% cover 31%; }
    .lit .sw:nth-child(7) { animation-range: cover 26% cover 34%; }
    .lit .sw:nth-child(8) { animation-range: cover 29% cover 37%; }
    .lit .sw:nth-child(9) { animation-range: cover 32% cover 40%; }
    .lit .sw:nth-child(10) { animation-range: cover 35% cover 43%; }
    .lit .sw:nth-child(n + 11) { animation-range: cover 38% cover 46%; }

    /* The closing headline's words rise in as the panel arrives */
    .cta-band { view-timeline: --cta block; }
    .cta-band .kinetic .w > span { animation: word-rise linear both; animation-timeline: --cta; }
    [dir="rtl"] .cta-band .kinetic .w > span { animation-name: word-rise-rtl; }
    .cta-band .kinetic .w:nth-child(1) > span { animation-range: entry 10% entry 55%; }
    .cta-band .kinetic .w:nth-child(2) > span { animation-range: entry 16% entry 61%; }
    .cta-band .kinetic .w:nth-child(3) > span { animation-range: entry 22% entry 67%; }
    .cta-band .kinetic .w:nth-child(4) > span { animation-range: entry 28% entry 73%; }
    .cta-band .kinetic .w:nth-child(5) > span { animation-range: entry 34% entry 79%; }
    .cta-band .kinetic .w:nth-child(n + 6) > span { animation-range: entry 40% entry 85%; }

    /* The footer wordmark rises out of the page edge as it scrolls in */
    .wordmark { view-timeline: --mark block; overflow: clip; }
    .wordmark svg { animation: letter-up linear both; animation-timeline: --mark; animation-range: entry 0% entry 70%; }
  }

  /* Getting started, on wide screens: the section pins and the four steps scroll sideways */
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (min-height: 600px) {
    .pin { --pin-w: calc(min(100vw, 1600px + 2 * var(--gutter)) - 2 * var(--gutter)); height: 340dvh; padding-block: 0; view-timeline: --pin block; }
    .pin-stage { position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); display: flex; align-items: center; overflow: clip; }
    .pin .section-head.wide { margin-bottom: 48px; }
    .pin .steps {
      display: flex; width: max-content; gap: 24px;
      animation: pin-x linear both; animation-timeline: --pin; animation-range: contain 4% contain 96%;
    }
    [dir="rtl"] .pin .steps { animation-name: pin-x-rtl; }
    .pin .steps li {
      display: flex; flex-direction: column;
      width: clamp(360px, 34vw, 560px); min-height: min(46dvh, 440px); padding: 32px;
      border-top: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-default);
      animation: none;
    }
    .pin .steps li:nth-child(even) { background: var(--surface-raised); box-shadow: none; }
    .pin .steps li:nth-child(even)::before, .pin .steps li:nth-child(even) h3 { color: var(--text-on-dark-strong); }
    .pin .steps li:nth-child(even) p { color: var(--text-on-dark); }
    .pin .steps li::before { margin-bottom: auto; padding-bottom: 48px; }
    .pin-rail { display: block; position: relative; height: 2px; margin-top: 40px; background: rgba(28, 28, 28, 0.12); }
    .pin-rail span { position: absolute; inset: 0; background: var(--text-strong); transform-origin: left center; animation: progress linear both; animation-timeline: --pin; animation-range: contain 4% contain 96%; }
    [dir="rtl"] .pin-rail span { transform-origin: right center; }
  }
}

/* ---------- Reduced motion: no transforms, no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .plan:hover, .feature:hover, .adviser:hover { translate: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; column-gap: 24px; padding-inline: var(--gutter); }
  .marquee-group li, [dir="rtl"] .marquee-group li { padding-inline: 0; white-space: normal; }
  .faq details[open] summary::after { transform: none; background: linear-gradient(var(--text-strong), var(--text-strong)) center / 12px 2px no-repeat; }
}

/* ---------- Print ---------- */
@media print {
  .site-header { position: static; }
  .nav, .skip, .wordmark { display: none; }
  .dark, .cta-band, .ledger, .compare-col.us, .plan.featured, .adviser { background: #FFFFFF; color: #1C1C1C; box-shadow: inset 0 0 0 1px #3A3A3A; }
  .dark *, .cta-band * { color: #1C1C1C; }
}
