/* Operalytix Messenger — marketing site.
   Design system shared with the Operalytix product sites (tokens, type, buttons, nav, sections,
   phone frame, feature lists, tiles, FAQ, footer). No framework; written by hand, built by i18n/build.py. */

/* Self-hosted Inter (SIL OFL 1.1, assets/fonts/OFL.txt). Lives here, not inline, so the CSP needs no 'unsafe-inline'. */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-ext-var.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-var.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter Fallback';src:local('Arial');size-adjust:107%;ascent-override:90%;descent-override:22.5%;line-gap-override:0%}

:root {
  --ink: #0b0b13;
  --ink-2: #33334a;
  --muted: #62627a;
  --line: #e6e6ef;
  --line-2: #d9d9e5;
  --bg: #ffffff;
  --bg-soft: #f5f5fa;
  --bg-tint: #f1f0ff;

  --accent: #4a43d9;
  --accent-ink: #383396;
  --accent-soft: #ecebff;
  --accent-bright: #9a96ff;

  --dark: #06060b;
  --dark-2: #0d0d17;
  --dark-3: #15152a;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-text: #f4f4fb;
  --dark-muted: #a3a3bd;

  --ok: #13804b;
  --ok-soft: #e3f6ec;
  --warn: #b5470b;
  --warn-soft: #fff0e3;
  --bad: #c62a1f;
  --bad-soft: #fdecea;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: 24px;

  --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 68px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px + env(safe-area-inset-top, 0px));
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l));
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.dark .eyebrow { color: var(--accent-bright); }

.display {
  font-size: clamp(44px, 7.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.012em;
  max-width: 640px;
  text-wrap: pretty;
}
.dark .lead { color: var(--dark-muted); }
.grad {
  background: linear-gradient(100deg, #ffffff 10%, #c9c6ff 55%, #8f8aff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.dark .muted { color: var(--dark-muted); }

.section-head { max-width: 820px; display: grid; gap: 20px; }
.section-head.center { margin: 0 auto; text-align: center; justify-items: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-store {
  --h: 58px;
  padding: 0 26px 0 20px;
  background: #fff;
  color: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 40px -12px rgba(140, 132, 255, 0.55);
}
.btn-store .store-text { display: grid; line-height: 1.05; text-align: left; }
.btn-store small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.75; }
.btn-store strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.btn-store.on-light { background: #000; color: #fff; box-shadow: 0 12px 40px -14px rgba(20, 16, 90, 0.55); }

.btn-ghost {
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--line-2); background: #fff; }
.btn-ghost.on-light:hover { border-color: var(--ink); }

.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #3f38c9; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.dark .link-arrow { color: var(--accent-bright); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  color: var(--dark-text);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.scrolled {
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(10, 10, 30, 0.08);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { opacity: 0.6; font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: 0.78;
  transition: opacity .2s, background-color .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(127,127,160,.14); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta .signin, .nav-links a { white-space: nowrap; }
.nav-cta .signin { text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: 0.8; padding: 8px 10px; }
.nav-cta .signin:hover { opacity: 1; }
.nav .btn-accent { box-shadow: 0 8px 24px -10px rgba(90, 80, 255, 0.8); }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(127,127,160,.3); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { background: rgba(8, 8, 14, 0.96); color: var(--dark-text); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .nav.open .mobile-menu { display: grid; }
  .mobile-menu {
    gap: 2px;
    padding: 8px max(var(--gutter), var(--safe-r)) calc(24px + var(--safe-b)) max(var(--gutter), var(--safe-l));
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .mobile-menu a { text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--dark-line); }
  .mobile-menu .btn { margin-top: 18px; font-size: 16px; border-bottom: 0; }
}

/* ---------- Sections ---------- */

section { position: relative; }
.pad { padding: clamp(88px, 12vw, 160px) 0; }
.pad-sm { padding: clamp(64px, 8vw, 112px) 0; }
.dark { background: var(--dark); color: var(--dark-text); }
.soft { background: var(--bg-soft); }

/* ---------- Hero ---------- */

.hero {
  background: var(--dark);
  color: var(--dark-text);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(56px, 9vw, 120px));
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 78%, rgba(88, 76, 255, 0.42), transparent 70%),
    radial-gradient(40% 30% at 18% 20%, rgba(80, 70, 230, 0.18), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, rgba(130, 90, 255, 0.14), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 28px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; min-height: 44px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  font-size: 14px; color: #d9d8f5; text-decoration: none;
}
.hero .pill b { background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.hero h1 { max-width: 13ch; }
.hero h1 .ln { display: block; }
.hero h1 .h1-sub {
  display: block; max-width: 30ch; margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em;
  color: #e6e5fb; text-wrap: balance;
}
.hero .lead { max-width: 640px; text-align: center; color: rgba(255, 255, 255, 0.8); transition: opacity .16s; }
.hero .lead a { color: #fff; text-decoration-color: rgba(154, 150, 255, .8); text-underline-offset: 3px; }
.hero .lead.swap { opacity: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 14px; color: var(--dark-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent-bright); }

.hero-stage {
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  height: clamp(520px, 62vw, 760px);
  display: flex; justify-content: center; align-items: flex-start;
}
.hero-stage .phone { position: absolute; top: 0; }
.hero-stage .p-center { --w: clamp(250px, 26vw, 340px); z-index: 3; left: 50%; translate: -50% 0; }
.hero-stage .p-left  { --w: clamp(220px, 22vw, 290px); z-index: 2; left: 50%; translate: -122% 80px; rotate: -7deg; }
.hero-stage .p-right { --w: clamp(220px, 22vw, 290px); z-index: 2; left: 50%; translate: 22% 80px; rotate: 7deg; }
.hero-stage .p-left .screen, .hero-stage .p-right .screen { filter: brightness(.82); }
.hero-stage::after {
  content: ""; position: absolute; left: 50%; right: auto; width: 100vw; translate: -50% 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--dark) 92%);
  z-index: 4; pointer-events: none;
}
.float-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(22, 22, 40, 0.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  font-size: 14px; line-height: 1.3; color: #ececfa;
}
.float-chip .ic {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(154, 150, 255, .16); color: var(--accent-bright); flex: none;
}
.float-chip small { display: block; color: var(--dark-muted); font-size: 12.5px; }
.chip-1 { left: calc(50% - min(44vw, 560px)); top: 18%; }
.chip-2 { right: calc(50% - min(44vw, 560px)); top: 42%; }
@media (max-width: 1100px) { .float-chip { display: none; } }

/* ---------- Phone frame ---------- */

.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * 0.165);
  padding: calc(var(--w) * 0.034);
  background: linear-gradient(145deg, #3a3a42 0%, #16161b 30%, #0a0a0d 70%, #2b2b33 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    inset 0 0 0 calc(var(--w) * 0.012) #0b0b0e,
    0 0 0 1px rgba(0,0,0,.6),
    0 50px 100px -30px rgba(10, 8, 40, .55),
    0 30px 60px -30px rgba(0,0,0,.45);
  position: relative;
  flex: none;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 11%;
  border-radius: 0 3px 3px 0; background: linear-gradient(#2c2c33, #17171c);
}
.phone::after { /* volume */
  content: ""; position: absolute; left: -2px; top: 21%; width: 3px; height: 13%;
  border-radius: 3px 0 0 3px; background: linear-gradient(#2c2c33, #17171c);
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--w) * 0.135);
  overflow: hidden; background: #f2f2f7;
  container-type: inline-size;
}
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone .island {
  position: absolute; z-index: 3; left: 50%; top: 2.2%;
  width: 31%; height: 3.4%; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}

/* ---------- Promise ---------- */

.promise .big {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 22ch;
  text-wrap: balance;
}
.promise .big em { font-style: normal; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.pillar { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.pillar .n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.pillar h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.pillar p { color: var(--muted); font-size: 16px; }

/* ---------- Feature list w/ sticky device ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.sticky-device { position: sticky; top: calc(var(--nav-h) + 32px + env(safe-area-inset-top, 0px)); display: flex; justify-content: center; overflow-x: clip; }
.sticky-device .glow {
  position: absolute; inset: 10% 0 0; z-index: -1;
  background: radial-gradient(50% 45% at 50% 50%, rgba(90, 80, 240, .22), transparent 70%);
}
.duo { position: relative; display: flex; justify-content: center; }
.duo .phone:first-child { --w: clamp(230px, 22vw, 300px); z-index: 2; }
.duo .phone:last-child { --w: clamp(200px, 19vw, 260px); margin-left: -60px; margin-top: 70px; z-index: 1; }

.feat-list { display: grid; gap: 4px; }
.feat {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feat:first-child { border-top: 0; padding-top: 0; }
.feat .ic, .tile .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.feat h3 { font-size: 20px; letter-spacing: -0.022em; line-height: 1.25; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: clamp(15.5px, 0.25vw + 14.6px, 16.5px); }

/* ---------- Tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(30, 20, 120, .35); border-color: var(--line-2); }
.tile h3 { font-size: 18.5px; letter-spacing: -0.02em; line-height: 1.3; }
.tile p { color: var(--muted); font-size: clamp(15px, 0.2vw + 14.3px, 15.5px); }
.dark .tile { background: rgba(255,255,255,.035); border-color: var(--dark-line); }
.dark .tile:hover { border-color: rgba(255,255,255,.18); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.dark .tile .ic { background: rgba(154,150,255,.12); color: var(--accent-bright); }
.dark .tile p { color: var(--dark-muted); }

/* ---------- Trust ---------- */

.trust-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.trust-col { border-radius: 32px; padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line); }
.trust-col.alt { background: var(--dark-2); color: var(--dark-text); border-color: transparent; position: relative; overflow: hidden; isolation: isolate; }
.trust-col.alt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(90, 80, 240, .3), transparent 70%); }
.trust-col > h3 { margin: 16px 0 28px; }
.trust-col .feat { border-top-color: var(--line); }
.trust-col.alt .feat { border-top-color: var(--dark-line); }
.trust-col.alt .feat p { color: var(--dark-muted); }
.trust-col .feat :is(h3, h4) { font-size: 20px; letter-spacing: -0.022em; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.step { border-radius: 32px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.step .txt { padding: 32px 32px 0; display: grid; gap: 10px; }
.step .k { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step h3 { font-size: 22px; letter-spacing: -0.025em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .shot { display: flex; justify-content: center; align-items: flex-start; padding-top: 32px; height: 380px; overflow: hidden; position: relative; }
.step .shot .phone { --w: 250px; }
.step .shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg-soft)); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px + env(safe-area-inset-top, 0px)); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center/14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 14px no-repeat;
  transition: transform .3s var(--ease);
  color: var(--muted);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 44px 26px 0; color: var(--muted); font-size: 16.5px; display: grid; gap: 12px; }
.faq .a a { color: var(--accent); }

/* ---------- Final CTA ---------- */

.final { text-align: center; overflow: hidden; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(90, 80, 240, .45), transparent 70%);
}
.final .icon-big { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 32px; box-shadow: 0 30px 60px -20px rgba(90, 80, 255, .7); }
.final .display { font-size: clamp(42px, 6.5vw, 88px); max-width: 15ch; margin: 0 auto; }
.final .lead { margin: 24px auto 40px; text-align: center; }

/* ---------- Footer ---------- */

footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); padding: 64px 0 calc(40px + var(--safe-b)); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid :is(h4, .foot-h) { color: var(--dark-text); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 0 0 14px; }
.foot-grid li { margin: 0; }
.foot-grid a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-grid a:hover { color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid .brand { color: var(--dark-text); margin-bottom: 16px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* =====================================================================
   Operalytix Messenger layer
   ===================================================================== */

/* Brand: the messenger's blue (app icon) in place of the employee indigo. */
:root {
  --accent: #2c4fe0;
  --accent-ink: #1f3aa8;
  --accent-soft: #e8edff;
  --accent-bright: #8ea8ff;
  --bg-tint: #eef2ff;
  --warn-ink: #8a3a06;
}
.btn-accent:hover { background: #2443c4; }
.grad { background: linear-gradient(100deg, #ffffff 10%, #c4d2ff 55%, #86a2ff 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero::before {
  background:
    radial-gradient(60% 50% at 50% 78%, rgba(62, 98, 255, 0.40), transparent 70%),
    radial-gradient(40% 30% at 18% 20%, rgba(60, 90, 230, 0.18), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, rgba(90, 120, 255, 0.14), transparent 70%);
}
.nav .btn-accent { box-shadow: 0 8px 24px -10px rgba(60, 95, 255, 0.8); }
.sticky-device .glow { background: radial-gradient(50% 45% at 50% 50%, rgba(60, 95, 240, .22), transparent 70%); }
.trust-col.alt::before { background: radial-gradient(60% 50% at 100% 0%, rgba(60, 95, 240, .3), transparent 70%); }
.final::before { background: radial-gradient(50% 60% at 50% 100%, rgba(60, 95, 240, .45), transparent 70%); }
.final .icon-big { box-shadow: 0 30px 60px -20px rgba(60, 95, 255, .7); }
.dark .tile .ic, .trust-col.alt .feat .ic, .float-chip .ic { background: rgba(142, 168, 255, .14); color: var(--accent-bright); }
.tile:hover { box-shadow: 0 24px 50px -30px rgba(20, 40, 140, .35); }

.sprite { display: none; }
.nav-links a[aria-current="page"] { opacity: 1; background: rgba(127,127,160,.16); }
.mobile-menu a[aria-current="page"] { color: var(--accent-bright); }
.foot-grid a[aria-current="page"] { color: var(--dark-text); }
.brand img { border-radius: 8px; }

/* ---------- Motion: hero entrance (CSS only) and scroll reveal (html.js only) ---------- */
@keyframes h-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes h-phone { from { opacity: .01; transform: translateY(60px) scale(.96); } }
.h-in { animation: h-rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-stage .h-in { animation-name: h-phone; animation-duration: 1.1s; }
.d1 { --d: .05s; } .d2 { --d: .1s; } .d3 { --d: .15s; } .d4 { --d: .2s; } .d5 { --d: .3s; } .d6 { --d: .45s; } .d7 { --d: .6s; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-in { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .link-arrow::after { transition: none; }
}

/* ---------- Status pill and notices ---------- */
.hero .pill b { background: #b5470b; }
.notice {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid #f3c79f; background: var(--warn-soft); color: var(--warn-ink);
  font-size: 16px; line-height: 1.55;
}
.notice svg { color: var(--warn); margin-top: 2px; }
.notice strong { color: #6b2c03; }
.notice a { color: inherit; font-weight: 600; }
.dark .notice { background: rgba(255, 160, 80, .08); border-color: rgba(255, 170, 100, .28); color: #ffd9b8; }
.dark .notice strong { color: #ffe7d2; }
.dark .notice svg { color: #ffb070; }

/* ---------- Sub-page header ---------- */
.page-hero { padding-bottom: clamp(64px, 8vw, 104px); }
.page-hero .hero-copy { text-align: left; justify-items: start; gap: 22px; max-width: 860px; }
.page-hero .display { font-size: clamp(40px, 6vw, 76px); max-width: 18ch; }
.page-hero .lead { text-align: left; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dark-muted); }
.crumbs a { color: var(--dark-text); text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Long-form text ---------- */
.prose { max-width: 760px; display: grid; gap: 18px; font-size: clamp(16.5px, 0.3vw + 15.5px, 18px); color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin-top: 28px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin-top: 10px; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose code, .tile code, .feat code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--dark-2); color: #e6e8f5; border-radius: 16px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; font-size: 14.5px; padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; display: flex; align-items: center; min-height: 36px; }
.toc a:hover { color: var(--accent-ink); }

/* ---------- Numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.stats b { display: block; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.04em; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); display: block; margin-top: 10px; line-height: 1.45; }
.stats .warn b { color: var(--warn); }
.dark .stats div { background: rgba(255,255,255,.035); border-color: var(--dark-line); }
.dark .stats b { color: #fff; }
.dark .stats .warn b { color: #ffb070; }
.dark .stats span { color: var(--dark-muted); }

/* ---------- Who learns what ---------- */
.learns { display: grid; gap: 12px; }
.learn { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.learn h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.3; }
.learn h3 small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.learn .yes, .learn .no { font-size: 15.5px; color: var(--ink-2); }
.learn .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.learn .no .lbl { color: var(--ok); }
.learn .yes .lbl { color: var(--warn); }
.learns-head { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 0 24px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Flow (how a message travels) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: flow; margin-top: clamp(40px, 5vw, 64px); }
.flow li { position: relative; padding: 22px 20px; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--dark-line); display: grid; gap: 8px; align-content: start; }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--accent-bright); }
.flow h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.flow p { font-size: 15px; color: var(--dark-muted); }

/* ---------- Limits list ---------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.limit { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: grid; gap: 8px; align-content: start; }
.limit h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.3; }
.limit p { color: var(--muted); font-size: 15.5px; }
.limit .tag { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); }
.limit .tag.ok { background: var(--ok-soft); color: var(--ok); }
.limit .tag.info { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Checklist ---------- */
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f3aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.dark .checks li::before { background-color: rgba(142,168,255,.16); }
.dark .checks li { color: #dde2f5; }
.todo li::before { background: var(--warn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='%23b5470b'/%3E%3C/svg%3E") center/20px no-repeat; }

/* ---------- Mock chat screen (HTML-drawn, container units) ---------- */
.chat { position: absolute; inset: 0; background: #0f1016; color: #f2f3f8; font-family: -apple-system, "SF Pro Text", var(--font); font-size: 4.2cqw; line-height: 1.3; letter-spacing: -0.01em; display: grid; grid-template-rows: auto auto 1fr auto; }
.chat .sb { height: 13cqw; display: flex; justify-content: space-between; align-items: center; padding: 1.5cqw 10cqw 0 12cqw; font-weight: 600; font-size: 4.4cqw; }
.chat .sb i { width: 6cqw; height: 2.8cqw; border-radius: .8cqw; background: #f2f3f8; }
.chat .top { display: grid; grid-template-columns: 9cqw 1fr auto; gap: 3cqw; align-items: center; padding: 1cqw 5cqw 3.5cqw; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat .av { width: 9cqw; height: 9cqw; border-radius: 50%; background: linear-gradient(135deg, #6e8bff, #3555e8); display: grid; place-items: center; font-weight: 700; font-size: 4cqw; color: #fff; }
.chat .top b { display: block; font-size: 4.4cqw; }
.chat .top small { display: block; font-size: 3cqw; color: #9ea3bb; }
.chat .timer { font-size: 3cqw; color: #c9d3ff; background: rgba(110,139,255,.18); padding: 1cqw 2.4cqw; border-radius: 99px; white-space: nowrap; }
.chat .msgs { display: flex; flex-direction: column; gap: 2.4cqw; padding: 4cqw 4.5cqw; overflow: hidden; }
.chat .day { align-self: center; font-size: 2.9cqw; color: #8e93ab; margin-bottom: 1cqw; }
.chat .b { max-width: 78%; padding: 2.6cqw 3.6cqw; border-radius: 4.6cqw; background: #23252f; }
.chat .b.me { align-self: flex-end; background: #3c5cf0; color: #fff; border-bottom-right-radius: 1.4cqw; }
.chat .b:not(.me) { border-bottom-left-radius: 1.4cqw; }
.chat .meta { font-size: 2.6cqw; opacity: .7; display: block; text-align: right; margin-top: .6cqw; }
.chat .sys { align-self: center; text-align: center; font-size: 2.9cqw; color: #a9b6ff; background: rgba(110,139,255,.12); border-radius: 3cqw; padding: 1.8cqw 3cqw; max-width: 86%; }
.chat .bar { margin: 0 4cqw 5cqw; height: 11cqw; border-radius: 99px; background: #1d1f28; border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 4cqw; color: #8e93ab; font-size: 3.6cqw; }
.phone .screen.dk { background: #0f1016; }

/* Contact-code mock (QR-like pattern drawn with CSS) */
.code-card { position: absolute; inset: 0; background: #0f1016; color: #f2f3f8; font-family: -apple-system, var(--font); display: grid; place-items: center; align-content: center; gap: 5cqw; padding: 10cqw; text-align: center; font-size: 4cqw; }
.code-card .qr { width: 62cqw; aspect-ratio: 1; border-radius: 6cqw; background: #fff; padding: 5cqw; display: grid; place-items: center; }
.code-card .qr i { width: 100%; height: 100%; background:
  conic-gradient(from 90deg at 2px 2px, #0f1016 25%, transparent 0) 0 0/ 18% 18%,
  repeating-linear-gradient(45deg, #0f1016 0 3px, transparent 3px 9px); opacity: .9; border-radius: 2cqw; }
.code-card b { font-size: 5.4cqw; }
.code-card small { color: #9ea3bb; font-size: 3.2cqw; }

/* ---------- Two-column intro rows ---------- */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.soft .card, .soft .limit, .soft .learn, .soft .stats div { background: #fff; }
.card h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.card p { color: var(--muted); }
.card.dk { background: var(--dark-2); color: var(--dark-text); border-color: transparent; }
.card.dk p { color: var(--dark-muted); }
.card .btn { justify-self: start; }

/* ---------- Next-section hooks and CTA band (from the shared design system) ---------- */
.next-hook { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.next-hook a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--accent-ink);
  border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, transform .25s var(--ease);
}
.next-hook a:hover { border-color: var(--accent); transform: translateY(1px); }
.dark .next-hook a { color: var(--dark-text); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.2); }
.dark .next-hook a:hover { border-color: var(--accent-bright); }
.cta-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; padding-top: 28px; padding-bottom: 28px; }
.cta-band-text { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); text-align: center; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.mt-m { margin-top: 28px; }
.center { text-align: center; }
.store-soon { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.35); color: var(--dark-text); font-weight: 600; }
.store-soon small { font-weight: 500; color: var(--dark-muted); }
.final-facts { color: var(--dark-muted); font-size: 15px; margin-top: 18px; }
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.nf .lead { margin: 20px auto 36px; max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .split, .split.rev, .trust-cols, .faq-grid, .cols-2, .limits { grid-template-columns: minmax(0, 1fr); }
  .split.rev .sticky-device { order: -1; }
  .sticky-device { position: relative; top: 0; }
  .faq-grid .section-head { position: static; }
  .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn, .learns-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .learns-head { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .pillars, .steps, .tiles, .flow { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 560px; }
  .hero-stage .p-center { --w: 250px; }
  .hero-stage .p-left { --w: 200px; translate: -118% 70px; }
  .hero-stage .p-right { --w: 200px; translate: 18% 70px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .page-hero .hero-ctas { align-items: stretch; }
  .hero-meta { gap: 8px 18px; font-size: 13.5px; }
  .feat { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; }
  .feat .ic { width: 40px; height: 40px; border-radius: 12px; }
  .faq summary { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice svg { display: none; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .trust-col, .card { padding: 22px 18px; }
  .trust-col .feat { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-sm { --h: 44px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-stage { height: 420px; }
  .hero-stage .p-left, .hero-stage .p-right { display: none; }
  .hero-stage .p-center { --w: 220px; }
  .sticky-device { position: relative; top: 0; }
}
@media (min-width: 1800px) { :root { --wrap: 1320px; } }

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .reveal, .h-in, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .nav, .skip, .float-chip, .hero-stage, .next-hook, .cta-band, .menu-btn, .mobile-menu, .toc { display: none !important; }
  .hero, .dark, .soft, .trust-col.alt, .final, footer, .card.dk { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .hero::before, .hero::after, .final::before, .trust-col.alt::before { display: none !important; }
  .grad { background: none !important; color: #000 !important; -webkit-text-fill-color: #000; }
  .lead, .muted, .dark .lead, .hero .lead, .feat p, .tile p, .flow p, .trust-col.alt .feat p, footer, .crumbs { color: #222 !important; }
  .hero { padding-top: 0; }
  .pad { padding: 28px 0; }
  a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  .faq details:not([open]) > .a { display: block !important; }
  .feat, .tile, .pillar, .step, .limit, .learn, .card, details { break-inside: avoid; }
}

/* ---------- Small components used by the page templates (no inline styles: the CSP forbids them) ---------- */
.btn-tall { --h: 58px; }
.phone-md { --w: clamp(250px, 26vw, 330px); }
.narrow { max-width: 860px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ic-lg { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card.dk .ic-lg { background: rgba(142,168,255,.14); color: var(--accent-bright); }
.card-h { font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.card .link-arrow { justify-self: start; }
.link-arrow.on-dark { color: var(--accent-bright); }
.cols-wide { align-items: start; gap: clamp(32px, 6vw, 96px); }
.src { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }
.sec-body section { display: grid; gap: 16px; }
.sec-body .notice { margin-bottom: 8px; }
.sec-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sec-body .stats div { background: var(--bg-soft); }
.prose .limits h3 { margin-top: 0; }
.store-soon svg { color: var(--accent-bright); }
.page-hero .flow { margin-top: 32px; }
.page-hero .section-head .h3 { color: var(--dark-text); }

/* Relay settings mock */
.rl { position: absolute; inset: 0; background: #0f1016; color: #f2f3f8; font-family: -apple-system, "SF Pro Text", var(--font); padding: 18cqw 5cqw 6cqw; display: grid; align-content: start; gap: 3cqw; font-size: 4cqw; }
.rl .rl-h { font-size: 8.5cqw; letter-spacing: -0.03em; margin-bottom: 2cqw; }
.rl .rl-row { display: grid; grid-template-columns: 3cqw 1fr; gap: 3cqw; align-items: center; background: #1b1d26; border-radius: 4cqw; padding: 3.6cqw 4cqw; }
.rl .rl-row i { width: 3cqw; height: 3cqw; border-radius: 50%; background: #34d27b; }
.rl .rl-row small { display: block; color: #9ea3bb; font-size: 3cqw; margin-top: .6cqw; }
.rl .rl-add { margin-top: 2cqw; text-align: center; color: #9db2ff; font-weight: 600; padding: 3cqw; border-radius: 99px; border: 1px solid rgba(157,178,255,.35); }

@media (max-width: 1100px) { .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tiles-2, .tiles-4 { grid-template-columns: minmax(0, 1fr); }
  .sec-body .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero .pill b { white-space: nowrap; flex: none; }
.page-hero + .pad, .page-hero + section.pad { padding-top: clamp(48px, 6vw, 80px); }
@media (max-width: 640px) { .hero .pill { font-size: 13px; text-align: left; } }
