/* ============================================================
   CTO Teachings — marketing site
   Black + purple theme, ported from the Wix Studio design.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700;800&family=Wix+Madefor+Text:wght@400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  --black: #000000;
  --bg: #000000;
  --white: #ffffff;
  --off-white: #faf9f5;
  --text: #d6dcdc;
  --muted: #939393;
  --purple: #7a64ff;
  --purple-light: #907cff;
  --purple-dark: #6b4fe8;
  --btn-grad: linear-gradient(95deg, #ef4e9b 0%, #b350c9 48%, #5b54e8 100%);

  --font-display: 'Wix Madefor Display', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Wix Madefor Text', 'Helvetica Neue', Arial, sans-serif;
  --font-thin: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
  --radius: 18px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0;
  line-height: 1.05;
  font-weight: 600;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { position: relative; padding: 120px 0; }
.text-purple { color: var(--purple-light); }
.eyebrow { color: var(--purple-light); font-weight: 600; letter-spacing: 0.04em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 0; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-pill {
  background: var(--white); color: #0a0a0a;
  border-radius: var(--radius-pill); padding: 18px 34px;
}
.btn-pill .arrow { transition: transform 0.25s var(--ease); }
.btn-pill:hover { background: var(--btn-grad); color: #0a0a0a; transform: translateY(-2px); }
.btn-pill:hover .arrow { transform: rotate(45deg); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5); border-radius: var(--radius-pill);
  padding: 16px 30px;
}
.btn-outline:hover { background: var(--btn-grad); border-color: transparent; color: #0a0a0a; }
.btn-purple {
  background: var(--purple); color: var(--white);
  border-radius: 6px; padding: 16px 28px; text-transform: none; letter-spacing: 0;
  font-size: 1.05rem;
}
.btn-purple:hover { background: var(--btn-grad); color: #0a0a0a; }
.arrow { width: 18px; height: 18px; flex: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }
.header-inner {
  max-width: 1480px; margin: 0 auto; padding: 22px 40px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand-mark { width: auto; height: 40px; flex: none; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white); }

.nav-pill {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-pill);
  padding: 6px;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--white);
  font-family: var(--font-text); font-size: 1.05rem; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease);
}
.nav-item.active > .nav-link, .nav-link:hover { color: var(--purple-light); }
.caret { width: 11px; height: 7px; margin-top: 2px; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(16px);
  min-width: 220px; padding: 6px;
  background: rgba(10,10,12,0.97); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px; backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.25s;
}
/* transparent hover bridge: keeps the menu open while the cursor crosses
   the gap between the nav pill and the dropdown box */
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(14px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.dropdown-link { padding: 9px 16px; border-radius: 9px; color: var(--text); font-size: 0.98rem; white-space: nowrap; }
.dropdown-link:hover, .dropdown-link.active { background: rgba(122,100,255,0.16); color: var(--white); }

.cta-get-started {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.45); border-radius: var(--radius-pill);
  padding: 19px 32px;
}
.cta-get-started:hover { background: #d6dcdc; border-color: transparent; color: #0a0a0a; transform: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-burger span { width: 26px; height: 2px; background: var(--white); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.5)); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 120px 40px; width: 100%; max-width: 100%; text-align: center; }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 5rem); text-transform: uppercase;
  letter-spacing: 0.01em; font-weight: 600; margin: 0 auto 32px;
  white-space: nowrap;
}
@media (max-width: 760px) { .hero h1 { white-space: normal; } }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.45rem); color: #e7eaea; max-width: 760px; margin: 0 auto 44px; line-height: 1.5; }

/* ============================================================
   GENERIC SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; max-width: 880px; margin: 0 auto 70px; }
.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; line-height: 1.04;
  letter-spacing: 0.005em;
}
.section-lead { color: var(--text); font-size: 1.2rem; margin-top: 22px; }
.section-lead.nowrap { white-space: nowrap; }
@media (max-width: 1100px) { .section-lead.nowrap { white-space: normal; } }

/* ---- Mesh background (purple perspective grid, matches Wix) ---- */
.bg-mesh { position: relative; overflow: hidden; }
.bg-mesh::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('assets/wave-bg.jpg') no-repeat center right;
  background-size: cover; opacity: 0.85;
}
.bg-mesh > .container, .bg-mesh > .section-head { position: relative; z-index: 2; }

/* ---- Glows ---- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; pointer-events: none; }
.glow-purple { background: radial-gradient(circle, rgba(122,100,255,0.55), transparent 70%); }
.glow-blue { background: radial-gradient(circle, rgba(60,40,200,0.5), transparent 70%); }

/* ============================================================
   "THREE WAYS" CARDS
   ============================================================ */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 2; }
.way-card {
  background: linear-gradient(180deg, rgba(28,24,48,0.7), rgba(12,10,22,0.7));
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 42px 34px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.way-card:hover { transform: translateY(-6px); border-color: rgba(122,100,255,0.4); }
.way-card h3 { font-size: 1.7rem; margin-bottom: 18px; }
.way-card p { color: var(--text); font-size: 1.02rem; margin: 0 0 26px; }
.way-link { color: var(--purple-light); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; align-self: flex-start; }
.way-link:hover { gap: 12px; }

/* ============================================================
   "WHICH MODEL" SCENARIO ROWS
   ============================================================ */
.scenarios { position: relative; }
.scenario-row {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.28);
}
.scenario-row:last-child { border-bottom: 0; }
.scenario-row p { font-size: 1.4rem; color: var(--white); margin: 0; max-width: 70%; }
.scenario-row .btn {
  white-space: nowrap; min-width: 380px; justify-content: center;
  border: 2px solid #0a0a0a;
}

/* ============================================================
   "BRIEF TO BUILDER" STEPS
   ============================================================ */
.steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.steps-media { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1.1 / 1; }
.steps-media video, .steps-media img { width: 100%; height: 100%; object-fit: cover; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.step:last-child { border-bottom: 0; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--purple-light); line-height: 1; }
.step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
/* Home "Brief to Builder": animated talent-network graphic (replaces the video) */
.talent-net { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgba(122,100,255,0.16), rgba(11,7,20,0) 72%), #0b0714; }
.talent-net svg { width: 100%; height: 100%; }
.tn-links line { stroke-dasharray: 5 7; animation: tn-flow 2.4s linear infinite; }
.tn-node { fill: var(--purple-light); filter: drop-shadow(0 0 6px rgba(144,124,255,0.85)); transform-box: fill-box; transform-origin: center; animation: tn-breathe 3.2s ease-in-out infinite; }
.tn-node.hollow { fill: rgba(11,7,20,0.9); stroke: var(--purple-light); stroke-width: 2; }
.tn-node:nth-of-type(2) { animation-delay: 0.5s; }
.tn-node:nth-of-type(3) { animation-delay: 1s; }
.tn-node:nth-of-type(4) { animation-delay: 1.5s; }
.tn-node:nth-of-type(5) { animation-delay: 0.8s; }
.tn-node:nth-of-type(6) { animation-delay: 2s; }
.tn-core { filter: drop-shadow(0 0 18px rgba(122,100,255,0.9)); }
.tn-core-label { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-anchor: middle; }
.tn-skill { fill: rgba(214,220,220,0.85); font-family: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: 500; text-anchor: middle; }
/* strongest candidate: brighter, larger, steady (no breathe), with a spinning ring */
.tn-node.tn-top { animation: none; filter: drop-shadow(0 0 16px rgba(144,124,255,1)); }
.tn-ring { fill: none; stroke: var(--purple-light); stroke-width: 2; stroke-dasharray: 4 7; transform-box: fill-box; transform-origin: center; animation: tn-spin 7s linear infinite; }
.tn-top-label { fill: var(--purple-light); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-anchor: middle; }
@keyframes tn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tn-ring { animation: none; } }
.tn-pulse { fill: none; stroke: rgba(144,124,255,0.55); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tn-radar 2.8s ease-out infinite; }
@keyframes tn-flow { to { stroke-dashoffset: -24; } }
@keyframes tn-breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.28); opacity: 1; } }
@keyframes tn-radar { 0% { transform: scale(0.55); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tn-links line, .tn-node, .tn-pulse { animation: none; } }

/* ============================================================
   "WHY CTO" SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.split-title { font-size: clamp(2.4rem, 5vw, 4.2rem); text-transform: uppercase; }
.split-sub { color: var(--purple-light); margin-top: 16px; font-size: 1.1rem; }
.split-body p { color: var(--text); font-size: 1.12rem; margin: 0 0 22px; }
.split-body p a { color: var(--purple-light); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 2; }
.testimonial {
  background: linear-gradient(160deg, rgba(140,108,255,0.45) 0%, rgba(96,58,170,0.42) 55%, rgba(58,34,110,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 40px 34px; text-align: center; backdrop-filter: blur(2px);
}
.testimonial .quote-mark { color: var(--purple-light); font-size: 2.4rem; line-height: 1; font-family: var(--font-display); }
.testimonial blockquote { margin: 16px 0 26px; color: #e7eaea; font-size: 1.05rem; line-height: 1.55; }
.testimonial .t-name { color: var(--white); font-weight: 600; font-size: 1.1rem; }
.testimonial .t-role { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.philosophy-img { border-radius: var(--radius); overflow: hidden; }
.philosophy h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; margin-bottom: 30px; }
.philosophy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.philosophy-cols p { color: var(--text); font-size: 1.02rem; margin: 0; }
.philosophy-cols a { color: var(--purple-light); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { position: relative; text-align: center; padding: 150px 0; overflow: hidden; }
.cta-banner .hero-bg { opacity: 0.8; }
.cta-banner h2 { position: relative; z-index: 2; font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: uppercase; }
.cta-banner p { position: relative; z-index: 2; max-width: 820px; margin: 24px auto 40px; color: #e7eaea; font-size: 1.2rem; }
.cta-banner .btn { position: relative; z-index: 2; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; padding: 220px 40px 110px; text-align: center; overflow: hidden; }
/* Gradient hero background (matches Our Story / What We Stand For) for interior
   pages that don't use the video hero-bg. */
.page-hero-gradient {
  background:
    radial-gradient(120% 82% at 32% 128%, rgba(150,58,205,0.55) 0%, transparent 56%),
    linear-gradient(to top, #4e1d7a 0%, #301545 22%, #0c0714 48%, #000 66%),
    #000;
}
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); text-transform: uppercase; position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.page-hero p { max-width: 720px; margin: 26px auto 0; color: #e7eaea; font-size: 1.2rem; position: relative; z-index: 2; }
.page-hero p.page-hero-kicker { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.05; color: var(--white); margin: 0 auto 4px; max-width: 1000px; position: relative; z-index: 2; }
.page-hero--legal { padding-bottom: 24px; }
.section.legal-body { padding-top: 24px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--text); font-size: 1.12rem; margin: 0 0 22px; }
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; margin: 50px 0 20px; }
.prose a { color: var(--purple-light); }
.prose ul { margin: 0 0 22px; padding-left: 22px; }
.prose li { color: var(--text); font-size: 1.12rem; line-height: 1.6; margin: 0 0 10px; }
.prose strong { color: var(--white); font-weight: 700; }

/* ============================================================
   FEATURE GRID  (service "how it works" / benefits)
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-chip {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(122,100,255,0.14); color: var(--purple-light);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-chip svg { width: 22px; height: 22px; }
.feature:hover .feature-chip { background: var(--purple); color: #fff; box-shadow: 0 0 18px rgba(122,100,255,0.65); transform: scale(1.08); }
.feature {
  background: linear-gradient(180deg, rgba(26,22,44,0.6), rgba(12,10,22,0.6));
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 36px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(122,100,255,0.4); }
.feature h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature p { color: var(--text); font-size: 1rem; margin: 0; }

/* Problems We Solve: hover-reveal cards — problem at rest, solution on hover */
.hp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hp-card {
  position: relative; overflow: hidden; min-height: 220px; border-radius: var(--radius);
  border: 1px solid rgba(146,124,255,0.45);
  background: linear-gradient(180deg, rgba(26,22,44,0.65), rgba(12,10,22,0.65));
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hp-card:hover { transform: translateY(-6px); border-color: rgba(146,124,255,0.9); box-shadow: 0 16px 44px rgba(90,60,200,0.4), inset 0 1px 0 rgba(255,255,255,0.08); }
.hp-front, .hp-back { position: absolute; inset: 0; padding: 28px 26px; transition: opacity 0.35s var(--ease), transform 0.4s var(--ease); }
.hp-front { display: flex; flex-direction: column; justify-content: space-between; }
.hp-front h3 { font-size: 1.28rem; line-height: 1.22; color: var(--white); }
.hp-hint { color: var(--purple-light); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.hp-back { display: flex; align-items: center; opacity: 0; transform: translateY(16px);
  background: linear-gradient(155deg, #7a64ff 0%, #6b4fe8 100%); }
.hp-back p { color: #fff; font-size: 1.06rem; line-height: 1.45; font-weight: 500; margin: 0; }
.hp-card:hover .hp-front { opacity: 0; transform: translateY(-12px); }
.hp-card:hover .hp-back { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hp-grid { grid-template-columns: 1fr; }
  .hp-card { min-height: 0; }
  .hp-front, .hp-back { position: relative; inset: auto; transition: none; }
  .hp-front { padding-bottom: 6px; }
  .hp-hint { display: none; }
  .hp-back { opacity: 1; transform: none; background: none; padding-top: 0; }
  .hp-back p { color: var(--muted); font-weight: 400; font-size: 1rem; }
}

/* ---- Split hero with connected vertical timeline (service pages) ---- */
.split-hero { padding-top: 190px; }
.split-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-hero-right .btn { margin-top: 50px; }
.split-hero-title { font-size: clamp(2rem, 3.6vw, 3.3rem); text-transform: uppercase; line-height: 1.1; margin-bottom: 30px; }
.split-hero-left > p { color: var(--text); font-size: 1.12rem; margin: 0 0 36px; max-width: 520px; }

.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 28px; position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1.5px;
  background: rgba(122,100,255,0.35);
}
.timeline-num {
  width: 56px; height: 56px; border-radius: 50%; position: relative; z-index: 1;
  border: 1.5px solid rgba(122,100,255,0.6);
  background: radial-gradient(circle, rgba(122,100,255,0.20), rgba(122,100,255,0.04));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--white);
}
.timeline-item:last-child .timeline-num { background: var(--purple); border-color: var(--purple); }
.timeline-content { padding-top: 9px; }
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 6px; }
.timeline-content p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---- Benefit icon grid (no cards, centered icon + text) ---- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 48px; }
.benefit { text-align: center; transition: transform 0.3s var(--ease); }
.benefit:hover { transform: scale(1.06); }
.benefit-icon { width: 56px; height: 56px; margin: 0 auto 26px; color: var(--purple-light); display: block; }
.benefit h3 { font-size: 1.3rem; margin-bottom: 12px; }
.benefit p { color: var(--muted); font-size: 1rem; margin: 0 auto; max-width: 320px; }

/* ---- Mini numbered steps (horizontal) ---- */
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 0 40px; }
.mini-step { text-align: center; }
.mini-step .num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white);
  background: rgba(122,100,255,0.16); border: 1px solid rgba(122,100,255,0.5);
}
.mini-step p { font-size: 1.02rem; color: var(--text); margin: 0; }

/* ---- Comparison ---- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 44px; align-items: stretch; }
.compare-card { background: rgba(18,16,30,0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 44px 34px; text-align: center; }
.compare-card.accent { border-color: rgba(122,100,255,0.5); background: linear-gradient(180deg, rgba(122,100,255,0.18), rgba(18,16,30,0.7)); }
.compare-label { color: var(--muted); letter-spacing: 0.08em; font-size: 0.85rem; text-transform: uppercase; }
.compare-big { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; color: var(--white); margin: 12px 0; }
.compare-card.accent .compare-big { color: var(--purple-light); }
.compare-vs { font-family: var(--font-display); font-weight: 700; color: var(--muted); display: flex; align-items: center; }

/* ---- Problem: stat band + cost comparison bars ---- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0 0 64px; }
.stat-item-lg { border-left: 2px solid rgba(122,100,255,0.55); padding-left: 24px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--purple-light); line-height: 1; margin-bottom: 14px; }
.stat-text { color: var(--muted); font-size: 1.02rem; line-height: 1.5; }

.cost-compare {
  background: linear-gradient(180deg, rgba(22,18,40,0.75), rgba(10,9,18,0.75));
  border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 48px;
}
.cost-compare-title { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 0 0 36px; }
.cost-row { margin-bottom: 32px; }
.cost-row:last-child { margin-bottom: 0; }
.cost-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.cost-name { color: var(--text); font-size: 1.05rem; font-weight: 600; }
.cost-name.accent, .cost-val.accent { color: var(--purple-light); }
.cost-val { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--white); white-space: nowrap; }
.cost-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.cost-fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease) 0.15s; }
.cost-fill-full { background: linear-gradient(90deg, #2e2566, #6b4fe8); }
.cost-fill-frac { background: var(--btn-grad); }
.cost-compare.in-view .cost-fill-full { width: 100%; }
.cost-compare.in-view .cost-fill-frac { width: 17%; }
.cost-note { color: var(--muted); font-size: 0.95rem; margin: 11px 0 0; }

/* ---- Numbered step cards (How it works) ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,22,44,0.6), rgba(12,10,22,0.6));
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 34px 30px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--btn-grad); opacity: 0; transition: opacity 0.3s var(--ease);
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(122,100,255,0.45); }
.step-card:hover::before { opacity: 1; }
.step-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step-card h3 .step-num { font-family: var(--font-display); font-size: 1em; line-height: 1; font-weight: 800; color: var(--purple-light); margin-inline-end: 12px; }
.step-card p { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.55; }

/* ---- What We Stand For: two-column with quote + values ---- */
.stand-section {
  position: relative; overflow: hidden; padding: 200px 0 120px;
  background:
    radial-gradient(120% 82% at 32% 128%, rgba(150,58,205,0.55) 0%, transparent 56%),
    linear-gradient(to top, #4e1d7a 0%, #301545 22%, #0c0714 48%, #000 66%),
    #000;
}
.stand-section .container { position: relative; z-index: 2; }
.stand-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: stretch; }
/* left column: heading with the value cards stacked beneath it */
.stand-left { display: flex; flex-direction: column; }
/* heading spans full width above the grid so cards + quote share the same top edge */
.stand-heading { font-family: var(--font-display); font-weight: 700; text-transform: none; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; margin: 0 0 48px; }
/* heading slides in left → right, matching the cards */
.stand-heading.reveal { opacity: 0; transform: translateX(-120px); transition: opacity 1.2s var(--ease), transform 1.5s var(--ease); }
.stand-heading.reveal.in-view { opacity: 1; transform: none; }
/* right column: quote + CTA, vertically centered against the cards */
/* right column: quote fills the upper space (centered), CTA pinned to the
   bottom so it aligns with the cards' lower edge */
.stand-right { display: flex; flex-direction: column; }
.stand-quote-wrap { flex: 1; display: flex; align-items: flex-start; }
.stand-cta { margin: 0; }

.stand-quote { position: relative; padding-left: 34px; margin: 0; max-width: 540px; }
.stand-quote::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--purple-light), rgba(122,100,255,0.15)); }
/* both quote marks share the exact same color & style */
.stand-quote .qmark, .stand-quote .qmark-deco { color: rgba(255,255,255,0.7); font-family: Georgia, serif; font-weight: 700; line-height: 1; }
.stand-quote .qmark { display: block; font-size: 2.9rem; margin-bottom: 10px; }
.stand-quote .qmark-deco { position: absolute; right: 4px; bottom: -12px; font-size: 2.9rem; pointer-events: none; }
.stand-quote p { font-size: 1.65rem; color: var(--white); line-height: 1.4; margin: 0 0 20px; }
.stand-quote cite { color: var(--muted); font-style: normal; font-size: 1.12rem; }
/* entrance: the quote block slides up from below (bottom → top).
   The wrapper is what the reveal IntersectionObserver watches; it stays put
   while the inner block slides. */
.stand-quote-wrap.reveal { opacity: 1; transform: none; transition: none; }
.stand-quote { opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--ease) 0.1s, transform 1.5s var(--ease) 0.1s; }
.stand-quote-wrap.in-view .stand-quote { opacity: 1; transform: none; }
/* CTA button: slower slide-up to match the quote */
.stand-cta.reveal { transition: opacity 1.2s var(--ease), transform 1.5s var(--ease); }

.stand-values { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 20px; align-items: stretch; }
/* entrance: the whole card grid slides in left → right as one unit */
.stand-values.reveal { opacity: 0; transform: translateX(-120px); transition: opacity 1.2s var(--ease) 0.1s, transform 1.5s var(--ease) 0.1s; }
.stand-values.reveal.in-view { opacity: 1; transform: none; }
.stand-value {
  position: relative; padding: 28px 26px 30px;
  border: 1px solid rgba(146,124,255,0.5); border-radius: 18px;
  background: linear-gradient(180deg, rgba(146,124,255,0.12), rgba(146,124,255,0.03));
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stand-value::before {
  content: ''; position: absolute; left: 0; top: 22px; width: 3px; height: 34px;
  border-radius: 0 3px 3px 0; background: var(--purple);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.stand-value:hover { transform: translateY(-6px); border-color: rgba(146,124,255,0.9); background: linear-gradient(180deg, rgba(146,124,255,0.2), rgba(146,124,255,0.05)); box-shadow: 0 14px 40px rgba(90,60,200,0.35), inset 0 1px 0 rgba(255,255,255,0.08); }
.stand-value:hover::before { opacity: 1; }
.stand-value h3 { font-size: 1.1rem; margin-bottom: 11px; line-height: 1.25; white-space: nowrap; }
.stand-value p { color: var(--muted); font-size: 0.98rem; margin: 0; line-height: 1.55; }

/* ══ Unified card look across all pages: purple glow (#91) + lift & pink→purple
   top-bar hover (#90). Applies to every bordered content card. ══ */
.step-card, .feature, .stand-value, .testimonial, .faq-item {
  position: relative; overflow: hidden;
  border-color: rgba(146,124,255,0.45);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.step-card::before, .feature::before, .stand-value::before, .testimonial::before, .faq-item::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  border-radius: 0; background: var(--btn-grad);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.step-card:hover, .feature:hover, .stand-value:hover, .testimonial:hover, .faq-item:hover {
  transform: translateY(-6px);
  border-color: rgba(146,124,255,0.85);
  box-shadow: 0 16px 44px rgba(90,60,200,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.step-card:hover::before, .feature:hover::before, .stand-value:hover::before, .testimonial:hover::before, .faq-item:hover::before { opacity: 1; }

@media (max-width: 920px) {
  .stand-section { padding: 150px 0 90px; }
  .stand-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 560px) { .stand-values { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Story hero (Our Story) two-column, gradient background ---- */
.story-hero {
  position: relative; overflow: hidden; padding: 210px 0 130px;
  background:
    radial-gradient(120% 82% at 32% 128%, rgba(150,58,205,0.55) 0%, transparent 56%),
    linear-gradient(to top, #4e1d7a 0%, #301545 22%, #0c0714 48%, #000 66%),
    #000;
}
.story-hero .split { align-items: start; }
.story-hero-title {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.12; text-transform: none;
}
/* entrance (matches What We Stand For): title slides in from the left, body
   + button slide up from the bottom — both at 1.2s / 1.5s ease-out.
   The wrapper stays static so the reveal observer reliably fires; the h1 slides. */
.story-title-wrap.reveal { opacity: 1; transform: none; transition: none; }
.story-hero-title { opacity: 0; transform: translateX(-120px); transition: opacity 1.2s var(--ease) 0.1s, transform 1.5s var(--ease) 0.1s; }
.story-title-wrap.in-view .story-hero-title { opacity: 1; transform: none; }
.story-hero .split-body.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--ease) 0.1s, transform 1.5s var(--ease) 0.1s; }
.story-hero .split-body.reveal.in-view { opacity: 1; transform: none; }
@media (max-width: 920px) { .story-hero { padding: 150px 0 90px; } }

/* ---- Story timeline (Our Story) with slide-in + line-draw entrance ---- */
.story-timeline { max-width: 1180px; margin: 0 auto; }
.story-item {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 40px;
  align-items: start; padding: 46px 0;
}
.story-item::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: rgba(255,255,255,0.42);
  transform: scaleX(0); transform-origin: left; transition: transform 0.85s var(--ease);
}
.story-item:first-child::before { display: none; }
.story-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--purple-light); color: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
}
.story-content h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.story-content p { color: var(--muted); font-size: 1.05rem; max-width: 940px; margin: 0; line-height: 1.6; }
/* entrance: item stays put (holds the line); its content slides in from the left */
.story-item.reveal { opacity: 1; transform: none; }
.story-item .story-num, .story-item .story-content {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.story-item .story-content { transition-delay: 0.08s; }
.story-item.in-view .story-num, .story-item.in-view .story-content { opacity: 1; transform: none; }
.story-item.in-view::before { transform: scaleX(1); }
@media (max-width: 620px) {
  .story-item { grid-template-columns: 44px 1fr; gap: 22px; padding: 34px 0; }
  .story-num { width: 44px; height: 44px; font-size: 1.15rem; }
}

/* ---- Differentiator check badges ---- */
.diff-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1000px; margin: 56px auto 0; }
.diff-item {
  display: flex; align-items: center; gap: 13px; padding: 15px 26px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  background: rgba(14,12,24,0.78); backdrop-filter: blur(6px); color: var(--text); font-size: 1.05rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.diff-item:hover { border-color: rgba(122,100,255,0.55); transform: translateY(-3px); background: rgba(122,100,255,0.12); }
.diff-check {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(122,100,255,0.6);
}
.diff-check svg { width: 16px; height: 16px; }

/* ---- Recruiting: founder-led manifesto (two-column bold list) ---- */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.why-intro .eyebrow { display: block; margin-bottom: 14px; }
.why-intro .section-title { text-transform: none; text-align: left; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.12; margin: 0; }
.why-intro .section-lead { margin-top: 22px; max-width: 470px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-item {
  padding: 26px 2px; border-top: 1px solid rgba(255,255,255,0.22);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem); line-height: 1.25; color: var(--white);
}
/* higher specificity than .reveal so both the entrance and the hover animate */
.why-list .why-item { transition: color 0.3s var(--ease), padding-left 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.why-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
.why-item:hover { color: var(--purple-light); padding-left: 18px; border-color: rgba(122,100,255,0.7); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 36px; } .why-item { padding: 22px 2px; } }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 1.08rem; }
.checklist li::before { content: '✓'; color: var(--purple-light); font-weight: 700; flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid rgba(255,255,255,0.12); padding: 80px 0 40px; }
.footer-top {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; align-items: baseline;
}
.footer-col h4 { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); padding: 7px 0; font-size: 1rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--purple-light); }
.footer-headline { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--white); line-height: 1.15; margin: 0 0 22px; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.field-label { font-size: 0.95rem; color: var(--text); }
.field-label span { color: var(--purple-light); }
.field-input { background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 14px; color: var(--white); font-family: inherit; font-size: 1rem; }
.field-input:focus { outline: none; border-color: var(--purple-light); }
.checkbox-row { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.95rem; }
.footer-bottom { max-width: var(--maxw); margin: 50px auto 0; padding: 24px 40px 0; border-top: 1px solid rgba(255,255,255,0.08); color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  position: relative; overflow: hidden; padding: 190px 0 120px;
  background:
    radial-gradient(120% 82% at 32% 128%, rgba(150,58,205,0.55) 0%, transparent 56%),
    linear-gradient(to top, #4e1d7a 0%, #301545 22%, #0c0714 48%, #000 66%),
    #000;
}
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-title { font-family: var(--font-display); font-weight: 700; text-transform: none; font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.12; }
.contact-lead { color: var(--text); font-size: 1.15rem; line-height: 1.6; margin: 22px 0 34px; max-width: 460px; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-points li { position: relative; padding-left: 30px; color: var(--white); font-size: 1.05rem; }
.contact-points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--purple-light); font-weight: 800; }

.contact-card {
  background: linear-gradient(180deg, rgba(20,16,34,0.9), rgba(12,10,22,0.9));
  border: 1px solid rgba(146,124,255,0.4); border-radius: 20px; padding: 36px 34px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px); display: grid; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.field-label span { color: var(--purple-light); }
.field-input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 14px 16px; min-height: 52px; color: var(--white); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field-input::placeholder { color: rgba(214,220,220,0.38); }
.field-input:focus { outline: none; border-color: var(--purple-light); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(122,100,255,0.22); }
textarea.field-input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.field-input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23907cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
select.field-input:invalid { color: rgba(214,220,220,0.5); }
.contact-submit { width: 100%; justify-content: center; margin-top: 4px; }
.contact-privacy { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 0; }
@media (max-width: 860px) {
  .contact-section { padding: 150px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Pull quote (What We Stand For) ---- */
.pull-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: var(--white); line-height: 1.25; }
.pull-quote cite { display: block; margin-top: 24px; color: var(--purple-light); font-style: normal; font-size: 1.1rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .nav-pill { display: none; }
  .cta-get-started { display: none; }
  .nav-burger { display: flex; margin-left: auto; }

  body.nav-open .nav-pill {
    display: block; position: fixed; top: 84px; left: 16px; right: 16px;
    background: rgba(12,12,14,0.98); border-radius: 18px; padding: 14px;
  }
  body.nav-open .nav-list { flex-direction: column; align-items: stretch; }
  body.nav-open .nav-link { justify-content: space-between; width: 100%; }
  body.nav-open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: 0; backdrop-filter: none; padding: 0 0 0 16px;
    display: none;
  }
  body.nav-open .nav-item.open .dropdown { display: flex; }

  .ways-grid, .testimonial-grid, .feature-grid, .feature-grid.cols-2, .feature-grid.cols-4 { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .split-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .split-hero { padding-top: 150px; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { transform: rotate(90deg); }
  .stat-band { grid-template-columns: 1fr; gap: 26px; }
  .cost-compare { padding: 32px 24px; }
  .steps-layout, .split, .philosophy, .philosophy-cols { grid-template-columns: 1fr; gap: 40px; }
  .scenario-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .scenario-row p { max-width: 100%; font-size: 1.2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   MARKETING PILLAR — additive only (nothing above is restyled).
   Everything here supports marketing.html, ceramic-coating-marketing.html
   and the marketing-led home page. New card classes are registered in the
   shared card-treatment selector list above, not re-styled here.
   ============================================================ */

/* ---- Phone CTA ----
   Conversion on the marketing pages is a phone call, so the dial button has to
   read as the primary action next to the white .btn-pill. Gradient fill, and it
   carries the number in the label rather than hiding it behind "Call us". ---- */
.btn-phone {
  background: var(--btn-grad); color: #0a0a0a;
  border-radius: var(--radius-pill); padding: 18px 34px;
  box-shadow: 0 10px 30px rgba(122,100,255,0.35);
}
.btn-phone:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(122,100,255,0.5); color: #0a0a0a; }
.btn-phone svg { width: 18px; height: 18px; flex: none; }
.phone-note { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }
.phone-note a { color: var(--purple-light); font-weight: 600; }
/* Buttons sitting side by side under a hero or a section head. */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; position: relative; z-index: 2; }

/* ---- Four-across stat band (the three-across default is untouched) ---- */
.stat-band.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1100px) { .stat-band.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .stat-band.cols-4 { grid-template-columns: 1fr; } }

/* ---- Grouped nav dropdown ----
   The Services menu now carries two families (marketing, engineering), so each
   needs a label. A heading is NOT a link — it must not pick up .dropdown-link's
   hover, and it must not be reachable by keyboard. ---- */
.dropdown-heading {
  padding: 12px 16px 6px; margin: 0;
  color: var(--muted); font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.dropdown-heading + .dropdown-link { margin-top: 0; }
.dropdown-heading ~ .dropdown-heading { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; }

/* ---- ROI bars: arbitrary widths via --w ----
   The original cost-compare carried exactly two bars whose widths are hardcoded
   (.cost-fill-full 100%, .cost-fill-frac 17%) — those rules are untouched and
   ai-outsourcing.html keeps working. A bar that instead sets --w inline animates
   to that width when the block scrolls into view. ---- */
.cost-compare.in-view .cost-fill-var { width: var(--w, 0); }
.cost-fill-var { background: var(--btn-grad); }
.cost-fill-var.muted { background: linear-gradient(90deg, #2e2566, #6b4fe8); }

/* ---- Comparison table ----
   Six channels x four columns will never fit a phone, so the table scrolls
   inside its own wrapper rather than forcing the whole page sideways. ---- */
.cmp-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(146,124,255,0.35); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22,18,40,0.75), rgba(10,9,18,0.75));
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; }
.cmp-table caption { caption-side: top; text-align: left; padding: 24px 26px 0; color: var(--muted); font-size: 0.95rem; }
.cmp-table th, .cmp-table td { padding: 18px 26px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.09); }
.cmp-table thead th {
  color: var(--white); font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom-color: rgba(146,124,255,0.5); white-space: nowrap;
}
.cmp-table tbody th { color: var(--white); font-family: var(--font-text); font-weight: 600; }
.cmp-table td { color: var(--text); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr { transition: background 0.25s var(--ease); }
.cmp-table tbody tr:hover { background: rgba(122,100,255,0.09); }
.cmp-rank { font-weight: 600; white-space: nowrap; }
.cmp-rank.best { color: var(--purple-light); }
.cmp-rank.poor { color: var(--muted); }
.cmp-hint { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }

/* ---- FAQ ----
   Native <details>/<summary>: it opens with JavaScript disabled, it is keyboard
   operable and screen-reader announced for free, and there is no JS to ship. The
   default triangle is replaced by a rotating +. ---- */
.faq-list { display: grid; gap: 16px; max-width: 940px; margin: 0 auto; }
.faq-item {
  background: linear-gradient(180deg, rgba(26,22,44,0.6), rgba(12,10,22,0.6));
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 20px;
  padding: 26px 30px; color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--purple-light); outline-offset: -4px; border-radius: var(--radius); }
.faq-item summary::after {
  content: '+'; margin-left: auto; flex: none;
  color: var(--purple-light); font-size: 1.9rem; line-height: 1; font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { padding-bottom: 12px; }
.faq-answer { padding: 0 30px 28px; }
.faq-answer p { color: var(--text); font-size: 1.04rem; line-height: 1.6; margin: 0 0 14px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--purple-light); }
@media (max-width: 620px) {
  .faq-item summary { padding: 20px 22px; font-size: 1.06rem; gap: 14px; }
  .faq-answer { padding: 0 22px 22px; }
}

/* ---- Two extra reveal delays: the marketing grids run to six cards ---- */
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ---- Left-aligned section head, for sections that sit beside a table ---- */
.section-head.align-left { text-align: left; margin-left: 0; max-width: 760px; }
.section-head.align-left .section-title { text-align: left; }

/* ---- Platform families: a labelled group of .diff-item badges ---- */
.platform-group { margin: 0 0 44px; }
.platform-group:last-child { margin-bottom: 0; }
.platform-group h3 {
  text-align: center; font-size: 1.05rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple-light);
}
.platform-group .diff-grid { margin-top: 22px; }

/* ---- Named glow placements ----
   The existing pages position each .glow with an inline style. New pages use
   these instead so the decorative geometry lives in the stylesheet. ---- */
.glow-tr { width: 520px; height: 520px; top: -120px; right: -100px; }
.glow-tl { width: 480px; height: 480px; top: 40px; left: -140px; }
.glow-bl { width: 480px; height: 480px; bottom: -120px; left: -120px; }
.glow-br { width: 480px; height: 480px; bottom: -140px; right: -140px; }

/* ---- A centred button under a grid ---- */
.center-cta { text-align: center; margin-top: 56px; position: relative; z-index: 2; }

/* ---- Button row under a .page-hero (the hero's ::after sits at z-index 1) ---- */
.page-hero-actions { margin-top: 36px; }

/* ---- ROI bar widths ----
   Each bar declares its target width as --w; .cost-compare.in-view then animates
   .cost-fill-var to it. Declared as classes rather than inline styles so the
   stylesheet stays the single place the chart's geometry lives. ---- */
.cost-fill-var.w-100 { --w: 100%; }
.cost-fill-var.w-77  { --w: 77%; }
.cost-fill-var.w-54  { --w: 54%; }
.cost-fill-var.w-35  { --w: 35%; }

/* ---- Mobile dropdown: kill the desktop centring transform ----
   `.has-dropdown:hover .dropdown` (0,3,0) out-specifies `body.nav-open .dropdown`
   (0,2,1), so at <=920px a POINTER resting on an open menu item re-applied the
   desktop translateX(-50%) and pushed the panel off the left edge. Touch devices
   never have :hover so this only ever bit a narrow desktop window — but the
   Services menu now carries seven links and two headings, which makes it far
   more visible. Fixed additively, inside the same breakpoint, rather than by
   editing the rules above. ---- */
@media (max-width: 920px) {
  body.nav-open .nav-item.has-dropdown:hover .dropdown,
  body.nav-open .nav-item.has-dropdown:focus-within .dropdown { transform: none; }
}

/* ============================================================
   MOBILE HARDENING (additive)
   These are lead-generation landing pages whose only conversion is a
   click-to-call, and most of their traffic arrives on a phone — so the
   narrow widths are the primary case, not the fallback.
   ============================================================ */

/* 1. ZERO horizontal body scroll.
   The decorative .glow orbs are absolutely positioned past the viewport edge
   (e.g. right:-100px on a 520px circle). `body { overflow-x: hidden }` stopped
   the page from SCROLLING sideways, but documentElement.scrollWidth still
   exceeded the viewport, which is what a phone's rubber-banding reacts to.
   Clipping at the section boundary removes the overflow at source; the orbs are
   blurred radial gradients, so the clip is invisible. Desktop is untouched. */
@media (max-width: 920px) {
  .section, .cta-banner, .page-hero, .hero { overflow: hidden; }
  .glow { max-width: 100vw; }
}

/* 2. The phone CTA has to be in the hero WITHOUT scrolling.
   .page-hero's 220px top padding was written for a desktop viewport; on a 360px
   phone it pushed the call button under the fold, which on these pages means the
   page has no visible conversion at all. */
@media (max-width: 920px) {
  .page-hero { padding: 140px 22px 70px; }
  .hero-content { padding: 100px 22px; }
  .btn-row { gap: 12px; }
  /* Full-width so the tap target is unmissable and comfortably over 44px tall. */
  .btn-phone { width: 100%; max-width: 380px; justify-content: center; padding: 20px 24px; }
  .btn-row .btn-outline { width: 100%; max-width: 380px; justify-content: center; }
}

/* 3. Nav group headings: readable, and never below 14px. */
.dropdown-heading { font-size: 0.875rem; }

/* 4. Stat numbers must not break mid-figure ($100K+, 3–10, <$10). */
.stat-band.cols-4 .stat-num { white-space: nowrap; }

/* 5. FAQ summary: comfortably past a 44px tap target, and the question wraps
   instead of colliding with the +. min-width:0 is what lets a flex child wrap. */
.faq-item summary { min-height: 44px; }
.faq-item summary > * , .faq-item summary { min-width: 0; }
.faq-item summary::after { align-self: flex-start; }

/* 6. ROI chart at phone widths: stack the label above the value so a long
   channel name can never collide with its figure. */
@media (max-width: 560px) {
  .cost-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cost-val { font-size: 1.2rem; }
  .cost-compare { padding: 26px 18px; }
}

/* 7. Comparison table: keep the header type at 14px rather than 13. */
.cmp-table thead th { font-size: 0.875rem; }

/* 8. PAGE WEIGHT — a commercial constraint, not polish.
   Every page pulls assets/hero-waves.mp4 (1.09 MB). These two marketing pages
   take PAID search traffic, where landing-page speed feeds Ads Quality Score
   (and therefore cost per click) and Core Web Vitals feed organic rank — the two
   metrics the pages exist to win. Below the nav breakpoint the video is dropped
   entirely and its own poster frame is painted instead: same picture, one
   request instead of two, and a megabyte that never leaves the CDN.
   Paired with preload="none" on the element so nothing competes with first
   paint on desktop either. */
@media (max-width: 920px) {
  .video-mobile-poster > .hero-bg { display: none; }
  .video-mobile-poster {
    /* The scrim replaces what the <video> got from .cta-banner .hero-bg{opacity:.8}
       and .hero::after — without it the headline loses contrast against the frame. */
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('assets/hero-poster.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* 9. prefers-reduced-motion: the existing block covers .reveal; these are the
   new/animated pieces it did not know about. */
@media (prefers-reduced-motion: reduce) {
  .cost-fill { transition: none; }
  .faq-item summary::after { transition: none; }
  .btn-phone, .cmp-table tbody tr { transition: none; }
}

/* 10. The footer's phone link is a conversion too — .footer-col a's 7px padding
   gave it a 40px box, under the 44px tap minimum. */
.footer-col a[href^="tel:"] { display: flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--purple-light); }

/* 11. At 360px the brand lockup wrapped onto two lines and shoved the burger
   down with it. Scale the lockup rather than truncating the name. */
@media (max-width: 420px) {
  .header-inner { padding: 16px 18px; gap: 12px; }
  .brand-mark { height: 32px; }
  .brand-name { font-size: 1.15rem; white-space: nowrap; }
}

/* 12. Tap targets in the burger menu. Measured at 360px: dropdown links came out
   43px tall and the burger's own box 42x32 — both just under the 44px minimum,
   which is exactly the size at which a thumb starts missing. */
@media (max-width: 920px) {
  .dropdown-link { min-height: 44px; display: flex; align-items: center; }
  .nav-burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}

/* ============================================================
   PRODUCTS HOME  (Jobfinder + LangLearn, with real screenshots)
   ============================================================ */
/* Screenshot frames. Every product image sits in one, so a dark app screen never
   bleeds into the black page: a hairline border, a soft purple lift, and for the
   browser frame a fake title bar that reads as "this is a real app". */
.shot { position: relative; margin: 0; overflow: hidden; background: #0b0a10; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 80px rgba(70,40,180,0.28), 0 2px 0 rgba(255,255,255,0.04) inset; }
.shot img { width: 100%; height: auto; }
.shot-browser { border-radius: 14px; padding-top: 30px; }
.shot-browser::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30px;
  background: radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 6px),
              radial-gradient(circle at 36px 15px, #febc2e 5px, transparent 6px),
              radial-gradient(circle at 54px 15px, #28c840 5px, transparent 6px),
              #16141f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shot-phone { border-radius: 34px; border: 6px solid #1d1b26; box-shadow: 0 30px 70px rgba(70,40,180,0.35), 0 0 0 1px rgba(255,255,255,0.1); }

/* Hero: the two products as clickable tiles under the headline. */
.product-hero .eyebrow { margin: 0 0 18px; }
.product-hero .hero-content { padding-top: 160px; padding-bottom: 90px; }
.product-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1180px; margin: 10px auto 0; text-align: left; }
.product-tile { display: block; border-radius: 20px; padding: 14px; background: rgba(16,13,30,0.72); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(6px); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.product-tile:hover { transform: translateY(-6px); border-color: rgba(144,124,255,0.6); }
.product-tile .shot { box-shadow: none; }
.product-tile-body { display: flex; align-items: center; gap: 16px; padding: 18px 8px 6px; }
.product-tile-body h3 { font-size: 1.5rem; }
.product-tile-body p { margin: 4px 0 0; color: var(--text); font-size: 1rem; }
.product-badge { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #9333ea; color: #fff; }
.product-badge svg { width: 24px; height: 24px; }

/* Product sections */
.product-section { scroll-margin-top: 80px; }
.product-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; position: relative; z-index: 2; }
.product-intro .section-title { text-align: left; }
.product-intro .eyebrow { margin: 0 0 14px; }
.product-intro .btn-row { justify-content: flex-start; margin-top: 30px; }
.product-lead { color: var(--text); font-size: 1.2rem; margin: 0; }

.product-showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 2; }
.product-steps { list-style: none; margin: 0; padding: 0; }
.product-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.product-steps li:first-child { padding-top: 0; }
.product-steps li:last-child { border-bottom: 0; }
.product-steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.product-steps .step-num { font-size: 2.1rem; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; align-items: start; position: relative; z-index: 2; }

.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 48px; position: relative; z-index: 2; }
.phone { margin: 0; }
.phone figcaption { margin-top: 22px; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.phone figcaption strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }

.feature-grid a.feature { display: block; }

@media (max-width: 1000px) {
  .product-intro, .product-showcase { grid-template-columns: 1fr; gap: 32px; }
  .phone-row { gap: 24px; }
}
@media (max-width: 760px) {
  .product-pair, .shot-pair { grid-template-columns: 1fr; }
  .product-hero .hero-content { padding: 120px 16px 60px; }
  .phone-row { grid-template-columns: minmax(0, 280px); }
  .product-intro .btn-row { justify-content: center; }
  .product-intro .section-title, .product-intro .eyebrow { text-align: center; }
}

/* ============================================================
   LANGUAGE CHOOSER  (adapted from english-site's english.css)
   Opens by itself only when the browser asks for a supported
   non-English language (see i18n.js); otherwise reachable from
   .lang-switch in the header.
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius-pill);
  padding: 10px 14px; font-family: var(--font-text); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-switch:hover { border-color: var(--purple-light); background: rgba(122,100,255,0.12); }
.lang-switch svg { width: 17px; height: 17px; flex: none; }

.lang-modal {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(8px);
}
.lang-modal.open { display: flex; }
body.lang-locked { overflow: hidden; }
.lang-dialog {
  width: 100%; max-width: 620px; max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 40px 36px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(122,100,255,0.4);
  background: #0c0b16;
  text-align: center;
  animation: lang-in 0.32s var(--ease) both;
}
@keyframes lang-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.lang-dialog h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 24px; }
/* The same invitation in a few of the offered languages, so a visitor who cannot
   read the English heading still recognises what is being asked. */
.lang-sub { display: block; margin-top: 10px; font-family: var(--font-text); font-size: 0.92rem; font-weight: 400; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lang-opt {
  padding: 13px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
  color: var(--white); font-family: var(--font-text); font-size: 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lang-opt:hover { border-color: var(--purple-light); background: rgba(122,100,255,0.16); transform: translateY(-2px); }
/* The browser's own language, surfaced but never auto-applied; and the one in use now. */
.lang-opt.suggested { border-color: var(--purple); background: rgba(122,100,255,0.14); }
.lang-opt.current { border-color: var(--purple-light); box-shadow: inset 0 0 0 1px var(--purple-light); }
.lang-foot { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  .lang-dialog { padding: 30px 18px 24px; }
  .lang-dialog h2 { font-size: 1.35rem; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
}
/* On a phone the bar holds the brand, the switcher and the burger only. */
@media (max-width: 920px) {
  .lang-switch { margin-left: auto; padding: 9px 12px; }
}

/* ── Translated pages ──
   Other languages run longer than English. The hero h1 is nowrap so the English
   headline stays on one line; translated, it must be allowed to wrap. Chrome
   labels stay on one line so the bar does not double in height. */
html:not([lang="en"]) .hero h1 { white-space: normal; max-width: 1100px; }
html:not([lang="en"]) .section-lead.nowrap { white-space: normal; }
.nav-link, .cta-get-started, .brand-name { white-space: nowrap; }
@media (min-width: 921px) {
  html:not([lang="en"]) .nav-link { padding-left: 16px; padding-right: 16px; }
  html:not([lang="en"]) .header-inner { gap: 16px; }
}

/* Right-to-left (Arabic): the layout is flex/grid and mirrors on its own; only the
   pieces that hard-code a side, and the arrows, need turning round. */
html[dir="rtl"] .product-intro .section-title,
html[dir="rtl"] .product-tile { text-align: right; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn-pill:hover .arrow { transform: scaleX(-1) rotate(45deg); }
html[dir="rtl"] .product-intro .btn-row { justify-content: flex-start; }

/* Legal pages stay in English (a machine-translated contract can say something the
   binding English text does not). Under a translated header, this line says so in the
   visitor's language; in English it would be noise, so it only shows when translated. */
.legal-notice { display: none; max-width: 760px; margin: 22px auto 0; color: var(--purple-light); font-size: 1.05rem; position: relative; z-index: 2; }
html:not([lang="en"]) .legal-notice { display: block; }
