
:root {
  /* Background gradient stops — deep navy → blue-black */
  --bg-top: #161c33;
  --bg-bottom: #07080d;
  --surface: #11152a;
  --surface-2: #1a2040;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-dim: #b6bdd1;
  --text-faint: #7d869e;
  /* Single primary accent + the gradient companion used on hero CTAs. */
  --accent: #7c8cff;
  --accent-hover: #9aa6ff;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --grad: linear-gradient(135deg, #5b6cff 0%, #b14bff 60%, #ff4f8b 100%);
  --danger: #ff6b6b;
  --good: #3ddc97;
  --max-w: 1140px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Two layers: a soft radial highlight at the top center for the
   * metallic feel, painted over a vertical navy-to-black gradient. */
  background:
    radial-gradient(1200px 600px at 50% -100px, rgba(124, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
/* The header is a single floating "pill" — a horizontally-laid translucent
 * dark capsule sitting over the page (no full-width bar, no bottom border).
 * The site-header itself is just a positioning shell: sticky to the top of
 * the viewport with a small breathing gap, transparent, no background of
 * its own. The pill carries the entire visual weight (border + glass blur
 * + drop shadow). Inspired by the modern "navigation island" pattern. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  background: transparent;
  pointer-events: none; /* let the dead-space click through */
  margin-top: 16px;
}
.site-header .container {
  pointer-events: none;
}
/* The pill itself: rounded glass capsule that spans the full container
 * width. Three-column CSS grid — brand left, nav centered, login right
 * — so each group is geometrically anchored to its third of the bar
 * regardless of nav-item count. Translucent navy fill, hairline
 * border, blur, and a soft outer shadow so it visually lifts off the
 * page. */
.header-pill {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 14px 14px 14px 28px;
  /* Translucent enough to show the prism background through (~30%
   * of the canvas pixels read through the fill). We keep the fill
   * non-zero so over plain dark sections — pages without the prism
   * background — the pill still has visual weight. The matching
   * `backdrop-filter` smears the moving canvas into a soft tint
   * behind the brand/nav so text stays legible. */
  background: rgba(15, 18, 35, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: auto;
}
.header-pill > .brand        { grid-column: 1; justify-self: start;  }
.header-pill > .nav          { grid-column: 2; justify-self: center; }
.header-pill > .lang-switch  { grid-column: 3; justify-self: end;    }
.header-pill > .btn-glow     { grid-column: 4; justify-self: end;    }
/* Pull the login button visually closer to the lang switcher so the
 * two right-side controls read as one cluster rather than two columns
 * separated by the 32px header-pill gap. */
.header-pill > .btn-glow     { margin-left: -16px; }
/* Header lang-switcher pill — same visual language as the footer one
 * (uppercase BG/EN, accent-tinted active state) but tightened to fit
 * inside the floating pill alongside the login button. The reduced
 * gap (8px between BG and EN) keeps the two letters reading as a
 * single unit even at the smaller header scale. */
.lang-switch--header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switch--header a {
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.lang-switch--header a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.lang-switch--header a.active { color: var(--accent); background: var(--accent-soft); }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 17px; color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* Brand mark: rendered as an <img> using the canonical logo PNG. The
 * file we ship is square and transparent, so we just size it; no
 * background, no chip. Drop-shadow keeps it readable against the dark
 * header gradient. */
.brand-mark {
  width: 32px; height: 32px;
  display: inline-block; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(124, 140, 255, 0.35));
}
.header-pill .nav { display: flex; align-items: center; gap: 6px; }
.header-pill .nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  color: var(--text-dim); font-weight: 400; font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.header-pill .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.header-pill .nav a.active { color: var(--text); font-weight: 500; background: rgba(255, 255, 255, 0.06); }
.lang-switch a {
  display: inline-block; padding: 6px 10px; font-size: 12px;
  border-radius: 6px; color: var(--text-faint); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lang-switch a.active { color: var(--accent); background: var(--accent-soft); }

/* ── Animated border-glow button ────────────────────────────────────────── */
/* Continuous conic-gradient ring rotating around the button border. The
 * effect is the React Bits "border-glow" pattern (a registered CSS
 * @property animates the gradient angle so it interpolates smoothly).
 * The gradient is masked into a 1.5px ring via the pseudo-element padding +
 * mask-composite trick, so the button face stays solid. Browsers without
 * @property support (older Firefox) just render a static gradient ring —
 * the button still looks correct, it just doesn't spin. */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes border-glow-spin {
  to { --border-angle: 360deg; }
}
.btn-glow {
  position: relative;
  display: inline-block;
  padding: 9px 22px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s, box-shadow 0.2s, background-color 0.15s;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    rgba(124, 140, 255, 0.35) 8%,
    rgba(124, 140, 255, 0.95) 18%,
    rgba(177, 75, 255, 0.95) 28%,
    transparent 42%,
    transparent 58%,
    rgba(177, 75, 255, 0.95) 72%,
    rgba(124, 140, 255, 0.95) 82%,
    rgba(124, 140, 255, 0.35) 92%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-glow-spin 4.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-glow:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 24px rgba(124, 140, 255, 0.35);
}
.btn-glow:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn-glow::before { animation: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  font-weight: 500; font-size: 15px; cursor: pointer; border: 0;
  transition: filter 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s, background-color 0.15s;
  text-align: center; line-height: 1.2;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 18px rgba(124, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 24px rgba(124, 140, 255, 0.45); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { color: var(--text); border-color: var(--accent); background: rgba(255, 255, 255, 0.10); }
.btn-link {
  background: transparent; color: var(--accent); padding: 10px 14px;
}
.btn-link:hover { color: var(--accent-hover); transform: none; text-decoration: underline; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-pill { border-radius: 999px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; padding: 0;
}
.mobile-toggle svg { width: 18px; height: 18px; display: block; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.section-heading {
  font-size: 36px; font-weight: 600; line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -0.025em; color: var(--text);
}
.section-sub {
  font-size: 19px; color: var(--text-dim);
  margin: 0 0 36px; max-width: 720px;
}
.section-sub p { margin: 0 0 12px; }
.section-sub p:last-child { margin-bottom: 0; }
.section-sub a { color: var(--accent); text-decoration: underline; }
.section-sub strong, .section-sub b { font-weight: 700; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Hero (classic two-column) ──────────────────────────────────────────── */
.hero { padding: 80px 0 60px; }
/* 5/7 split on desktop — title column gets 5 of 12 (~41.7%), image
 * column gets 7 of 12 (~58.3%). minmax(0, …fr) lets the columns
 * shrink past their content's intrinsic min-width on smaller
 * widths instead of overflowing the container. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 14px;
}
.hero-title {
  font-size: 64px; font-weight: 700; line-height: 1.05;
  margin: 0 0 18px; letter-spacing: -0.035em; color: var(--text);
}
@media (max-width: 900px) { .hero-title { font-size: 48px; } }
@media (max-width: 600px) { .hero-title { font-size: 38px; } }
.hero-subtitle {
  font-size: 22px; color: var(--text-dim); margin: 0 0 28px;
  line-height: 1.4; font-weight: 400;
}
@media (max-width: 600px) { .hero-subtitle { font-size: 18px; } }
.hero-subtitle p { margin: 0 0 12px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-ctas.center { justify-content: center; }
.hero-image {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; min-height: 280px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.30);
}
.hero-image img { border-radius: 8px; }

/* ── Hero AI-flow ambient overlay ────────────────────────────────────────
 * Used when the operator ticks "AI-flow overlay" on the L1 hero
 * editor. Drops the surface-card chrome around the image (the PNG
 * has its own transparent-background visual with built-in glow)
 * and adds three coordinated layers on top:
 *   1. .ai-halo  — a soft pulsing violet radial gradient sitting
 *                  *behind* the image (z-index: -1) that breathes
 *                  scale + opacity over 6s, giving the floating-
 *                  platform / hovering-aura feel.
 *   2. .spark    — 18 twinkling particles spread across the image
 *                  area, each with its own delay so the field
 *                  never beats in sync. Positions are inline-style
 *                  driven (--s for size, --d for delay), so the
 *                  renderer can scatter them without running JS at
 *                  runtime.
 *   3. .hero-image-pic — a 7s breathing scale on the image itself
 *                  (~2% wobble) so the painting and the overlay
 *                  feel alive together, not just the dust on top.
 *
 * Crucially, none of this depends on pixel coordinates inside the
 * PNG — operators can swap the image for any composition and the
 * effect still reads cleanly.
 */
.hero-image--flow {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  overflow: visible;
  aspect-ratio: 3 / 2;
}
.hero-image--flow .hero-image-pic {
  width: 100%; height: 100%;
  display: block;
  border-radius: 0;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: hero-pic-breathe 7s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes hero-pic-breathe {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.018); }
}
.hero-image--flow .ai-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* Behind-image breathing halo. inset:-12% so the halo bleeds past
 * the image bounds and the glow feels like it lives in the world
 * around the image, not inside its frame. */
.ai-flow .ai-halo {
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(167, 139, 250, 0.28) 0%,
    rgba(124, 58, 237, 0.12) 35%,
    transparent 70%
  );
  filter: blur(24px);
  animation: ai-halo-pulse 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ai-halo-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Twinkling particle dust. Each .spark inherits position from
 * inline left/top, size from --s, delay from --d — so 18 instances
 * share a single keyframe yet none of them tick in sync. The
 * shadow gives the magic-dust glow without us shipping a real
 * SVG filter. */
.ai-flow .spark {
  position: absolute;
  width: var(--s, 4px); height: var(--s, 4px);
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 8px 2px rgba(167, 139, 250, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: ai-spark 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
@keyframes ai-spark {
  0%, 100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.4); }
  35%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.15); }
  65%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1);    }
}

/* Respect prefers-reduced-motion — kill all loops. The halo and
 * the breathing image can stay; the particles hide because
 * stationary dots floating in mid-air look like rendering bugs. */
@media (prefers-reduced-motion: reduce) {
  .ai-flow .ai-halo,
  .hero-image--flow .hero-image-pic { animation: none; }
  .ai-flow .spark { display: none; }
}

/* ── Hero (centered, Apple-style layout, dark theme) ────────────────────── */
.hero--centered { padding: 96px 0 80px; text-align: center; }
.hero--centered .hero-title { font-size: 80px; }
@media (max-width: 900px) { .hero--centered .hero-title { font-size: 56px; } }
@media (max-width: 600px) { .hero--centered .hero-title { font-size: 40px; } }
.hero--centered .hero-subtitle { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero--centered .hero-ctas .hero-cta-secondary {
  background: rgba(8, 10, 20, 0.94);
  color: #fff;
  border: 1px solid rgba(210, 214, 235, 0.35);
  text-decoration: none;
}
.hero--centered .hero-ctas .hero-cta-secondary:hover {
  color: #fff;
  background: rgba(14, 17, 30, 0.98);
  border-color: rgba(228, 232, 248, 0.48);
  text-decoration: none;
  transform: translateY(-1px);
}
.hero--centered.hero--homepage .hero-ctas.center {
  padding-top: 24px;
  padding-bottom: 32px;
}

/* Homepage only: under centered copy, chat thread (7fr) + existing logo stack (5fr). */
.hero--home-chat .hero-home-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px 40px;
  align-items: center;
  margin-top: 48px;
  text-align: start;
}
.hero-home-chat {
  min-width: 0;
}
/* Fixed height: thread scrolls; smooth JS keeps bottom pinned so layout doesn’t jump. */
.hero-chat-viewport {
  width: 100%;
  height: clamp(208px, 26vh, 268px);
  min-height: 196px;
  max-height: 276px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  /* Scroll driven by JS; no visible scrollbar. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Fade-out only at the top (older bubbles); bottom stays fully opaque for the last row. */
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 16%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 16%,
    #000 100%
  );
}
.hero-chat-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.hero-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-bottom: 14px;
  box-sizing: border-box;
}
.hero-chat-turn {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@keyframes heroChatRowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-hero-chat-loop] .hero-chat-row:not(.is-in) {
  display: none;
}
[data-hero-chat-loop] .hero-chat-row.is-in {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: heroChatRowIn 0.36s ease both;
}
.hero-chat-row--q {
  justify-content: flex-start;
}
.hero-chat-row--a {
  justify-content: flex-end;
}
.hero-chat-row--typing {
  justify-content: flex-end;
}
.hero-chat-bubble--typing {
  background: rgba(124, 140, 255, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: rgba(242, 244, 255, 0.85);
  border-bottom-right-radius: 6px;
  padding: 12px 16px;
  min-width: 3.25rem;
}
.hero-chat-typing-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hero-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-chat-dot {
    animation: heroChatDot 1.05s ease-in-out infinite;
  }
  .hero-chat-dot:nth-child(2) {
    animation-delay: 0.14s;
  }
  .hero-chat-dot:nth-child(3) {
    animation-delay: 0.28s;
  }
  @keyframes heroChatDot {
    0%,
    70%,
    100% {
      opacity: 0.3;
      transform: translateY(0);
    }
    35% {
      opacity: 1;
      transform: translateY(-3px);
    }
  }
}
.hero-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.hero-chat-bubble {
  max-width: min(100%, 400px);
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.hero-chat-bubble p {
  margin: 0;
}
.hero-chat-bubble--q {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.hero-chat-bubble--a {
  background: linear-gradient(
    135deg,
    rgba(124, 140, 255, 0.32),
    rgba(167, 139, 250, 0.2)
  );
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: var(--text);
  border-bottom-right-radius: 6px;
}
.hero--home-chat .hero-home-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.hero--home-chat .hero-home-visual .hero-logo-wrap {
  margin-top: 0;
  max-width: 100%;
}
.hero--home-chat .hero-home-visual:not(.hero-home-visual--orbit) .hero-logo-stack {
  max-width: 240px;
}
.hero--home-chat .hero-home-visual:not(.hero-home-visual--orbit) .hero-logo {
  max-width: 240px;
}
@media (max-width: 600px) {
  .hero--home-chat .hero-home-visual:not(.hero-home-visual--orbit) .hero-logo-stack,
  .hero--home-chat .hero-home-visual:not(.hero-home-visual--orbit) .hero-logo {
    max-width: 210px;
  }
}

/* Homepage chat — orbit ring around center logo (React Bits orbit-images–style; vanilla CSS). */
.hero-home-visual--orbit .hero-orbit-stage {
  position: relative;
  width: 100%;
  max-width: min(300px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  /* Tighter ring so satellites hug the center “AI” mark a bit more */
  --orbit-r: clamp(80px, 25vw, 106px);
  filter: drop-shadow(0 0 50px rgba(124, 140, 255, 0.22));
}
@media (max-width: 600px) {
  .hero-home-visual--orbit .hero-orbit-stage {
    --orbit-r: clamp(70px, 30vw, 90px);
  }
}
.hero-orbit-ring {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: heroOrbitRingRotate 100s linear infinite;
  pointer-events: none;
}
.hero-orbit-stage--vs-spin .hero-orbit-ring {
  animation: heroOrbitRingRotate 48s linear infinite reverse;
}
@keyframes heroOrbitRingRotate {
  to {
    transform: rotate(360deg);
  }
}
.hero-orbit-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(calc(360deg * var(--orbit-i) / var(--orbit-n)))
    translateY(calc(-1 * var(--orbit-r)));
}
.hero-orbit-slot-inner {
  position: relative;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroOrbitKeepUpright 100s linear infinite;
  transform-origin: 50% 50%;
}
.hero-orbit-stage--vs-spin .hero-orbit-slot-inner {
  animation: heroOrbitKeepUpright 48s linear infinite reverse;
}
@keyframes heroOrbitKeepUpright {
  from {
    transform: translate(-50%, -50%)
      rotate(calc(-360deg * var(--orbit-i) / var(--orbit-n)));
  }
  to {
    transform: translate(-50%, -50%)
      rotate(calc(-360deg * var(--orbit-i) / var(--orbit-n) - 360deg));
  }
}
.hero-orbit-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-orbit-img {
    animation: heroOrbitFloat 7s ease-in-out infinite;
    animation-delay: calc(var(--orbit-i) * -0.65s);
    will-change: transform;
  }
  @keyframes heroOrbitFloat {
    0%,
    100% {
      transform: translate(0, 0);
    }
    25% {
      transform: translate(1.5px, -3px);
    }
    50% {
      transform: translate(-1px, -5px);
    }
    75% {
      transform: translate(-1.5px, -2px);
    }
  }
}
.hero-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: min(52%, 188px);
  max-width: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-home-visual--orbit .hero-orbit-core .hero-logo-wrap {
  margin-top: 0;
  max-width: 100%;
}
.hero-home-visual--orbit .hero-orbit-core .hero-logo-stack {
  max-width: 100%;
  width: 100%;
}
.hero-home-visual--orbit .hero-orbit-core .hero-logo {
  max-width: 100%;
}
@media (max-width: 900px) {
  .hero--home-chat .hero-home-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero--home-chat .hero-home-chat {
    order: 1;
  }
  .hero--home-chat .hero-home-visual {
    order: 2;
  }
  .hero-chat-viewport {
    height: clamp(200px, 32vh, 260px);
    max-height: 268px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-chat-loop] .hero-chat-row.is-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-hero-chat-loop] .hero-chat-row--typing {
    display: none !important;
  }
  .hero-chat-viewport {
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero-orbit-ring,
  .hero-orbit-slot-inner {
    animation: none !important;
  }
  .hero-orbit-img {
    opacity: 0.4;
    animation: none !important;
  }
}

/* ── Prism (React Bits) WebGL background for the hero ─────────────────────
 * The host `.hero-prism` is an absolutely-positioned full-bleed layer
 * sitting BEHIND the hero container. The canvas is appended into it by
 * `/marketing/prism.js` and inherits the host's full size. The hero
 * itself becomes a stacking context (position: relative) and clips
 * the canvas to its bounds (overflow: hidden) so the shader doesn't
 * spill into adjacent sections.
 *
 * Top-of-page bleed: when the hero opts into Prism we want the
 * background to start at the very top of the viewport (under the
 * sticky header pill), not below it. We pull the hero up by the
 * approximate header band height (sticky-top + pill height + breathing
 * room) via negative margin-top, and add the same amount back as
 * padding-top so the actual hero content (logo / title / CTAs) lands
 * in the same on-screen position it had before. The header itself
 * stays at z-index 50 so its translucent pill paints OVER the prism.
 */
.hero--prism {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Header band ≈ 16px page margin + 16px sticky top + ~60px pill +
   * a small buffer. We expose it as a custom property so the value
   * is tuneable in one place if the pill ever changes height. */
  --hero-header-bleed: 108px;
  margin-top: calc(-1 * var(--hero-header-bleed));
  padding-top: calc(96px + var(--hero-header-bleed));
}
.hero-prism {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  /* Slightly blur the brightest beams so hero copy stays readable
   * without losing the underlying motion. */
  filter: saturate(115%);
  /* Soft fade-out at the bottom of the hero so the prism dissolves
   * into the body background instead of ending with a hard horizontal
   * line at the next section's seam. The mask is solid for the top
   * ~60% and ramps to transparent over the bottom ~40%, so beams
   * gracefully disappear into whatever section comes next — no
   * coloured veil that would create its own visible boundary. */
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
}
/* Top veil intentionally LIGHT: the prism now extends behind the
 * translucent header pill, so the user wants to see the prism THROUGH
 * the pill — a heavy top veil would defeat that. We just take a tiny
 * bit of edge off the brightest beams so the pill border doesn't read
 * as a hard line against the brightest highlights. The bottom veil
 * has been removed entirely; bottom legibility is now handled by the
 * mask-image fade above and the body's own dark gradient showing
 * through. */
.hero-prism::before {
  content: "";
  position: absolute; left: 0; right: 0;
  pointer-events: none; z-index: 1;
  top: 0; height: 18%;
  background: linear-gradient(180deg, rgba(5,8,20,0.25) 0%, rgba(5,8,20,0) 100%);
}
/* Lift hero content above the canvas + veils. */
.hero--prism > .container { position: relative; z-index: 2; }
@media (max-width: 600px) {
  /* Mobile pill is shorter — give it back ~28px so the hero content
   * doesn't sit unnecessarily low. */
  .hero--prism { --hero-header-bleed: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  /* The init script also bails for reduced-motion users, but if a
   * canvas is somehow present (e.g. preview/dev) we hide it so the
   * page degrades to plain dark hero. */
  .hero-prism canvas { display: none; }
}

/* ── Avatar group (Evolvion-style overlapping faces under hero) ──────────── */
.ag-section {
  padding: 0 0 clamp(40px, 6vw, 56px);
}
.ag-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
}
.ag-avatars {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 12px 8px;
}
.ag-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: -20px;
  border-radius: 50%;
  z-index: calc(5 + var(--ag-i, 0));
  transition: transform 0.28s ease, filter 0.28s ease;
}
.ag-avatar-wrap:first-child {
  margin-left: 0;
}
.ag-avatar {
  display: block;
  width: clamp(48px, 7vw, 58px);
  height: clamp(48px, 7vw, 58px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(18, 14, 32, 0.95);
  background: var(--surface);
  box-sizing: border-box;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ag-avatar-wrap:hover {
    transform: scale(1.14);
    z-index: 28;
  }
  .ag-avatar-wrap:hover .ag-avatar {
    border-color: rgba(155, 108, 255, 0.85);
    box-shadow: 0 0 24px rgba(124, 140, 255, 0.35);
  }
}
.ag-caption {
  text-align: center;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
  max-width: 520px;
}
@media (prefers-reduced-motion: reduce) {
  .ag-avatar-wrap,
  .ag-avatar {
    transition: none;
  }
}

/* ── Page-level Aurora background ──────────────────────────────────────────
 * Anchored to the top of the page, behind everything (header/main/footer
 * sit on top via stacking context). Tall enough to cover the hero band
 * of any page, faded out smoothly into the body background so the body
 * gradient continues without a horizontal seam. The init script in
 * /marketing/aurora.js attaches a <canvas> inside this host element,
 * and the host's mask-image fades that canvas to alpha-zero over the
 * bottom ~40% so it dissolves into the page background.
 *
 * Honors prefers-reduced-motion (the init script no-ops for those
 * users; if for any reason a canvas is present we still hide it). */
.page-bg-aurora {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: saturate(110%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%
  );
}
/* When ANY page-level effect is on, lift main (and everything inside
 * it) above the background canvas so the WebGL layer never paints over
 * section content. The header keeps position: sticky from .site-header;
 * do not set position: relative on it here — that cancels sticky on
 * every page that uses has-page-bg (see marketing render). The header
 * already uses z-index: 50 above the canvas (z-index: 0). */
body.has-page-bg main { position: relative; z-index: 1; }
@media (max-width: 800px) {
  /* On phones the hero band is shorter, so trim the host so the mask
   * fade doesn't take half the screen to dissolve. */
  .page-bg-aurora { height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-aurora canvas { display: none; }
}

/* ── Page-level Prism background ──────────────────────────────────────────
 * Page-wide variant of the per-section Prism (added in v01.12 / migration
 * 022). Anchored to the top of the page, top:0 / height:900px, masked to
 * fade into the body gradient at the bottom so beams don't end at a hard
 * horizontal seam. The init script in /marketing/prism.js auto-discovers
 * any element with [data-prism-bg], so the same script powers both the
 * legacy hero-only host and this page-level host. The body class
 * `has-page-bg has-page-bg--prism` lifts main above the canvas via the
 * rule above; the header stays sticky with its own z-index. */
.page-bg-prism {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: saturate(115%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
}
@media (max-width: 800px) {
  .page-bg-prism { height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-prism canvas { display: none; }
}

/* ── Page-level Light Rays background ─────────────────────────────────────
 * Vanilla port of reactbits.dev/backgrounds/light-rays. Volumetric
 * beams emanating from a configurable origin (top-center by default).
 * Same top-anchored full-bleed host shape as Aurora / Prism so the
 * three effects are visually drop-in replacements. The init script
 * (/marketing/lightrays.js) attaches a <canvas> inside this host;
 * the host's mask fades that canvas at the bottom so beams dissolve
 * into the body gradient with no horizontal seam. */
.page-bg-lightrays {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 60%,
    rgba(0,0,0,0) 100%
  );
}
@media (max-width: 800px) {
  .page-bg-lightrays { height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-lightrays canvas { display: none; }
}

.hero-logo-wrap {
  display: flex; justify-content: center; align-items: center;
  margin: 56px auto 0; max-width: 520px;
  /* Soft halo behind the logo so the hue cycle reads clearly on dark. */
  filter: drop-shadow(0 0 60px rgba(124, 140, 255, 0.25));
}
/* Layered logo stack: outer image (rotates / hue-shifts) underneath, with
 * the inner static image absolutely positioned on top sharing the same
 * box. Both PNGs must share canvas size + center for the overlay to
 * stay aligned. */
.hero-logo-stack {
  position: relative; display: inline-block; width: 100%;
  max-width: 460px;
}
.hero-logo {
  width: 100%; height: auto; max-width: 460px; display: block;
}
.hero-logo--outer { position: relative; z-index: 1; }
/* Inner image: absolutely centered on top of the outer. Width comes
 * from an inline style (driven by the CMS's imageInnerScale) so each
 * page can tune the size to fit inside whatever hollow region the
 * outer image has. The default .hero-logo max-width must be cleared
 * so the percentage-based width can apply. */
.hero-logo--inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;
  max-width: none;
  height: auto;
  z-index: 2;
  pointer-events: none; /* clicks pass through to anything below */
}
@media (max-width: 600px) {
  .hero-logo, .hero-logo-stack { max-width: 320px; }
}

/* Continuous color cycle on the outer image. Rotates the whole image's
 * hue through 360° on a 9s linear loop, with a tiny saturation pulse so
 * the change feels organic rather than mechanical. Pure CSS, no JS.
 * Honors the user's reduced-motion preference. */
@keyframes hueShift {
  0%   { filter: hue-rotate(0deg)   saturate(1.05); }
  50%  { filter: hue-rotate(180deg) saturate(1.18); }
  100% { filter: hue-rotate(360deg) saturate(1.05); }
}
.hero-logo--cycle {
  will-change: filter;
  animation: hueShift 9s linear infinite;
}

/* Continuous rotation around the image's own center. 24s per revolution
 * is slow enough to feel ambient rather than busy. Combined with hue
 * shift below via animation shorthand list. */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-logo--spin {
  will-change: transform;
  animation: spinSlow 24s linear infinite;
  transform-origin: 50% 50%;
}
/* When BOTH animations are active on the same element, run them in
 * parallel via the comma-separated animation shorthand. (A second
 * declaration would otherwise replace the first.) */
.hero-logo--cycle.hero-logo--spin {
  animation: spinSlow 24s linear infinite, hueShift 9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo--cycle, .hero-logo--spin,
  .hero-logo--cycle.hero-logo--spin { animation: none; }
}

/* ── Feature grid ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid.cols-3 { grid-template-columns: 1fr; } }

/*
 * Feature-grid intro: centered subtitle (small, lowercase eyebrow)
 * → big title → medium description, stacked above the cards. The
 * three pieces are individually optional — the renderer omits the
 * whole .features-intro wrapper if all three are empty.
 */
.features-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}
.features-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  /* Same dimmed body-text colour as the description so the three intro
   * pieces read as one cohesive block (eyebrow / title / description)
   * with the title as the only accent in colour. */
  color: var(--text-dim);
  margin-bottom: 18px;
}
.features-intro .section-heading {
  font-size: 44px;
  /* Roomy gap below the title so the violet tagline (or, when no
   * tagline, the description) has visible breathing room. */
  margin: 0 0 44px;
  text-align: center;
}
/* Light-violet accent tagline shown between the title and the
 * description. Same family as the border-glow's purple-blue ring so
 * the page reads as one palette. */
.features-tagline {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.45;
  color: #c8b8ff;
  margin: 0 0 18px;
}
.features-description {
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.features-description p { margin: 0 0 8px; }
.features-description p:last-child { margin: 0; }
.features-intro { margin-bottom: 64px; }
@media (max-width: 800px) {
  .features-intro { margin-bottom: 44px; }
  .features-intro .section-heading { font-size: 32px; margin-bottom: 32px; }
  .features-tagline { font-size: 16px; margin-bottom: 14px; }
  .features-description { font-size: 17px; }
}

/* 3-up responsive grid for feature cards: 3 → 2 → 1 (desktop shows 3 per row). */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid.cols-3 { grid-template-columns: 1fr; } }

/* Legacy 4-up grid — opt-in per feature_grid via CMS “4 columns (desktop)”. */
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid.cols-4 { grid-template-columns: 1fr; } }

/*
 * Feature cards: 3D-flip container with a Pixel-Card style hover effect.
 * The .feature-card itself only provides the perspective + canvas; the
 * actual visible surface is .feature-card-inner which rotates between
 * .feature-card-front and .feature-card-back. The transparent <canvas>
 * sits on top of both faces for the shimmer/pixel reveal animation.
 */
.feature-card {
  position: relative;
  perspective: 1200px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}
.feature-card:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: inherit;
}
.feature-card.is-flipped .feature-card-inner { transform: rotateY(180deg); }

.feature-card-face {
  position: absolute; inset: 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* No overflow:hidden here — the back face's animated border-glow
   * uses an inset:-1.5px ::before, so clipping the face would clip
   * the glow ring to nothing. The pixel canvas is anchored on the
   * outer .feature-card (not inside the face), and the rest of the
   * face content (absolutely-positioned icon + title) sits well
   * inside the rounded box, so we don't need clipping here. */
}
.feature-card:hover .feature-card-face,
.feature-card:focus-visible .feature-card-face {
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
/*
 * Front face uses absolute positioning so every card lays out
 * identically regardless of title length: the icon's bottom edge sits
 * on the card midline (50% height), and the title is vertically centered
 * on the 75% line so wrapped lines sit mostly in the lower quarter.
 */
.feature-card-front .feature-icon {
  position: absolute;
  bottom: 50%;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
  margin: 0;
}
.feature-card-front .feature-title {
  position: absolute;
  top: 75%;
  left: 0;
  right: 0;
  padding: 0 18px;
  margin: 0;
  transform: translateY(-50%);
}
.feature-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 22px;
  transform: rotateY(180deg);
}

/*
 * Animated border-glow on the flipped card-back. Same conic-gradient
 * + @property(--border-angle) animation as the header login button,
 * scoped to the back face so the front never gets the spinning ring.
 * Opacity transition keeps the ring from popping in mid-flip; it
 * fades up over the second half of the 0.6s flip. Browsers without
 * @property support get a static gradient ring (still looks correct).
 */
.feature-card-back::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    rgba(124, 140, 255, 0.35) 8%,
    rgba(124, 140, 255, 0.95) 18%,
    rgba(177, 75, 255, 0.95) 28%,
    transparent 42%,
    transparent 58%,
    rgba(177, 75, 255, 0.95) 72%,
    rgba(124, 140, 255, 0.95) 82%,
    rgba(124, 140, 255, 0.35) 92%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-glow-spin 4.5s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.25s;
  z-index: 1;
}
.feature-card.is-flipped .feature-card-back::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .feature-card-back::before { animation: none; transition: none; }
}

/* Pixel-Card canvas overlay — sits above both faces, transparent
 * background, ignores pointer events so flip clicks always reach the
 * card. The animation is driven by /marketing/pixel-card.js. */
.pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
/* Hide the pixel shimmer while the card is showing the description —
 * the moving pixels would compete with the body text. */
.feature-card.is-flipped .pixel-canvas { opacity: 0; }

.feature-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; line-height: 1;
  margin-bottom: 14px;
}
/*
 * Force any uploaded icon image (PNG or SVG) to render pure white via
 * the brightness(0) → invert(1) trick. This means operators can upload
 * a black-on-transparent SVG (the common React-Bits / lucide style)
 * and it will read correctly on the dark hero. The drop-shadow gives
 * each icon a subtle glow consistent with the rest of the hero.
 */
.feature-icon--img {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(94, 229, 255, 0.18));
}
.feature-icon--text { color: var(--text); }

.feature-title {
  font-size: 19px; font-weight: 600; margin: 0;
  letter-spacing: -0.01em; color: var(--text);
}
.feature-body {
  font-size: 15px; color: var(--text-dim); margin: 0;
  line-height: 1.55;
}
.feature-card-back .feature-body p { margin: 0 0 8px; }
.feature-card-back .feature-body p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .feature-card-inner { transition: none; }
  .pixel-canvas { display: none; }
}

/* ── Logo carousel (full-bleed marquee) ─────────────────────────────────── */
/*
 * The .logo-marquee section breaks out of the centered max-width
 * container via the 100vw + negative-margin trick so it runs
 * browser-edge to browser-edge regardless of the parent's width.
 * The viewport is overflow-hidden; the inner .logo-marquee-track
 * holds two identical sets of .logo-marquee-item elements and is
 * transformed in pixels by the rAF loop in /marketing/logo-marquee.js
 * — no CSS animation, so dragging via setPointerCapture composes
 * cleanly with the auto-scroll.
 *
 * The horizontal mask fades the first/last ~6% of the row into
 * transparent so logos appear to materialize/dematerialize at the
 * edges instead of getting hard-clipped by the viewport.
 */
.logo-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 110px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee-heading {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.logo-marquee-viewport {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Allow vertical page scroll, but capture horizontal pointer
   * gestures for our drag-to-scrub. */
  touch-action: pan-y;
}
.logo-marquee-viewport.is-grabbing { cursor: grabbing; }
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  will-change: transform;
}
.logo-marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
.logo-marquee-item a,
.logo-marquee-item > span {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-marquee-item img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Grayscale/muted by default so the row reads as one cohesive
   * block; full colour + opacity on hover so individual brands
   * pop when the user investigates. */
  filter: grayscale(100%) brightness(1.05);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.logo-marquee-item:hover img,
.logo-marquee-item a:focus-visible img {
  filter: none;
  opacity: 1;
}
.logo-marquee-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .logo-marquee { padding: 72px 0; }
  .logo-marquee-track { gap: 56px; }
  .logo-marquee-item { height: 48px; }
  .logo-marquee-item img { max-height: 36px; max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  /* The JS sets speed=0 in this case, so the row stays still by
   * default and only moves when the user explicitly drags. */
}

/* ── Story section (index11-style image + text block) ───────────────────────
 *
 * Three layouts driven by the section's imagePosition:
 *   • LEFT  → image col-6 left, text col-6 right
 *   • RIGHT → image col-6 right, text col-6 left
 *   • PARALLAX → full-bleed background image, dark scrim, text centered over
 *
 * Mobile (<= 800px): everything stacks; image renders before text on
 * LEFT, text-then-image on RIGHT. PARALLAX keeps the background-image
 * but trims the min-height so it does not dominate small screens.
 *
 * Animation classes (.animate-fadeInUp etc.) are defined further down
 * and triggered by /marketing/animate-on-scroll.js. The .story-anim.is-pre
 * guard hides each animated piece until the observer has had a chance to
 * mark it visible — without it, animations like fadeIn would briefly flash
 * the content at full opacity before the keyframes start.
 */
/* Desktop layout (loosely based on index11's HomeSectionDisplay but with
 * a 1/3 image · 2/3 text split — operators can pack more story in each
 * row without the image dominating):
 *   [image 33.33%][gap 8.33%][text 50%][margin 8.33%]
 * Image is flush to the viewport edge on its side (no padding, no
 * border-radius); the empty 8.33% .story-margin spacer sits on the
 * opposite side so text doesn't reach the far viewport edge.
 *
 * LEFT layouts use flex-direction: row — DOM order matches visual
 * order. RIGHT layouts use flex-direction: row-reverse so the image
 * flips to the opposite edge without reshuffling DOM children.
 *
 * object-position is keyed off the side: when the image sits on the
 * LEFT we crop toward its right edge (the side closest to the text),
 * and vice-versa. That keeps the visual focal point pulled toward the
 * copy block instead of getting sliced down the middle.
 *
 * Vertical rhythm: section pads pt-24 / pb-16 (96 / 64) so successive
 * story rows stack with clear breathing room — never glued together.
 */
.story-section { padding: 96px 0 64px; position: relative; }
.story-grid { display: flex; }
.story-side--left  .story-grid { flex-direction: row; }
.story-side--right .story-grid { flex-direction: row-reverse; }

.story-image-col {
  width: 33.33%; height: 500px; flex-shrink: 0;
  position: relative;
  /* Don't clip the halo (::before) — it intentionally blooms past the
   * image's rounded inner edge into the gap column for the spotlight
   * effect. The outer-edge bloom gets clipped by the viewport so it's
   * a non-issue. */
}
/* Accent-coloured halo glow sitting BEHIND the image, biased toward
 * the inner edge (the side adjacent to the text). Renders as a soft
 * radial bloom of var(--accent) with heavy blur, giving the image a
 * "lit from the inside" feel against the dark page background. */
.story-image-col::before {
  content: "";
  position: absolute;
  top: -8%; bottom: -8%;
  width: 75%;
  background:
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--accent) 60%, transparent) 0%,
      color-mix(in srgb, var(--accent) 12%, transparent) 45%,
      transparent 75%);
  filter: blur(56px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}
.story-side--left  .story-image-col::before { right: -22%; }
.story-side--right .story-image-col::before { left:  -22%; }

.story-image-col img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1),
              filter 0.7s ease,
              box-shadow 0.7s ease;
}
/* Crop toward the side adjacent to the text column. */
.story-side--left  .story-image-col img { object-position: right center; }
.story-side--right .story-image-col img { object-position: left  center; }

/* Inner-corner rounding only — image is flush with the viewport edge
 * on its outer side, so we round only the side touching the text. The
 * directional drop shadow is also pushed toward the text side so the
 * image looks like a card lifted off the page next to the copy. */
.story-side--left .story-image-col img {
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow:
    32px 40px 80px -20px rgba(0, 0, 0, 0.55),
    16px 16px 40px -12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.story-side--right .story-image-col img {
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  box-shadow:
    -32px 40px 80px -20px rgba(0, 0, 0, 0.55),
    -16px 16px 40px -12px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Outer-edge vignette — a thin dark gradient that bleeds the image
 * into the page background on its viewport-edge side. Stops the hard
 * "photo cut off mid-pixel" feeling and ties the image into the dark
 * surroundings. Implemented as a second pseudo-element on the column
 * so it can sit ABOVE the image without affecting rounded corners. */
.story-image-col::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  z-index: 2;
  pointer-events: none;
}
.story-side--left  .story-image-col::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-bottom) 0%, transparent 100%);
  opacity: 0.4;
}
.story-side--right .story-image-col::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-bottom) 0%, transparent 100%);
  opacity: 0.4;
}

/* Subtle interaction: lift the image slightly on hover and brighten
 * the halo to confirm the "luminous card" idea. Reduced-motion users
 * get the static state — the transition is gated by the same media
 * query that disables our scroll animations. */
.story-image-col:hover img {
  transform: scale(1.018);
  filter: brightness(1.04);
}
.story-side--left .story-image-col:hover img {
  box-shadow:
    40px 50px 100px -20px rgba(0, 0, 0, 0.6),
    20px 20px 60px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.story-side--right .story-image-col:hover img {
  box-shadow:
    -40px 50px 100px -20px rgba(0, 0, 0, 0.6),
    -20px 20px 60px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.story-image-col:hover::before { opacity: 0.75; }

.story-image-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 13px;
}
.story-side--left .story-image-placeholder {
  border-top-right-radius: 28px; border-bottom-right-radius: 28px;
}
.story-side--right .story-image-placeholder {
  border-top-left-radius: 28px; border-bottom-left-radius: 28px;
}

.story-gap    { width: 8.33%; flex-shrink: 0; }
.story-margin { width: 8.33%; flex-shrink: 0; }

.story-text-col {
  width: 50%;
  flex-shrink: 0;
  padding: 64px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.story-title {
  font-size: 48px; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 16px; color: var(--text);
}
.story-sub {
  font-size: 24px; line-height: 1.35; font-weight: 600;
  color: var(--accent); margin: 0 0 24px;
}
.story-desc {
  font-size: 18px; line-height: 1.7; color: var(--text-dim);
}
.story-desc p { margin: 0 0 12px; }
.story-desc p:last-child { margin-bottom: 0; }
/* Inline formatting inside the WYSIWYG description — operators can set
 * font / color / size / weight via the toolbar; we do not constrain
 * those choices here. We only restore some sensible defaults that
 * a global "prose-content"-style reset might otherwise nuke. */
.story-desc a { color: var(--accent); text-decoration: underline; }
.story-desc strong, .story-desc b { font-weight: 700; }
.story-desc em, .story-desc i { font-style: italic; }
.story-desc ul, .story-desc ol { margin: 0 0 12px; padding-left: 24px; }
.story-desc li { margin-bottom: 6px; }

/* PARALLAX variant: image is the section background (fixed attachment so
 * it scrolls in classic parallax style on desktops that respect it).
 * Mobile Safari falls back to scroll: it ignores 'background-attachment:
 * fixed' and we accept the static-image rendering rather than juggling
 * extra layers. */
.story-parallax {
  padding: 120px 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.story-parallax--no-image { background: var(--surface); }
.story-parallax-scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  pointer-events: none;
}
.story-parallax-text {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px; margin: 0 auto;
}
.story-parallax .story-title { color: #fff; font-size: 44px; }
.story-parallax .story-sub   { color: rgba(255, 255, 255, .9); font-size: 22px; }
.story-parallax .story-desc  { color: rgba(255, 255, 255, .85); font-size: 17px; }

@media (max-width: 800px) {
  /* Mobile mirrors index11: image full-width 300px tall, text below at
   * full width with a 24px gutter, stacked top-to-bottom. For RIGHT
   * layouts the text comes first and the image is below it (matches
   * index11's MobileLayout branch). */
  /* Mobile: every story section reads top-to-bottom as
   *   title → subtitle → description → image → bottom padding,
   * regardless of whether the operator picked LEFT or RIGHT for
   * desktop. Text-first lets you read the headline before the photo
   * loads (good for slow connections + screen readers) and keeps the
   * rhythm consistent down a long page of story rows. */
  .story-section { padding: 0 0 56px; }
  .story-section + .story-section { padding-top: 8px; }
  .story-grid,
  .story-side--left  .story-grid,
  .story-side--right .story-grid {
    flex-direction: column;
  }
  .story-gap, .story-margin { display: none; }
  .story-image-col {
    width: 100%; height: 300px;
    order: 2;
  }
  .story-side--left  .story-image-col,
  .story-side--right .story-image-col { order: 2; }
  .story-text-col,
  .story-side--left  .story-text-col,
  .story-side--right .story-text-col {
    width: 100%;
    padding: 32px 24px;
    order: 1;
  }
  /* Disable side-biased decorations on mobile — image is below the
   * text now, so an inner-edge radius / vignette would point the
   * wrong way. Keep just the soft shadow + the halo, both unflipped. */
  .story-side--left  .story-image-col img,
  .story-side--right .story-image-col img {
    border-radius: 0;
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.55);
  }
  .story-side--left  .story-image-placeholder,
  .story-side--right .story-image-placeholder {
    border-radius: 0;
  }
  .story-side--left  .story-image-col::after,
  .story-side--right .story-image-col::after {
    display: none;
  }
  .story-side--left  .story-image-col::before,
  .story-side--right .story-image-col::before {
    left: 12.5%; right: 12.5%;
    width: auto; top: -10%; bottom: -10%;
    opacity: 0.4;
  }
  .story-title { font-size: 30px; }
  .story-sub   { font-size: 20px; margin-bottom: 20px; }
  .story-desc  { font-size: 16px; }
  .story-parallax {
    padding: 80px 16px; background-attachment: scroll;
  }
  .story-parallax .story-title { font-size: 32px; }
  .story-parallax .story-sub   { font-size: 18px; }
}

/* ── Entry-animation keyframes (port of index11 AnimationSelect) ─────────────
 *
 * The base '.story-anim.is-pre' rule starts each piece invisible so it
 * does not flash before /marketing/animate-on-scroll.js gets a chance
 * to swap is-pre for is-on and apply the matching .animate-(name)
 * class. Each keyframe ends with the natural rendered state (opacity 1,
 * transform none) and the class uses forwards so it sticks.
 *
 * Honors prefers-reduced-motion: in that mode the initializer skips the
 * observer entirely and just removes is-pre, so the elements appear
 * statically without any animation — no shake, no spin, no zoom.
 */
.story-anim.is-pre { opacity: 0; }
.story-anim.is-on  { opacity: 1; }

@keyframes vai-fadeIn       { from { opacity: 0; }                                 to { opacity: 1; } }
@keyframes vai-fadeInUp     { from { opacity: 0; transform: translateY(30px); }    to { opacity: 1; transform: translateY(0); } }
@keyframes vai-fadeInDown   { from { opacity: 0; transform: translateY(-30px); }   to { opacity: 1; transform: translateY(0); } }
@keyframes vai-fadeInLeft   { from { opacity: 0; transform: translateX(-30px); }   to { opacity: 1; transform: translateX(0); } }
@keyframes vai-fadeInRight  { from { opacity: 0; transform: translateX(30px); }    to { opacity: 1; transform: translateX(0); } }
@keyframes vai-slideInUp    { from { transform: translateY(100%); }                to { transform: translateY(0); } }
@keyframes vai-slideInDown  { from { transform: translateY(-100%); }               to { transform: translateY(0); } }
@keyframes vai-slideInLeft  { from { transform: translateX(-100%); }               to { transform: translateX(0); } }
@keyframes vai-slideInRight { from { transform: translateX(100%); }                to { transform: translateX(0); } }
@keyframes vai-zoomIn       { from { opacity: 0; transform: scale(.5); }           to { opacity: 1; transform: scale(1); } }
@keyframes vai-zoomOut      { from { opacity: 0; transform: scale(1.5); }          to { opacity: 1; transform: scale(1); } }
@keyframes vai-bounceIn {
  0%   { opacity: 0; transform: scale(.3); }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes vai-flipInX  { from { opacity: 0; transform: perspective(400px) rotateX(90deg); } to { opacity: 1; transform: perspective(400px) rotateX(0); } }
@keyframes vai-flipInY  { from { opacity: 0; transform: perspective(400px) rotateY(90deg); } to { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes vai-rotateIn { from { opacity: 0; transform: rotate(-200deg); }                   to { opacity: 1; transform: rotate(0); } }
@keyframes vai-pulse    { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes vai-shake {
  0%, 100%                  { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90%   { transform: translateX(-5px); }
  20%, 40%, 60%, 80%        { transform: translateX(5px); }
}
@keyframes vai-swing {
  20% { transform: rotate(15deg); }   40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }    80% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
@keyframes vai-rubberBand {
  0%   { transform: scale(1); }
  30%  { transform: scaleX(1.25) scaleY(.75); }
  40%  { transform: scaleX(.75)  scaleY(1.25); }
  50%  { transform: scaleX(1.15) scaleY(.85); }
  65%  { transform: scaleX(.95)  scaleY(1.05); }
  75%  { transform: scaleX(1.05) scaleY(.95); }
  100% { transform: scale(1); }
}
@keyframes vai-typewriter { from { width: 0; } to { width: 100%; } }

.animate-fadeIn       { animation: vai-fadeIn       .8s ease-out forwards; }
.animate-fadeInUp     { animation: vai-fadeInUp     .8s ease-out forwards; }
.animate-fadeInDown   { animation: vai-fadeInDown   .8s ease-out forwards; }
.animate-fadeInLeft   { animation: vai-fadeInLeft   .8s ease-out forwards; }
.animate-fadeInRight  { animation: vai-fadeInRight  .8s ease-out forwards; }
.animate-slideInUp    { animation: vai-slideInUp    .6s ease-out forwards; }
.animate-slideInDown  { animation: vai-slideInDown  .6s ease-out forwards; }
.animate-slideInLeft  { animation: vai-slideInLeft  .6s ease-out forwards; }
.animate-slideInRight { animation: vai-slideInRight .6s ease-out forwards; }
.animate-zoomIn       { animation: vai-zoomIn       .6s ease-out forwards; }
.animate-zoomOut      { animation: vai-zoomOut      .6s ease-out forwards; }
.animate-bounceIn     { animation: vai-bounceIn     .8s ease-out forwards; }
.animate-flipInX      { animation: vai-flipInX      .8s ease-out forwards; }
.animate-flipInY      { animation: vai-flipInY      .8s ease-out forwards; }
.animate-rotateIn     { animation: vai-rotateIn     .8s ease-out forwards; }
.animate-pulse        { animation: vai-pulse        2s  ease-in-out infinite; }
.animate-shake        { animation: vai-shake        .5s ease-in-out forwards; }
.animate-swing        { animation: vai-swing        1s  ease-out forwards; transform-origin: top center; }
.animate-rubberBand   { animation: vai-rubberBand   1s  ease-out forwards; }
.animate-typewriter   {
  display: inline-block; overflow: hidden; white-space: nowrap;
  animation: vai-typewriter 2s steps(40) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .story-anim.is-pre,
  .story-anim.is-on { opacity: 1; animation: none !important; }
  /* Drop the hover lift / brightness / shadow swap too — same media
   * query also covers transitions per the spec. */
  .story-image-col img,
  .story-image-col::before { transition: none !important; }
  .story-image-col:hover img { transform: none; filter: none; }
}

/* ── How it works (curved-flow workflow) ────────────────────────────────
 *
 * Two stacked layers:
 *   1. .hiw-flow holds the SVG diagram with N icon-bubbles connected
 *      by dashed bezier curves drawn in render.ts. The SVG itself
 *      keeps its 1200x220 viewBox and scales to whatever container
 *      width the page gives it; aspect-ratio is locked so badges stay
 *      circular without us having to recompute geometry per breakpoint.
 *   2. .hiw-cards is a CSS Grid of step-cards underneath. The number
 *      of columns is driven by a --hiw-cols custom property (capped at
 *      4 in render.ts) so 3-step sections render as a true 3-column
 *      grid instead of orphaning the last card on its own row.
 *
 * On mobile (<800px) the SVG is hidden (the curve geometry doesn't
 * survive being squashed below ~600px) and the cards collapse into a
 * single column with a thin gradient connector running down their
 * left edge so the visual narrative still reads top-to-bottom.
 */
.hiw-section { padding: clamp(60px, 9vw, 110px) 0; }
/* Platform narrative: core_concept (diagram + vertical marquee) → how_it_works */
.cc-section + .hiw-section {
  padding-top: clamp(24px, 3.5vw, 44px);
}
.hiw-section .section-heading { margin-bottom: 14px; }
.hiw-section .section-heading .hiw-heading-accent {
  background: linear-gradient(90deg, #7c8cff 0%, #9b6cff 50%, #ff63b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hiw-section .section-sub     { max-width: 760px; margin: 0 auto 56px; }

.hiw-flow {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 64px;
  aspect-ratio: 1200 / 220;
  position: relative;
}
.hiw-flow svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hiw-node-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #cdd2ff;
}
.hiw-node-icon svg { width: 24px; height: 24px; }
.hiw-node-icon .hiw-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.hiw-node-icon .hiw-num-fallback {
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  color: #cdd2ff;
}
.hiw-node-label {
  text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); line-height: 1.3;
}

/* Card grid below the flow */
.hiw-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(var(--hiw-cols, 4), minmax(0, 1fr));
  counter-reset: step;
}
.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px 24px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hiw-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
  box-shadow: 0 18px 40px -28px rgba(124, 140, 255, 0.55);
}
.hiw-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.hiw-card-num {
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--accent) 70%, transparent);
}
.hiw-card-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: color-mix(in oklab, var(--accent) 90%, white);
}
.hiw-card-icon svg { width: 20px; height: 20px; }
.hiw-card-icon .hiw-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.hiw-card-icon .hiw-num-fallback { font-weight: 700; font-size: 13px; }
.hiw-card-title {
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.01em; color: var(--text); line-height: 1.3;
}
.hiw-card-body {
  font-size: 15px; color: var(--text-dim); line-height: 1.6;
}
.hiw-card-body p { margin: 0 0 8px; }
.hiw-card-body p:last-child { margin-bottom: 0; }

/* Split bento (visualLayout: split, exactly 4 steps): left stack + hero */
.hiw-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}
.hiw-split-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 2.2vw, 20px);
  min-height: 0;
  align-self: stretch;
}
.hiw-split-hero-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: 100%;
}
.hiw-card--split-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 22px);
  align-items: start;
  padding: clamp(20px, 2.8vw, 26px) clamp(18px, 2.5vw, 24px);
}
.hiw-card-split-badge {
  flex-shrink: 0;
}
.hiw-card-split-icon-wrap {
  width: clamp(56px, 6.5vw, 72px);
  height: clamp(56px, 6.5vw, 72px);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e8ecff;
}
.hiw-card-split-icon-wrap svg {
  width: clamp(34px, 4.2vw, 44px);
  height: clamp(34px, 4.2vw, 44px);
}
.hiw-card-split-icon-wrap .hiw-badge-img {
  width: 100%;
  height: 100%;
  max-width: clamp(56px, 6.5vw, 72px);
  max-height: clamp(56px, 6.5vw, 72px);
  object-fit: contain;
  display: block;
  padding: 0;
  box-sizing: border-box;
}
.hiw-card-split-icon-wrap .hiw-num-fallback {
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 22px);
  letter-spacing: 0.04em;
  color: #e8ecff;
}
.hiw-card--hero {
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  width: 100%;
  min-height: clamp(320px, 42vw, 520px);
  padding: clamp(24px, 3.5vw, 32px) clamp(22px, 3vw, 28px);
  display: flex;
  flex-direction: column;
}
.hiw-card-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
  pointer-events: none;
}
.hiw-card-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 9, 18, 0.92) 0%, rgba(7, 9, 18, 0.55) 42%, rgba(7, 9, 18, 0.25) 100%),
    linear-gradient(90deg, rgba(7, 9, 18, 0.88) 0%, rgba(7, 9, 18, 0.15) 65%);
}
.hiw-card--hero:not(:has(.hiw-card-hero-photo)) .hiw-card-hero-scrim {
  background: linear-gradient(
    145deg,
    rgba(20, 24, 48, 0.95) 0%,
    rgba(14, 18, 36, 0.92) 45%,
    rgba(10, 14, 30, 0.88) 100%
  );
}
.hiw-card-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 0;
  min-height: 0;
  align-self: stretch;
}
.hiw-card-hero-head {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  justify-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.hiw-card-hero-title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  max-width: 16ch;
  text-align: left;
}
.hiw-card-hero-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hiw-card-hero-icon-wrap {
  width: clamp(73px, 8.45vw, 94px);
  height: clamp(73px, 8.45vw, 94px);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e8ecff;
}
.hiw-card-hero-icon-wrap svg {
  width: clamp(44px, 5.46vw, 57px);
  height: clamp(44px, 5.46vw, 57px);
}
.hiw-card-hero-icon-wrap .hiw-badge-img {
  width: 100%;
  height: 100%;
  max-width: clamp(73px, 8.45vw, 94px);
  max-height: clamp(73px, 8.45vw, 94px);
  object-fit: contain;
  display: block;
  padding: 0;
  box-sizing: border-box;
}
.hiw-card-hero-icon-wrap .hiw-num-fallback {
  font-weight: 700;
  font-size: clamp(22px, 2.73vw, 29px);
  letter-spacing: 0.04em;
  color: #e8ecff;
}
.hiw-card-hero-body {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 52ch;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .hiw-split {
    grid-template-columns: 1fr;
  }
  .hiw-split-hero-col {
    order: 2;
  }
  .hiw-split-stack {
    order: 1;
  }
}

/* Tablet: drop to 2-up grid before going single-column */
@media (max-width: 1024px) {
  .hiw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: hide the SVG diagram (the curves don't survive being
 * squashed) and stack the cards with a thin gradient connector down
 * the left edge so the eye still flows step → step → step. */
@media (max-width: 800px) {
  .hiw-flow { display: none; }
  .hiw-section .section-sub { margin-bottom: 36px; }
  .hiw-cards {
    grid-template-columns: 1fr;
    position: relative;
    padding-left: 22px;
  }
  .hiw-cards::before {
    content: "";
    position: absolute;
    top: 18px; bottom: 18px; left: 8px;
    width: 2px;
    background: linear-gradient(180deg, #7c8cff 0%, #9b6cff 50%, #ff63b8 100%);
    opacity: .55;
    border-radius: 2px;
  }
}

/* ── Core concept (3-node system diagram + bullet grid) ──────────────────
 * Three roles laid out left-to-right (Website → VertiAI → Customer)
 * with curved arrow SVGs between consecutive nodes. The center node
 * gets an accent treatment so the eye lands on "VertiAI" first. A
 * 2-column bullet grid sits below the diagram explaining what makes
 * the platform more than a chatbot.
 *
 * On mobile the flow stacks vertically; the inline arrow blocks
 * rotate 90° so the visual narrative still reads top-to-bottom
 * without a separate mobile SVG.
 */
.cc-section {
  padding-top: clamp(60px, 9vw, 110px);
  padding-bottom: clamp(28px, 4vw, 52px);
  padding-left: 0;
  padding-right: 0;
}
.cc-intro { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.cc-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.cc-section .section-heading { margin-bottom: 14px; }
.cc-sub { font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.cc-sub p { margin: 0 0 10px; }
.cc-sub p:last-child { margin-bottom: 0; }
.cc-sub a { color: var(--accent); text-decoration: underline; }
.cc-sub strong, .cc-sub b { font-weight: 700; }

.cc-flow {
  --cc-orbit-size: min(220px, 24vw);
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  margin: 0 auto 56px; max-width: 980px;
  width: 100%;
}
.cc-node {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  min-width: clamp(200px, 22vw, 240px);
}
/* Rotating ring + frameless center graphic (image or icon). */
.cc-orbit {
  position: relative;
  width: var(--cc-orbit-size);
  height: var(--cc-orbit-size);
  flex-shrink: 0;
  transition: transform .25s ease, filter .25s ease;
}
.cc-node:hover .cc-orbit { transform: translateY(-3px); }
.cc-orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: rgba(184, 194, 255, 0.88);
}
.cc-orbit-txt {
  font-family: inherit;
  font-size: 7.2px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
@keyframes cc-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cc-orbit-text-rot {
  transform-origin: 50px 50px;
  animation: cc-orbit-spin 22s linear infinite;
}
.cc-orbit-text-rot--rev {
  animation-direction: reverse;
}
@media (prefers-reduced-motion: reduce) {
  .cc-orbit-text-rot { animation: none; }
}

/* Center hub: no circular plate — only the asset, centered inside the ring. */
.cc-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  height: 46%;
  min-width: 56px;
  min-height: 56px;
  max-width: 108px;
  max-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  color: #b8c2ff;
  pointer-events: none;
}
.cc-orbit-center svg {
  width: 100%;
  height: 100%;
  max-width: 72px;
  max-height: 72px;
}
.cc-orbit-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cc-num-fallback { font-size: clamp(16px, 4vw, 22px); font-weight: 700; color: inherit; }

/* Middle node — brighter ring + soft glow on the graphic only */
.cc-node--accent .cc-orbit-ring { color: #eef0ff; }
.cc-node--accent .cc-orbit-center {
  color: #d8dcff;
  filter: drop-shadow(0 0 14px rgba(155, 108, 255, 0.35));
}

.cc-node-caption {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  color: var(--text);
  max-width: 260px;
  line-height: 1.35;
  margin-top: 14px;
}

.cc-arrow {
  flex: 0 1 auto;
  align-self: flex-start;
  width: clamp(48px, 6vw, 96px);
  margin: calc((var(--cc-orbit-size) - 24px) / 2) 8px 0;
  color: #9b6cff;
  opacity: 0.85;
}
.cc-arrow svg { width: 100%; height: 24px; display: block; }

/* Diagram row + vertical marquee below (stacked, centered — no side-by-side overlap). */
.cc-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(44px, 6vw, 76px);
  margin: 0 auto clamp(12px, 2vw, 24px);
  max-width: 1120px;
  width: 100%;
}
.cc-split-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.cc-split-diagram .cc-flow {
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}
.cc-split-slider {
  width: 100%;
  max-width: min(680px, 96vw);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: unset;
}
.cc-split-slider--solo {
  max-width: min(680px, 96vw);
}

/* ~2–2.5 bullet cards visible; rest scrolls inside the marquee. */
.cc-bullets-viewport {
  flex: 0 0 auto;
  width: 100%;
  height: clamp(200px, 24vh, 248px);
  min-height: 196px;
  max-height: 252px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
.cc-bullets-viewport.is-grabbing { cursor: grabbing; }
.cc-bullets-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}

.cc-bullet-slide {
  padding: 11px 4px 13px 0;
  border-bottom: 1px solid rgba(124, 140, 255, 0.14);
}
.cc-bullet-slide:last-child {
  border-bottom-color: rgba(124, 140, 255, 0.14);
}
.cc-bullet-slide-title {
  font-size: clamp(1.22rem, 2.2vw, 1.68rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
  background: linear-gradient(102deg, #ffffff 8%, #d4dcff 42%, #e8c4ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cc-bullet-slide-body {
  font-size: clamp(0.9rem, 1.2vw, 1.04rem);
  line-height: 1.4;
  color: var(--text-dim);
}
.cc-bullet-slide-body p { margin: 0 0 6px; }
.cc-bullet-slide-body p:last-child { margin-bottom: 0; }
.cc-bullet-slide-body a { color: var(--accent); text-decoration: underline; }
.cc-bullet-slide-body strong,
.cc-bullet-slide-body b { font-weight: 700; }

@media (max-width: 720px) {
  .cc-bullets-viewport {
    height: clamp(188px, 30vh, 230px);
    min-height: 180px;
    max-height: 236px;
  }
  .cc-flow { flex-direction: column; gap: 4px; }
  .cc-arrow {
    width: 24px; height: 48px; margin: 6px 0; align-self: center;
    transform: rotate(90deg); transform-origin: center;
  }
  .cc-arrow svg { height: 100%; }
  .cc-node-caption { max-width: 220px; }
}

/* ── Data layer ───────────────────────────────────────────────────────────
 * Two-column section: left = eyebrow + heading + description + bullets;
 * right = operator image. Desktop uses the same 5/7 column split as
 * .hero-grid (text ~41.7%, image ~58.3%). Shared with dashboard preview
 * (.dp-grid). The image column is taken out of grid flow (position absolute) so the row height matches the text
 * column only; the artwork is bottom-aligned in that band so its bottom
 * lines up with the last bullet instead of dangling past it. Mobile
 * stacks at ≤900px with static positioning restored.
 */
.dl-section { padding: clamp(60px, 9vw, 110px) 0; }
.dl-grid,
.dp-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.dl-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.dl-intro .section-heading { margin-bottom: 16px; text-align: left; }
.dl-description { font-size: 15px; line-height: 1.65; color: var(--text-dim); margin-bottom: 24px; }
.dl-description p { margin: 0 0 10px; }
.dl-description p:last-child { margin-bottom: 0; }
.dl-description a { color: var(--accent); text-decoration: underline; }
.dl-description strong, .dl-description b { font-weight: 700; }
.dl-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.dl-bullet {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.55; color: var(--text-dim);
}
.dl-bullet-mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(124, 140, 255, 0.18); color: #b8c2ff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.dl-bullet-mark svg { width: 11px; height: 11px; }

/* .dl-media is only a layout/animation hook in markup — no border or
 * background so the operator's PNG reads as raw artwork.
 * Desktop: absolutely positioned in the right column band, full
 * text-column height, flex-end so the image baseline meets the bullets. */
.dl-media,
.dp-media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc((100% - 64px) * 7 / 12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.dl-media .dl-image,
.dl-media .dl-image-placeholder,
.dp-media .dp-image,
.dp-media .dp-image-placeholder {
  pointer-events: auto;
}
.dl-image,
.dp-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
.dl-image-placeholder,
.dp-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: 100%;
  width: 100%;
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .dl-grid,
  .dp-grid { grid-template-columns: 1fr; gap: 40px; }
  .dl-intro,
  .dp-intro { grid-column: 1; }
  .dl-media,
  .dp-media {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: 100%;
    display: block;
    order: -1;
  }
  .dl-image,
  .dp-image {
    width: 100%;
    max-height: none;
    height: auto;
  }
  .dl-image-placeholder,
  .dp-image-placeholder {
    max-height: none;
  }
}

/* ── Dashboard preview ───────────────────────────────────────────────────
 * Layout rules are shared with .dl-grid / .dp-grid and .dp-media above.
 * Left column keeps .dp-* typography spacing; CTA below bullets.
 */
.dp-section { padding: clamp(60px, 9vw, 110px) 0; }
.dp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.dp-intro .section-heading { text-align: left; margin-bottom: 16px; }
.dp-description { font-size: 15px; line-height: 1.65; color: var(--text-dim); margin-bottom: 22px; }
.dp-description p { margin: 0 0 10px; }
.dp-description p:last-child { margin-bottom: 0; }
.dp-description a { color: var(--accent); text-decoration: underline; }
.dp-description strong, .dp-description b { font-weight: 700; }
.dp-bullets { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.dp-bullet { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.dp-bullet-mark {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(124, 140, 255, 0.18); color: #b8c2ff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.dp-bullet-mark svg { width: 11px; height: 11px; }
.dp-cta { align-self: flex-start; }

/* ── Pricing plans (Pricing 34-style with monthly/yearly toggle) ───────── */
/*
 * Layout: header (eyebrow + title + description), segmented monthly/yearly
 * toggle, then a 3-up grid of plan cards. The toggle is JS-driven: clicking
 * a button flips data-billing on both the toggle and the grid; CSS shows
 * only the matching .pp-price--monthly / .pp-price--yearly block per card.
 * No prices are hidden in the DOM (good for SEO + JS-disabled fallback
 * honours the default-billing attribute set at render time).
 */
.pp-section { padding: 96px 0; }
/* Generous breathing room above and below the description copy so it
 * feels like a deliberate hero block rather than a wall of text wedged
 * between the eyebrow pill and the toggle. The 36px below the head was
 * not enough — bumped to 64px so the toggle has air around it too. */
.pp-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.pp-head .section-sub {
  margin-left: auto; margin-right: auto;
  margin-bottom: 0;
  margin-top: 22px;
}
.pp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 28px;
}

/* Segmented monthly/yearly toggle. Extra vertical margin so the
 * pill sits in its own breathing zone between the description and
 * the cards below — matches the index11 cadence where every focal
 * element gets its own band of space. */
.pp-toggle-wrap { display: flex; justify-content: center; margin: 8px 0 64px; }
.pp-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.pp-toggle-btn {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; color: var(--text-dim);
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.18s, color 0.18s;
}
.pp-toggle-btn:hover { color: var(--text); }
.pp-toggle[data-billing="monthly"] .pp-toggle-btn[data-billing-target="monthly"],
.pp-toggle[data-billing="yearly"]  .pp-toggle-btn[data-billing-target="yearly"] {
  background: var(--accent); color: #fff;
}
.pp-toggle-badge {
  font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.18); color: inherit;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.02em;
}
/* On the inactive button the badge gets a subtle accent-tinted bg so
 * it still reads like a discount hint without competing with the
 * active pill. */
.pp-toggle .pp-toggle-btn:not([aria-selected="true"]) .pp-toggle-badge {
  background: var(--accent-soft); color: var(--accent);
}

/* Grid */
.pp-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
@media (max-width: 960px) {
  .pp-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* Plan card */
.pp-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.30);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 140, 255, 0.40);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.pp-card--highlighted {
  /* Use a gradient-border trick so the recommended plan reads as the
   * brand-accent card without us needing
   * a second border colour. The padding-box layer keeps the surface
   * solid so text contrast is unchanged. */
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 60px rgba(124, 140, 255, 0.22);
}
.pp-card--highlighted:hover {
  border-color: transparent;
  box-shadow: 0 22px 70px rgba(124, 140, 255, 0.30);
}

.pp-recommended {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: #fff;
  background: var(--grad);
  padding: 6px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(124, 140, 255, 0.45);
}

/* Lock the head (name + tagline) to a consistent height across all
 * cards so the price block below it lands at exactly the same Y on
 * every card, regardless of how many lines each plan's tagline wraps
 * to. Sized to fit a 2-line tagline (the longest in the current
 * design); 3-line taglines still work but eat into the breathing
 * room. The cards themselves already stretch to equal height via
 * the .pp-grid 'align-items: stretch' default — this just controls
 * the head row. */
.pp-card-head {
  margin-bottom: 18px;
  min-height: 72px;
  display: flex; flex-direction: column;
}
.pp-name {
  font-size: 18px; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.pp-tagline {
  font-size: 14px; color: var(--text-dim);
  margin-top: 6px; line-height: 1.45;
}

.pp-price-wrap {
  margin: 4px 0 0;
  min-height: 56px;
  /* Anchor the price content to the bottom of the wrapper. With
   * 'align-items: baseline' cards with a smaller "price" element
   * (e.g. a custom "Свържете с нас" label vs a 48px €29) ended up
   * with their text floating higher in the row, breaking the
   * horizontal alignment across the grid. flex-end pins every price
   * variant — big numeric or short custom label — to the same Y
   * line, so the row reads as one consistent baseline across all
   * three cards. */
  display: flex; align-items: flex-end;
}
.pp-price { display: none; align-items: baseline; line-height: 1; }
.pp-grid[data-billing="monthly"] .pp-price--monthly,
.pp-grid[data-billing="yearly"]  .pp-price--yearly {
  display: inline-flex;
}
.pp-cur {
  font-size: 22px; font-weight: 600; color: var(--text);
  margin-right: 4px;
}
.pp-num {
  font-size: 48px; font-weight: 700; color: var(--text);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pp-price .pp-period {
  font-size: 14px; color: var(--text-faint);
  margin-left: 8px; font-weight: 500;
}
/* Optional lead-in before currency (e.g. "от" / "from") on numeric plans —
 * same size/colour as .pp-period so the row matches Col1/Col2 hierarchy. */
.pp-price-prefix {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
  margin-right: 2px;
  align-self: baseline;
}
/* Custom price label ("Contact sales", "Свържете се с нас", …).
 * Lives in its own .pp-price-wrap--custom that ignores data-billing
 * so the label stays put while operators flip the monthly/yearly
 * toggle for the other cards. Sized smaller than the numeric price
 * because the text is multi-word and needs to wrap on narrow cards
 * without ballooning the row height.
 *
 * The wrapper inherits .pp-price-wrap (min-height 56px, baseline
 * alignment), so this card's label sits on the SAME baseline as the
 * numeric €29 / €79 in its sibling cards — that's what makes the
 * three "price rows" look horizontally aligned across the grid. */
.pp-price--custom {
  display: inline-flex;
  align-items: baseline;
  font-size: 26px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
  line-height: 1;
}

/* Space between price row and feature list when a plan has no CTA. */
.pp-price-wrap + .pp-features { margin-top: 22px; }

.pp-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pp-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-dim); line-height: 1.5;
}
.pp-features strong {
  color: var(--text); font-weight: 700;
}
.pp-check {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}
.pp-card--highlighted .pp-check { background: var(--accent); color: #fff; }

/* CTA sits directly under the price; 40px rhythm above and below the
 * button per design (price → pad → button → pad → features). */
.pp-cta-wrap {
  padding: 40px 0;
}
.pp-cta { width: 100%; justify-content: center; margin-top: 0; }

/* Per-plan usage-based billing note. Renders below the feature list.
 * margin-top:auto keeps the three notes bottom-aligned when cards
 * stretch to equal height in the grid. */
.pp-billing-note {
  margin-top: auto;
  min-height: 56px;
  padding: 14px 16px;
  margin-bottom: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 140, 255, 0.18);
  font-size: 13px; line-height: 1.45;
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.pp-billing-note strong {
  color: var(--text); font-weight: 700;
}
.pp-billing-note[aria-hidden="true"] {
  background: transparent;
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .pp-card, .pp-toggle-btn { transition: none; }
  .pp-card:hover { transform: none; }
}

/* ── FAQ (bento on desktop, accordion on mobile) ─────────────────────────
 * Desktop (≥760px): 3-column CSS-columns masonry. Every <details> is
 * pre-rendered with the open attribute, the +/- marker is hidden,
 * and the summary is non-interactive — visitors can scan all Q&A in
 * one glance, like the index11 reference bento card grid.
 *
 * Mobile (<760px): the inline script in the FAQ renderer strips the
 * open attribute on this breakpoint so each card collapses to its
 * question; the +/- marker reappears and the summary becomes
 * clickable, restoring the original thumb-friendly accordion UX.
 *
 * (We don't try to force <details> open via author CSS alone —
 * Chrome 121+ wraps non-summary children in an internal
 * ::details-content slot that ignores display:block from
 * stylesheets. The open attribute is the reliable lever.)
 */
.faq-list {
  max-width: 1080px;
  margin: 0 auto;
  /* CSS columns give us a true masonry layout (cards flow top-to-
   * bottom in column 1, then column 2, etc.) with zero JS. */
  column-count: 3;
  column-gap: 18px;
}
.faq-list details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  /* break-inside:avoid keeps a card from being split across columns
   * mid-content; margin-bottom spaces cards within a column. The
   * column-gap above handles the horizontal spacing between columns. */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 18px;
  display: block; /* avoid the marker arrow icon entirely */
}
.faq-list details > summary {
  font-weight: 600; font-size: 16px; list-style: none;
  display: block;
  color: var(--text); letter-spacing: -0.005em;
  line-height: 1.4;
  /* On desktop the answer is always visible so the question is just
   * a heading — clicking does nothing. */
  cursor: default;
  pointer-events: none;
}
.faq-list summary::-webkit-details-marker,
.faq-list summary::marker { display: none; content: ""; }
/* No +/- toggle on desktop — every card is shown expanded. */
.faq-list summary::after { content: none; }
.faq-list .faq-body {
  margin-top: 12px;
  color: var(--text-dim); font-size: 15px; line-height: 1.6;
}

/* Desktop bento: React-Bits-style “spotlight card” — radial wash follows
 * pointer (--faq-spot-* set by /marketing/faq-spotlight.js). Disabled when
 * prefers-reduced-motion: reduce. See https://reactbits.dev/components/spotlight-card */
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .faq-list details.faq-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .faq-list details.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(
      540px circle at var(--faq-spot-x, 50%) var(--faq-spot-y, 50%),
      rgba(124, 140, 255, 0.32) 0%,
      rgba(155, 108, 255, 0.14) 32%,
      transparent 62%
    );
  }
  .faq-list details.faq-item:hover::before {
    opacity: 1;
  }
  .faq-list details.faq-item:hover {
    border-color: rgba(124, 140, 255, 0.48);
    box-shadow:
      0 0 0 1px rgba(124, 140, 255, 0.15),
      0 14px 44px rgba(124, 140, 255, 0.16);
  }
  .faq-list details.faq-item > summary,
  .faq-list details.faq-item > .faq-body {
    position: relative;
    z-index: 1;
  }
}

/* Mobile fallback — restore the original accordion. The inline
 * script removes the open attribute below this breakpoint, so we
 * just need to re-style the closed state and re-enable interaction. */
@media (max-width: 759px) {
  .faq-list {
    column-count: 1;
    column-gap: 0;
    max-width: 760px;
  }
  .faq-list details {
    padding: 18px 22px;
    margin-bottom: 12px;
  }
  .faq-list details > summary {
    font-weight: 500; font-size: 17px;
    cursor: pointer; pointer-events: auto;
    display: flex; justify-content: space-between; align-items: center;
  }
  .faq-list summary::after {
    content: "+"; color: var(--accent); font-size: 24px; line-height: 1;
  }
  .faq-list details[open] summary::after { content: "−"; }
  .faq-list .faq-body { margin-top: 0; padding-top: 14px; font-size: 16px; }
  /* Undo desktop spotlight clipping on narrow viewports. */
  .faq-list details.faq-item {
    overflow: visible;
    isolation: auto;
  }
  .faq-list details.faq-item::before {
    content: none;
    display: none;
  }
  .faq-list details.faq-item > summary,
  .faq-list details.faq-item > .faq-body {
    position: static;
    z-index: auto;
  }
}

/* Two-column intermediate breakpoint so very wide tablets / small
 * laptops don't get crammed into 3 narrow columns of text. */
@media (min-width: 760px) and (max-width: 1023px) {
  .faq-list { column-count: 2; }
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(124, 140, 255, 0.18) 0%, rgba(177, 75, 255, 0.06) 100%),
    var(--surface);
  border: 1px solid var(--border-strong); border-radius: 24px;
  padding: 56px 36px; text-align: center;
}
.cta-banner .section-heading { margin-bottom: 14px; }

/* ── Forms (signup, contact) ────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px; max-width: 520px; margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.40);
}
.form-card label { display: block; margin-bottom: 16px; font-size: 14px; color: var(--text-dim); }
.form-card label span { display: block; margin-bottom: 6px; }
.form-card input, .form-card textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text);
}
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--text-faint); }
.form-card input:focus, .form-card textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(255, 255, 255, 0.07);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card button { width: 100%; }
.form-msg { margin-top: 14px; font-size: 14px; padding: 10px 12px; border-radius: 8px; display: none; }
.form-msg.success { display: block; background: rgba(61, 220, 151, 0.12); color: var(--good); }
.form-msg.error   { display: block; background: rgba(255, 107, 107, 0.12); color: var(--danger); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
/* The marketing footer mirrors index11's three-column body (logo+slogan+
 * social, navigation, newsletter) and replaces the bottom row with a
 * VertiAI-specific layout: legal links + copyright on the left, the
 * "Partners with …" row on the right (per the user's reference image). */
/* Shared faded-centre divider used for the visual break between the
 * page body and the footer (and between the pre-footer CTA and the
 * 3-column footer-top when the CTA is present). The line is brightest
 * in the middle and tapers smoothly to transparent at both ends — see
 * the user's reference screenshot. We use a CSS custom property so a
 * single declaration covers both placements; the gradient is symmetric
 * with mid-line peak at 50% to match the screenshot exactly. */
:root {
  --footer-rule:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0)   0%,
      rgba(255, 255, 255, .18) 50%,
      rgba(255, 255, 255, 0)   100%
    );
}

/* Pre-footer CTA — a centred marketing band that sits above the
 * 3-column footer top row. The button reuses .btn-glow (animated
 * border + dark pill body) for parity with the header Login button
 * and the newsletter Subscribe button.
 *
 * The block is not rendered when disabled in the L1 admin, when the
 * current page has show_pre_footer_cta=false, or when any of (text,
 * button label, URL) is empty; see render.ts for the gate.
 *
 * The top rule is shared with the .site-footer's container::before so
 * we don't render two close-together lines when the CTA is present —
 * the band only adds its OWN rule below the button (::after) to break
 * itself off from the 3-column footer-top below. */
.pre-footer-cta {
  text-align: center;
  padding: 36px 0 56px;
}
.pre-footer-cta::after {
  content: ""; display: block;
  width: min(720px, 90%); height: 1px;
  background: var(--footer-rule);
  margin: 72px auto 0;
}
.pre-footer-cta-text {
  margin: 0 auto 24px; max-width: 520px;
  font-size: 26px; line-height: 1.35; font-weight: 500;
  color: var(--text);
}
.pre-footer-cta-avatars {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Separator only between hoisted avatars and CTA copy (not at the
 * feature-grid boundary — the footer container::before is suppressed
 * for that layout so the fade line does not sit on the card bottoms). */
.pre-footer-cta-rule {
  display: block;
  width: min(720px, 90%);
  height: 1px;
  margin: clamp(15px, 2.5vw, 20px) auto clamp(20px, 3vw, 28px);
  border: 0;
  padding: 0;
  background: var(--footer-rule);
}
.pre-footer-cta-text strong { font-weight: 700; }
/* The CTA button intentionally does NOT reuse .btn-glow (the animated
 * border used by the header Login + footer Subscribe buttons). It uses
 * the standard solid gradient .btn-primary so the marketing-band CTA
 * reads as a distinct, primary call-to-action rather than yet another
 * glowing pill. The .pre-footer-cta-btn hook is kept on the element
 * for future targeting but currently inherits everything from .btn /
 * .btn-primary / .btn-lg / .btn-pill. */
@media (max-width: 640px) {
  .pre-footer-cta { padding: 28px 0 40px; }
  .pre-footer-cta-text { font-size: 21px; }
  .pre-footer-cta::after  { margin-top: 28px; }
  .pre-footer-cta-rule { margin-bottom: 22px; }
  .site-footer .container::before { margin-bottom: 28px; }
}

.site-footer {
  /* The full-width 1px top border is replaced with a faded-centre
   * divider rendered as a .container::before pseudo-element below.
   * This keeps the visual break between the page body and the footer
   * consistent whether or not the pre-footer CTA is rendered. */
  padding: 56px 0 24px;
  margin-top: 80px;
  color: var(--text-faint); font-size: 14px;
}
.site-footer .container { display: block; }
/* Top divider for the footer (replaces the old end-to-end border).
 * Centred fading rule — bright in the middle, transparent at both
 * ends — to match the user's reference. Renders as the first child
 * of the footer container so it sits above the pre-footer CTA when
 * present, and above the 3-column row when not. */
.site-footer .container::before {
  content: ""; display: block;
  width: min(720px, 90%); height: 1px;
  background: var(--footer-rule);
  margin: 0 auto 36px;
}
/* Hoisted avatars: no footer ::before — that line read as cutting across
 * the bottom of the last feature grid. Pull the footer band up to the
 * main content; the only fade rule in this band is .pre-footer-cta-rule
 * between avatars and headline. */
.site-footer.site-footer--prefooter-avatars {
  margin-top: 0;
  padding-top: 0;
}
.site-footer.site-footer--prefooter-avatars .container::before {
  content: none;
  display: none;
  margin: 0;
}
.site-footer.site-footer--prefooter-avatars .pre-footer-cta {
  padding-top: 136px;
}
/* Last main section still uses global section vertical padding; pull it
 * flush to the hoisted avatar row when the footer uses that layout. */
main:has(+ .site-footer.site-footer--prefooter-avatars) > section:last-child {
  padding-bottom: 0;
}

/* Top: 3-column grid that collapses on smaller viewports. */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 56px;
  /* All columns stretch to the same height (= the row's tallest
   * column's natural content height) so any of them can pin its
   * last child to the column bottom with margin-top:auto, giving
   * a clean horizontal baseline across col 1 (lottie), col 2
   * (BG/EN switcher) and col 3 (Subscribe + socials). */
  align-items: stretch;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { align-self: stretch; display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
/* Logo + slogan are laid out side-by-side: the logo is a square on
 * the left, the slogan flows in the remaining space. The social icons
 * row sits below this group. */
.footer-brand-row { display: flex; align-items: flex-start; gap: 18px; }
.footer-logo     { flex-shrink: 0; display: inline-block; line-height: 0; text-decoration: none; }
.footer-logo img { width: 96px; height: auto; object-fit: contain; display: block; }
.footer-slogan   { margin: 0; color: var(--text-dim); line-height: 1.55; font-size: 14px; flex: 1 1 auto; }

/* Lottie animation slot in the brand column. The container is sized
 * by CSS (the SVG inside is responsive). The animation is decorative
 * (data-lottie-init mounts it, aria-hidden in the markup), so visitors
 * relying on assistive tech don't get a phantom "image" announcement.
 * align-self:center horizontally centers it in the brand column;
 * margin:auto 0 vertically centers it inside the remaining flex
 * space below the brand-row, regardless of how the column stretches
 * to match its tallest sibling. */
.footer-lottie {
  width: 100%; max-width: 180px; aspect-ratio: 1 / 1;
  align-self: center; margin: auto 0;
  pointer-events: none; user-select: none;
  position: relative; left: 30px;
}
.footer-lottie svg { width: 100% !important; height: 100% !important; display: block; }
@media (prefers-reduced-motion: reduce) {
  /* lottie-web respects prefers-reduced-motion via its own logic
   * (reducedMotion setting), but we additionally hide the slot for
   * users who've explicitly opted out so it doesn't render a static
   * first frame and waste vertical space. */
  .footer-lottie { display: none; }
}
/* Social icons row sits to the right of the Subscribe button inside
 * col 3's bottom action group, sharing a horizontal baseline with
 * the BG/EN switcher across in col 2. */
.footer-social { display: inline-flex; align-items: center; gap: 12px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--text-dim); background: rgba(255,255,255,0.04); border: 1px solid var(--border); transition: color .15s, background .15s, border-color .15s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* Generic column wrapper: column flex so children can use
 * margin-top:auto to push themselves to the column bottom (relied on
 * by .lang-switch--footer in col 2 and .footer-newsletter-bottom in
 * col 3 to share a baseline with the col-1 lottie's bottom edge). */
.footer-col { display: flex; flex-direction: column; }
.footer-col-title { font-size: 14px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 18px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-nav a:hover { color: var(--text); }

/* Newsletter column. The column itself stretches to match the
 * tallest sibling (col 2's nav + lang switcher) so the form can
 * push its submit button to the bottom of the column with
 * margin-top:auto, which lines the Subscribe button up
 * horizontally with the BG/EN switcher in col 2. */
.footer-newsletter        { align-self: stretch; display: flex; flex-direction: column; }
.footer-newsletter-form   { display: flex; flex-direction: column; gap: 12px; position: relative; flex: 1 1 auto; }
.footer-newsletter-desc   { margin: 0 0 16px; color: var(--text-dim); line-height: 1.6; font-size: 14px; }
.footer-newsletter-email {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 11px 14px; color: var(--text);
}
.footer-newsletter-email::placeholder { color: var(--text-faint); }
.footer-newsletter-email:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.footer-newsletter-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--text-dim); line-height: 1.5; cursor: pointer; }
.footer-newsletter-consent input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
/* Group msg + (button + socials) at the bottom of the form.
 * margin-top:auto pushes the whole group down so the button row sits
 * on the BG/EN baseline regardless of how tall the message above it
 * grows. The actions row inside lays out the button on the left and
 * the social icons on the right. */
.footer-newsletter-bottom {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
}
.footer-newsletter-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
/* Subscribe button reuses the header's animated border-glow pill
 * (.btn-glow). Local overrides here just tweak the typography to
 * match the marketing-site CTA voice (slightly heavier, uppercase).
 * The animated border, hover glow and dark pill body all come from
 * .btn-glow. */
.footer-newsletter-btn {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.footer-newsletter-btn:disabled { opacity: .55; cursor: not-allowed; }
/* Message sits in the form just above the submit button. Empty by
 * default (display:none via :empty) so it doesn't reserve a slot
 * that would push the button up off its bottom baseline. When the
 * inline submit handler populates it with a success / "already
 * subscribed" / error line, the message grows to fit and the button
 * stays anchored to the column bottom because the surrounding
 * .footer-newsletter-bottom group uses margin-top:auto. */
.footer-newsletter-msg {
  font-size: 13px; min-height: 0;
}
.footer-newsletter-msg:empty { display: none; }
.footer-newsletter-msg.is-success { color: var(--good); }
.footer-newsletter-msg.is-error   { color: var(--danger); }
.footer-newsletter-msg.is-warn    { color: #f6b100; }

/* Bottom: legal/copyright on the left, partners on the right. */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 22px;
}
.footer-bottom-left {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom-left a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.footer-bottom-left a:hover { color: var(--text); }
.footer-bottom-sep { color: var(--text-faint); opacity: .55; }
.footer-copyright { color: var(--text-faint); }

/* Partners block — small label + grayscale logos that lift to full
 * colour on hover so the row stays visually quiet next to copyright. */
.footer-partners {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--text-faint);
}
.footer-partners-label { white-space: nowrap; }
.footer-partners-logos { display: inline-flex; align-items: center; gap: 18px; }
.footer-partners-logos img {
  height: 26px; width: auto; max-width: 120px; object-fit: contain;
  /* Two-stage tint: brightness(0) zeroes the source to pure black so
   * any uploaded artwork (coloured PNG/SVG) renders as a flat silhouette,
   * then invert(1) flips it to pure white. The visible muted-grey colour
   * is achieved purely via opacity so it tracks the "Партньори" /
   * "Partners with" label colour (var(--text-faint)) without needing
   * brittle filter math. On hover we lift the opacity to 1 so the
   * silhouette pops to bright white — the brand-colour reveal is no
   * longer used here per the user's spec. */
  filter: brightness(0) invert(1); opacity: .55;
  transition: opacity .2s;
}
.footer-partners-logos a:hover img,
.footer-partners-logos img:hover { opacity: 1; }

/* Footer language switcher: lives in the navigation column, pinned to
 * the column bottom (margin-top:auto) so it shares a horizontal
 * baseline with the Subscribe + social-icons row in col 3 and the
 * centred Lottie in col 1. The soft top divider keeps it visually
 * separated from the nav links above when the column is short. */
.lang-switch--footer {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.lang-switch--footer a {
  margin: 0; padding: 4px 8px; color: var(--text-dim);
  border-radius: 6px; font-size: 13px; letter-spacing: .5px; text-decoration: none;
  transition: color .15s, background .15s;
}
.lang-switch--footer a:hover { color: var(--text); }
.lang-switch--footer a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Responsive footer collapse. */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding: 40px 0 20px; }
  /* Mobile footer layout: 2-column grid where the brand row spans both
   * columns at the top, the navigation column and the Lottie animation
   * sit side-by-side underneath, and the newsletter spans both columns
   * at the bottom. Achieved by hoisting the .footer-brand-row + the
   * .footer-lottie out of their wrapper via display:contents on
   * .footer-brand so they become direct grid items addressable by
   * grid-area. */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding-bottom: 32px;
    grid-template-areas:
      "brand      brand"
      "nav        lottie"
      "newsletter newsletter";
  }
  .footer-brand            { display: contents; }
  .footer-brand-row        { grid-area: brand; }
  .footer-top > .footer-col:not(.footer-newsletter) { grid-area: nav; }
  .footer-lottie {
    grid-area: lottie;
    /* Reset the desktop offset (left:30px) and auto-margin trick — at
     * mobile width the column is small enough that a 30px nudge would
     * clip past the right edge. align-self:center vertically aligns
     * the animation against the navigation column to its left so the
     * two read as a balanced row instead of the lottie floating up at
     * the top of the cell. */
    left: 0;
    margin: 0;
    align-self: center;
    justify-self: end;
    max-width: 160px;
  }
  .footer-newsletter       { grid-area: newsletter; }
  .footer-bottom { grid-template-columns: 1fr; align-items: flex-start; }
  .footer-bottom-right { justify-self: start; }
  .footer-partners { flex-wrap: wrap; gap: 12px; }
}

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
/* The full-screen overlay is rendered alongside the header in
 * render.ts but hidden on desktop. It only becomes interactive when
 * the .open class lands on it (set by the hamburger button). */
.mobile-menu { display: none; }

@media (max-width: 800px) {
  /* Mobile pill collapses to just the logo + hamburger. The desktop
   * nav, BG/EN switcher, and login button all hide on the top row;
   * they re-render inside the full-screen mobile-menu overlay below
   * with bigger tap targets. Switching to a 2-column auto/auto grid
   * lets the brand sit hard-left and the hamburger hard-right with
   * nothing in between. */
  .site-header .container { padding: 0 12px; }
  .header-pill {
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 8px 8px 8px 18px;
    border-radius: 28px;
  }
  .header-pill > .brand         { grid-column: 1; justify-self: start; }
  .header-pill > .nav           { display: none; }
  .header-pill > .lang-switch   { display: none; }
  .header-pill > .btn-glow      { display: none; }
  .header-pill > .mobile-toggle { grid-column: 2; justify-self: end; display: inline-flex; }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }

  /* ── Full-screen mobile menu overlay ────────────────────────────
   * Mirrors index11's mobile menu: full-bleed dark backdrop, brand
   * + close button row at the top, huge tap-target nav links in the
   * middle, BG/EN + login CTA pinned to the bottom. The overlay is
   * always in the DOM (so a 2nd click doesn't pay the cost of
   * mounting a new tree) but display:none until the .open class
   * lands on it from the hamburger button. */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 200;
    /* Match the page body's two-layer background (radial highlight on
     * top of the navy-to-black vertical gradient) so the overlay looks
     * like a continuation of the page rather than a flat block. The
     * earlier var(--bg) resolved to nothing because there is no flat
     * --bg token in the palette — only --bg-top and --bg-bottom — so
     * the page bled straight through the overlay. Using the gradient
     * stops directly keeps the overlay fully opaque without inventing
     * a new variable. */
    background:
      radial-gradient(1200px 600px at 50% -100px, rgba(124, 140, 255, 0.18), transparent 60%),
      linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    /* Pre-open state — invisible and non-interactive. We toggle to
     * the visible state via .open below. The transition uses
     * opacity + a tiny upward slide so the overlay slides in
     * instead of just popping. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.20s ease, transform 0.20s ease, visibility 0s linear 0.20s;
    padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
    overflow-y: auto;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.20s ease, transform 0.20s ease, visibility 0s linear 0s;
  }
  .mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-close {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px; color: var(--text); cursor: pointer; padding: 0;
  }
  .mobile-menu-close svg { width: 20px; height: 20px; display: block; }
  .mobile-menu-nav {
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: stretch;
    padding: 32px 24px;
    gap: 4px;
  }
  .mobile-menu-link {
    display: block;
    padding: 18px 8px;
    font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.15s, padding-left 0.15s;
  }
  .mobile-menu-link:hover,
  .mobile-menu-link:active { color: var(--text); padding-left: 14px; }
  .mobile-menu-link.active { color: var(--accent); }
  .mobile-menu-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-top: 1px solid var(--border);
  }
  .lang-switch--mobile {
    display: inline-flex; align-items: center; gap: 6px;
  }
  .lang-switch--mobile a {
    padding: 10px 14px;
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 8px;
    color: var(--text-faint);
  }
  .lang-switch--mobile a:hover  { color: var(--text); background: rgba(255, 255, 255, 0.04); }
  .lang-switch--mobile a.active { color: var(--accent); background: var(--accent-soft); }
  .mobile-menu-cta { padding: 12px 24px; font-size: 14px; }

  /* Lock body scroll while the menu is open so touch-scroll on the
   * overlay doesn't bleed through to the page underneath. */
  body.mobile-menu-open { overflow: hidden; }
}

/* ── Cookie consent banner + settings modal ──────────────────────────────
 * Bottom-of-viewport banner injected by /marketing/cookie-banner.js the
 * first time a visitor lands without the cookie_consent cookie. Glassy
 * surface with a soft accent border that picks up the page's primary
 * gradient. The modal is a centered card overlay used for per-category
 * customisation. */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: rgba(15, 18, 36, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.cookie-banner-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.cookie-btn {
  font: inherit;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.cookie-btn:hover { background: rgba(255, 255, 255, 0.10); }
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn-primary {
  background: linear-gradient(135deg, #6366f1, #d946ef);
  border-color: transparent;
  color: #fff;
}
.cookie-btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #6366f1, #d946ef); }
.cookie-btn-ghost { background: transparent; }

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.cookie-modal-overlay.is-visible { opacity: 1; }
.cookie-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  color: var(--text);
}
.cookie-modal-header {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.cookie-modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-modal-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.cookie-modal-body {
  padding: 12px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-cat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-cat-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-cat-required {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b6bdd1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
}
.cookie-cat-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-top: 8px;
}
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.cookie-toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background .2s ease;
  position: relative;
  display: inline-block;
}
.cookie-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: linear-gradient(135deg, #6366f1, #d946ef);
}
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(18px);
}
.cookie-toggle.is-disabled { cursor: not-allowed; opacity: 0.7; }
.cookie-toggle.is-disabled input:checked + .cookie-toggle-track {
  background: rgba(255, 255, 255, 0.30);
}

.cookie-modal-footer {
  padding: 14px 22px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-banner-inner { gap: 12px; }
  .cookie-banner-actions { width: 100%; justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 auto; }
  .cookie-modal-footer { flex-direction: column-reverse; }
  .cookie-modal-footer .cookie-btn { width: 100%; }
}

/* ── Legal pages (Privacy / Terms / generic legal docs) ─────────────────
 *
 * Long-form prose surfaces. We give them generous top padding so the
 * floating header pill doesn't crowd the page heading, a comfortable
 * reading column (max-width:860px on .container override), and a
 * .legal-page-body block that styles raw HTML coming from the Quill
 * editor — h2/h3, paragraphs, lists, links and basic tables. Operators
 * can paste rich content from Word/Google Docs via Quill and we render
 * it readably without per-document styling.
 */
.legal-page {
  padding: 140px 0 80px;
}
.legal-page-header {
  text-align: center;
  margin-bottom: 36px;
}
.legal-page-header .section-heading {
  margin: 0 0 12px;
}
.legal-page-meta {
  margin: 0;
  color: var(--text-faint);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.legal-page-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}
.legal-page-body h2 {
  margin: 36px 0 14px;
  font-size: 24px;
  color: var(--text);
  font-weight: 600;
}
.legal-page-body h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}
.legal-page-body p { margin: 0 0 14px; }
.legal-page-body ul,
.legal-page-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-page-body li { margin: 6px 0; }
.legal-page-body a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page-body a:hover { color: #fff; }
.legal-page-body strong { color: var(--text); }
.legal-page-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}
.legal-page-body code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.legal-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.legal-page-body th,
.legal-page-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-page-body th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
@media (max-width: 720px) {
  .legal-page { padding: 110px 0 60px; }
  .legal-page-body { font-size: 15px; }
}

/* ── Contact section (panel + form + offices) ───────────────────────────
 * Two-column hero band on top (.contact-grid: left contact panel, right
 * form), then a stack of office rows below where each row alternates
 * photo-left vs photo-right based on its index in .contact-offices-list.
 * The whole block is wrapped in .contact-section so we can scope the
 * spacing without bleeding into adjacent sections. */
.contact-section { padding: 96px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Left panel — eyebrow / huge email / description / socials / privacy. */
.contact-panel { display: flex; flex-direction: column; gap: 24px; }
.contact-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-faint);
}
.contact-email {
  font-size: 36px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; line-height: 1.1;
  text-decoration: none; word-break: break-word;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-email:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .contact-email { font-size: 28px; }
}
.contact-description {
  font-size: 16px; color: var(--text-dim); line-height: 1.6;
}
.contact-description p { margin: 0 0 12px; }
.contact-description p:last-child { margin-bottom: 0; }
.contact-description strong { color: var(--text); font-weight: 600; }

.contact-socials { display: flex; flex-direction: column; gap: 12px; }
.contact-socials-heading {
  font-size: 14px; color: var(--text-dim);
}
.contact-socials-heading strong { color: var(--text); font-weight: 600; }
.contact-socials-icons { display: flex; gap: 14px; }
.contact-socials-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--text-dim); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.contact-socials-icons a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(124, 140, 255, 0.30);
}

.contact-privacy-link {
  font-size: 13px; color: var(--text-faint);
  text-decoration: underline; text-underline-offset: 4px;
  width: fit-content;
}
.contact-privacy-link:hover { color: var(--text); }

/* Right form — pill inputs over the dark panel. */
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.contact-form-row { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit; font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form-phone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.contact-form-phone select {
  padding: 14px 12px;
  appearance: none;
  text-align: center;
}
.contact-form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
  cursor: pointer;
}
.contact-form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.contact-form-consent strong { color: var(--text); font-weight: 600; }
.contact-form-consent a { color: var(--accent); text-decoration: underline; }
.contact-form-submit {
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 999px;
}
.contact-form-msg {
  font-size: 14px; min-height: 1.2em;
  margin-top: 4px;
}
.contact-form-msg.success { color: #5be29b; }
.contact-form-msg.error   { color: #ff8a8a; }

/* ── Offices grid ───────────────────────────────────────────────────── */
.contact-offices { margin-top: 96px; }
.contact-offices-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-dim);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin: 0 auto;
  text-align: center;
}
.contact-offices > .contact-offices-eyebrow {
  display: block; width: fit-content;
}
.contact-offices-list {
  display: flex; flex-direction: column;
  gap: 56px;
  margin-top: 48px;
}

/* Each office row: 2-col grid where one col is the photo and the
 * other is the city + address + map cluster. The .photo-left vs
 * .photo-right modifier swaps the order of the two children. */
.contact-office {
  display: grid;
  /* Photo column dominates the row, details column hugs the right side.
   * Matches the index11 reference: large landscape building photo on the
   * left, compact city + office details + small map on the right. */
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  /* Tightened from 56px — at desktop widths the city sat too far right
   * of the photo's edge and the row read as two disconnected halves.
   * 28px keeps the photo and details visually grouped. */
  gap: 28px;
  /* Stretch (was center) so the right column matches the photo's height
   * exactly — required for "city aligns with top of photo" + "map aligns
   * with bottom of photo". With center, the right column sat in the
   * vertical middle of the row and floated independent of the photo. */
  align-items: stretch;
}
@media (max-width: 900px) {
  .contact-office { grid-template-columns: 1fr; gap: 28px; }
  /* On mobile, force photo on top regardless of the desktop alternation
   * so the visual rhythm stays predictable in a single column. */
  .contact-office--photo-right > .contact-office-photo { order: -1; }
}
.contact-office-photo {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  /* Cinematic landscape ratio (was 16/10 — still slightly too tall vs the
   * index11 reference, the photo edged out the right column visually).
   * 5/3 = 1.67 is what the reference building shot uses. */
  aspect-ratio: 5 / 3;
  /* Defend against the parent's align-items: stretch — without an
   * explicit start, the row's stretch can override aspect-ratio's
   * computed height and squash/elongate the photo. align-self:start
   * keeps the photo at its aspect-ratio-driven natural height (top
   * anchored), while the right column stretches to match it. */
  align-self: start;
}
.contact-office-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}
.contact-office-photo--empty {
  border: 1px dashed var(--border);
}

.contact-office-details {
  display: grid;
  /* City column is exactly as wide as the city name needs (was a fixed
   * 0.8fr ratio that took ~40% of the row regardless of how short
   * "Sofia" or how long "Barcelona" was, and stole horizontal room
   * from the address — making long office names like "бул. Шести
   * Септември 254" wrap to two lines). With auto-width the city hugs its
   * content and the address column gets every remaining pixel, so the
   * office-name line wraps only if it genuinely cannot fit. */
  grid-template-columns: auto minmax(0, 1fr);
  /* Two rows: row 1 is the city + info cluster (auto height), row 2
   * absorbs whatever vertical space is left in the column (1fr) and
   * holds the map. Combined with align-items: stretch on the parent
   * grid, the right column matches the photo's height, the city pins
   * to row 1's top (= photo top), and the map pins to row 2's bottom
   * via align-self: end (= photo bottom). */
  grid-template-rows: auto 1fr;
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
}
@media (max-width: 720px) {
  .contact-office-details {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 14px;
  }
}
.contact-office-city {
  font-size: 36px; font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  /* Belt-and-braces: even at very narrow viewports the city word
   * shouldn't break across lines — it's a place name, not body copy. */
  white-space: nowrap;
}
@media (max-width: 720px) {
  .contact-office-city { white-space: normal; }
}
.contact-office-info { display: flex; flex-direction: column; gap: 8px; }
.contact-office-name {
  font-size: 17px; font-weight: 600; color: var(--text);
}
.contact-office-address {
  font-size: 14px; color: var(--text-dim); line-height: 1.5;
}
.contact-office-address p { margin: 0 0 6px; }
.contact-office-address p:last-child { margin-bottom: 0; }
.contact-office-map {
  /* Map lives as the second row of the .contact-office-details sub-grid
   * and spans BOTH columns — left edge aligns with the start of the
   * city word, right edge aligns with the end of the address column.
   * Earlier iterations nested the map inside .contact-office-info (the
   * address sub-column) and capped its width at 360px aligned to
   * flex-end, so the map could never extend left of the city. Lifting
   * it to a sibling row + grid-column: 1 / -1 fixes that. */
  grid-column: 1 / -1;
  /* Pin to the bottom of the (1fr) second row so the map's bottom edge
   * aligns with the bottom of the photo on the left. The 1fr row
   * absorbs whatever vertical space is left between the city/info
   * cluster and the photo's bottom. */
  grid-row: 2;
  align-self: end;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  /* 16/10 (1.6) is calibrated against the photo: with the 1.55fr/1fr
   * column ratio and 28px gap, the right column is ~392px wide and
   * the photo is ~365px tall — a 16/10 map (~245px tall) lands at
   * roughly 2/3 of the photo's height, matching the index11 reference.
   * 21/9 (the previous value) gave a panoramic strip that was only
   * ~1/2 of the photo height and looked stranded at the bottom. */
  aspect-ratio: 16 / 10;
}
@media (max-width: 720px) {
  /* When .contact-office-details collapses to a single column on phones,
   * letting the map shrink to 360px makes it look orphaned. Restore full
   * column width below the address. */
  .contact-office-map { max-width: none; align-self: stretch; }
}
.contact-office-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  /* Match the office-photo treatment: pure greyscale. The contrast
   * bump compensates for Google Maps' default light-blue water /
   * pale-pink road palette which otherwise washes out flat to a
   * uniform grey when desaturated. */
  filter: grayscale(100%) contrast(1.05);
}
