/* ===== Universal box-sizing reset (CRITICAL for responsive layouts) ===== */
*, *::before, *::after { box-sizing: border-box; }

/* ===== RT Design System — tokens ===== */
/* ─────────────────────────────────────────────────────────────
   RT Design System — Tokens
   Aliniat cu paleta rt.md (rt-dark / rt-light, OKLCH).
   Toate token-urile semantice sunt derivate din --b1/--bc/--p,
   astfel încât schimbarea data-theme actualizează totul automat.
   ─────────────────────────────────────────────────────────── */

/* ─── Default = rt-dark (preluat din css/style.css) ─── */
:root,
[data-theme="rt-dark"] {
  color-scheme: dark;
  --p:  76.7623% 0.104 131.063;  --pc: 18% 0.01 264;   /* emerald green accent */
  --s:  78%  0.05  264;     --sc: 18% 0.01 264;
  --n:  28%  0.014 264;     --nc: 95% 0    0;
  --b1: 23.2% 0.014 264;
  --b2: 19.8% 0.013 264;
  --b3: 16.6% 0.011 264;
  --bc: 95%  0    0;
}

/* rt-light — bazat pe DaisyUI 4 Emerald. Verde primary, alb pur. */
[data-theme="rt-light"] {
  color-scheme: light;
  --p:  76.7623% 0.104 131.063;     --pc: 33.3866% 0.040 131.063;
  --s:  64.5604% 0.046 26.3;        --sc: 12.9302% 0.013 28;
  --a:  76.6347% 0.135 207.808;     --ac: 14.6884% 0.026 209.279;
  --n:  35.5662% 0.027 256.848;     --nc: 98.4625% 0.001 247.838;
  --b1: 100% 0 0;
  --b2: 96.1151% 0 0;
  --b3: 92.2521% 0 0;
  --bc: 36.6531% 0.027 255.978;
}

/* ─── Semantic tokens — derivate din paleta rt.md ─── */
:root {
  /* Surfaces */
  --rt-bg:        oklch(var(--b1));            /* page background */
  --rt-bg-2:      oklch(var(--b2));            /* card surface */
  --rt-bg-3:      oklch(var(--b3));            /* deeper surface */

  /* Text */
  --rt-fg:        oklch(var(--bc));            /* primary text */
  --rt-fg-2:      oklch(var(--bc) / .85);      /* secondary */
  --rt-fg-3:      oklch(var(--bc) / .6);       /* captions, muted */
  --rt-fg-4:      oklch(var(--bc) / .4);       /* hints, disabled */

  /* Lines */
  --rt-line:        oklch(var(--bc) / .14);    /* hairlines */
  --rt-line-strong: oklch(var(--bc) / .28);    /* prominent borders */

  /* Accent (sky blue from rt.md primary) */
  --rt-accent:      oklch(var(--p));
  --rt-accent-soft: oklch(var(--p) / .15);
  --rt-accent-on:   oklch(var(--pc));          /* text on accent bg */

  /* Inverse (for hover bg subtle) */
  --rt-tint:        oklch(var(--bc) / .04);
  --rt-tint-2:      oklch(var(--bc) / .08);

  /* ─── Type families ─── */
  --rt-font-display: 'Libre Caslon Text', 'Times New Roman', Georgia, serif;
  --rt-font-sans:    'Figtree', system-ui, -apple-system, sans-serif;
  --rt-font-title:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --rt-font-body:    'Figtree', system-ui, -apple-system, sans-serif;
  --rt-font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* ─── Type scale (modular, ~1.25 ratio) ─── */
  --rt-text-xs:   12px;
  --rt-text-sm:   14px;
  --rt-text-base: 16px;
  --rt-text-md:   18px;
  --rt-text-lg:   22px;
  --rt-text-xl:   28px;
  --rt-text-2xl:  36px;
  --rt-text-3xl:  48px;
  --rt-text-4xl:  64px;
  --rt-text-5xl:  88px;
  --rt-text-6xl:  120px;
  --rt-text-display: clamp(80px, 14vw, 200px);

  /* ─── Line heights ─── */
  --rt-lh-tight:  1.05;
  --rt-lh-snug:   1.15;
  --rt-lh-normal: 1.55;
  --rt-lh-loose:  1.7;

  /* ─── Letter spacing ─── */
  --rt-tracking-tight:  -0.03em;
  --rt-tracking-snug:   -0.015em;
  --rt-tracking-normal: 0;
  --rt-tracking-wide:   0.05em;
  --rt-tracking-mono:   0.04em;

  /* ─── Spacing (4px base) ─── */
  --rt-space-1:  4px;
  --rt-space-2:  8px;
  --rt-space-3:  12px;
  --rt-space-4:  16px;
  --rt-space-5:  24px;
  --rt-space-6:  32px;
  --rt-space-7:  48px;
  --rt-space-8:  64px;
  --rt-space-9:  96px;
  --rt-space-10: 128px;
  --rt-space-11: 192px;

  /* ─── Radii ─── */
  --rt-radius-sm: 4px;
  --rt-radius:    8px;
  --rt-radius-lg: 12px;
  --rt-radius-pill: 999px;

  /* ─── Container widths ─── */
  --rt-container-sm: 640px;
  --rt-container:    980px;
  --rt-container-lg: 1200px;

  /* ─── Motion ─── */
  --rt-ease:     cubic-bezier(0.32, 0.72, 0, 1);
  --rt-duration: 240ms;
}

/* ===== RT Design System — typography ===== */
/* ─────────────────────────────────────────────────────────────
   RT Design System — Typography
   Două familii de display: serif (Libre Caslon Text) și
   sans bold (Plus Jakarta Sans 800). Folosește varianta sans
   pentru titluri care vor mai multă greutate / industrial vibe.
   ─────────────────────────────────────────────────────────── */

/* ─── Display — hero giant ─── */
.rt-display {
  font-family: var(--rt-font-display);
  font-size: var(--rt-text-display);
  font-weight: 400;
  line-height: var(--rt-lh-tight);
  letter-spacing: var(--rt-tracking-tight);
  color: var(--rt-fg);
  margin: 0;
}
.rt-display--sans {
  font-family: var(--rt-font-title);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* ─── H1 — page heading ─── */
.rt-h1 {
  font-family: var(--rt-font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: var(--rt-lh-tight);
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-fg);
  margin: 0;
}
.rt-h1--sans {
  font-family: var(--rt-font-title);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ─── H2 — section heading ─── */
.rt-h2 {
  font-family: var(--rt-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: var(--rt-lh-snug);
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-fg);
  margin: 0;
}
.rt-h2--sans {
  font-family: var(--rt-font-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ─── H3 — block heading ─── */
.rt-h3 {
  font-family: var(--rt-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: var(--rt-lh-snug);
  color: var(--rt-fg);
  margin: 0;
}
.rt-h3--sans {
  font-family: var(--rt-font-title);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: var(--rt-tracking-snug);
}

/* ─── Body & lead ─── */
.rt-lead {
  font-family: var(--rt-font-body);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 450;
  line-height: var(--rt-lh-loose);
  color: var(--rt-fg-2);
  margin: 0;
  max-width: 56ch;
}
.rt-body {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  font-weight: 500;
  line-height: var(--rt-lh-normal);
  color: var(--rt-fg-2);
  margin: 0;
  max-width: 64ch;
}
.rt-body-sm {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-sm);
  font-weight: 500;
  line-height: var(--rt-lh-normal);
  color: var(--rt-fg-3);
  margin: 0;
}

/* ─── Mono — labels & numbers ─── */
.rt-mono {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--rt-tracking-mono);
  text-transform: uppercase;
  color: var(--rt-fg-3);
}
.rt-mono-num {
  font-family: var(--rt-font-mono);
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rt-fg);
}

/* ─── Inline emphasis ─── */
.rt-em-italic { font-style: italic; }
.rt-em-strong { font-weight: 700; color: var(--rt-fg); }
.rt-em-accent { color: var(--rt-accent); }

/* ─── Links ─── */
.rt-link {
  color: var(--rt-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rt-line-strong);
  transition: text-decoration-color var(--rt-duration) var(--rt-ease);
}
.rt-link:hover { text-decoration-color: var(--rt-fg); }

/* ===== RT Design System — components ===== */
/* ─────────────────────────────────────────────────────────────
   RT Design System — Components
   Toate folosesc semantic tokens (--rt-bg, --rt-fg, --rt-line)
   astfel încât se adaptează automat la rt-dark / rt-light.
   ─────────────────────────────────────────────────────────── */

/* ─── Layout primitives ─── */
.rt-container {
  width: 100%;
  max-width: var(--rt-container);
  margin-inline: auto;
  padding-inline: var(--rt-space-6);
}
@media (max-width: 720px) {
  .rt-container { padding-inline: var(--rt-space-5); }
}

.rt-stack { display: flex; flex-direction: column; }
.rt-stack-2 { gap: var(--rt-space-2); }
.rt-stack-3 { gap: var(--rt-space-3); }
.rt-stack-4 { gap: var(--rt-space-4); }
.rt-stack-5 { gap: var(--rt-space-5); }
.rt-stack-6 { gap: var(--rt-space-6); }
.rt-stack-7 { gap: var(--rt-space-7); }
.rt-stack-8 { gap: var(--rt-space-8); }
.rt-stack-9 { gap: var(--rt-space-9); }

.rt-row { display: flex; flex-wrap: wrap; align-items: center; }
.rt-row-3 { gap: var(--rt-space-3); }
.rt-row-4 { gap: var(--rt-space-4); }
.rt-row-5 { gap: var(--rt-space-5); }

/* ─── Divider ─── */
.rt-divider {
  border: 0;
  border-top: 1px solid var(--rt-line);
  margin: 0;
  width: 100%;
}
.rt-divider--strong { border-top-color: var(--rt-line-strong); }

/* ─── Section wrapper ─── */
.rt-section {
  padding-block: var(--rt-space-9);
  border-top: 1px solid var(--rt-line);
}
.rt-section--first { border-top: 0; padding-top: var(--rt-space-7); }
.rt-section--tight { padding-block: var(--rt-space-7); }
@media (max-width: 720px) {
  .rt-section { padding-block: var(--rt-space-7); }
}

/* ─── Eyebrow ─── */
.rt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  font-weight: 500;
  letter-spacing: var(--rt-tracking-mono);
  text-transform: uppercase;
  color: var(--rt-fg-3);
}
.rt-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--rt-fg-3);
  display: block;
}

/* ─── Buttons ─── */
.rt-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
  padding: 14px 24px;
  font-family: var(--rt-font-sans);
  font-size: var(--rt-text-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--rt-tracking-snug);
  border-radius: var(--rt-radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--rt-duration) var(--rt-ease),
              color var(--rt-duration) var(--rt-ease),
              border-color var(--rt-duration) var(--rt-ease),
              transform var(--rt-duration) var(--rt-ease);
}
.rt-btn--primary {
  background: var(--rt-fg);
  color: var(--rt-bg);
  border-color: var(--rt-fg);
}
.rt-btn--primary:hover {
  background: var(--rt-fg-2);
  border-color: var(--rt-fg-2);
  transform: translateY(-1px);
}
.rt-btn--ghost {
  background: transparent;
  color: var(--rt-fg);
  border-color: var(--rt-line-strong);
}
.rt-btn--ghost:hover {
  border-color: var(--rt-fg);
  background: var(--rt-tint);
}
.rt-btn--accent {
  background: var(--rt-accent);
  color: var(--rt-accent-on);
  border-color: var(--rt-accent);
}
.rt-btn--accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rt-btn-arrow {
  display: inline-block;
  transition: transform var(--rt-duration) var(--rt-ease);
}
.rt-btn:hover .rt-btn-arrow { transform: translateX(4px); }

/* Size modifier — for hero / prominent CTAs */
.rt-btn--lg {
  padding: 12px 22px;
  font-size: var(--rt-text-base);
  gap: var(--rt-space-2);
}

/* ─── Card ─── */
.rt-card {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-3);
  padding: var(--rt-space-6);
  background: transparent;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  transition: border-color var(--rt-duration) var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.rt-card:hover {
  border-color: var(--rt-line-strong);
  background: var(--rt-tint);
}
.rt-card--surface { background: var(--rt-bg-2); }

.rt-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.rt-card-link .rt-card { cursor: pointer; }

/* ─── Badge ─── */
.rt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  font-weight: 500;
  letter-spacing: var(--rt-tracking-mono);
  text-transform: uppercase;
  color: var(--rt-fg-2);
  background: var(--rt-bg-2);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-sm);
}
.rt-badge--accent {
  color: var(--rt-accent);
  border-color: var(--rt-accent-soft);
  background: var(--rt-accent-soft);
}

/* ─── Steps ─── */
.rt-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.rt-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--rt-space-6);
  padding-block: var(--rt-space-6);
  border-top: 1px solid var(--rt-line);
}
.rt-steps li:last-child { border-bottom: 1px solid var(--rt-line); }
.rt-step-num {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-sm);
  color: var(--rt-fg-3);
  letter-spacing: var(--rt-tracking-mono);
}
@media (max-width: 560px) {
  .rt-steps li { grid-template-columns: 1fr; gap: var(--rt-space-3); }
}

/* ─── Cross-list ─── */
.rt-cross-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-4);
}
.rt-cross-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--rt-space-3);
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  line-height: var(--rt-lh-normal);
  color: var(--rt-fg);
  padding-bottom: var(--rt-space-4);
  border-bottom: 1px solid var(--rt-line);
}
.rt-cross-list li:last-child { border-bottom: 0; }
.rt-cross-list li::before {
  content: "✕";
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-md);
  font-weight: 500;
  color: var(--rt-fg-3);
}

/* ─── Cross-list BIG — manifesto-style filter ─── */
.rt-cross-list--big {
  gap: 0;
}
.rt-cross-list--big li {
  grid-template-columns: 56px 1fr;
  gap: var(--rt-space-5);
  padding-block: var(--rt-space-6);
  border-bottom: 1px solid var(--rt-line);
  align-items: start;
}
.rt-cross-list--big li:first-child {
  border-top: 1px solid var(--rt-line);
}
.rt-cross-list--big li::before {
  content: "✕";
  font-family: var(--rt-font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--rt-fg-4);
  line-height: 1;
  padding-top: 4px;
  transition: color var(--rt-duration) var(--rt-ease);
}
.rt-cross-list--big li:hover::before { color: var(--rt-accent); }
.rt-cross-list--big .rt-cross-headline {
  font-family: var(--rt-font-title);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--rt-fg);
  margin: 0 0 var(--rt-space-2);
}
.rt-cross-list--big .rt-cross-reason {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-base);
  line-height: var(--rt-lh-normal);
  color: var(--rt-fg-3);
  margin: 0;
}
.rt-cross-list--big .rt-cross-reason a {
  color: var(--rt-fg-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rt-line-strong);
}
.rt-cross-list--big .rt-cross-reason a:hover { color: var(--rt-accent); text-decoration-color: var(--rt-accent); }

/* ─── Big number — variantă serif (default) și sans ─── */
.rt-bignum {
  display: flex;
  align-items: baseline;
  gap: var(--rt-space-4);
}
.rt-bignum-value {
  font-family: var(--rt-font-display);
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--rt-fg);
}
.rt-bignum--sans .rt-bignum-value {
  font-family: var(--rt-font-sans);
  font-weight: 800;
  letter-spacing: -0.06em;
}
.rt-bignum-label {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  color: var(--rt-fg-3);
  max-width: 18ch;
}

/* ─── Topbar ─── */
.rt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rt-bg);
  border-bottom: 1px solid var(--rt-line);
}
.rt-topbar-inner {
  max-width: var(--rt-container);
  margin-inline: auto;
  padding: var(--rt-space-4) var(--rt-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .rt-topbar-inner { padding: var(--rt-space-3) var(--rt-space-5); }
}
.rt-topbar-brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--rt-space-2);
  font-family: var(--rt-font-display);
  font-size: var(--rt-text-md);
  color: var(--rt-fg);
  text-decoration: none;
  letter-spacing: var(--rt-tracking-snug);
}
.rt-topbar-brand-mark {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
}
.rt-topbar-link {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-sm);
  font-weight: 500;
  color: var(--rt-fg-2);
  text-decoration: none;
  transition: color var(--rt-duration) var(--rt-ease);
}
.rt-topbar-link:hover { color: var(--rt-fg); }

/* ─── Footer ─── */
.rt-footer {
  border-top: 1px solid var(--rt-line);
  padding-block: var(--rt-space-7);
}
.rt-footer-inner {
  max-width: var(--rt-container);
  margin-inline: auto;
  padding-inline: var(--rt-space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rt-space-3);
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-sm);
  color: var(--rt-fg-3);
}

/* ===== Marele Salt — page styles ===== */
/* ─── Marele Salt — page-specific overrides ─── */

html, body { background: var(--rt-bg); }
.ms-body {
  background: var(--rt-bg);
  color: var(--rt-fg);
  font-family: var(--rt-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Topbar — formula brand ─── */
.ms-topbar { backdrop-filter: blur(12px); background: color-mix(in oklab, var(--rt-bg) 88%, transparent); }
.ms-topbar-formula {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-3);
  text-decoration: none;
  font-family: var(--rt-font-sans);
  color: var(--rt-fg);
  line-height: 1;
}
.ms-topbar-mark {
  width: 36px; height: 37px;
  display: block;
  color: var(--rt-fg);
  transition: color var(--rt-duration) var(--rt-ease);
}
.ms-formula-op {
  font-family: var(--rt-font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--rt-fg-3);
}
.ms-formula-op--eq { color: var(--rt-accent); }
.ms-formula-token {
  font-family: var(--rt-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-fg-2);
}
.ms-formula-token--bold {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: var(--rt-tracking-wide);
  text-transform: uppercase;
  color: var(--rt-fg);
}
@media (max-width: 560px) {
  .ms-topbar-formula { gap: var(--rt-space-2); }
  .ms-formula-token { font-size: 12px; }
  .ms-formula-token--bold { font-size: 13px; }
  .ms-formula-op { font-size: 16px; }
}

/* ─── Theme switch button ─── */
.ms-theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-pill);
  color: var(--rt-fg-2);
  cursor: pointer;
  transition: border-color var(--rt-duration) var(--rt-ease),
              color var(--rt-duration) var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.ms-theme-switch:hover {
  border-color: var(--rt-accent);
  color: var(--rt-accent);
  background: var(--rt-tint);
}
.ms-theme-icon { width: 18px; height: 18px; display: block; }
[data-theme="rt-light"] .ms-theme-icon--sun { display: none; }
[data-theme="rt-dark"]  .ms-theme-icon--moon { display: none; }

/* ─── HERO — cinematic ─── */
.ms-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--rt-space-10);
  padding-bottom: var(--rt-space-10);
  isolation: isolate;
}
.ms-hero-content { position: relative; z-index: 2; }

/* Subtle vignette that fades top + bottom into the page */
.ms-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--rt-bg) 0%, transparent 18%, transparent 82%, var(--rt-bg) 100%);
}

/* Title + subtitle grouped tight as one cinematic block */
.ms-hero-headline {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-3);
}
.ms-hero-title { max-width: 18ch; }
.ms-hero-subtitle {
  font-family: var(--rt-font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-fg-3);
  margin: 0;
  max-width: 18ch;
}

/* Cinematic accent — "Salt" pops in last, with a tiny zoom + shimmer */
.ms-hero-accent {
  display: inline-block;
  animation: msAccentPop 800ms cubic-bezier(.22, 1, .36, 1) 500ms both;
  transform-origin: 0% 100%;
}
@keyframes msAccentPop {
  0%   { opacity: 0; transform: translateY(0.12em) scale(.94); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1);  filter: blur(0); }
}

/* Reveal stagger — fade up with slight blur */
.ms-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  animation: msRevealUp .9s cubic-bezier(.22, 1, .36, 1) var(--ms-delay, 0ms) forwards;
}
@keyframes msRevealUp {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ms-reveal { opacity: 1; transform: none; filter: none; animation: none; }
  .ms-hero-accent { animation: none; }
}

/* Capabilities grid */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rt-space-3);
}
@media (max-width: 900px) { .ms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ms-grid { grid-template-columns: 1fr; } }

/* Cases grid */
.ms-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rt-space-3);
  align-items: stretch;
}
@media (max-width: 720px) { .ms-cases { grid-template-columns: 1fr; } }
/* Make linked cards fill their grid cell so all 4 align same height */
.ms-cases .rt-card-link { display: flex; }
.ms-cases .rt-card-link > .rt-card { flex: 1; width: 100%; }
.ms-case--ghost {
  border-style: dashed;
  background: transparent;
}

/* Case card refinements */
.ms-case {
  gap: var(--rt-space-3);
}
.ms-case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rt-space-3);
  padding-bottom: var(--rt-space-3);
  border-bottom: 1px solid var(--rt-line);
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
}
.ms-case-meta--accent { color: var(--rt-accent); border-bottom-color: var(--rt-accent-soft); }
.ms-case-title {
  font-family: var(--rt-font-title);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--rt-fg);
  margin: 0;
}
.ms-case-stats {
  list-style: none;
  padding: 0;
  margin: var(--rt-space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--rt-line);
  padding-top: var(--rt-space-3);
}
.ms-case-stats li {
  font-family: var(--rt-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
  line-height: 1.5;
}
.ms-case-stats strong {
  color: var(--rt-fg);
  font-weight: 700;
  margin-right: 6px;
}
.ms-case-cta {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-2);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
  transition: color var(--rt-duration) var(--rt-ease);
}
.rt-card-link:hover .ms-case-cta { color: var(--rt-accent); }
.rt-card-link:hover .ms-case-cta span { transform: translateX(3px); transition: transform var(--rt-duration) var(--rt-ease); }
.ms-case-cta span { display: inline-block; transition: transform var(--rt-duration) var(--rt-ease); }

/* Filter section */
.ms-filter { background: var(--rt-bg-2); }

/* Apply section */
.ms-apply-box {
  padding: var(--rt-space-6);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  background: var(--rt-bg-2);
}

/* Slot ideas grid */
.ms-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rt-space-3);
}
@media (max-width: 900px) { .ms-slots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ms-slots { grid-template-columns: 1fr; } }
.ms-slot {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-3);
  padding: var(--rt-space-6);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  background: var(--rt-bg);
  transition: border-color var(--rt-duration) var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.ms-slot:hover {
  border-color: var(--rt-accent);
  background: var(--rt-tint);
}
.ms-slot[hidden] { display: none !important; }
.ms-slot--ghost {
  border-style: dashed;
  background: transparent;
}

.ms-slot--ghost:hover { border-color: var(--rt-line-strong); background: transparent; }

.ms-slot--extra { animation: msSlotIn .35s var(--rt-ease) both; }
@keyframes msSlotIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Toggle card (slot 6) — looks like a slot, behaves as button */
.ms-slot--toggle {
  position: relative;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px dashed var(--rt-line-strong);
  color: inherit;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.ms-slot--toggle:hover {
  border-color: var(--rt-accent);
  background: var(--rt-tint);
}
.ms-slot--toggle:hover .rt-mono { color: var(--rt-accent); }
.ms-slot-toggle-arrow {
  position: absolute;
  bottom: var(--rt-space-5);
  right: var(--rt-space-5);
  width: 24px; height: 24px;
  color: var(--rt-fg-3);
  transition: transform var(--rt-duration) var(--rt-ease),
              color var(--rt-duration) var(--rt-ease);
}
.ms-slot--toggle:hover .ms-slot-toggle-arrow { color: var(--rt-accent); transform: translateY(2px); }
.ms-slot--toggle[aria-expanded="true"] .ms-slot-toggle-arrow { transform: rotate(180deg); }
.ms-slot--toggle[aria-expanded="true"]:hover .ms-slot-toggle-arrow { transform: rotate(180deg) translateY(2px); }

/* ─── Availability block — replaces plain bignum ─── */
.ms-availability {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-6);
  padding: var(--rt-space-7);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-lg);
  background: var(--rt-bg-2);
}
.ms-availability-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rt-space-3);
}
.ms-availability-pulse {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
}
.ms-pulse-dot {
  width: 8px; height: 8px;
  background: var(--rt-accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 var(--rt-accent);
  animation: msPulse 2s var(--rt-ease) infinite;
}
@keyframes msPulse {
  0%   { box-shadow: 0 0 0 0 oklch(var(--p) / .5); }
  70%  { box-shadow: 0 0 0 10px oklch(var(--p) / 0); }
  100% { box-shadow: 0 0 0 0 oklch(var(--p) / 0); }
}
.ms-pulse-text { color: var(--rt-accent); }

.ms-availability-figure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--rt-space-6);
  align-items: end;
}
.ms-availability-num {
  font-family: var(--rt-font-title);
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--rt-accent);
  display: block;
}
.ms-availability-context {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-2);
  padding-bottom: var(--rt-space-4);
}
.ms-availability-of {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-sm);
  text-transform: uppercase;
  color: var(--rt-fg-3);
  letter-spacing: var(--rt-tracking-mono);
}
.ms-availability-total {
  font-family: var(--rt-font-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--rt-fg);
  letter-spacing: -0.03em;
}
.ms-availability-label {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  font-weight: 500;
  line-height: var(--rt-lh-normal);
  color: var(--rt-fg-2);
  margin: 0;
  max-width: 36ch;
}

.ms-availability-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--rt-space-2);
}
.ms-track-cell {
  height: 12px;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-line-strong);
  background: transparent;
}
.ms-track-cell--filled {
  background: var(--rt-accent);
  border-color: var(--rt-accent);
}

.ms-availability-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2) var(--rt-space-3);
  align-items: center;
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
  padding-top: var(--rt-space-4);
  border-top: 1px solid var(--rt-line);
}
.ms-availability-meta strong {
  color: var(--rt-fg);
  font-weight: 700;
}
.ms-meta-dot { color: var(--rt-fg-4); }

@media (max-width: 560px) {
  .ms-availability { padding: var(--rt-space-5); }
  .ms-availability-figure { grid-template-columns: 1fr; gap: var(--rt-space-3); align-items: start; }
  .ms-availability-context { padding-bottom: 0; }
}

/* ─── Logo wall mini — credibility row ─── */
.ms-logos {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-4);
  align-items: center;
  padding-top: var(--rt-space-4);
}
.ms-logos-label { color: var(--rt-fg-3); }

/* Horizontal scrolling container with edge fade */
.ms-logos-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Bleed past container padding so the fade hits the screen edge */
  margin-inline: calc(var(--rt-space-6) * -1);
  padding-inline: var(--rt-space-6);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}
.ms-logos-scroll::-webkit-scrollbar { display: none; }

.ms-logos-track {
  display: flex;
  align-items: center;
  gap: var(--rt-space-7);
  width: max-content;
  padding-block: var(--rt-space-2);
}

.ms-logos-cell {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 44px;
  overflow: hidden;
}
.ms-logos-cell img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .5;
  /* SVG-urile au fill: white. Pe rt-light → invertim ca să fie negre. */
  filter: invert(1);
  transition: opacity var(--rt-duration) var(--rt-ease);
}
[data-theme="rt-dark"] .ms-logos-cell img { filter: none; }
.ms-logos-cell:hover img { opacity: 1; }
@media (max-width: 720px) {
  .ms-logos-scroll {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .ms-logos-cell { width: 92px; height: 36px; }
  .ms-logos-track { gap: var(--rt-space-6); }
}
@media (max-width: 420px) {
  .ms-logos-scroll {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

/* ─── Built with strip ─── */
.ms-builtwith { padding-block: var(--rt-space-7) !important; border-top: 1px solid var(--rt-line); }
.ms-builtwith-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rt-space-4) var(--rt-space-6);
  justify-content: space-between;
}
.ms-stack-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2);
}
.ms-stack-pills li {
  font-family: var(--rt-font-sans);
  font-size: var(--rt-text-sm);
  font-weight: 600;
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-fg-2);
  padding: 6px 12px;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-pill);
  background: var(--rt-bg-2);
}

/* ─── Sticky CTA ─── */
.ms-sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
  padding: 14px 20px;
  font-family: var(--rt-font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--rt-tracking-snug);
  color: var(--rt-bg);
  background: var(--rt-fg);
  border-radius: var(--rt-radius-pill);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s var(--rt-ease),
              transform .35s var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.ms-sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ms-sticky-cta:hover { background: var(--rt-accent); color: var(--rt-bg); }
@media (max-width: 560px) {
  .ms-sticky-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
}

/* ─── Scroll progress bar ─── */
.ms-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.ms-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--rt-accent);
  transition: width 80ms linear;
}

/* Library grid */
.ms-library {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rt-space-3);
}
@media (max-width: 900px) { .ms-library { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ms-library { grid-template-columns: 1fr; } }
.ms-lib-item {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-2);
  padding: var(--rt-space-5);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--rt-duration) var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.ms-lib-item:hover {
  border-color: var(--rt-line-strong);
  background: var(--rt-tint);
}

/* ─────────────────────────────────────────────────────────────
   MOBILE POLISH — audit pass
   Touch targets ≥ 44px · tighter typography on narrow viewports
   · safer container padding · improved stacking · hover-only on hover devices
   ─────────────────────────────────────────────────────────── */

/* Guard against any horizontal overflow on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
/* Prevent flex/grid descendants from refusing to shrink below intrinsic min-content. */
.rt-stack, .rt-row, .ms-cases, .ms-slots, .ms-grid, .ms-library,
.ms-availability, .ms-availability-figure, .ms-builtwith-inner,
.rt-card, .rt-card-link, .ms-slot, .ms-case, .rt-cross-list, .rt-steps {
  min-width: 0;
}
/* Long display text must wrap, not push the layout wider */
.rt-display, .rt-display--sans,
.rt-h1, .rt-h1--sans,
.rt-h2, .rt-h2--sans,
.rt-h3, .rt-h3--sans,
.ms-hero-subtitle, .ms-case-title, .ms-availability-num, .ms-availability-total,
.ms-formula-token--bold {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
/* Availability figure: prevent the giant number from forcing the parent wider */
.ms-availability-figure { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.ms-availability-num { display: block; }

/* iOS safe-area inset support */
.rt-topbar { padding-top: env(safe-area-inset-top); }
.rt-footer { padding-bottom: max(var(--rt-space-7), env(safe-area-inset-bottom)); }
.ms-sticky-cta {
  bottom: max(24px, env(safe-area-inset-bottom));
  right:  max(24px, env(safe-area-inset-right));
}

/* Touch targets ≥ 44×44 */
.ms-theme-switch { width: 44px; height: 44px; }
.rt-btn { min-height: 44px; }

/* Disable hover-revealed effects on touch devices */
@media (hover: none) {
  .ms-logos-cell img { opacity: 1; }
  .rt-card:hover, .rt-card-link:hover .rt-card { background: transparent; border-color: var(--rt-line); }
  .ms-slot:hover { background: var(--rt-bg); border-color: var(--rt-line); }
  .ms-slot--toggle:hover { background: transparent; border-color: var(--rt-line-strong); }
}

/* ─── Tablet & below (≤900px) ─── */
@media (max-width: 900px) {
  .ms-availability-num { font-size: clamp(96px, 28vw, 200px); }
}

/* ─── Mobile (≤720px) ─── */
@media (max-width: 720px) {
  /* Tighter container padding */
  .rt-container { padding-inline: 20px; }
  .rt-topbar-inner { padding-inline: 20px; }
  .rt-footer-inner { padding-inline: 20px; }

  /* Section vertical rhythm — reduce to breathe */
  .rt-section { padding-block: var(--rt-space-7); }

  /* Hero — scale down deliberately, tighter rhythm */
  .ms-hero { padding-top: var(--rt-space-7); padding-bottom: var(--rt-space-7); }
  .ms-hero .rt-stack-7 { gap: var(--rt-space-6); }   /* tighter overall hero rhythm */
  .ms-hero-headline { gap: var(--rt-space-2); }      /* couple title + subtitle */
  .rt-display, .rt-display--sans { font-size: clamp(72px, 15vw, 120px); line-height: 0.95; }
  .ms-hero-title { max-width: 100%; }
  .ms-hero-subtitle { font-size: clamp(28px, 7vw, 48px); max-width: 100%; line-height: 1; }

  /* Hero CTAs full-width on mobile — normal size, not --lg */
  .ms-hero .rt-row { flex-direction: column; align-items: stretch; gap: var(--rt-space-2); width: 100%; }
  .ms-hero .rt-btn,
  .ms-hero .rt-btn--lg {
    justify-content: center;
    width: 100%;
    padding: 11px 18px;
    font-size: var(--rt-text-sm);
    min-height: 44px;
    gap: var(--rt-space-2);
  }
  .ms-hero .rt-btn--ghost { font-weight: 500; color: var(--rt-fg-2); }

  /* Cards — slightly tighter padding */
  .rt-card, .ms-slot { padding: var(--rt-space-5); }
  .ms-availability { padding: var(--rt-space-5); }

  /* Cross-list big — narrower × column */
  .rt-cross-list--big li { grid-template-columns: 28px 1fr; gap: var(--rt-space-3); padding-block: var(--rt-space-5); }
  .rt-cross-list--big li::before { font-size: 22px; padding-top: 2px; }
  .rt-cross-list--big .rt-cross-headline { font-size: clamp(18px, 4.4vw, 22px); }
  .rt-cross-list--big .rt-cross-reason { font-size: var(--rt-text-sm); }

  /* Topbar formula — guard against overflow */
  .ms-topbar-formula { gap: 8px; min-width: 0; flex: 1; }
  .ms-formula-token { font-size: 11px; }
  .ms-formula-token--bold { font-size: 12px; }
  .ms-formula-op { font-size: 14px; }
  .ms-topbar-mark { width: 28px; height: 29px; flex-shrink: 0; }

  /* Built-with strip — stack neatly */
  .ms-builtwith-inner { flex-direction: column; align-items: flex-start; gap: var(--rt-space-3); }
  .ms-stack-pills { width: 100%; }

  /* Footer — stack with proper alignment */
  .rt-footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }

  /* Slot toggle card — make sure arrow doesn't overlap text */
  .ms-slot--toggle { padding-bottom: 56px; }
  .ms-slot-toggle-arrow { bottom: var(--rt-space-4); right: var(--rt-space-4); width: 22px; height: 22px; }

  /* Sticky CTA — pill larger, more usable */
  .ms-sticky-cta { padding: 12px 18px; font-size: 13px; min-height: 44px; }

  /* Logo wall — 3 cols, tighter gap */
  /* logos: handled in horizontal scroll block above */
}

/* ─── Small mobile (≤420px) ─── */
@media (max-width: 420px) {
  .rt-container { padding-inline: 16px; }
  .rt-topbar-inner { padding-inline: 16px; }
  .rt-footer-inner { padding-inline: 16px; }

  /* Hero — maximum compression */
  .rt-display, .rt-display--sans { font-size: clamp(56px, 14vw, 80px); letter-spacing: -0.04em; }
  .ms-hero-subtitle { font-size: clamp(28px, 9vw, 40px); }
  .rt-lead { font-size: var(--rt-text-md); }

  /* Eyebrow may be long — let hairline align with text */
  .rt-eyebrow { flex-wrap: wrap; }

  /* Sticky CTA shrinks more */
  .ms-sticky-cta { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; padding: 10px 16px; font-size: 12px; }

  /* Availability — tighter */
  .ms-availability { padding: var(--rt-space-4); }
  .ms-availability-num { font-size: clamp(80px, 30vw, 140px); }
  .ms-availability-total { font-size: 32px; }
  .ms-availability-meta { font-size: 10px; gap: 4px 8px; }

  /* Logo wall — 2 cols on tiniest viewports */
  /* logos: handled in horizontal scroll block above */
}

/* ─── Landscape mobile — short viewport guard ─── */
@media (max-height: 480px) and (orientation: landscape) {
  .ms-hero { padding-top: var(--rt-space-5); padding-bottom: var(--rt-space-5); }
  .rt-display, .rt-display--sans { font-size: clamp(48px, 8vw, 88px); }
  .ms-hero-subtitle { font-size: clamp(24px, 4vw, 40px); }
}

/* ─────────────────────────────────────────────────────────────
   NEW SECTIONS — Brackets, Process emphasis, FAQ, Final CTA
   Plus eyebrow hairline-continuation enhancement
   ─────────────────────────────────────────────────────────── */

/* Eyebrow extended hairline — runs across the section visually */
.rt-eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--rt-space-3);
}
.rt-eyebrow::before {
  width: 32px;
  flex-shrink: 0;
}
.rt-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rt-line);
  display: block;
}

/* Brackets — pricing + timeline table */
.ms-brackets {
  margin-top: var(--rt-space-4);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-lg);
  overflow: hidden;
  background: var(--rt-bg-2);
}
.ms-brackets-head {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-2);
  padding: var(--rt-space-5) var(--rt-space-6);
  border-bottom: 1px solid var(--rt-line);
  background: var(--rt-bg);
}
.ms-brackets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ms-brackets-list li {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--rt-space-4);
  align-items: center;
  padding: var(--rt-space-5) var(--rt-space-6);
  border-bottom: 1px solid var(--rt-line);
  transition: background var(--rt-duration) var(--rt-ease);
}
.ms-brackets-list li:last-child { border-bottom: 0; }
.ms-brackets-list li:hover { background: var(--rt-tint); }
.ms-bracket-label {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  font-weight: 600;
  color: var(--rt-fg);
}
.ms-bracket-price {
  font-family: var(--rt-font-title);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--rt-accent);
  letter-spacing: -0.015em;
}
.ms-bracket-time {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
  text-align: right;
}
@media (max-width: 720px) {
  .ms-brackets-list li {
    grid-template-columns: 1fr;
    gap: var(--rt-space-2);
    padding: var(--rt-space-4) var(--rt-space-5);
  }
  .ms-bracket-time { text-align: left; }
  .ms-brackets-head { padding: var(--rt-space-4) var(--rt-space-5); }
}

/* Process "in loc de" emphasis */
.ms-step-vs {
  font-style: normal;
  color: var(--rt-fg-3);
  font-weight: 600;
}

/* FAQ accordion */
.ms-faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rt-line);
}
.ms-faq-item {
  border-bottom: 1px solid var(--rt-line);
}
.ms-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-4);
  padding: var(--rt-space-5) 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--rt-duration) var(--rt-ease);
}
.ms-faq-item summary::-webkit-details-marker { display: none; }
.ms-faq-q {
  font-family: var(--rt-font-title);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--rt-fg);
  flex: 1;
}
.ms-faq-icon {
  font-family: var(--rt-font-sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--rt-fg-3);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--rt-duration) var(--rt-ease), color var(--rt-duration) var(--rt-ease);
}
.ms-faq-item[open] .ms-faq-icon { transform: rotate(45deg); color: var(--rt-accent); }
.ms-faq-item summary:hover .ms-faq-icon { color: var(--rt-accent); }
.ms-faq-a {
  padding: 0 0 var(--rt-space-5) 0;
  max-width: 64ch;
}
.ms-faq-a p {
  font-family: var(--rt-font-body);
  font-size: var(--rt-text-md);
  line-height: var(--rt-lh-loose);
  color: var(--rt-fg-2);
  margin: 0;
}

/* Final CTA bookend */
.ms-final { background: var(--rt-bg-2); }
.ms-final-inner {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-6);
  align-items: flex-start;
}
.ms-final-headline {
  max-width: 22ch;
  line-height: 1.05;
}
.ms-final-lead {
  color: var(--rt-fg-3);
  font-weight: 400;
}
@media (max-width: 560px) {
  .ms-final .rt-row { flex-direction: column; align-items: stretch; gap: var(--rt-space-2); width: 100%; }
  .ms-final .rt-btn { justify-content: center; width: 100%; padding: 11px 18px; font-size: var(--rt-text-sm); min-height: 44px; }
}

/* ─────────────────────────────────────────────────────────────
   CONTACT INTEGRATION — topbar, reply time, contact card, footer
   ─────────────────────────────────────────────────────────── */

/* Topbar actions group */
.ms-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-3);
}
.ms-topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  letter-spacing: var(--rt-tracking-mono);
  text-transform: lowercase;
  color: var(--rt-fg-2);
  text-decoration: none;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-pill);
  transition: color var(--rt-duration) var(--rt-ease),
              border-color var(--rt-duration) var(--rt-ease),
              background var(--rt-duration) var(--rt-ease);
}
.ms-topbar-contact:hover {
  color: var(--rt-accent);
  border-color: var(--rt-accent);
  background: var(--rt-tint);
}
.ms-topbar-contact svg { flex-shrink: 0; width: 16px; height: 16px; }
/* On narrow screens, hide text — icon-only, square button */
@media (max-width: 560px) {
  .ms-topbar-contact { padding: 0; width: 40px; justify-content: center; }
  .ms-topbar-contact span {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Reply time microcopy under hero CTAs */
.ms-hero-replytime {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
  margin: calc(var(--rt-space-3) * -1) 0 0;
}

/* Contact card — replaces apply-box */
.ms-contact-card {
  margin-top: var(--rt-space-3);
  padding: var(--rt-space-7);
  border: 1px solid var(--rt-line-strong);
  border-radius: var(--rt-radius-lg);
  background: var(--rt-bg);
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-5);
}
.ms-contact-card-head {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-2);
}
.ms-contact-headline {
  font-size: clamp(22px, 2.6vw, 28px) !important;
}
.ms-contact-sub {
  color: var(--rt-fg-3);
  max-width: 56ch;
}
.ms-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-3);
}
.ms-contact-mail {
  letter-spacing: var(--rt-tracking-snug);
}
.ms-contact-note {
  padding-top: var(--rt-space-4);
  border-top: 1px solid var(--rt-line);
  color: var(--rt-fg-3);
  display: flex;
  align-items: flex-start;
  gap: var(--rt-space-3);
  flex-wrap: wrap;
}
.ms-contact-note-tag {
  color: var(--rt-accent);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .ms-contact-card { padding: var(--rt-space-5); }
  .ms-contact-actions { flex-direction: column; align-items: stretch; }
  .ms-contact-actions .rt-btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: var(--rt-text-sm); min-height: 44px; }
}

/* Final CTA note */
.ms-final-note {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--rt-tracking-mono);
  color: var(--rt-fg-3);
  margin-top: calc(var(--rt-space-3) * -1);
}

/* Footer split — left + contact right */
.ms-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ms-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: var(--rt-font-mono);
  font-size: var(--rt-text-sm);
  letter-spacing: var(--rt-tracking-mono);
}
@media (max-width: 560px) {
  .ms-footer-contact { text-align: left; }
}

/* ─── Heading anchor links — appears on hover, copies URL ─── */
.rt-h2 { position: relative; }
.rt-h-anchor {
  display: inline-flex;
  align-items: center;
  margin-left: var(--rt-space-3);
  width: 1em;
  height: 1em;
  font-family: var(--rt-font-mono);
  font-size: 0.5em;
  font-weight: 500;
  color: var(--rt-fg-4);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--rt-duration) var(--rt-ease),
              transform var(--rt-duration) var(--rt-ease),
              color var(--rt-duration) var(--rt-ease);
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}
.rt-h2:hover .rt-h-anchor,
.rt-h-anchor:focus-visible {
  opacity: 1;
  transform: translateX(0);
}
.rt-h-anchor:hover { color: var(--rt-accent); }
.rt-h-anchor-hash { display: inline-block; transition: opacity var(--rt-duration) var(--rt-ease); }
.rt-h-anchor-feedback {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  white-space: nowrap;
  color: var(--rt-accent);
  opacity: 0;
  transition: opacity var(--rt-duration) var(--rt-ease);
  pointer-events: none;
}
.rt-h-anchor.is-copied .rt-h-anchor-hash { opacity: 0; }
.rt-h-anchor.is-copied .rt-h-anchor-feedback { opacity: 1; }

/* Mobile — always visible (no hover possible) */
@media (hover: none) {
  .rt-h-anchor { opacity: 0.5; transform: none; }
}
