/* =============================================================
   Typiq — SEO Redesign CSS (loaded on new pages only)
   Source of truth: design-handoff/design_handoff_typiq_seo_redesign/*.jsx
   ============================================================= */

:root {
  /* Primary palette — "serious" */
  --ink: #1A0F2E;
  --body-dark: #2A1F3E;
  --body-gray: #5A4F6E;
  --surface: #FAF8FC;
  --line: #E6E0F0;
  --violet600: #6B3FC8;
  --violet700: #4A2A8A;
  --violet800: #3A1F6B;
  --violet900: #2A1550;
  --violet500: #8A4FDC;
  --violet400: #9B4FD8;
  --blue500: #4A6FE8;
  --yellow: #FFD166;
  --yellow-deep: #F0B429;

  /* Keyboard finger zones */
  --f-pink: #F4B8C8;
  --f-red: #F0A8A8;
  --f-yellow: #F7E09B;
  --f-green: #C4E0B0;
  --f-blue: #AAC8F0;
  --f-purple: #C8B8E0;

  /* Status */
  --success: #1F6B3F;
  --success-bg: rgba(40,140,80,.08);
  --warning: #B8680E;
  --error: #C84848;

  /* Gradients */
  --hero-grad: linear-gradient(135deg, #9B4FD8 0%, #6B3FC8 50%, #4A6FE8 100%);
  --final-grad: linear-gradient(135deg, #2A1550 0%, #3A1F6B 50%, #4A2A8A 100%);

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(26,15,46,.04), 0 8px 24px rgba(26,15,46,.06);
  --shadow-lift: 0 2px 4px rgba(26,15,46,.06), 0 24px 48px rgba(26,15,46,.10);

  /* Install page step lists + trouble blocks */
  --install-step-num-bg: var(--violet600);
}

/* ==========================================================
   INSTALL STEPS — Vertical timeline rail w/ per-OS accent
   Each LI = grid(48px | 1fr). ::before is the numbered medallion
   pinned to col 1 spanning all rows. h4 + p + code all stack in col 2.
   A pseudo-rail (LI > ::after) draws the connector to the next step.
   ========================================================== */
body.rd .rd-install-tab[data-os] { --os-accent: var(--violet600); --os-accent-soft: rgba(107,63,200,.08); }
body.rd .rd-install-tab[data-os="windows"] { --os-accent: #0078D4; --os-accent-soft: rgba(0,120,212,.08); }
body.rd .rd-install-tab[data-os="macos"]   { --os-accent: var(--ink); --os-accent-soft: rgba(26,15,46,.06); }
body.rd .rd-install-tab[data-os="linux"]   { --os-accent: #E07A1F; --os-accent-soft: rgba(224,122,31,.08); }

body.rd .rd-install-reqs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0 0; margin: 0 0 28px;
  list-style: none;
}
body.rd .rd-install-reqs li {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .2px;
  color: var(--body-dark);
  background: var(--os-accent-soft);
  border: 1px solid color-mix(in srgb, var(--os-accent) 18%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
}
body.rd .rd-install-reqs-label {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--os-accent);
  margin: 0 0 0;
}
body.rd .rd-install-h3 {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.1; font-weight: 700;
  letter-spacing: -.5px; color: var(--ink);
  margin: 32px 0 28px;
}
body.rd .rd-install-h3 em { font-style: italic; color: var(--os-accent); }

body.rd ol.rd-install-steps {
  list-style: none; counter-reset: step;
  padding: 0; margin: 0 0 36px;
}
body.rd ol.rd-install-steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 22px;
  row-gap: 8px;
  padding: 0 0 28px;
}
body.rd ol.rd-install-steps > li:last-child { padding-bottom: 0; }
/* Numbered medallion: stays in col 1, spans all rows (h4 + p + code) */
body.rd ol.rd-install-steps > li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / -1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--os-accent-soft);
  position: relative; z-index: 2;
}
/* Vertical rail connecting medallions: grows from medallion downward */
body.rd ol.rd-install-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23.5px; top: 56px; bottom: -4px;
  width: 1px;
  background: linear-gradient(180deg, var(--os-accent) 0%, color-mix(in srgb, var(--os-accent) 0%, transparent) 100%);
  opacity: .35;
  z-index: 1;
}
body.rd ol.rd-install-steps h4 {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  color: var(--ink); line-height: 1.35;
  margin: 13px 0 0;
}
body.rd ol.rd-install-steps p {
  grid-column: 2; grid-row: 2;
  font-family: var(--font-sans); font-size: 14.5px; color: var(--body-gray);
  margin: 0; line-height: 1.6;
}
/* Inline code & code blocks inside steps (Linux chmod, terminal) */
body.rd ol.rd-install-steps pre,
body.rd ol.rd-install-steps .rd-install-code {
  grid-column: 2; grid-row: 3;
  font-family: var(--font-mono); font-size: 13px;
  background: var(--ink); color: #C4F0D0;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--os-accent);
  overflow-x: auto;
  margin: 6px 0 0;
}
body.rd ol.rd-install-steps pre::before,
body.rd ol.rd-install-steps .rd-install-code::before {
  content: "$ ";
  color: var(--yellow);
  user-select: none;
}
body.rd ol.rd-install-steps code {
  font-family: var(--font-mono); font-size: .92em;
  background: var(--surface); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px;
  color: var(--ink);
}

/* Tabs — proper pills with per-OS active accent */
body.rd .rd-install-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 48px;
}
body.rd .rd-install-tabs .tab-btn {
  background: transparent; border: 0;
  padding: 10px 22px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--body-gray); cursor: pointer;
  border-radius: 999px;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
body.rd .rd-install-tabs .tab-btn:hover { color: var(--ink); }
body.rd .rd-install-tabs .tab-btn.active {
  background: var(--ink); color: #fff;
}
body.rd .rd-install-tabs .tab-btn .os-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
body.rd .rd-install-tabs .tab-btn[data-tab="windows"] .os-dot { background: #0078D4; }
body.rd .rd-install-tabs .tab-btn[data-tab="macos"]   .os-dot { background: var(--ink); border: 1px solid var(--line); }
body.rd .rd-install-tabs .tab-btn[data-tab="linux"]   .os-dot { background: #E07A1F; }
body.rd .rd-install-tabs .tab-btn.active .os-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* Troubleshooting block — accent left bar, warning aesthetic */
body.rd .rd-install-trouble {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow-deep);
  border-radius: 8px;
  padding: 22px 26px;
  margin-top: 40px;
}
body.rd .rd-install-trouble::before {
  content: "⚠";
  position: absolute; top: 18px; right: 22px;
  font-size: 18px; color: var(--yellow-deep);
  opacity: .7;
}
body.rd .rd-install-trouble h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--yellow-deep); margin: 0 0 14px;
}
body.rd .rd-install-trouble p { font-family: var(--font-sans); font-size: 14.5px; color: var(--body-dark); line-height: 1.6; margin: 0 0 10px; }
body.rd .rd-install-trouble p:last-child { margin-bottom: 0; }
body.rd .rd-install-trouble strong { color: var(--ink); font-weight: 700; }
body.rd .rd-install-trouble ol { padding-left: 20px; margin: 8px 0 0; }
body.rd .rd-install-trouble ol li { font-family: var(--font-sans); font-size: 14px; color: var(--body-dark); margin-bottom: 8px; line-height: 1.6; }
body.rd .rd-install-trouble code { font-family: var(--font-mono); font-size: 13px; background: var(--ink); color: var(--yellow); padding: 2px 8px; border-radius: 4px; }

@media (max-width: 600px) {
  body.rd ol.rd-install-steps > li { grid-template-columns: 36px 1fr; column-gap: 16px; }
  body.rd ol.rd-install-steps > li::before { width: 36px; height: 36px; font-size: 11px; }
  body.rd ol.rd-install-steps > li:not(:last-child)::after { left: 17.5px; top: 42px; }
  body.rd .rd-install-h3 { font-size: 26px; }
}

/* ==========================================================
   PRICING CARDS — buy.html 3-up
   ========================================================== */
body.rd .rd-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
body.rd .rd-pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 32px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.rd .rd-pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--violet600) 30%, var(--line)); }
body.rd .rd-pricing-card-featured {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(26,15,46,.1), 0 24px 60px rgba(26,15,46,.18);
}
body.rd .rd-pricing-card-featured:hover { transform: translateY(-10px); border-color: var(--ink); }
body.rd .rd-pricing-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255,209,102,.4);
}
body.rd .rd-pricing-card-head { margin-bottom: 24px; }
body.rd .rd-pricing-tier {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -.4px; margin-bottom: 6px;
}
body.rd .rd-pricing-card-featured .rd-pricing-tier { color: #fff; }
body.rd .rd-pricing-blurb {
  font-family: var(--font-sans); font-size: 13.5px; color: var(--body-gray);
  line-height: 1.45;
}
body.rd .rd-pricing-card-featured .rd-pricing-blurb { color: rgba(255,255,255,.65); }
body.rd .rd-pricing-amount {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); margin: 4px 0 6px;
  display: flex; align-items: baseline;
}
body.rd .rd-pricing-amount .curr {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--body-gray); margin-right: 4px;
}
body.rd .rd-pricing-amount .num {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  letter-spacing: -2px; line-height: 1;
}
body.rd .rd-pricing-card-featured .rd-pricing-amount,
body.rd .rd-pricing-card-featured .rd-pricing-amount .num { color: #fff; }
body.rd .rd-pricing-card-featured .rd-pricing-amount .curr { color: rgba(255,255,255,.5); }
body.rd .rd-pricing-period {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--body-gray); margin: 0 0 24px;
}
body.rd .rd-pricing-card-featured .rd-pricing-period { color: rgba(255,255,255,.55); }
body.rd .rd-pricing-features {
  list-style: none; padding: 0; margin: 24px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  flex: 1;
}
body.rd .rd-pricing-card-featured .rd-pricing-features { border-top-color: rgba(255,255,255,.12); }
body.rd .rd-pricing-features li {
  font-family: var(--font-sans); font-size: 14.5px; color: var(--body-dark);
  padding: 8px 0 8px 24px;
  position: relative;
}
body.rd .rd-pricing-card-featured .rd-pricing-features li { color: rgba(255,255,255,.85); }
body.rd .rd-pricing-features li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--violet600);
  border-bottom: 2px solid var(--violet600);
  transform: rotate(-45deg);
  border-radius: 1px;
}
body.rd .rd-pricing-card-featured .rd-pricing-features li::before { border-color: var(--yellow); }

/* Trust strip below pricing */
body.rd .rd-pricing-trust {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
body.rd .rd-pricing-trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-family: var(--font-sans);
}
body.rd .rd-pricing-trust-item svg { color: var(--violet600); flex-shrink: 0; margin-top: 2px; }
body.rd .rd-pricing-trust-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
body.rd .rd-pricing-trust-item span { display: block; font-size: 13px; color: var(--body-gray); line-height: 1.5; }

@media (max-width: 899px) {
  body.rd .rd-pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  body.rd .rd-pricing-card-featured { transform: none; }
  body.rd .rd-pricing-card-featured:hover { transform: translateY(-3px); }
  body.rd .rd-pricing-trust { grid-template-columns: 1fr; gap: 18px; padding: 22px 22px; }
}

/* ==========================================================
   LEGAL PAGE — shared template (cookie / privacy / terms / refund / eula / impressum / DPA / security)
   ========================================================== */
body.rd .rd-legal {
  padding: 64px 64px 96px;
  max-width: 760px;
  margin: 0 auto;
}
body.rd .rd-legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
body.rd .rd-legal-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--violet600);
  margin-bottom: 12px;
}
body.rd .rd-legal h1 {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  letter-spacing: -1px; line-height: 1.05;
  color: var(--ink); margin: 0 0 12px;
}
body.rd .rd-legal-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--body-gray);
  letter-spacing: .3px;
}
body.rd .rd-legal-body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7; color: var(--body-dark);
}
body.rd .rd-legal-body > p { margin: 0 0 18px; }
body.rd .rd-legal-body > h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -.4px; color: var(--ink);
  margin: 44px 0 14px;
}
body.rd .rd-legal-body > h3 {
  font-family: var(--font-sans); font-size: 18px; font-weight: 700;
  color: var(--ink); margin: 28px 0 10px;
}
body.rd .rd-legal-body strong { color: var(--ink); font-weight: 700; }
body.rd .rd-legal-body a { color: var(--violet600); text-decoration: underline; text-underline-offset: 3px; }
body.rd .rd-legal-body a:hover { color: var(--violet800); }
body.rd .rd-legal-body ul, body.rd .rd-legal-body ol { margin: 0 0 18px; padding-left: 24px; }
body.rd .rd-legal-body li { margin-bottom: 8px; line-height: 1.65; }
body.rd .rd-legal-body table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
body.rd .rd-legal-body th {
  font-family: var(--font-sans); font-weight: 700; text-align: left;
  padding: 10px 14px; background: var(--surface);
  border-bottom: 2px solid var(--line); color: var(--ink);
}
body.rd .rd-legal-body td {
  padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--body-dark);
}
body.rd .rd-legal-body .highlight {
  background: rgba(107,63,200,.05);
  border-left: 3px solid var(--violet600);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 15px;
}
body.rd .rd-legal-body code {
  font-family: var(--font-mono); font-size: .92em;
  background: var(--surface); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px; color: var(--ink);
}

@media (max-width: 767px) {
  body.rd .rd-legal { padding: 40px 20px 60px; }
  body.rd .rd-legal h1 { font-size: 32px; letter-spacing: -.7px; }
  body.rd .rd-legal-body { font-size: 15px; }
  body.rd .rd-legal-body > h2 { font-size: 22px; }
}

/* ==========================================================
   404 — playful branded
   ========================================================== */
body.rd .rd-404 {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}
body.rd .rd-404-inner { max-width: 640px; }
body.rd .rd-404-glyph {
  font-family: var(--font-display);
  font-size: 220px; font-weight: 700;
  letter-spacing: -8px; line-height: 1;
  color: var(--ink);
  margin: 0 0 6px;
  display: inline-block;
}
body.rd .rd-404-glyph em {
  color: var(--yellow);
  font-style: italic;
}
body.rd .rd-404-typed {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--body-gray); letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 12px;
}
body.rd .rd-404-typed .caret {
  display: inline-block; width: 8px; height: 14px;
  background: var(--violet600); margin-left: 4px;
  vertical-align: middle;
  animation: rd-caret-blink 1s step-end infinite;
}
@keyframes rd-caret-blink { 50% { opacity: 0; } }
body.rd .rd-404 h1 {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  letter-spacing: -1px; color: var(--ink);
  margin: 16px 0 12px;
}
body.rd .rd-404 h1 em { color: var(--violet600); font-style: italic; }
body.rd .rd-404 p {
  font-family: var(--font-sans); font-size: 17px; color: var(--body-gray);
  line-height: 1.55; margin: 0 0 32px;
}
body.rd .rd-404-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

@media (max-width: 600px) {
  body.rd .rd-404-glyph { font-size: 140px; letter-spacing: -5px; }
  body.rd .rd-404 h1 { font-size: 30px; }
  body.rd .rd-404 p { font-size: 15.5px; }
}

:root {
  /* Typography — Preset E (Helvetica) per design handoff canvas default */
  --font-display: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
}

/* Base reset scoped to redesign body */
body.rd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.rd * { box-sizing: border-box; }
body.rd a { color: inherit; text-decoration: none; }
body.rd img { max-width: 100%; display: block; }

/* Typography — italic serif emphasis pattern */
body.rd h1, body.rd h2, body.rd h3, body.rd h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
body.rd h1 em, body.rd h2 em, body.rd h3 em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--violet600);
  font-weight: inherit;
}
body.rd strong { font-weight: 600; color: var(--ink); }

/* Container */
.rd .container { max-width: 1312px; margin: 0 auto; padding: 0 64px; }

/* =========================================================
   NAV (inside Hero gradient)
   ========================================================= */
.rd-nav {
  display: flex; align-items: center;
  padding: 20px 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 2;
}
.rd-nav .rd-logo, .rd-nav-light .rd-logo { height: 26px; display: inline-block; vertical-align: middle; }
.rd-nav .rd-nav-links,
.rd-nav-light .rd-nav-links {
  display: flex; gap: 28px;
  margin-left: 56px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.85);
}
.rd-nav .rd-nav-links a { color: inherit; transition: color .15s; }
.rd-nav .rd-nav-links a:hover { color: #fff; }
.rd-nav .rd-nav-right,
.rd-nav-light .rd-nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.rd-nav .rd-lang-bar,
.rd-nav-light .rd-lang-bar {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  display: inline-flex; gap: 8px;
}
body.rd .rd-nav .rd-lang-bar a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
body.rd .rd-nav .rd-lang-bar a:hover { color: #fff; background: rgba(255,255,255,.08); }
/* Light nav variant (audience landings) */
body.rd .rd-nav-light .rd-lang-bar a { color: rgba(0,0,0,.55); }
body.rd .rd-nav-light .rd-lang-bar a:hover { color: var(--ink); background: rgba(0,0,0,.06); }
/* Active language (rendered current page lang). The :where keeps specificity low so theme overrides still work. */
html[lang="en"] .rd-lang-bar a[hreflang="en"],
html[lang="ro"] .rd-lang-bar a[hreflang="ro"],
html[lang="de"] .rd-lang-bar a[hreflang="de"],
html[lang="fr"] .rd-lang-bar a[hreflang="fr"],
html[lang="it"] .rd-lang-bar a[hreflang="it"],
html[lang="es"] .rd-lang-bar a[hreflang="es"],
html[lang="pt"] .rd-lang-bar a[hreflang="pt"],
html[lang="el"] .rd-lang-bar a[hreflang="el"] {
  color: var(--yellow);
  font-weight: 700;
}
.rd-nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
body.rd .rd-nav-light .rd-nav-toggle { color: var(--ink); }

/* =========================================================
   BUTTONS
   ========================================================= */
.rd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.rd-btn-sm { padding: 8px 14px; font-size: 13px; gap: 6px; }
.rd-btn-lg { padding: 16px 26px; font-size: 15px; gap: 10px; }
/* All button color rules prefixed with body.rd to beat body.rd a { color: inherit } specificity */
body.rd .rd-btn-primary {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
  box-shadow: 0 1px 2px rgba(26,15,46,.12), 0 8px 24px rgba(240,180,41,.35);
}
body.rd .rd-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(26,15,46,.15), 0 12px 32px rgba(240,180,41,.45); }
body.rd .rd-btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 8px 20px rgba(26,15,46,.25); }
body.rd .rd-btn-dark:hover { transform: translateY(-1px); }
body.rd .rd-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
body.rd .rd-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
body.rd .rd-btn-ghost { background: transparent; color: var(--violet700); border-color: transparent; }
body.rd .rd-btn-light-outline { background: transparent; color: var(--ink); border-color: var(--line); }
body.rd .rd-btn-light-outline:hover { background: var(--surface); }

/* =========================================================
   BADGE
   ========================================================= */
.rd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px; text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}
.rd-badge-violet { background: rgba(107,63,200,.08); color: var(--violet700); border-color: rgba(107,63,200,.18); }
.rd-badge-yellow { background: rgba(255,209,102,.18); color: var(--yellow); border-color: rgba(255,209,102,.5); }
.rd-badge-green { background: rgba(40,140,80,.08); color: var(--success); border-color: rgba(40,140,80,.2); }
.rd-badge-ghost { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2); }

/* =========================================================
   SECTION primitives
   ========================================================= */
.rd-section { padding: 96px 64px; }
.rd-section-inner { max-width: 1312px; margin: 0 auto; }
.rd-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--violet600);
  margin-bottom: 14px;
}
.rd-eyebrow-light { color: var(--yellow); }
.rd-h2 {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 400;
  color: var(--ink);
  max-width: 880px;
}
body.rd .rd-h2-light { color: #fff; }
body.rd .rd-hero h1 { color: #fff; }
body.rd .rd-final-cta h2 { color: #fff; }
.rd-lead {
  font-family: var(--font-sans);
  font-size: 18px; line-height: 1.55;
  color: var(--body-dark);
  margin: 20px 0 0;
  max-width: 680px;
}
body.rd .rd-lead-light { color: rgba(255,255,255,.8); }
body.rd .rd-eyebrow-light { color: var(--yellow); }

/* =========================================================
   HERO
   ========================================================= */
.rd-hero {
  position: relative;
  background: var(--hero-grad);
  color: #fff;
  overflow: hidden;
}
.rd-hero-dots {
  position: absolute; inset: 0;
  opacity: 0.35; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 40px 40px;
}
.rd-hero-body {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
  padding: 80px 64px 100px;
  max-width: 1440px;
  margin: 0 auto;
}
.rd-hero-badges { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.rd-hero h1 {
  font-size: 80px; line-height: 0.98;
  letter-spacing: -2.5px;
  margin: 0;
  color: #fff;
  font-weight: 700;
}
/* Hero H1 em override — needs higher specificity than body.rd h1 em default violet */
body.rd .rd-hero h1 em { font-style: italic; color: var(--yellow); font-weight: 700; }
/* All H1s on audience landings + any future page get bold Helvetica per handoff Preset E */
body.rd h1 { font-weight: 700; }
body.rd h1 em { font-weight: 700; }

/* All em inside dark-background sections must be yellow for contrast (violet on violet = invisible) */
body.rd .rd-platforms h2 em,
body.rd .rd-platforms h3 em,
body.rd .rd-final-cta h2 em,
body.rd .rd-hero em {
  color: var(--yellow);
  font-style: italic;
}
.rd-hero-lead {
  font-size: 19px; line-height: 1.5;
  color: rgba(255,255,255,.85);
  margin-top: 28px;
  max-width: 540px;
}
.rd-hero-lead strong { color: #fff; font-weight: 600; }
.rd-hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.rd-hero-subproof {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  flex-wrap: wrap;
}
.rd-hero-subproof span { display: inline-flex; align-items: center; gap: 6px; }

/* Live demo card */
.rd-demo-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.1);
  color: var(--ink);
}
.rd-demo-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.rd-demo-bar .dot { width: 10px; height: 10px; border-radius: 5px; }
.rd-demo-bar .d1 { background: #FF5F56; }
.rd-demo-bar .d2 { background: #FFBD2E; }
.rd-demo-bar .d3 { background: #27C93F; }
.rd-demo-title {
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--body-gray);
}
.rd-demo-stats {
  margin-left: auto;
  display: flex; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--body-gray);
}
.rd-demo-stats strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.rd-demo-stats .acc strong { color: var(--success); }

.rd-demo-text {
  font-family: var(--font-mono);
  font-size: 22px; line-height: 1.6;
  letter-spacing: -0.3px;
  padding: 14px 4px;
  min-height: 72px;
  word-break: break-word;
}
.rd-demo-text .typed { color: var(--success); background: var(--success-bg); }
.rd-demo-text .current {
  color: var(--ink); background: var(--yellow);
  padding: 0 2px; border-radius: 3px;
  position: relative;
  animation: caretBlink 1s infinite;
}
.rd-demo-text .rest { color: #B8B0C8; }

@keyframes caretBlink { 50% { opacity: 0.7; } }

.rd-demo-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body-gray);
  margin-top: 8px; margin-bottom: 18px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.rd-demo-meta strong { color: var(--ink); }

/* Keyboard */
.rd-kb {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px;
  background: var(--ink);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.25);
}
.rd-kb-row { display: flex; gap: 5px; }
.rd-kb-row:nth-child(2) { padding-left: 9px; }
.rd-kb-row:nth-child(3) { padding-left: 18px; }
.rd-kb-key {
  width: 36px; height: 36px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.15);
  position: relative;
  transition: transform 80ms ease-out, box-shadow 120ms ease-out;
}
.rd-kb-key[data-finger="pink"] { background: var(--f-pink); }
.rd-kb-key[data-finger="red"] { background: var(--f-red); }
.rd-kb-key[data-finger="yellow"] { background: var(--f-yellow); }
.rd-kb-key[data-finger="green"] { background: var(--f-green); }
.rd-kb-key[data-finger="blue"] { background: var(--f-blue); }
.rd-kb-key[data-finger="purple"] { background: var(--f-purple); }
.rd-kb-key.active {
  box-shadow: 0 0 0 2px var(--yellow), 0 0 0 5px rgba(255,209,102,.35), inset 0 -2px 0 rgba(0,0,0,.12);
  transform: translateY(1px);
}
.rd-kb-key.pressed {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.08);
  transform: translateY(2px) scale(.96);
}
.rd-kb-key[data-key="f"]::after,
.rd-kb-key[data-key="j"]::after {
  content: ""; position: absolute; bottom: 3px;
  width: 10px; height: 1.5px;
  background: rgba(0,0,0,.5); border-radius: 1px;
}
.rd-kb-space-row { display: flex; gap: 5px; justify-content: center; margin-top: 2px; }
.rd-kb-space {
  width: 180px; height: 36px;
  background: var(--f-purple);
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform 80ms ease-out, box-shadow 120ms ease-out;
}
.rd-kb-space.pressed {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,.4);
  transform: translateY(2px) scale(.99);
}

/* Progress bar */
.rd-demo-progress {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
}
.rd-demo-progress-track { flex: 1; height: 6px; background: #E6E0F0; border-radius: 3px; overflow: hidden; }
.rd-demo-progress-fill { height: 100%; background: var(--violet600); border-radius: 3px; transition: width 120ms linear; }
.rd-demo-progress-label { font-family: var(--font-mono); font-size: 11px; color: var(--body-gray); min-width: 36px; }

.rd-demo-badge {
  position: absolute; top: -14px; left: -14px;
  background: var(--ink); color: #fff;
  padding: 6px 12px; border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  border: 1.5px solid var(--yellow);
}

/* Hero trust strip */
.rd-hero-trust {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 64px;
  display: flex; align-items: center; gap: 48px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  max-width: 1440px; margin: 0 auto;
  flex-wrap: wrap;
}
.rd-hero-trust-label {
  font-weight: 600; color: #fff;
  letter-spacing: 0.5px; text-transform: uppercase;
  font-size: 11px;
}
.rd-hero-trust-name {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: -0.3px;
  color: rgba(255,255,255,.8);
}

/* =========================================================
   AUDIENCE SPLIT
   ========================================================= */
.rd-audience { background: var(--surface); padding: 112px 64px; }
.rd-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.rd-audience-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.rd-audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.rd-audience-tag {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.rd-audience-tag-dot { width: 8px; height: 8px; border-radius: 4px; }
.rd-audience-tag-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.rd-audience-card.pro .rd-audience-tag-dot,
.rd-audience-card.pro .rd-audience-tag-label { color: var(--violet600); background: var(--violet600); }
.rd-audience-card.pro .rd-audience-tag-label { background: transparent; color: var(--violet600); }
.rd-audience-card.schools .rd-audience-tag-dot { background: var(--success); }
.rd-audience-card.schools .rd-audience-tag-label { color: var(--success); }
.rd-audience-card.kids .rd-audience-tag-dot { background: var(--warning); }
.rd-audience-card.kids .rd-audience-tag-label { color: var(--warning); }

.rd-audience-card h3 {
  font-size: 30px; line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 0;
  min-height: 72px;
}
.rd-audience-card p {
  font-size: 15px; line-height: 1.55;
  color: var(--body-dark);
  margin: 18px 0 24px;
}
.rd-audience-kw {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}
.rd-audience-kw span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--surface);
  color: var(--body-gray);
  border-radius: 4px;
  border: 1px solid var(--line);
}
.rd-audience-cta { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rd-audience-card.pro .rd-audience-cta { color: var(--violet600); }
.rd-audience-card.schools .rd-audience-cta { color: var(--success); }
.rd-audience-card.kids .rd-audience-cta { color: var(--warning); }

/* =========================================================
   FINGER GUIDE
   ========================================================= */
.rd-finger-guide { background: #fff; padding: 120px 64px; }
.rd-finger-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  max-width: 1312px; margin: 0 auto;
}
.rd-finger-list { list-style: none; padding: 0; margin: 32px 0 0; }
.rd-finger-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rd-finger-list-check {
  width: 24px; height: 24px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.rd-finger-list-t { font-size: 16px; font-weight: 600; color: var(--ink); }
.rd-finger-list-d { font-size: 14px; color: var(--body-gray); line-height: 1.5; margin-top: 2px; }

.rd-finger-preview {
  background: linear-gradient(160deg, var(--surface) 0%, #F0EBFA 100%);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-lift);
}
.rd-finger-preview-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--violet700);
  font-weight: 600;
  margin-bottom: 20px;
}
.rd-finger-legend {
  display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.rd-finger-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--body-dark);
}
.rd-finger-legend-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.08);
}
.rd-finger-caption {
  margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--body-dark);
}
.rd-finger-caption strong { color: var(--ink); }
.rd-finger-caption-right { color: var(--body-gray); }

/* =========================================================
   PLATFORMS (dark section)
   ========================================================= */
.rd-platforms { background: var(--ink); color: #fff; padding: 112px 64px; }
.rd-platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1312px; margin: 0 auto;
}
.rd-platforms-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.rd-platform-feature-ic { color: var(--yellow); margin-bottom: 8px; }
.rd-platform-feature-t { font-size: 16px; font-weight: 600; color: #fff; }
.rd-platform-feature-d { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; margin-top: 2px; }

.rd-platforms-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rd-platform-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  transition: background .2s;
}
.rd-platform-card:hover { background: rgba(255,255,255,.08); }
.rd-platform-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.rd-platform-card-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.rd-platform-card-os { font-size: 15px; font-weight: 600; color: #fff; }
.rd-platform-card-ver { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.55); }
.rd-platform-card-file { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.rd-platform-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.rd-platform-card-size { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4); }
.rd-platform-card-dl { font-size: 12px; font-weight: 600; color: var(--yellow); }

/* =========================================================
   LANGUAGES
   ========================================================= */
.rd-languages { background: #fff; padding: 120px 64px; }
.rd-languages-head {
  max-width: 1312px; margin: 0 auto 48px;
}
.rd-languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1312px; margin: 0 auto;
}
.rd-lang-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.rd-lang-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.rd-lang-flag { font-size: 26px; line-height: 1; }
.rd-lang-layout {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body-gray);
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.rd-lang-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.rd-lang-special { font-family: var(--font-mono); font-size: 13px; color: var(--violet700); margin-top: 6px; letter-spacing: 1px; }
.rd-lang-count { font-family: var(--font-mono); font-size: 10px; color: var(--body-gray); margin-top: 10px; }

/* =========================================================
   COMPARE TABLE
   ========================================================= */
.rd-compare { background: var(--surface); padding: 112px 64px; }
.rd-compare-inner { max-width: 1312px; margin: 0 auto; }
.rd-compare-table {
  margin-top: 56px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
/* Yellow highlight stripe for the Typiq column — covers ONLY body rows (not header).
   Grid template is 1.4fr 1fr 1fr 1fr 1fr → typiq col position: 1.4/5.4 → 1.0/5.4 width */
.rd-compare-body { position: relative; }
.rd-compare-body::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(1.4 / 5.4 * 100%);
  width: calc(1 / 5.4 * 100%);
  background: rgba(240, 180, 41, 0.08);
  z-index: 0;
  pointer-events: none;
}
.rd-compare-body .rd-compare-row { position: relative; z-index: 1; }
.rd-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  padding: 18px 28px;
  font-size: 14px;
}
.rd-compare-head {
  background: var(--ink);
  color: #fff;
  padding: 24px 28px;
  font-size: 13px;
}
.rd-compare-head .rd-compare-feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.rd-compare-head .rd-typiq-col { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rd-compare-head .rd-typiq-col .rd-star { color: var(--yellow); font-size: 11px; font-family: var(--font-mono); margin-left: 4px; }
.rd-compare-head .rd-rival { font-weight: 500; color: rgba(255,255,255,.7); }
.rd-compare-body .rd-compare-row { border-top: 1px solid var(--line); }
.rd-compare-body .rd-compare-row:first-child { border-top: none; }
.rd-compare-body .rd-compare-feature { color: var(--ink); font-weight: 500; }
/* No per-cell background needed; the column stripe on .rd-compare-body handles it */
.rd-compare-typiq-cell { }
.rd-yes { color: var(--body-gray); font-weight: 500; }
.rd-yes-hl { color: var(--success); font-weight: 700; }
.rd-no { color: var(--error); font-weight: 500; }
.rd-compare-links {
  margin-top: 32px;
  display: flex; gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.rd-compare-links a { font-size: 14px; font-weight: 600; color: var(--violet700); }
.rd-compare-links a:hover { color: var(--violet600); }
.rd-compare-links .rd-sep { color: var(--line); }

/* =========================================================
   OUTCOMES + CHART
   ========================================================= */
.rd-outcomes { background: #fff; padding: 120px 64px; }
.rd-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: 1312px; margin: 0 auto;
}
.rd-outcomes-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rd-stat-n { font-family: var(--font-display); font-size: 44px; font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.rd-stat-t { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.rd-stat-s { font-size: 12px; color: var(--body-gray); margin-top: 2px; }

.rd-chart-card {
  background: linear-gradient(160deg, var(--surface) 0%, #F0EBFA 100%);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--line);
}
.rd-chart-head { display: flex; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.rd-chart-label { font-family: var(--font-mono); font-size: 11px; color: var(--body-gray); letter-spacing: 1px; text-transform: uppercase; }
.rd-chart-t { font-size: 22px; font-family: var(--font-sans); font-weight: 600; color: var(--ink); margin-top: 4px; }
.rd-chart-legend { display: flex; gap: 14px; align-items: center; }
.rd-chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; }
.rd-chart-legend-swatch { width: 12px; height: 3px; border-radius: 2px; }

/* =========================================================
   PRICING
   ========================================================= */
.rd-pricing { background: var(--surface); padding: 120px 64px; }
.rd-pricing-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.rd-pricing-head .rd-h2 { margin: 0 auto; }
.rd-pricing-head .rd-lead { margin: 20px auto 0; }
.rd-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1312px; margin: 0 auto;
}
.rd-pricing-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 36px;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
body.rd .rd-pricing-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.rd-pricing-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--yellow); color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.rd-pricing-name { font-size: 14px; font-weight: 600; color: var(--violet700); letter-spacing: 0.2px; }
body.rd .rd-pricing-card.featured .rd-pricing-name { color: var(--yellow); }
.rd-pricing-price { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; }
.rd-pricing-price-num { font-family: var(--font-display); font-size: 54px; font-weight: 400; line-height: 1; letter-spacing: -1.5px; }
.rd-pricing-per { font-size: 13px; color: var(--body-gray); margin-top: 6px; }
body.rd .rd-pricing-card.featured .rd-pricing-per { color: rgba(255,255,255,.65); }
.rd-pricing-body { font-size: 14px; line-height: 1.55; color: var(--body-dark); margin: 20px 0 24px; }
body.rd .rd-pricing-card.featured .rd-pricing-body { color: rgba(255,255,255,.8); }
.rd-pricing-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rd-pricing-features li { display: flex; gap: 10px; font-size: 14px; color: var(--body-dark); }
body.rd .rd-pricing-card.featured .rd-pricing-features li { color: rgba(255,255,255,.9); }
.rd-pricing-features svg { color: var(--violet600); margin-top: 3px; flex-shrink: 0; }
body.rd .rd-pricing-card.featured .rd-pricing-features svg { color: var(--yellow); }
.rd-pricing-kw { margin-top: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; color: var(--body-gray); }
body.rd .rd-pricing-card.featured .rd-pricing-kw { color: rgba(255,255,255,.4); }

.rd-pricing-trust {
  margin-top: 48px;
  padding: 24px 32px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1312px; margin-left: auto; margin-right: auto;
}
.rd-pricing-trust-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--body-gray); font-weight: 600; }
.rd-pricing-trust-methods { font-size: 14px; color: var(--body-dark); font-weight: 600; }
.rd-pricing-trust-stripe { font-size: 13px; color: var(--body-gray); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.rd-testimonials { background: #fff; padding: 112px 64px; }
.rd-testimonials-inner { max-width: 1312px; margin: 0 auto; }
.rd-testimonials-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}
.rd-stars-row { display: flex; gap: 2px; align-items: center; }
.rd-stars-row svg { color: var(--yellow); }
.rd-reviews-verified { font-size: 14px; color: var(--body-gray); margin-left: 16px; }
.rd-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rd-testi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.rd-testi-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.rd-testi-stars svg { color: var(--yellow); }
.rd-testi-quote {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.4;
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.2px;
}
.rd-testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rd-testi-avatar {
  width: 40px; height: 40px; border-radius: 20px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-sans);
}
.rd-testi-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.rd-testi-role { font-size: 12px; color: var(--body-gray); }

/* =========================================================
   FAQ
   ========================================================= */
.rd-faq { background: var(--surface); padding: 112px 64px; }
.rd-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: flex-start;
  max-width: 1312px; margin: 0 auto;
}
.rd-faq-left { position: sticky; top: 40px; }
.rd-faq-support { font-size: 14px; color: var(--body-gray); margin-top: 24px; }
.rd-faq-support a { color: var(--violet700); font-weight: 600; }
.rd-faq-note {
  margin-top: 28px; padding: 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body-gray);
  line-height: 1.5;
}
.rd-faq-note-head { color: var(--ink); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }

.rd-faq-list { border-top: 1px solid var(--line); }
.rd-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.rd-faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  list-style: none;
  cursor: pointer;
}
.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-q {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
  flex: 1;
}
.rd-faq-toggle {
  font-family: var(--font-mono);
  font-size: 18px; color: var(--violet600);
  margin-top: 6px; flex-shrink: 0;
}
.rd-faq-item[open] .rd-faq-toggle::before { content: "−"; }
.rd-faq-item:not([open]) .rd-faq-toggle::before { content: "+"; }
.rd-faq-a {
  font-size: 15px; line-height: 1.6;
  color: var(--body-dark);
  margin: 14px 0 0;
  max-width: 720px;
}

/* =========================================================
   BLOG TEASER
   ========================================================= */
.rd-blog-section { background: #fff; padding: 112px 64px; }
.rd-blog-inner { max-width: 1312px; margin: 0 auto; }
.rd-blog-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 20px; }
.rd-blog-head a { font-size: 14px; font-weight: 600; color: var(--violet700); }
.rd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-blog-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.rd-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.rd-blog-card-img {
  height: 180px;
  position: relative;
  padding: 24px;
  display: flex; align-items: flex-end;
}
.rd-blog-card-img.c1 { background: linear-gradient(135deg, #6B3FC8 0%, #4A2A8A 100%); }
.rd-blog-card-img.c2 { background: linear-gradient(135deg, #F0B429 0%, #4A2A8A 100%); }
.rd-blog-card-img.c3 { background: linear-gradient(135deg, #1F6B3F 0%, #4A2A8A 100%); }
.rd-blog-tag {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.rd-blog-card-img::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 160px; height: 100px;
  opacity: 0.25;
  background-image: linear-gradient(#fff 0 8px, transparent 8px 16px, #fff 16px 24px, transparent 24px 32px, #fff 32px 40px);
  background-size: 100px 16px;
  background-position: 10px 20px;
  background-repeat: no-repeat;
}
.rd-blog-card-body { padding: 24px; }
.rd-blog-card-meta { font-family: var(--font-mono); font-size: 11px; color: var(--body-gray); margin-bottom: 10px; }
.rd-blog-card-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 400; letter-spacing: -0.3px; color: var(--ink); margin: 0; }
.rd-blog-card-excerpt { font-size: 14px; line-height: 1.55; color: var(--body-dark); margin: 12px 0 18px; }
.rd-blog-card-link { font-family: var(--font-mono); font-size: 10px; color: var(--violet700); letter-spacing: 0.5px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.rd-final-cta {
  background: var(--final-grad);
  color: #fff;
  padding: 120px 64px;
  text-align: center;
}
.rd-final-cta-inner { max-width: 880px; margin: 0 auto; }
.rd-final-cta h2 { font-size: 72px; line-height: 1.02; letter-spacing: -1.8px; margin: 0 auto; color: #fff; }
body.rd .rd-final-cta h2 em { color: var(--yellow); font-style: italic; }
.rd-final-cta p { font-size: 19px; color: rgba(255,255,255,.85); margin: 28px auto 40px; max-width: 560px; line-height: 1.5; }
.rd-final-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rd-final-cta-foot { margin-top: 32px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 0.5px; }

/* =========================================================
   FOOTER
   ========================================================= */
.rd-footer { background: var(--ink); color: #fff; padding: 80px 64px 40px; }
.rd-footer-inner { max-width: 1312px; margin: 0 auto; }
.rd-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rd-footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); margin: 20px 0 28px; max-width: 320px; }
.rd-footer-langs { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-footer-lang {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1px;
  padding: 4px 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.rd-footer-lang:hover { background: rgba(255,255,255,.1); }
.rd-footer-col-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.rd-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-footer-col li { font-size: 14px; color: rgba(255,255,255,.8); }
.rd-footer-col a { color: inherit; text-decoration: none; transition: color .15s; }
.rd-footer-col a:hover { color: var(--yellow); }
.rd-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}
.rd-footer-bottom-right { font-family: var(--font-mono); font-size: 11px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .rd-hero-body { padding: 60px 40px 80px; gap: 48px; }
  .rd-hero h1 { font-size: 64px; }
  .rd-section { padding: 80px 40px; }
  .rd-h2 { font-size: 44px; }
  .rd-nav { padding: 20px 40px; }
}

/* Tablet & mobile (≤1199): collapse all nav into hamburger; only logo + toggle visible */
@media (max-width: 1199px) {
  body.rd .rd-nav .rd-nav-links,
  body.rd .rd-nav .rd-lang-bar,
  body.rd .rd-nav-light .rd-nav-links,
  body.rd .rd-nav-light .rd-lang-bar { display: none; }
  body.rd .rd-nav .rd-nav-right > a.rd-btn,
  body.rd .rd-nav-light .rd-nav-right > a.rd-btn { display: none; }
  body.rd .rd-nav-toggle,
  body.rd .rd-nav-light .rd-nav-toggle { display: inline-flex; margin-left: auto; }

  /* When open: vertical dropdown containing nav-links + lang-bar + action buttons */
  body.rd .rd-nav.open .rd-nav-links,
  body.rd .rd-nav-light.open .rd-nav-links {
    display: flex !important; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); color: #fff;
    padding: 20px; margin: 0; gap: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 16px;
    z-index: 11;
  }
  body.rd .rd-nav-light.open .rd-nav-links a { color: rgba(255,255,255,.9); }

  body.rd .rd-nav.open .rd-lang-bar,
  body.rd .rd-nav-light.open .rd-lang-bar {
    display: flex !important; flex-wrap: wrap; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    margin: 0;
    /* Push below nav-links dropdown panel (~14*5 line height + 2*20 padding) */
    transform: translateY(calc(100% + 180px));
    z-index: 10;
  }
  body.rd .rd-nav-light.open .rd-lang-bar a { color: rgba(255,255,255,.7); }
  body.rd .rd-nav-light.open .rd-lang-bar a:hover { color: #fff; }
}

@media (max-width: 767px) {
  /* Defensive: never allow horizontal scroll on narrow viewports */
  html, body { overflow-x: hidden; }
  /* All redesign sections shrink horizontal padding */
  body.rd .rd-audience,
  body.rd .rd-finger-guide,
  body.rd .rd-platforms,
  body.rd .rd-languages,
  body.rd .rd-compare,
  body.rd .rd-outcomes,
  body.rd .rd-pricing,
  body.rd .rd-testimonials,
  body.rd .rd-faq,
  body.rd .rd-blog,
  body.rd .rd-final-cta { padding-left: 20px; padding-right: 20px; }
  .rd-hero-body, .rd-audience-grid, .rd-finger-grid, .rd-platforms-grid,
  .rd-outcomes-grid, .rd-pricing-grid, .rd-testimonials-grid,
  .rd-faq-grid, .rd-blog-grid, .rd-platforms-features, .rd-platforms-cards {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .rd-languages-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .rd-hero h1 { font-size: 40px; letter-spacing: -1px; overflow-wrap: break-word; word-break: normal; hyphens: none; }
  .rd-h2 { font-size: 32px; letter-spacing: -0.8px; }

  /* Demo card shrinks proportionally */
  body.rd .rd-demo-card,
  body.rd .rd-school-dash { padding: 16px; max-width: 100%; min-width: 0; }
  body.rd .rd-hero-copy, body.rd .rd-hero-body > * { max-width: 100%; min-width: 0; }
  /* Keyboard scaled down to fit narrow viewports */
  body.rd .rd-kb { padding: 10px; gap: 3px; }
  body.rd .rd-kb-row { gap: 3px; }
  body.rd .rd-kb-row:nth-child(2) { padding-left: 6px; }
  body.rd .rd-kb-row:nth-child(3) { padding-left: 12px; }
  body.rd .rd-kb-key { width: 26px; height: 28px; font-size: 11px; }
  body.rd .rd-kb-space { width: 140px; height: 28px; }
  /* School dash KPIs single col + smaller numbers */
  body.rd .rd-school-dash-kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.rd .rd-school-dash-kpi-val { font-size: 22px; }
  .rd-final-cta h2 { font-size: 44px; }
  .rd-section, .rd-hero-body { padding-left: 20px; padding-right: 20px; }
  .rd-nav { padding: 16px 20px; }
  .rd-hero-body { padding-top: 40px; padding-bottom: 60px; gap: 40px; }
  .rd-hero-trust { padding: 16px 20px; gap: 20px; }
  body.rd .rd-pricing-card.featured { transform: none; }
  .rd-faq-left { position: static; }
  .rd-compare-row, .rd-compare-head { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; padding: 12px 16px; font-size: 12px; gap: 8px; }
  .rd-compare-row { overflow-x: auto; }
  .rd-compare-table { overflow-x: auto; }
  .rd-kb-key { width: 28px; height: 28px; font-size: 11px; }
  .rd-kb-space { width: 140px; height: 28px; }
  .rd-demo-text { font-size: 17px; }
  .rd-nav .rd-nav-right { gap: 8px; }
}

/* =========================================================
   COOKIE RE-OPEN BUTTON (persistent, bottom-left)
   Visible after consent is given, so users can change preferences
   ========================================================= */
#cookie-reopen-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 15, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#cookie-reopen-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(26, 15, 46, 0.35);
}
#cookie-reopen-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
#cookie-reopen-btn svg { display: block; }
@media (max-width: 767px) {
  #cookie-reopen-btn { left: 16px; bottom: 16px; width: 40px; height: 40px; }
  #cookie-reopen-btn svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-demo-text .current { animation: none; }
  .rd-kb-key { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
