/* BRIX AI public site. Graphite grey and white first; BRIX violet only as a
   small accent and green only for numbers that go up. Sections pick their
   colours from the theme tokens, so .theme-light / .theme-dark flip a whole block. */
:root {
  --black: #202124;
  --graphite: #2B2C30;
  --white: #FFFFFF;
  --paper: #EFEFF1;
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --growth: #22C55E;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}
:root, .theme-dark {
  --bg: var(--black);
  --fg: #FAFAFA;
  --fg-2: rgba(250, 250, 250, 0.66);
  --fg-3: rgba(250, 250, 250, 0.42);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: var(--graphite);
}
.theme-light {
  --bg: var(--paper);
  --fg: #0A0A0A;
  --fg-2: rgba(10, 10, 10, 0.64);
  --fg-3: rgba(10, 10, 10, 0.44);
  --surface: rgba(10, 10, 10, 0.025);
  --surface-2: rgba(10, 10, 10, 0.05);
  --surface-3: rgba(10, 10, 10, 0.08);
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.16);
  --card: #FFFFFF;
}
.theme-light, .theme-dark { color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* ---------- Background ---------- */
/* A soft graphite gradient: lighter at the top, settling darker towards the bottom. */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #3A3B40 0%, rgba(58, 59, 64, 0) 70%),
    linear-gradient(180deg, #2A2B2F 0%, #222326 45%, #1C1D20 100%);
}
.bg-glow { position: absolute; left: 50%; top: -480px; width: 1200px; height: 800px; margin-left: -600px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 60%, transparent); }
/* Fine grid lines behind the hero, fading out towards the edges. */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 20%, transparent 75%);
}
.bg-noise {
  position: absolute; inset: -50%; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site { position: relative; z-index: 1; }

/* Light "sheets" laid over the black page */
.slab { position: relative; z-index: 1; margin: 0 12px; border-radius: 40px; overflow: clip; background: var(--bg); }
.slab + .slab { margin-top: 12px; }
.slab.theme-light { background: linear-gradient(180deg, #F4F4F6 0%, var(--paper) 50%, #E8E8EB 100%); }

/* ---------- Buttons, chips, links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 0 4px var(--surface-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--surface-2); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon-arrow { transform: translate(2px, -2px); }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; font-size: 14px; line-height: 1.3;
  color: var(--fg-2); background: transparent; border: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.chip.is-active { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.chip small { color: inherit; opacity: 0.6; font-size: 12px; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fg-2); transition: color 0.2s, gap 0.25s var(--ease); }
.link-btn:hover { color: var(--fg); gap: 9px; }
.link-ai { color: var(--fg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(32, 33, 36, 0.9); border-bottom-color: rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity 0.3s; }
.site-header.is-scrolled .scroll-progress { opacity: 0.7; }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--fg-2); transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 56px; }
.hero-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, 0.07), transparent 65%); }
.hero.is-lit .hero-spot { opacity: 1; }
.hero-center {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 120px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 48px; padding-bottom: 40px;
}
.hero-title {
  font-size: clamp(84px, 15vw, 200px); font-weight: 800; line-height: 0.86; letter-spacing: -0.065em;
  color: var(--fg); margin-bottom: 28px;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.03em 0.1em; margin: -0.04em -0.03em -0.1em; }
.hero-title .wi { display: inline-block; }
.hero-title .grad {
  background: linear-gradient(105deg, #FFFFFF 0%, #FFFFFF 42%, #7A7A7A 50%, #FFFFFF 58%, #FFFFFF 100%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); margin-bottom: 38px; }
.hero-tags { margin-top: 22px; max-width: 820px; }

/* Intro sequence on load */
@keyframes rise-in { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -60% 0; } }
.hero-title .wi { animation: rise-in 1.15s var(--ease-out) backwards; }
.hero-title .w:nth-child(1) .wi { animation-delay: 0.12s; }
.hero-title .w:nth-child(2) .wi { animation-delay: 0.24s; }
.hero-title .w:nth-child(3) .wi { animation-delay: 0.36s; }
.hero-title .wi.grad { animation: rise-in 1.15s var(--ease-out) 0.24s backwards, shine 7s ease-in-out 1.6s infinite; }
.hero-sub { animation: fade-up 0.9s var(--ease-out) 0.5s backwards; }
.composer-slot { animation: fade-up 0.9s var(--ease-out) 0.62s backwards; }
.hero-tags .chip { animation: fade-up 0.7s var(--ease-out) backwards; animation-delay: calc(0.75s + var(--i, 0) * 0.05s); }
.hero-products-title { animation: fade-up 0.8s var(--ease-out) 0.95s backwards; }
.hero .product-card { animation: fade-up 0.8s var(--ease-out) backwards; animation-delay: calc(1s + var(--i, 0) * 0.07s); }

/* ---------- Composer (shared by hero and chat) ---------- */
.composer-slot { width: 100%; max-width: 760px; }
.dock-slot { width: 100%; }
.composer {
  position: relative; width: 100%;
  background: var(--graphite); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left; color: #FAFAFA; transition: border-color 0.25s, box-shadow 0.25s;
}
.composer::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0deg, rgba(255, 255, 255, 0.85) 50deg, transparent 110deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.4; animation: spin 7s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.composer:focus-within { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.06); }
.composer:focus-within::before { opacity: 0; }
.composer textarea {
  display: block; width: 100%; min-height: 64px; max-height: 220px; resize: none;
  padding: 20px 22px 6px; border: 0; outline: 0; background: transparent;
  font-size: 17px; line-height: 1.5; color: #FAFAFA;
}
.composer textarea::placeholder { color: rgba(250, 250, 250, 0.4); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px 22px; }
.composer-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(250, 250, 250, 0.42); }
.composer-send {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-left: auto;
  background: #FAFAFA; color: #0A0A0A;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.composer-send:hover:not(:disabled) { transform: scale(1.06); }
.composer-send:disabled { background: rgba(255, 255, 255, 0.08); color: rgba(250, 250, 250, 0.35); cursor: default; }
.composer-send .stop-icon { display: none; }
.composer.is-busy .composer-send, .composer.is-busy .composer-send:disabled { background: #FAFAFA; color: #0A0A0A; cursor: pointer; }
.composer.is-busy .send-icon { display: none; }
.composer.is-busy .stop-icon { display: block; }
.composer.is-busy textarea { opacity: 0.6; }

/* ---------- Product cards ---------- */
.hero-products { padding-top: 12px; }
.hero-products-title { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1200px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.product-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 60%); }
.product-card:hover { border-color: var(--line-2); }
.product-card:hover::before { opacity: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.product-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--fg); color: var(--bg); }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
/* An uploaded logo brings its own background, and a round one stays round. */
.product-icon.is-image, .cta-app .product-icon.is-image { background: transparent; }
.product-metric { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 700; }
.product-metric .icon { color: var(--growth); }
.product-card h3 { font-size: 19px; font-weight: 600; }
.product-card p { color: var(--fg-2); font-size: 14.5px; line-height: 1.5; flex: 1; }
.product-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Sparklines (decoration, drawn in when they scroll into view) ---------- */
.stat-spark, .case-spark, .sv-spark { display: block; overflow: visible; }
.stat-spark path, .case-spark path, .sv-spark path { fill: none; stroke: var(--fg-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease-out) 0.3s; }
.stat-spark circle, .case-spark circle, .sv-spark circle { fill: var(--growth); opacity: 0; transition: opacity 0.4s ease 1.8s; }
.is-visible .stat-spark path, .is-visible .case-spark path, .is-visible .sv-spark path { stroke-dashoffset: 0; }
.is-visible .stat-spark circle, .is-visible .case-spark circle, .is-visible .sv-spark circle { opacity: 1; }
.stat-spark { width: 100%; max-width: 170px; height: 34px; margin: 2px 0 4px; }

/* ---------- Step illustrations ---------- */
.sv { height: 108px; margin-bottom: 24px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.sv-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; color: var(--fg); }
.sv-typed { white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); }
.step.is-visible .sv-typed { animation: type-in 1.6s steps(22) 0.5s forwards; }
@keyframes type-in { to { clip-path: inset(0 0 0 0); } }
.sv-send { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--fg); color: var(--bg); display: grid; place-items: center; }
.sv-send .icon { width: 14px; height: 14px; }
.sv-proof { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.sv-case strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.sv-case span { display: block; margin-top: 6px; font-size: 12px; color: var(--fg-3); }
.sv-spark { width: 46%; height: 44px; }
.sv-spark path { stroke: var(--fg); }
.sv-app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); }
.sv-app-icon { width: 30px; height: 30px; border-radius: 8px; background: #0A0A0A; display: grid; place-items: center; flex: none; }
.sv-app-icon img { width: 14px; height: auto; }
.sv-app b { display: block; font-size: 13px; color: var(--fg); }
.sv-app small { display: block; font-size: 11px; color: var(--fg-3); }
.sv-toggle { margin-left: auto; position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); transition: background-color 0.4s ease 0.9s; flex: none; }
.sv-toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.45s var(--ease-out) 0.9s; }
.step.is-visible .sv-toggle { background: var(--growth); }
.step.is-visible .sv-toggle i { transform: translateX(16px); }
.sv-live { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--growth); opacity: 0; transition: opacity 0.4s ease 1.4s; }
.step.is-visible .sv-live { opacity: 1; }

/* ---------- Live cart demo ---------- */
.has-dots::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); }
.has-dots > .container { position: relative; }
.demo-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-bottom: 26px; }
.demo-stats span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.demo-stats strong { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.demo-stats .is-up { color: var(--growth); }

.demo-cart {
  --fg: #0A0A0A; --fg-2: rgba(10, 10, 10, 0.64); --fg-3: rgba(10, 10, 10, 0.44); --line: rgba(10, 10, 10, 0.08); --line-2: rgba(10, 10, 10, 0.16);
  position: relative; padding: 24px; border-radius: 28px; background: #FAFAFA; color: var(--fg);
  box-shadow: 0 60px 120px -60px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.demo-cart::before { content: ""; position: absolute; inset: -60px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); pointer-events: none; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dc-head strong { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.dc-head span { color: var(--fg-3); font-size: 13px; }
.dc-progress { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dc-msg { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; transition: color 0.3s; }
.dc-msg.is-win { color: #15803D; }
.dc-track { position: relative; height: 8px; margin-right: 13px; border-radius: 99px; background: rgba(10, 10, 10, 0.08); }
.dc-fill { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: #0A0A0A; transition: width 0.9s var(--ease-out), background-color 0.4s; }
.dc-fill.is-done { background: var(--growth); }
.dc-mark { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; border: 1.5px solid rgba(10, 10, 10, 0.18); color: rgba(10, 10, 10, 0.5); transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.45s var(--ease-out); }
.dc-mark .icon { width: 14px; height: 14px; }
.dc-mark.is-on { background: var(--growth); border-color: var(--growth); color: #FFFFFF; transform: scale(1.12); }
.dc-items { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 12px; border-bottom: 1px solid var(--line); min-height: 76px; }
.dc-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.dc-item.is-new { animation: dc-in 0.55s var(--ease-out) both; }
@keyframes dc-in { from { opacity: 0; transform: translateY(-10px); } }
.dc-thumb { display: block; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--c, #E5E5E5), #D4D4D4); border: 1px solid rgba(10, 10, 10, 0.06); }
.dc-item b { display: block; font-size: 14px; font-weight: 600; }
.dc-item small { display: block; color: var(--fg-3); font-size: 12px; }
.dc-item em { font-style: normal; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.dc-item em s { display: block; font-weight: 500; font-size: 11.5px; color: var(--fg-3); }
.dc-item .is-free { color: #15803D; }
.dc-pack { margin-top: 6px; padding: 3px 10px; border-radius: 99px; border: 1px dashed rgba(10, 10, 10, 0.3); font-size: 11.5px; font-weight: 700; color: #0A0A0A; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.dc-pack:hover { background: #0A0A0A; color: #FFFFFF; border-style: solid; border-color: #0A0A0A; }
.dc-suggest { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dc-suggest > p { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.dc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; text-align: left; color: var(--fg); transition: border-color 0.2s, transform 0.25s var(--ease), opacity 0.3s; }
.dc-card:hover:not(:disabled) { border-color: #0A0A0A; transform: translateY(-2px); }
.dc-card .dc-thumb { width: 100%; height: 56px; margin-bottom: 4px; }
.dc-card b { font-size: 12.5px; font-weight: 600; }
.dc-card > span:not(.dc-thumb):not(.dc-add) { font-size: 12px; color: var(--fg-2); }
.dc-add { margin-top: 4px; padding: 5px 8px; border-radius: 99px; background: #0A0A0A; color: #FFFFFF; font-size: 11.5px; font-weight: 700; text-align: center; transition: background-color 0.3s; }
.dc-card:disabled { cursor: default; opacity: 0.6; }
.dc-card:disabled .dc-add { background: var(--growth); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; }
.dc-foot span { display: block; font-size: 12px; color: var(--fg-3); }
.dc-foot strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.dc-checkout { padding: 12px 28px; border-radius: 99px; background: #0A0A0A; color: #FFFFFF !important; font-size: 14px !important; font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1; white-space: nowrap; color: var(--fg); transition: color 0.3s, -webkit-text-stroke-color 0.3s; }
.marquee-item.outline { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.5); }
.marquee-item.outline:hover { color: var(--fg); -webkit-text-stroke-color: transparent; }
.marquee-sep { color: var(--fg-3); }
.marquee-sep .icon { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Brand logos: always shown in their original colours. */
.marquee-logos .marquee-group { gap: 72px; padding-right: 72px; }
/* Brand logos in one soft grey; each shows its own colours on hover. */
.marquee-logo { height: 46px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1) contrast(0.55) brightness(1.55); opacity: 0.6; transition: filter 0.35s, opacity 0.35s; }
.marquee-logo:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 128px 0; }
.section-tight { padding: 72px 0; }
.section-top-tight { padding-top: 24px; }
.section-head { margin-bottom: 60px; }
.section-head-center { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head-left { max-width: 660px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
/* Headings marked data-split are broken into words by site.js and rise in, word by word. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.12em; margin: -0.04em -0.02em -0.12em; }
[data-split] .wi { display: inline-block; transform: translateY(108%); transition: transform 0.95s var(--ease-out); transition-delay: calc(var(--wi, 0) * 45ms); }
.is-visible [data-split] .wi, [data-split].is-visible .wi { transform: none; }
.section-title-sm { font-size: clamp(26px, 3vw, 38px); margin-bottom: 32px; }
.section-sub { margin-top: 20px; font-size: 18px; color: var(--fg-2); }
.section-head .eyebrow, .section-head .section-sub { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.section-head .section-sub { transition-delay: 0.25s; }
.section-head.is-visible .eyebrow, .section-head.is-visible .section-sub { opacity: 1; transform: none; }
.section-cta { display: flex; justify-content: center; margin-top: 52px; }
.lead { font-size: 18px; color: var(--fg-2); }

/* Stats */
.stats-strip { position: relative; padding: 72px 0 88px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 0 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--fg-2); font-size: 15px; max-width: 240px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { position: relative; padding: 32px 30px 36px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: background-color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease); }
.step-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px var(--fg-3); transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: var(--fg-2); }
.theme-light .step:hover, .theme-light .case-card:hover {
  --fg: #FAFAFA; --fg-2: rgba(250, 250, 250, 0.66); --fg-3: rgba(250, 250, 250, 0.42); --bg: var(--black); --card: var(--graphite);
  --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.24); --surface: rgba(255, 255, 255, 0.04); --surface-2: rgba(255, 255, 255, 0.07); --surface-3: rgba(255, 255, 255, 0.12);
  background: var(--black); border-color: var(--black); color: var(--fg); transform: translateY(-4px);
}
.step:hover .step-num { color: var(--fg); -webkit-text-stroke-color: transparent; }


/* ---------- BRIX apps: the journey strip ---------- */
.journey { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--count, 3), 1fr); gap: 14px; }
/* A track joins the numbered steps; the dark line draws along it when the strip comes into view. */
.journey::before, .journey::after { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; border-radius: 2px; }
.journey::before { background: var(--line-2); }
.journey::after { background: var(--fg); transform: scaleX(0); transform-origin: left center; transition: transform 1.8s var(--ease-out) 0.3s; }
.journey.is-visible::after { transform: none; }
.journey-step { position: relative; display: flex; flex-direction: column; padding-top: 68px; }
.journey-dot { position: absolute; z-index: 1; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-family: var(--font-display); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 6px var(--paper); }
.journey-card { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.journey-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px rgba(10, 10, 10, 0.28); }
.journey-stage { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.journey-app { display: flex; align-items: center; gap: 14px; }
.journey-app h3 { font-size: 22px; }
.journey-problem { flex: 1; color: var(--fg-2); }
.journey-link { align-self: flex-start; color: var(--fg); }

/* Journey step shown on the hero product cards */
.product-stage { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); font-size: 12px; font-weight: 600; white-space: nowrap; transition: border-color 0.2s, color 0.2s; }
.product-stage:hover { border-color: var(--line-2); color: var(--fg); }

/* ---------- BRIX apps: one showcase per app ---------- */
.app-show + .app-show { padding-top: 24px; }
.app-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.app-grid.is-flipped .app-copy { order: 2; }
.app-copy .eyebrow { margin-bottom: 18px; }
.app-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-brand strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.app-brand small { display: block; color: var(--fg-3); font-size: 14px; }
.app-title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px; }
.app-copy .lead { margin-bottom: 26px; }
.app-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.app-points li { display: flex; align-items: flex-start; gap: 12px; }
.app-points .icon { width: 20px; height: 20px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--growth); color: var(--white); }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.app-visual { position: relative; }
.demo-stats-sm { align-items: flex-end; margin-bottom: 18px; }
.demo-stats-sm strong { font-size: 34px; }
.demo-stats-sm .btn { margin-left: auto; }
.viz-logo { display: grid; place-items: center; min-height: 340px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.viz-logo .product-icon { width: 120px; height: 120px; border-radius: 32px; }

/* Floating labels around the try-on and push illustrations */
.to-chip, .cn-result { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--line-2); color: var(--fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); opacity: 0; }

/* Try On: the shopper's photo, then the same photo wearing the jacket, revealed under the scan line. */
.viz-tryon { position: relative; max-width: 390px; margin: 0 auto; padding: 24px 0; }
.to-card { position: relative; padding: 12px; border-radius: 28px; background: #FAFAFA; color: #0A0A0A; box-shadow: 0 60px 120px -60px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.to-stage { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #E9E7E4; }
.to-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.to-after { clip-path: inset(0 0 100% 0); }
.to-scan { position: absolute; left: 0; right: 0; top: -22%; height: 22%; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.22) 75%, var(--violet-light)); }
.to-label { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: rgba(10, 10, 10, 0.82); color: #FFFFFF; font-size: 12px; font-weight: 600; opacity: 0; }
.to-label-after .icon { color: var(--violet-light); }
.to-product { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.to-product img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(10, 10, 10, 0.08); }
.to-product b { display: block; font-family: var(--font-display); font-size: 15px; }
.to-product span { display: block; font-size: 13px; color: rgba(10, 10, 10, 0.6); }
.to-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.to-try, .to-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.to-try { border: 1.5px solid #0A0A0A; }
.to-add { background: #0A0A0A; color: #FFFFFF; }
.to-chip .icon { color: var(--violet-light); }
.to-chip-garment { top: 96px; left: -44px; padding: 6px 13px 6px 6px; }
.to-chip-garment img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #FFFFFF; }
.to-chip-lead { bottom: 150px; right: -34px; }
.to-chip-lead .icon { color: var(--growth); }
.app-visual.is-visible .to-label-before { animation: to-label-before 9s var(--ease-out) infinite; }
.app-visual.is-visible .to-chip-garment { animation: to-garment-chip 9s var(--ease-out) infinite; }
.app-visual.is-visible .to-scan { animation: to-scan 9s linear infinite; }
.app-visual.is-visible .to-after { animation: to-after 9s linear infinite; }
.app-visual.is-visible .to-label-after { animation: to-label-after 9s var(--ease-out) infinite; }
.app-visual.is-visible .to-chip-lead { animation: to-lead 9s var(--ease-out) infinite; }
.app-visual.is-visible .to-add { animation: to-add 9s var(--ease) infinite; }
@keyframes to-label-before { 0%, 3% { opacity: 0; } 7%, 27% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes to-garment-chip { 0%, 6% { opacity: 0; transform: translateY(8px); } 11%, 40% { opacity: 1; transform: none; } 45%, 100% { opacity: 0; transform: none; } }
/* The scan line and the reveal of the "after" photo move together, top to bottom. */
@keyframes to-scan { 0%, 29% { opacity: 0; transform: none; } 30% { opacity: 1; transform: none; } 46% { opacity: 1; transform: translateY(560%); } 47%, 100% { opacity: 0; transform: translateY(560%); } }
@keyframes to-after { 0%, 30% { opacity: 1; clip-path: inset(0 0 100% 0); } 46%, 92% { opacity: 1; clip-path: inset(0 0 0 0); } 98% { opacity: 0; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 100% 0); } }
@keyframes to-label-after { 0%, 46% { opacity: 0; transform: translateY(-6px); } 50%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes to-lead { 0%, 70% { opacity: 0; transform: translateY(8px); } 75%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes to-add { 0%, 76% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } 80% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35); } 88%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* Connect: a lock screen where the store's push notifications arrive one by one. */
.viz-connect { position: relative; max-width: 380px; margin: 0 auto; padding: 24px 0; }
/* The handset: a metal frame with side buttons, a black bezel and a tall screen. */
.cn-phone { position: relative; width: 292px; max-width: 100%; aspect-ratio: 9 / 18.6; margin: 0 auto; padding: 10px; border-radius: 52px; background: #0B0B0D; box-shadow: inset 0 0 0 2px #3A3B40, inset 0 0 0 4px #121316, 0 60px 120px -60px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.cn-phone::before, .cn-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2E2F34; }
.cn-phone::before { left: -3px; top: 104px; height: 34px; box-shadow: 0 54px 0 #2E2F34, 0 108px 0 #2E2F34; }
.cn-phone::after { right: -3px; top: 150px; height: 72px; }
.cn-screen { position: relative; height: 100%; display: flex; flex-direction: column; padding: 12px 12px 10px; border-radius: 42px; overflow: hidden; background: radial-gradient(130% 70% at 20% 0%, #5B4B8A 0%, #2B2C30 58%, #17181B 100%); color: #FFFFFF; }
.cn-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 8px 0 16px; font-size: 13px; font-weight: 600; }
.cn-island { position: absolute; left: 50%; top: 0; width: 80px; height: 26px; margin-left: -40px; border-radius: 20px; background: #000000; }
.cn-sys { display: inline-flex; align-items: center; gap: 4px; }
.cn-sys svg { fill: #FFFFFF; }
.cn-battery { position: relative; width: 24px; height: 12px; padding: 1.5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.5); }
.cn-battery::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.5); }
.cn-battery i { display: block; width: 78%; height: 100%; border-radius: 2px; background: #FFFFFF; }
.cn-clock { margin: 18px 0 22px; text-align: center; }
.cn-clock span { display: block; font-size: 14px; font-weight: 500; opacity: 0.8; }
.cn-clock strong { display: block; font-family: var(--font-display); font-size: 72px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cn-stack { display: grid; gap: 7px; }
.cn-note { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: start; padding: 10px 11px; border-radius: 18px; background: rgba(245, 245, 247, 0.88); color: #0A0A0A; opacity: 0; }
.cn-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #0A0A0A; color: #FFFFFF; }
.cn-note small { display: block; font-size: 10.5px; color: rgba(10, 10, 10, 0.5); }
.cn-note b { display: block; font-size: 12.5px; line-height: 1.3; }
.cn-note p { font-size: 11.5px; line-height: 1.35; color: rgba(10, 10, 10, 0.68); }
.cn-dock { display: flex; justify-content: space-between; margin-top: auto; padding: 0 22px 14px; }
.cn-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); }
.cn-home { display: block; width: 112px; height: 4px; margin: 0 auto; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.cn-optin { position: absolute; z-index: 2; top: 280px; left: -24px; display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #FAFAFA; color: #0A0A0A; font-size: 12.5px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); opacity: 0; }
.cn-optin i { justify-self: start; padding: 5px 14px; border-radius: 99px; background: #0A0A0A; color: #FFFFFF; font-style: normal; font-weight: 700; }
.cn-result { bottom: 150px; right: -24px; }
.cn-result .icon { color: var(--growth); }
.app-visual.is-visible .cn-optin { animation: cn-optin 10s var(--ease-out) infinite; }
.app-visual.is-visible .cn-note { animation: cn-note 10s var(--ease-out) infinite; animation-delay: calc(var(--n) * 1.3s); }
.app-visual.is-visible .cn-result { animation: cn-result 10s var(--ease-out) infinite; }
@keyframes cn-optin { 0% { opacity: 0; transform: translateY(8px); } 4%, 16% { opacity: 1; transform: none; } 21%, 100% { opacity: 0; transform: none; } }
/* Shifted by each note's delay, so the three land and leave in turn. */
@keyframes cn-note { 0%, 18% { opacity: 0; transform: translateY(-16px) scale(0.97); } 24% { opacity: 1; transform: none; } 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: none; } }
@keyframes cn-result { 0%, 62% { opacity: 0; transform: translateY(8px); } 67%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Closing call to action: one install link per app */
.cta-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 880px; margin: 0 auto 22px; }
.cta-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 14px; border-radius: 18px; text-align: left; color: var(--white); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.cta-app:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
.cta-app > span:not(.product-icon) { flex: 1; min-width: 0; }
.cta-app strong { display: block; font-size: 15px; }
.cta-app small { display: block; font-size: 12.5px; color: rgba(250, 250, 250, 0.55); }
.cta-app .product-icon { width: 40px; height: 40px; background: var(--white); color: var(--black); }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: background-color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease); }
.case-metric { position: relative; display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.case-spark { position: absolute; right: 0; top: 4px; width: 96px; height: 34px; }
.case-card:hover .case-spark path { stroke: var(--fg); }
.case-value { font-family: var(--font-display); font-size: 64px; font-weight: 800; letter-spacing: -0.055em; line-height: 1; color: var(--fg); }
.case-label { display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 14px; }
.case-label .icon { color: var(--growth); }
.case-card h3 { font-size: 18px; line-height: 1.35; }
.case-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.case-summary { color: var(--fg-2); font-size: 15px; flex: 1; }
.case-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* Testimonials: an endless, slow rail */
.quote-marquee { overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.quote-track { display: flex; width: max-content; animation: marquee var(--duration, 60s) linear infinite; }
.quote-marquee:hover .quote-track { animation-play-state: paused; }
.quote-group { display: flex; gap: 14px; padding-right: 14px; }
.quote-card { flex: 0 0 380px; margin: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; transition: border-color 0.3s; }
.quote-card:hover { border-color: var(--line-2); }
.quote-top { display: flex; justify-content: space-between; align-items: center; }
.quote-metric { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--fg); letter-spacing: -0.04em; }
.quote-metric small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg-3); letter-spacing: 0; }
.stars { display: inline-flex; gap: 2px; color: var(--fg); }
.stars .star { fill: currentColor; stroke: none; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--fg); flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption img, .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 14px; }
.quote-card figcaption strong { display: block; font-size: 15px; }
.quote-card figcaption small { display: block; color: var(--fg-3); font-size: 13px; }

/* Why BRIX */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.why .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.why-row { position: relative; display: grid; grid-template-columns: 76px 1fr 24px; gap: 16px; align-items: start; padding: 28px 8px 28px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), background-color 0.4s; }
.why-row:hover { padding-left: 14px; background: var(--surface); }
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--fg-3); transition: color 0.3s, -webkit-text-stroke-color 0.3s; }
.why-row:hover .why-num { color: var(--fg); -webkit-text-stroke-color: transparent; }
.why-row h3 { font-size: 21px; margin-bottom: 6px; }
.why-row p { color: var(--fg-2); }
.why-arrow { color: var(--fg-3); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.why-row:hover .why-arrow { opacity: 1; transform: none; color: var(--fg); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-media img, .post-card:hover .post-card-art .icon { transform: scale(1.06); }
.post-card-art {
  width: 100%; height: 100%; display: grid; place-items: center; color: #FAFAFA;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(var(--a, 135deg), #0A0A0A, #262626);
}
.post-card-art .icon { width: 40px; height: 40px; opacity: 0.85; transition: transform 0.6s var(--ease); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.post-card:hover h3 a { background-size: 100% 1px; }
.post-card p { color: var(--fg-2); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--fg-3); }
.post-meta a { display: inline-flex; align-items: center; gap: 4px; }
.post-meta a:hover { color: var(--fg); }
.post-cat { color: var(--fg) !important; font-weight: 600; }

/* Pricing */
.billing-toggle { position: relative; display: flex; width: max-content; margin: -28px auto 44px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); }
.billing-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--fg); transition: left 0.45s var(--ease-out), width 0.45s var(--ease-out); }
.billing-toggle button { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2); display: inline-flex; gap: 8px; align-items: center; transition: color 0.3s; }
.billing-toggle button.is-active { color: var(--bg); }
.billing-toggle .save { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(34, 197, 94, 0.14); color: #15803D; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan.is-highlighted { background: var(--black); border-color: var(--black); }
.plan-badge { position: absolute; top: 22px; right: 22px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--fg); color: var(--bg); }
.plan h3 { font-size: 22px; }
.plan-tagline { color: var(--fg-2); font-size: 15px; margin-top: -6px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 12px; }
.plan-price .currency { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--fg-2); align-self: flex-start; margin-top: 8px; }
.plan-price .amount { display: inline-block; font-family: var(--font-display); font-size: 60px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .amount.is-flipping { animation: flip 0.45s var(--ease-out); }
@keyframes flip { 0% { opacity: 0; transform: translateY(40%); } 100% { opacity: 1; transform: none; } }
.plan-price .per { color: var(--fg-3); font-size: 15px; margin-left: 4px; }
.plan-features { list-style: none; margin: 10px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--fg-2); }
.plan-features .icon { color: var(--fg); margin-top: 3px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; list-style: none; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--fg-2); }
.faq-icon { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg); transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--fg); color: var(--bg); }
.faq-answer { overflow: hidden; padding: 0 60px 26px 4px; color: var(--fg-2); font-size: 16.5px; }

/* Closing call to action */
.cta-band { position: relative; overflow: hidden; padding: 96px 48px; border-radius: 40px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); background: #26272A; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%); }
.cta-band::after { content: ""; position: absolute; left: 50%; top: -260px; width: 760px; height: 420px; margin-left: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; max-width: 900px; margin: 0 auto 18px; color: var(--white); }
.cta-band p { font-size: 18px; color: rgba(250, 250, 250, 0.66); margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: 24px; padding: 80px 0 0; border-top: 1px solid var(--line); background: transparent; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--fg-2); max-width: 340px; font-size: 15px; margin-bottom: 22px; }
.footer-title { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--fg-2); font-size: 15px; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--fg-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.socials a:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.socials .icon { width: 17px; height: 17px; }
.footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 22vw, 320px); line-height: 0.78; letter-spacing: -0.07em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); margin-top: 48px; transform: translateY(14%); user-select: none; white-space: nowrap; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 96px 0 56px; }
.page-title { font-size: clamp(40px, 5.8vw, 76px); font-weight: 800; letter-spacing: -0.055em; line-height: 1.02; }
.page-lead { margin-top: 20px; font-size: 19px; color: var(--fg-2); max-width: 680px; }
.page-body { padding: 72px 0 96px; }
.page-blank { position: relative; z-index: 1; }
.preview-bar { position: relative; z-index: 2; padding: 10px 24px; text-align: center; font-size: 14px; background: var(--white); color: var(--black); }
.preview-bar a { text-decoration: underline; margin-left: 6px; font-weight: 600; }
.blog-hero .eyebrow a { color: inherit; }
.blog-search { margin-top: 30px; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-3); transition: border-color 0.2s; }
.blog-search:focus-within { border-color: var(--fg); }
.blog-search input { flex: 1; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--fg); }
.blog-cats { justify-content: flex-start; margin-top: 22px; }
.result-note { color: var(--fg-2); margin-bottom: 24px; }
.result-note a { color: var(--fg); text-decoration: underline; }
.empty-note { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty-note h2 { font-size: 26px; margin-bottom: 8px; }
.empty-note p { color: var(--fg-2); margin-bottom: 22px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 52px; color: var(--fg-3); font-size: 15px; }
.pagination a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); transition: background-color 0.2s, color 0.2s; }
.pagination a:hover { background: var(--fg); color: var(--bg); }
.error-page { text-align: center; padding: 128px 0; }
.error-page .page-lead { margin-left: auto; margin-right: auto; margin-bottom: 32px; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: 140px; line-height: 1; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px var(--fg); margin-bottom: 12px; }

/* Article */
.article-head { padding: 72px 0 48px; }
.article-head .post-meta { margin-bottom: 24px; }
.article-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; }
.article-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; color: var(--fg-3); font-size: 14px; }
.article-sheet { padding: 64px 0 48px; }
.article-cover { max-width: 1040px; margin-bottom: 48px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); }
.article-body { padding-bottom: 32px; }
.article-tags { justify-content: flex-start; margin: 8px 0 28px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.share-row span { margin-right: 6px; }
.share-row a, .share-row button { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.share-row a:hover, .share-row button:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.share-row button.is-done { color: var(--bg); background: var(--growth); border-color: var(--growth); }
.share-row .icon { width: 17px; height: 17px; }
.ask-box { margin: 44px 0 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--black); color: #FAFAFA; }
.ask-box h2 { font-size: 20px; margin-bottom: 4px; }
.ask-box p { color: rgba(250, 250, 250, 0.66); font-size: 15px; }
.ask-box .btn-primary { background: #FAFAFA; color: #0A0A0A; }
.ask-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #FAFAFA; }
.ask-mark img { filter: invert(1); }

/* Rich text (pages, posts) */
.prose { font-size: 18px; line-height: 1.75; color: var(--fg-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 32px; color: var(--fg); margin-top: 2em; letter-spacing: -0.035em; }
.prose h3 { font-size: 24px; color: var(--fg); margin-top: 1.7em; }
.prose h4 { font-size: 19px; color: var(--fg); margin-top: 1.5em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--fg-3); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--fg); color: var(--fg); font-size: 1.08em; }
.prose img { border-radius: var(--radius); height: auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--fg-3); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--fg); }
.prose pre { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--black); color: #FAFAFA; overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { color: var(--fg); background: var(--surface); }
.prose iframe { max-width: 100%; border-radius: var(--radius); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--r, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .section-head .eyebrow, .no-js .section-head .section-sub { opacity: 1; transform: none; }

/* ================= Chat ================= */
.chat {
  position: fixed; inset: 0; z-index: 60; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  visibility: hidden; pointer-events: none;
  --fg: #FAFAFA; --fg-2: rgba(250, 250, 250, 0.66); --fg-3: rgba(250, 250, 250, 0.42);
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.18); --surface: rgba(255, 255, 255, 0.03); --surface-2: rgba(255, 255, 255, 0.06); --card: var(--graphite); --bg: var(--black);
  color: var(--fg);
}
.chat-open .chat { visibility: visible; pointer-events: auto; }
html.chat-open, html.chat-open body { overflow: hidden; }
/* The page stays laid out (so the particles can find it again) but is not shown. */
.chat-open .site { opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }

.chat-top, .chat-scroll { opacity: 0; transition: opacity 0.35s var(--ease); }
.chat-open .chat-top, .chat-open .chat-scroll { opacity: 1; transition-delay: 0.3s; }
.chat-closing .chat-top, .chat-closing .chat-scroll, .chat-closing .chat-disclaimer { opacity: 0 !important; transition-delay: 0s !important; }

.chat-top { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(32, 33, 36, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.chat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2); border: 1px solid var(--line-2); transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.chat-btn:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.chat-btn .icon { width: 17px; height: 17px; }
.chat-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.chat-brand-mark, .chat-empty-mark, .msg-avatar { display: grid; place-items: center; background: #FAFAFA; }
.chat-brand-mark img, .chat-empty-mark img, .msg-avatar img { filter: invert(1); }
.chat-brand-mark { width: 30px; height: 30px; border-radius: 9px; }

.chat-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chat-col { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.chat-scroll .chat-col { min-height: 100%; display: flex; flex-direction: column; }

.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 0 24px; }
.chat-empty-mark { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 24px; }
.chat-empty h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; }
.chat-empty p { color: var(--fg-2); max-width: 520px; margin-bottom: 26px; }
.chat-empty > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.chat-open .chat-empty > * { opacity: 1; transform: none; }
.chat-open .chat-empty > :nth-child(1) { transition-delay: 0.45s; }
.chat-open .chat-empty > :nth-child(2) { transition-delay: 0.52s; }
.chat-open .chat-empty > :nth-child(3) { transition-delay: 0.59s; }
.chat-open .chat-empty > :nth-child(4) { transition-delay: 0.66s; }
.chat.has-messages .chat-empty { display: none; }

.chat-thread { display: flex; flex-direction: column; gap: 30px; padding: 32px 0 24px; }
.chat-thread:empty { padding: 0; }

.chat-dock { flex: none; padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(32, 33, 36, 0.98) 55%, rgba(32, 33, 36, 0)); }
.chat-closing .chat-dock { background: none; }
.chat-dock .composer textarea { min-height: 56px; padding-top: 16px; }
.chat-disclaimer { text-align: center; font-size: 12.5px; color: var(--fg-3); margin-top: 10px; opacity: 0; transition: opacity 0.4s var(--ease) 0.4s; }
.chat-open .chat-disclaimer { opacity: 1; }

/* Messages */
.msg { animation: msg-in 0.45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg-user { display: flex; justify-content: flex-end; }
.msg-user .bubble { max-width: min(80%, 620px); padding: 12px 18px; border-radius: 22px 22px 6px 22px; background: #FAFAFA; color: #0A0A0A; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-ai { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.msg-avatar { width: 34px; height: 34px; border-radius: 11px; }
.msg-avatar img { width: 16px; height: auto; }
.msg-body { min-width: 0; padding-top: 4px; }
.msg-status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-3); }
.msg-status .shimmer { background: linear-gradient(90deg, rgba(250, 250, 250, 0.35) 0%, #FAFAFA 50%, rgba(250, 250, 250, 0.35) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #FAFAFA; animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.answer { font-size: 16.5px; line-height: 1.7; color: var(--fg); }
.answer > * + * { margin-top: 0.85em; }
.answer p, .answer ul, .answer ol { margin: 0; }
.answer > * + ul, .answer > * + ol { margin-top: 0.6em; }
.answer ul, .answer ol { padding-left: 1.25em; }
.answer li + li { margin-top: 0.35em; }
.answer li::marker { color: var(--fg-3); }
.answer strong { font-weight: 650; color: #FFFFFF; }
.answer h1, .answer h2, .answer h3, .answer h4 { font-size: 18px; margin-top: 1.2em; }
.answer a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.answer code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.answer blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--fg); color: var(--fg-2); }
.answer table { border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.answer th, .answer td { border: 1px solid var(--line); padding: 8px 10px; }
.answer.is-streaming > :last-child::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; border-radius: 2px; background: #FAFAFA; animation: caret 0.9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.answer-error { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg-2); font-size: 15px; }
.answer-error button { color: var(--fg); font-weight: 600; text-decoration: underline; }

.msg-extras { display: grid; gap: 16px; margin-top: 20px; }
.extras-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.source-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s var(--ease); animation: msg-in 0.5s var(--ease) both; }
a.source-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.source-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.source-value { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--fg); line-height: 1.1; margin-top: 4px; }
.source-value::after { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--growth); }
.source-label { font-size: 12.5px; color: var(--fg-2); }
.source-title { font-size: 13.5px; font-weight: 600; color: var(--fg); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The recommendation: a white card that stands out in the dark chat */
.rec { --fg: #0A0A0A; --fg-2: rgba(10, 10, 10, 0.64); --fg-3: rgba(10, 10, 10, 0.44); --bg: #FAFAFA; --line: rgba(10, 10, 10, 0.1); position: relative; padding: 22px; border-radius: 22px; background: #FAFAFA; color: var(--fg); box-shadow: 0 30px 80px -40px rgba(255, 255, 255, 0.25); animation: msg-in 0.55s var(--ease) both; }
.rec-head { display: flex; align-items: center; gap: 14px; }
.rec-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; overflow: hidden; background: #0A0A0A; color: #FAFAFA; }
.rec-icon img { width: 100%; height: 100%; object-fit: cover; }
.rec-title { flex: 1; min-width: 0; }
.rec-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.rec-title h4 { font-size: 20px; margin-top: 3px; letter-spacing: -0.03em; }
.rec-title p { font-size: 14.5px; color: var(--fg-2); margin-top: 2px; }
.rec-metric { text-align: right; flex: none; }
.rec-metric strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rec-metric strong::after { content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--growth); }
.rec-metric span { display: block; max-width: 160px; font-size: 12px; color: var(--fg-2); margin-top: 5px; }
.rec-features { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.rec-features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-2); }
.rec-features .icon { color: var(--fg); width: 16px; height: 16px; margin-top: 3px; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rec .btn-primary { background: #0A0A0A; color: #FAFAFA; }
.rec .btn-ghost { border-color: rgba(10, 10, 10, 0.2); color: #0A0A0A; }

.msg-actions { display: flex; gap: 6px; margin-top: 12px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--fg-3); transition: color 0.2s, background-color 0.2s; }
.icon-btn:hover { color: var(--fg); background: var(--surface-2); }
.icon-btn .icon { width: 15px; height: 15px; }

/* Particle layer for the dissolve transition */
.dissolve-canvas { position: fixed; inset: 0; z-index: 55; width: 100vw; height: 100vh; pointer-events: none; display: none; }
.dissolve-canvas.is-active { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid, .case-grid, .post-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .app-grid { grid-template-columns: 1fr; gap: 48px; }
  .app-grid.is-flipped .app-copy { order: 0; }
  .why .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px); z-index: 40;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 20px; background: rgba(43, 44, 48, 0.98); border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav-cta { display: flex; align-items: center; gap: 8px; color: var(--fg); }
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none; }
  .header-row { gap: 12px; justify-content: space-between; }
  .section { padding: 88px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 20px; }
  .journey::before, .journey::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .journey::after { transform: scaleY(0); transform-origin: center top; }
  .journey-step { padding: 0 0 0 64px; }
  .cta-apps { grid-template-columns: 1fr; max-width: 420px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .slab { margin: 0 8px; border-radius: 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-center { min-height: auto; padding-top: 40px; }
  .hero-title { margin-bottom: 22px; }
  .composer textarea { font-size: 16px; padding: 16px 18px 4px; }
  .composer-bar { padding-left: 18px; }
  .composer-hint { display: none; }
  .hero-tags { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 32px); margin: 18px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .hero-tags::-webkit-scrollbar { display: none; }
  .hero-tags .chip { flex: none; }
  .hero-products { padding-top: 28px; }
  .product-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-card { flex: 0 0 82%; scroll-snap-align: start; }
  .marquee { padding: 22px 0; }
  .marquee-logos .marquee-group { gap: 44px; padding-right: 44px; }
  .marquee-logo { height: 34px; max-width: 130px; }
  .case-grid, .post-grid, .plan-grid { grid-template-columns: 1fr; }
  .quote-card { flex-basis: 300px; }
  .cta-band { padding: 64px 22px; border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .ask-box { grid-template-columns: 1fr; }
  .chat-btn span { display: none; }
  .chat-btn { padding: 9px; }
  .chat-col { padding: 0 14px; }
  .rec-head { flex-wrap: wrap; }
  .rec-metric { text-align: left; width: 100%; padding-left: 64px; }
  .billing-toggle { margin-top: -16px; }
  .case-value { font-size: 52px; }
  .why-row { grid-template-columns: 56px 1fr; }
  .why-arrow { display: none; }
  .faq-answer { padding-right: 8px; }
  .demo-cart { padding: 18px; border-radius: 22px; }
  .app-title { font-size: 32px; }
  .app-actions .btn { flex: 1 1 100%; }
  .to-chip-garment, .cn-optin { left: -6px; }
  .to-chip-lead, .cn-result { right: -6px; }
  .demo-stats-sm strong { font-size: 28px; }
  .dc-cards { gap: 6px; }
  .dc-card { padding: 8px; }
  .dc-card .dc-thumb { height: 44px; }
  .demo-stats strong { font-size: 36px; }
  .case-spark { width: 72px; }
}

@media print {
  .bg-fx, .site-header, .site-footer, .chat, .dissolve-canvas, .share-row, .ask-box, .preview-bar, .marquee { display: none !important; }
  body { background: #fff; color: #0A0A0A; }
  .slab { margin: 0; border-radius: 0; }
  .prose, .page-lead, .article-byline { color: #0A0A0A; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-split] .wi, .section-head .eyebrow, .section-head .section-sub { opacity: 1; transform: none; }
  .marquee-track, .quote-track { animation: none !important; }
  .stat-spark path, .case-spark path, .sv-spark path { stroke-dashoffset: 0 !important; }
  .sv-typed { clip-path: none !important; }
  /* Without motion the illustrations show their finished state. */
  .to-after, .to-label-after, .cn-note, .cn-result { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .to-scan, .to-chip, .cn-optin { animation: none !important; opacity: 0 !important; }
  .journey::after { transform: none !important; }
}
