/* ===========================================================
   imail.now — marketing site
   Design system: warm cream + noir + brand spectrum (peach → rose → violet)
   ============================================================ */

:root {
  /* type — system-ui to match dashboard */
  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", monospace;

  /* surfaces */
  --bg-cream: oklch(0.985 0.012 75);
  --bg-cream-2: oklch(0.965 0.018 65);
  --bg-cream-3: oklch(0.945 0.022 60);

  /* ink */
  --ink: oklch(0.18 0.008 70);
  --ink-2: oklch(0.32 0.008 70);
  --ink-muted: oklch(0.48 0.01 70);
  --ink-dim: oklch(0.68 0.008 70);
  --rule: oklch(0.88 0.012 75);
  --rule-soft: oklch(0.92 0.01 75);

  /* dark */
  --noir: oklch(0.14 0.006 70);
  --noir-2: oklch(0.19 0.008 70);
  --noir-3: oklch(0.26 0.008 70);
  --noir-rule: oklch(0.30 0.008 70);
  --noir-ink: oklch(0.94 0.01 75);
  --noir-dim: oklch(0.66 0.01 70);

  /* brand spectrum — matches dashboard 'Zeeshan' gradient + login screen */
  --brand-orange: oklch(0.80 0.15 55);    /* warm orange */
  --brand-peach:  oklch(0.86 0.10 45);    /* soft peach */
  --brand-rose:   oklch(0.80 0.12 15);    /* rose pink */
  --brand-pink:   oklch(0.84 0.10 0);     /* pale pink */
  --brand-violet: oklch(0.72 0.16 295);   /* violet purple */
  --brand-lilac:  oklch(0.82 0.10 290);   /* soft lilac */

  /* legacy aliases — map old vars to new spectrum so nothing breaks */
  --coral: var(--brand-orange);
  --coral-2: var(--brand-peach);
  --peach: var(--brand-peach);
  --indigo-deep: oklch(0.34 0.16 290);
  --indigo-2: oklch(0.45 0.18 290);
  --indigo-ink: oklch(0.97 0.02 290);

  /* status */
  --green: oklch(0.65 0.14 145);
  --amber: oklch(0.78 0.14 75);
  --red: oklch(0.62 0.18 25);

  /* pastel cards */
  --card-butter: oklch(0.93 0.08 80);
  --card-mint: oklch(0.92 0.07 160);
  --card-rose: oklch(0.91 0.08 15);
  --card-sky: oklch(0.92 0.07 235);
  --card-lilac: oklch(0.92 0.06 295);

  /* layout */
  --container: 1240px;
  --container-tight: 1080px;
  --container-text: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }

html {
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  background: var(--bg-cream);
  position: relative;
  min-height: 100vh;
}

/* fixed atmosphere — pinned to viewport, never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 95% 0%, color-mix(in oklch, var(--brand-orange) 12%, transparent) 0%, transparent 60%),
    radial-gradient(50% 40% at 0% 12%, color-mix(in oklch, var(--brand-rose) 10%, transparent) 0%, transparent 60%);
}

/* subtle grain — disabled by default for perf; toggle via .body-grain on body */
body.body-grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================ TYPE =============================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.display-xl {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.display-l {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.display-m {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.display-s {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

p { margin: 0; }
.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.body { color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss02", "zero";
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
a.inline { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.inline:hover { color: var(--ink); }

::selection { background: var(--ink); color: var(--bg-cream); }

/* ============================ NAV ================================ */

.nav-spacer { height: 72px; }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg-cream) 84%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

/* animated brand mark — gradient envelope; grows from a dot on page load */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.brand-mark svg { display: block; overflow: visible; }
.bm-shape {
  animation: bm-grow 0.85s 0.15s cubic-bezier(0.6, 0, 0.2, 1) both;
  transform-origin: 12px 12px;
}
.bm-flap {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: bm-flap-in 0.55s 0.85s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes bm-grow {
  to { x: 2px; y: 2px; width: 20px; height: 20px; }
}
@keyframes bm-flap-in {
  0%   { opacity: 0; stroke-dashoffset: 22; }
  30%  { opacity: 1; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

/* gentle hover: flap lifts slightly */
.brand:hover .bm-flap { transform: translateY(-1px); }
.bm-flap { transform-origin: 12px 9px; transition: transform 0.18s ease; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bm-shape { animation: none; x: 2px; y: 2px; width: 20px; height: 20px; }
  .bm-flap { stroke-dashoffset: 0; opacity: 1; animation: none; }
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  font-size: 14px;
}
.nav-links a, .nav-dd > button {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 450;
  letter-spacing: -0.01em;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover, .nav-dd > button:hover { background: var(--rule-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg-cream-2) 70%, transparent);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  position: relative;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 60%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklch, var(--green) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0   transparent; }
}

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-cream);
}
.btn-primary:hover { background: var(--noir); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in oklch, var(--bg-cream-2) 50%, transparent); }
.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}
.btn-on-dark.btn-primary { background: var(--bg-cream); color: var(--ink); }
.btn-on-dark.btn-primary:hover { background: white; }
.btn-on-dark.btn-ghost { color: var(--noir-ink); border-color: var(--noir-rule); }
.btn-on-dark.btn-ghost:hover { border-color: var(--noir-ink); }

.arrow::after {
  content: "→";
  display: inline-block;
  font-family: var(--font-mono);
  transition: transform 0.18s ease;
}
.arrow:hover::after { transform: translateX(3px); }

/* ============================ LAYOUT ============================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}
.container-tight { max-width: var(--container-tight); }
.container-text { max-width: var(--container-text); }

section { position: relative; }
.section { padding: 96px 0; position: relative; z-index: 2; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 128px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ============================ HERO =============================== */

.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: clip;
}
.page-hero { overflow: clip; }

/* cursor-following aurora — three separate blobs that move via transform only
   (no per-frame repaints; pure compositor operation) */
.hero-aurora {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 700px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  opacity: 0.55;
  contain: layout paint;
}
.hero-aurora .blob {
  position: absolute;
  width: 50%;
  height: 70%;
  border-radius: 50%;
  filter: blur(36px);
  will-change: transform;
  transform: translate3d(var(--bx, 0), var(--by, 0), 0);
  top: 0;
  left: 0;
}
.hero-aurora .blob-orange {
  background: radial-gradient(circle, oklch(0.78 0.18 50) 0%, transparent 70%);
  --bx: 50%; --by: -10%;
}
.hero-aurora .blob-rose {
  background: radial-gradient(circle, oklch(0.76 0.16 8) 0%, transparent 70%);
  --bx: -10%; --by: 20%;
}
.hero-aurora .blob-violet {
  background: radial-gradient(circle, oklch(0.66 0.22 295) 0%, transparent 70%);
  --bx: 30%; --by: 40%;
}
.hero > *:not(.hero-aurora), .page-hero > *:not(.hero-aurora) {
  position: relative;
  z-index: 1;
}

/* legacy .hero-orb kept as no-op */
.hero-orb { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg-cream-2) 75%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-eyebrow .live-dot { background: var(--coral); }
.hero-eyebrow .live-dot { animation-name: pulseCoral; }
@keyframes pulseCoral {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklch, var(--coral) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0   transparent; }
}

.hero-headline {
  margin-top: 22px;
  max-width: 18ch;
}
.hero-subhead {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.hero-trust {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-dim); display: inline-block; }

/* product window frame */
.window {
  margin-top: 56px;
  background: var(--bg-cream-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 white inset,
    0 30px 80px -40px color-mix(in oklch, var(--ink) 30%, transparent),
    0 8px 28px -16px color-mix(in oklch, var(--ink) 12%, transparent);
  overflow: hidden;
  position: relative;
}
.window-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--bg-cream-2) 80%, var(--bg-cream-3));
}
.tlight { width: 11px; height: 11px; border-radius: 50%; background: var(--rule); display: inline-block; }
.tlight.r { background: oklch(0.72 0.16 22); }
.tlight.y { background: oklch(0.82 0.14 80); }
.tlight.g { background: oklch(0.78 0.14 145); }
.window-url {
  margin-left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  flex: 1;
  text-align: center;
  letter-spacing: 0;
}
.window-body { background: white; }

/* ============================ SCREENSHOT PLACEHOLDER ============= */

.shot {
  position: relative;
  width: 100%;
  background-color: var(--bg-cream-3);
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklch, var(--rule) 60%, transparent) 0,
    color-mix(in oklch, var(--rule) 60%, transparent) 1px,
    transparent 1px,
    transparent 12px
  );
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.shot::before {
  content: attr(data-label);
  background: color-mix(in oklch, var(--bg-cream-2) 95%, white);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.shot.dark {
  background-color: var(--noir-2);
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklch, var(--noir-rule) 80%, transparent) 0,
    color-mix(in oklch, var(--noir-rule) 80%, transparent) 1px,
    transparent 1px,
    transparent 12px
  );
  border-color: var(--noir-rule);
  color: var(--noir-dim);
}
.shot.dark::before {
  background: var(--noir);
  border-color: var(--noir-rule);
  color: var(--noir-dim);
}

/* ============================ CARDS / GRID ======================= */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: color-mix(in oklch, var(--bg-cream-2) 70%, white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card.hover:hover { border-color: var(--ink); }
.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card-body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.card-mech {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  line-height: 1.5;
}

/* pastel callout */
.callout {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
}
.callout.butter { background: var(--card-butter); }
.callout.mint   { background: var(--card-mint); }
.callout.rose   { background: var(--card-rose); }
.callout.sky    { background: var(--card-sky); }
.callout.lilac  { background: var(--card-lilac); }
.callout .num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.callout .lbl {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.callout .src {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: color-mix(in oklch, var(--ink) 60%, var(--bg-cream));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================ DARK SECTION ======================= */

.noir-section {
  background: var(--noir);
  color: var(--noir-ink);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.noir-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--noir-ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--noir-ink) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}
.noir-section h1, .noir-section h2, .noir-section h3, .noir-section h4 { color: var(--noir-ink); }
.noir-section .body, .noir-section .lead { color: color-mix(in oklch, var(--noir-ink) 78%, var(--noir-dim)); }
.noir-section .eyebrow { color: var(--noir-dim); }
.noir-section .card {
  background: var(--noir-2);
  border-color: var(--noir-rule);
}
.noir-section .card-body { color: color-mix(in oklch, var(--noir-ink) 75%, var(--noir-dim)); }
.noir-section .card-label { color: var(--noir-dim); }
.noir-section .card-mech {
  background: var(--noir);
  border-color: var(--noir-rule);
  color: color-mix(in oklch, var(--noir-ink) 80%, var(--noir-dim));
}
.noir-section a.inline { color: var(--noir-ink); }
.noir-section .hairline { background: var(--noir-rule); }
.noir-section .nav-status { color: var(--noir-dim); border-color: var(--noir-rule); background: var(--noir-2); }

/* ============================ INDIGO BAND ======================== */

.indigo-band {
  background: var(--indigo-deep);
  color: var(--indigo-ink);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.indigo-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 90% 20%, color-mix(in oklch, var(--coral) 35%, transparent) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, color-mix(in oklch, var(--indigo-2) 70%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.indigo-band > * { position: relative; }
.indigo-band h2 { color: var(--indigo-ink); }
.indigo-band .lead { color: color-mix(in oklch, var(--indigo-ink) 80%, transparent); }
.indigo-band .btn-primary { background: var(--bg-cream); color: var(--indigo-deep); }
.indigo-band .btn-primary:hover { background: white; }

/* ============================ FOOTER ============================= */

.footer {
  background: var(--noir);
  color: var(--noir-dim);
  padding: 80px 0 40px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noir-ink);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--noir-dim); font-size: 14px; }
.footer a:hover { color: var(--noir-ink); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.footer-brand .brand { color: var(--noir-ink); }
.footer-brand p { font-size: 13px; line-height: 1.55; color: var(--noir-dim); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--noir-rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--noir-dim);
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================ MISC =============================== */

.kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--bg-cream-2);
  color: var(--ink-2);
}

.hairline { width: 100%; height: 1px; background: var(--rule); }

/* tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: color-mix(in oklch, var(--bg-cream-2) 80%, transparent);
}

/* check / x glyphs */
.ck, .xk {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.ck { color: var(--green); border: 1px solid color-mix(in oklch, var(--green) 40%, transparent); }
.xk { color: var(--ink-dim); border: 1px solid var(--rule); }
.warn { color: var(--amber); border: 1px solid color-mix(in oklch, var(--amber) 40%, transparent); }

/* simple FAQ */
.faq details {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-muted);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 75ch;
}

/* compare table */
.cmp {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cmp th, .cmp td {
  padding: 18px 16px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
  letter-spacing: -0.005em;
}
.cmp tr:last-child td { border-bottom: 0; }
.cmp th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 14px;
  padding-bottom: 14px;
}
.cmp th.us, .cmp td.us {
  background: color-mix(in oklch, var(--bg-cream-3) 65%, transparent);
}
.cmp th.us { color: var(--ink); }
.cmp .row-label {
  color: var(--ink-2);
  font-weight: 450;
}

/* sparkline area */
.spark {
  display: block;
  width: 100%;
  height: 40px;
}

/* small bg pill (for logo wall placeholder etc) */
.logo-pill {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  background: color-mix(in oklch, var(--bg-cream-2) 60%, transparent);
  white-space: nowrap;
}
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

/* pricing toggle */
.price-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg-cream-2) 70%, white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
}
.price-toggle button {
  border: 0; background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  font: inherit;
}
.price-toggle button.on {
  background: var(--ink); color: var(--bg-cream);
}
.price-toggle button .save {
  display: inline-block; margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--coral);
  background: color-mix(in oklch, var(--coral) 22%, transparent);
  padding: 1px 6px;
  border-radius: 999px;
}
.price-toggle button.on .save { color: var(--coral-2); background: color-mix(in oklch, var(--coral) 28%, transparent); }

/* tier card */
.tier {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: color-mix(in oklch, var(--bg-cream-2) 60%, white);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.tier.feat {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-cream), var(--bg-cream)) padding-box,
    linear-gradient(135deg, var(--coral) 0%, var(--peach) 50%, var(--indigo-2) 100%) border-box;
  border: 1.5px solid transparent;
}
.tier-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-price .n { font-family: var(--font-mono); font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.tier-price .u { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
.tier-tag { font-size: 14px; color: var(--ink-2); min-height: 40px; }
.tier-billed { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tier ul li { display: flex; gap: 10px; align-items: flex-start; }
.tier ul li::before { content: "—"; color: var(--ink-dim); font-family: var(--font-mono); flex-shrink: 0; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* live widget */
.live-widget {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--bg-cream-2) 75%, white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.live-widget .lw-head {
  display: flex; justify-content: space-between; align-items: center;
}
.live-widget .lw-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.live-widget .lw-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-widget .lw-value {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.live-widget .lw-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}
.live-widget .lw-foot {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* page intro common */
.page-hero {
  padding: 120px 0 64px;
  position: relative;
}
.page-hero .hero-eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 22ch; margin-bottom: 22px; }
.page-hero .lead { max-width: 60ch; }

/* mechanism number */
.mech-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.mech-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

/* code-ish block */
.codeblock {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-x: auto;
}
.codeblock .k { color: var(--indigo-deep); }
.codeblock .s { color: oklch(0.5 0.12 145); }
.codeblock .n { color: oklch(0.55 0.16 35); }
.codeblock .c { color: var(--ink-dim); font-style: italic; }

.noir-section .codeblock {
  background: var(--noir);
  border-color: var(--noir-rule);
  color: var(--noir-ink);
}
.noir-section .codeblock .k { color: oklch(0.78 0.12 235); }
.noir-section .codeblock .s { color: oklch(0.75 0.12 145); }
.noir-section .codeblock .n { color: var(--coral); }
.noir-section .codeblock .c { color: var(--noir-dim); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive nav */
@media (max-width: 1180px) {
  .nav-status { display: none; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .nav-cta .btn-ghost { display: none; }
}

/* sticky compare table head */
.cmp-wrap { overflow-x: auto; }

/* utility */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.wrap { flex-wrap: wrap; }

/* ========================================================================
   RESPONSIVE PASS — phone (≤540), tablet (≤900), small laptop (≤1100)
   ====================================================================== */

/* general — section padding scales down */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-lg { padding: 96px 0; }
  .section-sm { padding: 40px 0; }
  .page-hero { padding: 96px 0 48px; }
  .container { padding: 0 22px; }
  .section-head { margin-bottom: 40px; }
  .hero-headline { max-width: 100%; }
  .hero-subhead { max-width: 100%; }
}
@media (max-width: 540px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .section-sm { padding: 32px 0; }
  .page-hero { padding: 80px 0 32px; }
  .container { padding: 0 18px; }
  .display-xl { font-size: clamp(40px, 12vw, 64px); line-height: 0.98; }
  .display-l  { font-size: clamp(34px, 9.5vw, 52px); line-height: 1; }
  .display-m  { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.05; }
  .display-s  { font-size: clamp(22px, 5.5vw, 30px); }
  .lead { font-size: 16.5px; }
  .hero-eyebrow { font-size: 10.5px; padding: 5px 10px; }
  body { font-size: 15.5px; }
}

/* hero product window (homepage)
   the inline 3-col grid 220px / 1fr / 360px stacks into a single column on phone
   sidebar + detail get hidden, list stays */
@media (max-width: 900px) {
  [style*="grid-template-columns:220px 1fr 360px"],
  [style*="grid-template-columns: 220px 1fr 360px"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  /* hide the sidebar (first) and the detail panel (third) */
  [style*="grid-template-columns:220px 1fr 360px"] > :nth-child(1),
  [style*="grid-template-columns: 220px 1fr 360px"] > :nth-child(1),
  [style*="grid-template-columns:220px 1fr 360px"] > :nth-child(3),
  [style*="grid-template-columns: 220px 1fr 360px"] > :nth-child(3) {
    display: none !important;
  }
  /* mobile hero window padding */
  .window { border-radius: 14px; }
  .window-bar { padding: 10px 12px; }
  .window-url { font-size: 11px; }
}

/* agency sub-account dashboard — 6-col grid → stacked card on mobile */
@media (max-width: 760px) {
  [style*="grid-template-columns:repeat(6, minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(6, minmax(0, 1fr))"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 16px !important;
    padding: 16px 18px !important;
  }
  /* on mobile, force client column to span the full row */
  [style*="grid-template-columns:repeat(6, minmax(0,1fr))"] > [style*="grid-column:span 2"],
  [style*="grid-template-columns:repeat(6, minmax(0, 1fr))"] > [style*="grid-column:span 2"] {
    grid-column: 1 / -1 !important;
  }
  /* hide the column-headers row entirely on phone */
  [style*="text-transform:uppercase"][style*="grid-template-columns:repeat(6"] {
    display: none !important;
  }
}

/* vs-smartlead $ reveal — tighten padding on phone */
@media (max-width: 700px) {
  .reveal-block { padding: 32px 24px !important; }
  .reveal-block .calc,
  .reveal-block .calc-total,
  .reveal-block .punchline {
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .reveal-block .punchline { padding-top: 24px; margin-top: 24px; }
  .reveal-block .punchline .lbl { font-size: 18px; }
  .reveal-block .calc-total .v,
  .reveal-block .punchline .v { font-size: clamp(44px, 14vw, 64px) !important; }
}

/* agencies P&L panels — tighter on mobile */
@media (max-width: 700px) {
  .pnl { padding: 28px 24px !important; }
  [style*="padding:40px 48px"][style*="border-radius"] {
    padding: 28px 24px !important;
  }
}

/* deliverability 4-col stat strip in dashboard mock */
@media (max-width: 700px) {
  [style*="grid-template-columns:repeat(4, 1fr)"][style*="gap:16px;margin-bottom:24px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:1.4fr 1fr;gap:16px"] {
    grid-template-columns: 1fr !important;
  }
  /* dashboard windowbody padding */
  .window-body[style*="padding:28px"] { padding: 18px !important; }
}

/* deliverability mech-card extra block grids */
@media (max-width: 540px) {
  .blocklist-grid { grid-template-columns: 1fr 1fr !important; }
}

/* AI cap-demo prompt → output blocks */
@media (max-width: 540px) {
  .cap-demo .prompt, .cap-demo .out { font-size: 12px; padding: 12px 14px; }
}

/* pricing tier grid — 4 cards always stack from 1000px down */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* pricing toggle compactness */
@media (max-width: 540px) {
  .price-toggle { font-size: 11.5px; }
  .price-toggle button { padding: 8px 12px; }
  .price-toggle .save { font-size: 9.5px; padding: 1px 5px; }
}

/* tiers — internal padding shrinks */
@media (max-width: 540px) {
  .tier { padding: 26px 22px; gap: 18px; }
  .tier-price .n { font-size: 44px; }
}

/* hero CTAs — stack on tiny screens */
@media (max-width: 460px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-trust { flex-wrap: wrap; row-gap: 6px; }
}

/* tweaks panel — keep accessible but smaller on phone */
@media (max-width: 540px) {
  #imail-tweaks {
    width: calc(100vw - 24px);
    right: 12px; left: 12px; bottom: 12px;
  }
  #imail-tweaks .tw-body { max-height: 50vh; }
}

/* compare tables — denser on mobile */
@media (max-width: 600px) {
  .cmp th, .cmp td { padding: 14px 12px; font-size: 13px; }
  .cmp th { font-size: 10.5px; }
}

/* contact 3-block cards stack */
@media (max-width: 760px) {
  .contact-card { padding: 28px 24px; }
}

/* footer columns collapse to 2 on tablet, 1 on phone */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* hero aurora — adjust height for shorter mobile hero */
@media (max-width: 700px) {
  .hero-aurora { height: 540px; top: -80px; }
}
@media (max-width: 540px) {
  .hero-aurora { height: 460px; top: -60px; opacity: 0.5; filter: blur(38px); }
}

/* features index grid */
@media (max-width: 760px) {
  [style*="grid-template-columns:repeat(3,1fr)"][style*="gap:14px 24px"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(3,1fr)"][style*="gap:14px 24px"] {
    grid-template-columns: 1fr !important;
  }
}

/* contact meta footer 3-col */
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(3,1fr)"][style*="border-top:1px solid var(--rule)"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* AI honest-limits comparison table — already cmp-wrap, just tighten */
/* deliverability mech-card num column */
@media (max-width: 700px) {
  .mech-card { padding: 24px 22px; }
  .mech-card .num { font-size: 32px; }
}

/* about essay typography on mobile */
@media (max-width: 540px) {
  .essay p { font-size: 16.5px; line-height: 1.6; }
  .pull { font-size: 12.5px; }
}

/* indigo CTA band scales down */
@media (max-width: 700px) {
  .indigo-band { padding: 72px 0; }
}

/* dark deliverability hero in noir-section — 2-col stacks */
@media (max-width: 900px) {
  .noir-section [style*="grid-template-columns:1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
    padding: 28px !important;
    gap: 24px !important;
  }
}

/* AI "honest limits" cmp table — let it scroll horizontally */
.cmp-wrap { -webkit-overflow-scrolling: touch; }

/* contact card stacked email + button on phone */
@media (max-width: 540px) {
  .contact-card .email { font-size: 13px; padding: 9px 12px; word-break: break-all; }
}

/* generic safety net: any grid using repeat(4...) → 2-col on phone */
@media (max-width: 700px) {
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* generic safety net: 3-col P&L row on agencies → stacks at 900 */
@media (max-width: 900px) {
  .grid-3 { gap: 14px; }
}

/* AI cap-row already handles 800px; reinforce stack on small */
@media (max-width: 540px) {
  .cap-num { font-size: 30px; }
  .cap-row { padding: 24px 0; gap: 14px; }
}

/* homepage "how it works" 3-col with inline border-right + asymmetric padding
   on mobile, kill borders and normalize padding so stacked layout reads correctly */
@media (max-width: 900px) {
  [style*="border-right:1px solid var(--rule)"][style*="padding:32px"] {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    padding: 28px 0 !important;
  }
  /* last one needs no bottom border */
  [style*="padding:32px 0 32px 28px"] {
    padding: 28px 0 !important;
    border-bottom: 0 !important;
  }
}

/* tweaks panel option rows — wrap if labels too long */
@media (max-width: 540px) {
  #imail-tweaks .tw-options { flex-wrap: wrap; }
  #imail-tweaks .tw-options.tw-swatches { gap: 6px; }
  #imail-tweaks .tw-swatch { flex: 1 1 calc(50% - 6px); }
}

/* contact card link buttons — fit phone */
@media (max-width: 400px) {
  .contact-card .btn { width: 100%; justify-content: center; }
  .contact-card .lbl { font-size: 10.5px; }
}

/* hero product window: dashboard rows responsive padding */
@media (max-width: 540px) {
  .window-body [style*="padding:14px 18px"] { padding: 12px 14px !important; }
  .window-body [style*="padding:14px 18px"] [class*="tag"] { font-size: 10px; padding: 2px 6px; }
}

/* allow horizontal wrapping inside dashboard list headers */
.window-body [style*="display:flex"][style*="align-items:center"][style*="gap:10px"] {
  flex-wrap: wrap;
}

/* agencies P&L numbers (huge $) shrink on phone */
@media (max-width: 540px) {
  [style*="font-size:36px"][style*="color:var(--coral)"] { font-size: 32px !important; }
  [style*="font-size:36px"][style*="margin-top:14px"] { font-size: 30px !important; }
  .pnl .total { font-size: 28px; }
}

/* keep hero text from feeling cramped on small screens */
@media (max-width: 540px) {
  .hero { padding: 32px 0 24px; }
  .window { margin-top: 36px; }
}

/* ========================================================================
   ANIMATED MECHANISM CARDS (homepage)
   ====================================================================== */

.mech-card-h { display: flex; flex-direction: column; }
.mech-anim {
  margin-top: 18px;
  padding: 16px 16px 14px;
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mech-anim .ma-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mech-anim .ma-foot {
  font-size: 11px;
  color: var(--ink-muted);
}
.mech-anim .ma-meta { color: var(--ink-muted); }
.mech-anim .ma-meta strong { color: var(--ink); font-weight: 500; }

/* pricing card — mailbox icons appear one by one, price stays */
.ma-inboxes { display: inline-flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.ma-mailbox {
  width: 14px; height: 10px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  opacity: 0;
  transform: translateY(4px);
  animation: ma-mb-pop 0.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.ma-mailbox::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, oklch(0.94 0.01 75) 35%, oklch(0.94 0.01 75) 50%, transparent 50%);
  border-radius: 2px;
}
.ma-mailbox:nth-child(1)  { animation-delay: 0.20s; }
.ma-mailbox:nth-child(2)  { animation-delay: 0.30s; }
.ma-mailbox:nth-child(3)  { animation-delay: 0.40s; }
.ma-mailbox:nth-child(4)  { animation-delay: 0.50s; }
.ma-mailbox:nth-child(5)  { animation-delay: 0.58s; }
.ma-mailbox:nth-child(6)  { animation-delay: 0.66s; }
.ma-mailbox:nth-child(7)  { animation-delay: 0.72s; }
.ma-mailbox:nth-child(8)  { animation-delay: 0.78s; }
.ma-mailbox:nth-child(9)  { animation-delay: 0.84s; }
.ma-mailbox:nth-child(10) { animation-delay: 0.88s; }
.ma-mailbox:nth-child(11) { animation-delay: 0.92s; }
.ma-mailbox:nth-child(12) { animation-delay: 0.96s; }
@keyframes ma-mb-pop {
  to { opacity: 1; transform: none; }
}
.ma-count {
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0;
  animation: ma-fade-in 0.5s 1.05s forwards;
}
.ma-price {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.ma-num {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

@keyframes ma-fade-in { to { opacity: 1; } }

/* reconnect card — curve draws in, dots fade in sequentially */
.mech-anim-reconnect .ma-curve {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: ma-curve-draw 1.4s 0.3s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes ma-curve-draw {
  to { stroke-dashoffset: 0; }
}
.mech-anim-reconnect .ma-dot {
  opacity: 0;
  animation: ma-fade-in 0.25s forwards;
}
.mech-anim-reconnect .ma-dot-1 { animation-delay: 0.50s; }
.mech-anim-reconnect .ma-dot-2 { animation-delay: 0.70s; }
.mech-anim-reconnect .ma-dot-3 { animation-delay: 0.90s; }
.mech-anim-reconnect .ma-dot-4 { animation-delay: 1.10s; }
.mech-anim-reconnect .ma-dot-5 { animation-delay: 1.30s; }
.mech-anim-reconnect .ma-dot-6 { animation-delay: 1.50s; }
.mech-anim-reconnect .ma-cap {
  opacity: 0;
  animation: ma-fade-in 0.35s 1.55s forwards;
}

/* AI card — bars fill from 0 to --w, value counts up */
.ma-bar {
  display: grid;
  grid-template-columns: 76px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.ma-label {
  font-size: 11.5px;
  color: var(--ink-2);
}
.ma-track {
  height: 8px;
  background: var(--bg-cream-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.ma-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  animation: ma-fill-grow 0.9s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.ma-fill-1 { animation-delay: 0.30s; }
.ma-fill-2 { animation-delay: 0.45s; }
.ma-fill-3 { animation-delay: 0.60s; }
.ma-fill-4 { animation-delay: 0.75s; }
@keyframes ma-fill-grow {
  to { width: var(--w); }
}
.ma-val {
  font-size: 12px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: ma-fade-in 0.5s 0.9s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .ma-mailbox, .ma-count, .ma-curve, .ma-dot, .ma-cap, .ma-fill, .ma-val {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    width: var(--w) !important;
  }
}

/* ========================================================================
   RECEIPT COMPARISON BAND ($330 vs $79)
   ====================================================================== */

.receipt {
  background: var(--noir);
  color: var(--noir-ink);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 0% 50%, color-mix(in oklch, var(--coral) 18%, transparent) 0%, transparent 60%),
              radial-gradient(60% 100% at 100% 50%, color-mix(in oklch, var(--brand-violet) 14%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.receipt > * { position: relative; z-index: 1; }
@media (max-width: 800px) {
  .receipt { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
}

.receipt-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noir-dim);
  margin-bottom: 14px;
}
.receipt-eq {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--noir-ink);
  line-height: 1.2;
}
.receipt-n { color: color-mix(in oklch, var(--noir-ink) 88%, var(--noir-dim)); }
.receipt-op { color: var(--noir-dim); }
.receipt-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--noir-dim);
}
.receipt-meta-bright { color: oklch(0.72 0.16 145); }
.receipt-total {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-left: 4px;
}
.receipt-cyc { font-size: 0.45em; color: var(--noir-dim); margin-left: 4px; letter-spacing: 0; }
.receipt-them { color: var(--coral); }
.receipt-us   { color: oklch(0.78 0.18 145); }

.receipt-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.receipt-divider::before, .receipt-divider::after {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--noir-rule);
  left: 50%;
}
.receipt-divider::before { top: 0; height: calc(50% - 22px); }
.receipt-divider::after  { bottom: 0; height: calc(50% - 22px); }
.receipt-divider span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noir-dim);
  background: var(--noir);
  padding: 4px 8px;
  border: 1px solid var(--noir-rule);
  border-radius: 999px;
  z-index: 1;
}
@media (max-width: 800px) {
  .receipt-divider { padding: 0; }
  .receipt-divider::before, .receipt-divider::after { display: none; }
  .receipt-divider span { margin: 0 auto; }
}

/* ========================================================================
   PRODUCT TOUR (looping SVG-driven scenes)
   ====================================================================== */

.tour-frame {
  background: var(--noir-2);
  border: 1px solid var(--noir-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.tour-bar {
  background: var(--noir);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--noir-rule);
}
.tour-url {
  margin-left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--noir-dim);
  flex: 1;
  text-align: center;
}
.tour-scene-label {
  position: relative;
  min-width: 220px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--noir-dim);
  height: 16px;
}
.tsl {
  position: absolute;
  right: 0;
  opacity: 0;
  animation: tour-label 28s linear infinite;
}
.tsl-1 { animation-delay: 0s; }
.tsl-2 { animation-delay: -21s; }
.tsl-3 { animation-delay: -14s; }
.tsl-4 { animation-delay: -7s; }
@keyframes tour-label {
  0%, 22%   { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.tour-stage {
  position: relative;
  background: var(--noir);
  height: 460px;
  overflow: hidden;
}
@media (max-width: 700px) { .tour-stage { height: 420px; } }
.tour-scene {
  position: absolute;
  inset: 0;
  padding: 32px 40px;
  opacity: 0;
  animation: tour-scene 28s linear infinite;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 700px) { .tour-scene { padding: 24px 22px; gap: 16px; } }
.tour-s1 { animation-delay: 0s; }
.tour-s2 { animation-delay: -21s; }
.tour-s3 { animation-delay: -14s; }
.tour-s4 { animation-delay: -7s; }
@keyframes tour-scene {
  0%        { opacity: 0; transform: translateY(8px); }
  3%, 22%   { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-4px); }
}

.tour-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noir-dim);
}

/* SCENE 1 — sequence builder */
.tour-flow { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 480px; margin: 0 auto; }
.tour-step {
  background: var(--noir-2);
  border: 1px solid var(--noir-rule);
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
}
.tour-s1 .ts-1 { animation: tour-pop 0.5s 0.4s forwards; }
.tour-s1 .ta-1 { animation: tour-pop 0.4s 1.0s forwards; opacity: 0; }
.tour-s1 .ts-2 { animation: tour-pop 0.5s 1.5s forwards; }
.tour-s1 .ta-2 { animation: tour-pop 0.4s 2.1s forwards; opacity: 0; }
.tour-s1 .ts-3 { animation: tour-pop 0.5s 2.6s forwards; }
@keyframes tour-pop {
  to { opacity: 1; transform: none; }
}
.tour-arrow { font-family: var(--font-mono); color: var(--noir-dim); font-size: 16px; }
.tour-step-num { font-family: var(--font-mono); font-size: 11px; color: var(--noir-dim); }
.tour-step-title { font-size: 15px; font-weight: 500; color: var(--noir-ink); }
.tour-step-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--noir-dim); grid-column: 2; }
.tour-step-day { font-family: var(--font-mono); font-size: 11px; color: var(--coral); }
.tour-step-branch { border-color: var(--coral); }

/* SCENE 2 — sending */
.tour-send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; }
@media (max-width: 700px) { .tour-send-grid { grid-template-columns: 1fr; } }
.tsend {
  background: var(--noir-2);
  border: 1px solid var(--noir-rule);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tsend-inbox { font-family: var(--font-mono); font-size: 12px; color: var(--noir-ink); }
.tsend-counter {
  height: 4px;
  background: var(--noir);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.tsend-bar {
  display: block;
  height: 100%;
  background: var(--coral);
  width: 0;
}
.tour-s2 .tsend-bar-1 { animation: tour-fill 5s 0.4s linear forwards; --tw: 41%; }
.tour-s2 .tsend-bar-2 { animation: tour-fill 5s 0.4s linear forwards; --tw: 20%; }
.tour-s2 .tsend-bar-3 { animation: tour-fill 5s 0.4s linear forwards; --tw: 62%; }
.tour-s2 .tsend-bar-4 { animation: tour-fill 5s 0.4s linear forwards; --tw: 9%; }
@keyframes tour-fill { to { width: var(--tw); } }
.tsend-meta { font-family: var(--font-mono); font-size: 11px; color: var(--noir-dim); }

.tour-fly {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.tfly {
  position: absolute;
  font-size: 16px;
  color: var(--coral);
  opacity: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.tour-s2 .tfly-1 { left: 30%; top: 60%; animation: tour-fly 1.6s 0.6s ease-in-out forwards; }
.tour-s2 .tfly-2 { left: 50%; top: 55%; animation: tour-fly 1.6s 1.2s ease-in-out forwards; }
.tour-s2 .tfly-3 { left: 70%; top: 50%; animation: tour-fly 1.6s 1.8s ease-in-out forwards; }
.tour-s2 .tfly-4 { left: 25%; top: 70%; animation: tour-fly 1.6s 2.4s ease-in-out forwards; }
.tour-s2 .tfly-5 { left: 65%; top: 60%; animation: tour-fly 1.6s 3.0s ease-in-out forwards; }
@keyframes tour-fly {
  0%   { opacity: 0; transform: translate(0, 0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translate(80px, -120px); }
}

/* SCENE 3 — reply classified */
.tour-reply {
  background: var(--noir-2);
  border: 1px solid var(--noir-rule);
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.treply-meta { display: flex; align-items: center; gap: 14px; }
.treply-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
}
.treply-name { font-size: 14px; font-weight: 500; color: var(--noir-ink); }
.treply-when { font-family: var(--font-mono); font-size: 11.5px; color: var(--noir-dim); }
.treply-body {
  background: var(--noir);
  border: 1px solid var(--noir-rule);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in oklch, var(--noir-ink) 80%, var(--noir-dim));
}
.treply-classify { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; }
.tcl { color: var(--noir-dim); opacity: 0; }
.tour-s3 .tcl-1 { animation: tour-pop 0.4s 0.6s forwards; }
.tour-s3 .tcl-2 { animation: tour-pop 0.4s 1.4s forwards; }
.tour-s3 .tcl-3 { animation: tour-pop 0.4s 2.2s forwards; }
.tour-s3 .tcl-result { animation: tour-pop 0.5s 3.0s forwards; }
.tcl-result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--coral);
  border-radius: 999px;
  align-self: flex-start;
  background: color-mix(in oklch, var(--coral) 15%, transparent);
}
.tcl-label {
  color: var(--coral);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tcl-score {
  color: var(--noir-ink);
  font-size: 14px;
  font-weight: 500;
}

/* SCENE 4 — metrics dashboard */
.tour-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .tour-stats { grid-template-columns: 1fr 1fr; } }
.tstat {
  background: var(--noir-2);
  border: 1px solid var(--noir-rule);
  border-radius: 10px;
  padding: 14px 16px;
}
.tstat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--noir-ink);
  line-height: 1;
}
.tstat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--noir-dim);
  margin-top: 6px;
}

.tour-funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tf-bar { display: grid; grid-template-columns: 78px 1fr 80px; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; }
.tf-lbl { color: var(--noir-dim); }
.tf-track { height: 6px; background: var(--noir-2); border-radius: 999px; overflow: hidden; display: block; }
.tf-fill { display: block; height: 100%; background: linear-gradient(90deg, oklch(0.78 0.18 50), oklch(0.74 0.18 8)); border-radius: 999px; width: 0; }
.tour-s4 .tf-1 .tf-fill { animation: tour-tfill 0.7s 0.6s forwards; --tfw: 100%; }
.tour-s4 .tf-2 .tf-fill { animation: tour-tfill 0.7s 1.0s forwards; --tfw: 57%; }
.tour-s4 .tf-3 .tf-fill { animation: tour-tfill 0.7s 1.4s forwards; --tfw: 14%; }
.tour-s4 .tf-4 .tf-fill { animation: tour-tfill 0.7s 1.8s forwards; --tfw: 4%; }
@keyframes tour-tfill { to { width: var(--tfw); } }
.tf-val { color: var(--noir-ink); text-align: right; }

/* dots */
.tour-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.td {
  width: 24px;
  height: 3px;
  background: var(--noir-rule);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.td::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--coral);
  width: 0;
  animation: tour-dot 28s linear infinite;
}
.td-1::after { animation-delay: 0s; }
.td-2::after { animation-delay: -21s; }
.td-3::after { animation-delay: -14s; }
.td-4::after { animation-delay: -7s; }
@keyframes tour-dot {
  0%        { width: 0; }
  3%, 22%   { width: 100%; }
  25%, 100% { width: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-scene, .tsl, .td::after { animation: none; }
  .tour-s1 { opacity: 1; }
  .tour-step, .tour-arrow, .tcl, .tcl-result, .tf-fill, .tsend-bar, .tfly { opacity: 1 !important; transform: none !important; width: var(--tfw, var(--tw, auto)); }
}

/* ========================================================================
   CUSTOMER VOICE CARDS
   ====================================================================== */

.voice {
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
  position: relative;
}
.voice-butter { background: var(--card-butter); }
.voice-mint   { background: var(--card-mint); }
.voice-rose   { background: var(--card-rose); }
.voice-sky    { background: var(--card-sky); }
.voice-lilac  { background: var(--card-lilac); }
.voice-quote {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  flex: 1;
  position: relative;
}
.voice-quote::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: -4px;
  font-size: 42px;
  line-height: 1;
  color: color-mix(in oklch, var(--ink) 18%, transparent);
  font-family: Georgia, serif;
  pointer-events: none;
}
.voice-by {
  display: flex;
  align-items: center;
  gap: 12px;
}
.voice-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ink) 12%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink);
  flex-shrink: 0;
}
.voice-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.voice-role { font-family: var(--font-mono); font-size: 11px; color: color-mix(in oklch, var(--ink) 65%, transparent); margin-top: 2px; }
.voice-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ink) 60%, transparent);
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
}

/* ========================================================================
   PRICING TAB SWITCHER + INFRASTRUCTURE CAROUSEL
   ====================================================================== */

.pricing-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: color-mix(in oklch, var(--bg-cream-2) 70%, white);
  margin-top: 32px;
  min-width: 360px;
}
@media (max-width: 480px) { .pricing-tabs { min-width: 0; width: 100%; } }
.pt-tab {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  text-align: left;
}
.pt-tab.on { color: var(--ink); }
.pt-tab-label { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.pt-tab-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.pt-tab.on .pt-tab-meta { color: var(--ink-2); }
.pt-indicator {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--bg-cream);
  border-radius: 12px;
  box-shadow: 0 1px 3px -1px color-mix(in oklch, var(--ink) 20%, transparent),
              0 0 0 1px var(--rule);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.pricing-tabs[data-active="infra"] .pt-indicator {
  transform: translateX(calc(100% + 0px));
}

.pt-panel[hidden] { display: none; }

/* ----- infrastructure carousel ----- */
.infra-carousel-controls {
  display: inline-flex;
  gap: 8px;
}
.ic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg-cream);
  cursor: pointer;
  font: 500 18px var(--font-mono);
  color: var(--ink-2);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  line-height: 1;
}
.ic-btn:hover { border-color: var(--ink); color: var(--ink); }
.ic-btn:active { transform: scale(0.95); }
.ic-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.infra-carousel {
  position: relative;
  margin: 0 -28px;
  padding: 8px 28px 28px;
  overflow: hidden;
}
.infra-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}
.infra-track::-webkit-scrollbar { display: none; }

.infra-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
  background: color-mix(in oklch, var(--bg-cream-2) 60%, white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
@media (max-width: 1100px) { .infra-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 700px)  { .infra-card { flex-basis: 86%; padding: 24px 22px; } }
.infra-card:hover { border-color: var(--ink); }
.infra-card.infra-feat {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-cream), var(--bg-cream)) padding-box,
    linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-rose) 55%, var(--brand-violet) 100%) border-box;
  border: 1.5px solid transparent;
}
.infra-card.infra-popular {
  background: var(--noir);
  color: var(--noir-ink);
  border-color: var(--noir-rule);
}
.infra-popular .ic-name { color: var(--noir-ink); }
.infra-popular .ic-meta, .infra-popular .ic-tag, .infra-popular .ic-best, .infra-popular .ic-note { color: color-mix(in oklch, var(--noir-ink) 78%, var(--noir-dim)); }
.infra-popular .ic-best span { color: var(--noir-dim); }
.infra-popular .ic-list li { color: color-mix(in oklch, var(--noir-ink) 82%, var(--noir-dim)); }
.infra-popular .ic-list li::before { color: oklch(0.78 0.16 145); }
.infra-popular .ic-best { border-top-color: var(--noir-rule); color: color-mix(in oklch, var(--noir-ink) 78%, var(--noir-dim)); }
.infra-popular .ic-best span { color: var(--noir-dim); }
.infra-popular .ic-amount, .infra-popular .ic-curr { color: var(--noir-ink); }
.infra-popular .ic-cyc { color: var(--noir-dim); }
/* keep .ic-includes box light (cream bg) on noir cards — needs DARK text for contrast */
.infra-popular .ic-includes { color: var(--ink-2); background: var(--bg-cream); border-color: var(--rule); }
.infra-popular .ic-includes strong { color: var(--ink); }

.ic-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 999px;
}
.ic-badge-pop {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-rose), var(--brand-violet));
}
.ic-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ic-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.ic-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.ic-price {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
  gap: 1px;
}
.ic-curr { font-size: 22px; color: var(--ink-2); letter-spacing: -0.01em; }
.ic-amount {
  font-size: clamp(38px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.ic-cyc { font-size: 13px; color: var(--ink-muted); margin-left: 6px; }
.ic-tag {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.ic-includes {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-cream);
  letter-spacing: -0.005em;
}
.ic-includes strong { color: var(--ink); font-weight: 500; }
.ic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ic-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  letter-spacing: -0.005em;
}
.ic-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--green);
  flex-shrink: 0;
}
.ic-best {
  font-size: 12.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  line-height: 1.5;
  margin-top: auto;
}
.ic-best span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 4px;
}
.ic-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin: 0;
}
.ic-cta {
  justify-content: center;
  width: 100%;
}

/* CTA buttons on noir-popular cards — use on-dark variant for visibility */
.infra-popular .btn-primary {
  background: var(--bg-cream);
  color: var(--ink);
}
.infra-popular .btn-primary:hover { background: white; }
.infra-popular .btn-ghost {
  color: var(--noir-ink);
  border-color: var(--noir-rule);
}
.infra-popular .btn-ghost:hover {
  border-color: var(--noir-ink);
  color: var(--noir-ink);
}

.ic-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.ic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, width 0.2s ease;
}
.ic-dot.on { background: var(--ink); width: 22px; border-radius: 999px; }

.ic-foot {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.6;
}
.ic-foot strong { color: var(--ink); font-weight: 500; }

/* ========================================================================
   PRICING CALCULATOR
   ====================================================================== */

.calc {
  background: color-mix(in oklch, var(--bg-cream-2) 60%, white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 700px) { .calc { padding: 28px 22px; gap: 24px; } }

.calc-controls {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: end;
}
@media (max-width: 700px) { .calc-controls { grid-template-columns: 1fr; gap: 20px; } }

.calc-row { display: flex; flex-direction: column; gap: 10px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.calc-value {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: none;
}

/* range input — restyle */
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-cream-3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.78 0.18 50), oklch(0.74 0.18 8), oklch(0.62 0.22 295));
  border: 3px solid var(--bg-cream);
  cursor: grab;
  box-shadow: 0 2px 12px -4px color-mix(in oklch, var(--ink) 40%, transparent),
              0 0 0 1px var(--rule);
  transition: transform 0.12s ease;
}
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); cursor: grabbing; }
.calc input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.78 0.18 50), oklch(0.74 0.18 8), oklch(0.62 0.22 295));
  border: 3px solid var(--bg-cream);
  cursor: grab;
  box-shadow: 0 2px 12px -4px color-mix(in oklch, var(--ink) 40%, transparent),
              0 0 0 1px var(--rule);
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  padding-top: 2px;
}

.calc-derived {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.calc-derived-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.calc-derived-val {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.calc-derived-meta {
  font-size: 11px;
  color: var(--ink-muted);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .calc-results { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.calc-card.calc-us {
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--brand-orange) 12%, transparent) 0%, color-mix(in oklch, var(--brand-violet) 8%, transparent) 100%),
    var(--bg-cream);
  border-color: color-mix(in oklch, var(--brand-orange) 40%, transparent);
}
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.calc-us .calc-brand { color: var(--ink); }
.calc-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: right;
}
.calc-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  color: var(--ink);
}
.calc-curr { font-size: 22px; letter-spacing: -0.01em; }
.calc-amount {
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.18s ease;
}
.calc-us .calc-amount {
  background: linear-gradient(135deg, oklch(0.66 0.20 50) 0%, oklch(0.62 0.20 295) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-cyc { font-size: 13px; color: var(--ink-muted); margin-left: 4px; }
.calc-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.calc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--bg-cream);
  border-radius: 999px;
}
.calc-us .calc-badge {
  background: linear-gradient(135deg, oklch(0.66 0.20 50), oklch(0.62 0.20 295));
}

.calc-savings {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--noir);
  color: var(--noir-ink);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.calc-savings strong {
  color: oklch(0.78 0.18 145);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.calc-foot {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.calc-foot span { color: var(--ink-2); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.08em; margin-right: 6px; }

/* number-change pulse */
.calc-amount.pulse { animation: calc-pulse 0.4s ease; }
@keyframes calc-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }

.ticker {
  position: relative;
  padding: 18px 0;
  background: var(--noir);
  color: var(--noir-ink);
  overflow: hidden;
  z-index: 3;
  border-top: 1px solid var(--noir-rule);
  border-bottom: 1px solid var(--noir-rule);
}
.ticker-frame {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  padding-left: 28px;
}
@media (max-width: 600px) { .ticker-frame { padding-left: 18px; gap: 12px; } }

.ticker-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noir-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--noir-rule);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--noir-2);
}
.ticker-tag .live-dot {
  width: 6px; height: 6px;
  background: var(--coral);
  animation-name: pulseCoral;
}

.ticker-mask {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: tk-scroll 90s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tk-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in oklch, var(--noir-ink) 78%, var(--noir-dim));
  letter-spacing: -0.005em;
  flex-shrink: 0;
}
.ticker-item em { color: var(--coral); font-style: normal; }
.ticker-item code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--noir-ink);
  background: var(--noir-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--noir-rule);
}
.ticker-item .tk-t {
  color: var(--noir-dim);
  margin-right: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
  padding: 0;
  transition: border-color 0.15s ease;
}
.nav-burger:hover { border-color: var(--ink); }
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1040px) {
  .nav-burger { display: inline-flex; }
}
@media (max-width: 540px) {
  /* on small phones, hide both inline buttons; drawer carries them */
  .nav-cta .btn { display: none; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open { pointer-events: auto; opacity: 1; }

.nav-drawer-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--ink) 50%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--bg-cream);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -24px 0 60px -20px color-mix(in oklch, var(--ink) 30%, transparent);
}
.nav-drawer.open .nav-drawer-panel { transform: none; }

.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer-close {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-drawer-close:hover { border-color: var(--ink); color: var(--ink); }

.nav-drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
}
.nav-drawer-links a {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 24px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-drawer-links a::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-drawer-links a:hover {
  background: var(--bg-cream-2);
  color: var(--ink);
}
.nav-drawer-links a:hover::after { opacity: 1; transform: none; }
.nav-drawer-links a.active {
  color: var(--ink);
  background: color-mix(in oklch, var(--bg-cream-2) 60%, white);
}
.nav-drawer-links a.active::after { opacity: 1; transform: none; color: var(--coral); }

.nav-drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--rule);
}
.nav-drawer-foot .btn { justify-content: center; padding: 12px 18px; font-size: 14.5px; }
.nav-drawer-foot .nav-status { display: inline-flex; align-self: flex-start; }

/* hide drawer on desktop so it never shows accidentally */
@media (min-width: 1041px) {
  .nav-drawer { display: none; }
}

/* ========================================================================
   FORM VALIDATION STATES
   ====================================================================== */

.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}
.field .field-error {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--red);
  margin-top: 2px;
  display: none;
}
.field.show-error .field-error { display: block; }
.field.show-error input,
.field.show-error textarea,
.field.show-error select { border-color: var(--red); }

.field input:focus:invalid,
.field textarea:focus:invalid { outline: 0; border-color: var(--ink); }

/* form success state */
.form-success {
  background: color-mix(in oklch, var(--green) 18%, transparent);
  border: 1px solid color-mix(in oklch, var(--green) 35%, transparent);
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  display: none;
  align-items: center;
  gap: 12px;
}
.form-success.show { display: flex; }
.form-success::before {
  content: "✓";
  font-family: var(--font-mono);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========================================================================
   FOCUS STYLES (keyboard accessibility)
   ====================================================================== */

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }
.faq summary:focus-visible { outline-offset: 4px; }
