/* ═══════════════════════════════════════════════════════════════════════════
   CloudLenz — enterprise refinement layer
   Loaded after styles.css. Changes type, spacing, color and chrome only:
   no keyframes, transitions or animated elements are touched.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ink:       #14110f;   /* headings: warm near-black instead of slate-blue */
  --ink-2:     #3d3631;   /* body copy: 9.6:1 on white */
  --ink-3:     #6b625a;   /* secondary: 5.6:1 on white */
  --line:      #ebe5df;
  --section-pad: 112px;
}

/* ── Type: Outfit stays the display face, Inter carries the reading ─────── */
body { font-family: var(--font-body); color: var(--ink-2); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .hero-h1, .section-head h2, .proof-n, .pprice, .pprice-custom, .bw-lens, .bw-ai { font-family: 'Outfit', var(--font-body); }

html h1.hero-h1 {
  font-size: clamp(2.3rem, 3.7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.028em;   /* was -.04em at 900: letters collided */
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
html .section-head h2, #platform .section-head h2, #how .section-head h2, #models .section-head h2 {
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: balance;
}
/* Ink only on the light sections; dark sections keep their white headings */
#security .section-head h2, #models .section-head h2, #usecases .section-head h2, #pricing .section-head h2 { color: var(--ink); }
.section-head p, .hero-p { color: var(--ink-2); }
.hero-p { font-size: 1.075rem; line-height: 1.65; max-width: 480px; }
.section-head { margin-bottom: 64px; }
.section-head p { font-size: 1.075rem; line-height: 1.65; }

/* Second-line accents: one consistent warm ink on light sections (the hero and
   Platform keep their gradient, as styles.css intends) */

#pricing .section-head h2 { color: var(--ink); }

/* ── Eyebrows: quiet labels, not glowing pills ──────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  background: none;
  border: none;
  padding: 0;
  color: #c2410c;
  margin-bottom: 16px;
}
.eyebrow::before { width: 6px; height: 6px; box-shadow: none; }

/* ── Buttons: confident, not glowing ────────────────────────────────────── */
.btn-primary {
  background: #ea580c;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(20,17,15,.12), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover { background: #c2410c; box-shadow: 0 1px 2px rgba(20,17,15,.12), inset 0 1px 0 rgba(255,255,255,.16); }
/* Secondary button: the same orange tint as the "Now live" pill */
.btn-ghost { color: #9a3412; font-weight: 600; background: rgba(249,115,22,.13); border-color: rgba(249,115,22,.45); }
.btn-ghost:hover { color: #7c2d12; background: rgba(249,115,22,.2); border-color: rgba(249,115,22,.65); }

/* ── Hero details ───────────────────────────────────────────────────────── */
.hero-proof { background: rgba(255,255,255,.75); border-color: var(--line); box-shadow: 0 1px 2px rgba(20,17,15,.04); }
.proof-n { font-weight: 700; color: var(--ink); }
.proof-l { color: var(--ink-3); font-size: .75rem; letter-spacing: 0; }

/* ── Sections: one rhythm, one container ────────────────────────────────── */
.section-alt { background: #faf7f3; }
.section + .section-alt, .section-alt + .section { border-top: 1px solid var(--line); }

/* Cards: hairline borders, no orange top-rules, gentle lift */
.why-card { border-top: 1px solid var(--line); border-color: var(--line); }
.why-card:hover { border-top-color: var(--line); box-shadow: 0 12px 32px rgba(20,17,15,.07); }
.why-card p, .pcard > p { color: var(--ink-3); }

/* ── Pricing: the Enterprise card joins the brand, not a purple one-off ── */
.pcard-enterprise {
  background: radial-gradient(120% 100% at 100% 0%, #2e2820 0%, #1b1613 55%, #130f0c 100%) !important;
  border-color: rgba(233,163,75,.35) !important;
}
.pcard-enterprise:hover { border-color: rgba(233,163,75,.6) !important; box-shadow: 0 16px 48px rgba(20,17,15,.25) !important; }
.pcard-enterprise .ptier { color: #e9a34b; }
.pcard-enterprise .plist li::before { background: none; color: #e9a34b; }
.ptier { font-family: var(--font-body); letter-spacing: .08em; }

/* ── Footer: legible, with a proper legal row ───────────────────────────── */
footer { background: #14110f; border-radius: 0; }
.footer-brand > p, .fcol a { color: #a39a91; }
.fcol a:hover { color: #fff; }
.fcol h5 { color: #e8e2dc; font-family: var(--font-body); letter-spacing: .08em; }
.footer-socials span { font-size: .78rem; font-weight: 500; color: #a39a91; padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.footer-bottom span, .footer-bottom a { color: #8a8178; }
.footer-bottom a:hover { color: #fff; }

/* ── Focus: visible for keyboard users everywhere ───────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #ea580c; outline-offset: 2px; border-radius: 6px; }

@media (max-width: 768px) {
  :root { --section-pad: 80px; }
}

/* ── Heavy display figures: 700 weight, tracking that lets letters breathe ── */
html .cta-h2 { font-weight: 700; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
html .pprice, html .pcard-pro .pprice { font-weight: 700; letter-spacing: -.03em; }
html .pprice-custom { font-weight: 700; letter-spacing: -.02em; }
html .proof-n { letter-spacing: -.02em; }
/* Section-specific eyebrow pills in styles.css: same quiet label everywhere */
html section .eyebrow { background: none !important; border: none !important; padding: 0 !important; box-shadow: none !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   Visual polish — static surfaces only. Hover beams, spotlights, spring lifts,
   reveals, marquees and the incident simulation are untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── One dark family: the live demo moves from navy to the brand's warm black ── */
#incident-sim {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(249,115,22,.08) 0%, transparent 70%),
    linear-gradient(180deg, #0d0b09 0%, #100c09 100%);
}

/* ── Platform: dark glass cards and quieter chips (icons keep their colours) ── */
#platform .bc {
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 100%);
  border-color: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.3);
  border-radius: 16px;
}
#platform .bc-fire {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(249,115,22,.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 100%);
  border-color: rgba(249,115,22,.3);
}
#platform .bc-header h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
#platform .bc > p { color: #a39a91; line-height: 1.65; }
#platform .bc-chips span {
  font-family: var(--font-body); font-size: .7rem; letter-spacing: 0; font-weight: 500;
  color: rgba(255,255,255,.66); background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09); border-radius: 6px;
}
#platform .bc-m strong { font-family: 'Outfit', var(--font-body); font-weight: 700; letter-spacing: -.02em; }
#platform .bc-m em { color: #8a8178; }

/* ── Security: four proper cards with a dark badge tile ─────────────────── */
#security .steps { gap: 20px; }
#security .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 30px;
  box-shadow: 0 1px 2px rgba(20,17,15,.04), 0 12px 32px -18px rgba(20,17,15,.14);
}
#security .step-num {
  align-self: flex-start;
  width: auto; min-width: 46px; height: 32px; padding: 0 10px;
  background: linear-gradient(180deg, #2b221b 0%, #17120e 100%);
  border: 1px solid rgba(249,115,22,.35);
  color: #f6b26b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
#security .step h3 { color: var(--ink); font-size: 1.02rem; }
#security .step p { color: var(--ink-3); font-size: .9rem; }

/* ── AI engine: white cards on a hairline, warm tint only on the default ── */
#models .model-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,17,15,.04), 0 12px 32px -20px rgba(20,17,15,.12);
}
#models .model-card.mc-highlight {
  background: radial-gradient(90% 120% at 100% 100%, rgba(249,115,22,.10) 0%, transparent 60%), #fff;
  border-color: rgba(249,115,22,.3);
}
#models .mc-name { font-family: 'Outfit', var(--font-body); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
#models .mc-chips span { border-radius: 6px; }

/* ── Use cases: the demo panels read as real app windows ────────────────── */
.demo-card {
  max-width: 460px;
  padding: 52px 26px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 20px 18px, #ff5f57 0 4.5px, transparent 5px),
    radial-gradient(circle at 36px 18px, #febc2e 0 4.5px, transparent 5px),
    radial-gradient(circle at 52px 18px, #28c840 0 4.5px, transparent 5px),
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) 0 36px / 100% 1px no-repeat,
    linear-gradient(#1a1511, #1a1511) 0 0 / 100% 36px no-repeat,
    #100d0b;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -30px rgba(20,17,15,.55), 0 12px 24px -12px rgba(20,17,15,.3);
}
.uc-demo { position: relative; }
.uc-demo::before {
  content: ''; position: absolute; inset: 8% 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(249,115,22,.16), transparent);
  filter: blur(8px);
}
.uc-copy h3 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.uc-copy > p { color: var(--ink-2); }
.uc-stat strong, .uc-stats strong { font-family: 'Outfit', var(--font-body); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.uc-pill { font-family: var(--font-body); letter-spacing: .08em; font-weight: 600; }
.uc-pill::before { box-shadow: none; }

/* ── Pricing: dark cards get a lit top edge, consistent radius ──────────── */
#pricing .pcard {
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 48px -28px rgba(20,17,15,.5);
}
#pricing .plist li { color: #c9c0b7; }

/* ── Testimonials and How it works: same glass card language as Platform ── */
#testimonials .tcard {
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 100%);
  border-color: rgba(255,255,255,.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
#how .step-num {
  background: linear-gradient(180deg, #2b221b 0%, #17120e 100%);
  border-color: rgba(249,115,22,.4);
  color: #f6b26b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
#how .step h3 { color: #fff; }
#how .step p { color: #a39a91; }

/* ── Final CTA: a proper input and button pair ──────────────────────────── */
#demo input[type="email"] {
  height: 52px; border-radius: 10px; border: 1px solid #d9d1c9; background: #fff;
  box-shadow: 0 1px 2px rgba(20,17,15,.05); font-family: var(--font-body); font-size: .95rem;
}
#demo input[type="email"]:focus { border-color: #ea580c; box-shadow: 0 0 0 4px rgba(234,88,12,.12); outline: none; }
#demo .btn-primary { height: 52px; border-radius: 10px; }

/* Pricing: the outline buttons were navy text on the black cards (invisible on the live site) */
#pricing .btn-outline { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); font-weight: 600; }
#pricing .btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: #fff; }


/* ═══════════════════════════════════════════════════════════════════════════
   Rich colour + full resolution
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ember-1: #ff6a00;
  --ember-2: #f97316;
  --ember-3: #fbbf24;
  --rich-grad: linear-gradient(110deg, #ff5e00 0%, #f97316 38%, #fb923c 62%, #fbbf24 100%);
}

/* Every second-line accent: one vivid ember gradient, light and dark sections alike */
.section-head .grad,
#models .section-head .grad, #how .section-head .grad, #usecases .section-head .grad,
#pricing .section-head .grad, #testimonials .section-head .grad,
section.section-alt:not(#how):not(#testimonials) .section-head .grad,
.cta-h2 .grad, h1.hero-h1 em {
  background: var(--rich-grad) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}

/* Dark sections: deeper ember atmosphere */
#platform, #how, #testimonials {
  background:
    radial-gradient(ellipse 65% 50% at 50% 0%, rgba(255,106,0,.30) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(220,38,38,.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 92% 80%, rgba(251,191,36,.12) 0%, transparent 65%),
    linear-gradient(180deg, #0c0907 0%, #170c05 50%, #0c0907 100%) !important;
}
#incident-sim {
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255,106,0,.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(251,191,36,.07) 0%, transparent 70%),
    linear-gradient(180deg, #0c0907 0%, #110b07 100%);
}

/* Platform icons: each tile glows in its own colour */
.bc-icon { position: relative; isolation: isolate; filter: saturate(1.2); }
.bc-icon::after {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: 12px;
  background: linear-gradient(135deg, var(--ic, #f97316, #ea580c));
  filter: blur(12px); opacity: .55; pointer-events: none;
}
#platform .bc-m strong { background: var(--rich-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Light sections: warm, layered grounds instead of flat fills */
#security {
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(251,146,60,.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 100% 100%, rgba(251,191,36,.14) 0%, transparent 60%),
    #fdf8f3 !important;
}
#models, #usecases, #pricing {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(251,146,60,.08) 0%, transparent 70%),
    #fff;
}
#security .step { border-top: 3px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--rich-grad) border-box; border-left-color: var(--line); border-right-color: var(--line); border-bottom-color: var(--line); }
#security .step-num { background: var(--rich-grad); color: #fff; border: none; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
#how .step-num { background: var(--rich-grad); color: #fff; border: none; box-shadow: 0 6px 18px -6px rgba(255,106,0,.6); }

/* Stats: ember numbers */
.proof-n, .proof-sfx, .uc-stat strong, .uc-stats strong, .why-roi-item strong {
  background: var(--rich-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Use cases: richer window glow */
.uc-demo::before { background: radial-gradient(closest-side, rgba(255,106,0,.26), rgba(251,191,36,.08) 60%, transparent); filter: blur(14px); }

/* Pricing: the featured card burns a little brighter */
#pricing .pcard-pro {
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(255,106,0,.38) 0%, transparent 60%),
    linear-gradient(180deg, #1c120b 0%, #0f0b08 100%) !important;
  border-color: rgba(251,146,60,.55) !important;
  box-shadow: 0 0 0 1px rgba(251,146,60,.25), 0 30px 60px -24px rgba(255,106,0,.45) !important;
}

/* CTA: a richer warm ground */
#demo {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(251,146,60,.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(251,191,36,.14) 0%, transparent 65%),
    #fff8f1 !important;
}

/* ── Full resolution: use the width of large displays ───────────────────── */
@media (min-width: 1680px) {
  .wrap, .nav-inner, .pm-inner { max-width: 1560px; padding-left: 48px; padding-right: 48px; }
  .hero-inner { max-width: 1640px; }
  html .section-head { max-width: 820px; }
  html .section-head h2 { font-size: 3.4rem; }
  html h1.hero-h1 { font-size: 4rem; }
  .section-head p, .hero-p { font-size: 1.15rem; }
}
@media (min-width: 2200px) {
  .wrap, .nav-inner, .pm-inner { max-width: 1840px; }
  .hero-inner { max-width: 1920px; }
  body { font-size: 17px; }
}

/* Metric / provider rows: three metrics side by side, four providers as a 2×2
   (the fourth, Google · Gemini, used to be clipped off the card) */
.bc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.bc-metrics:has(.bc-m:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Phones and tablets: the hero agent animation ─────────────────────────────
   Below 1024px the hero is one column. The canvas is taller than wide:
   js/index-1.js draws the orbit in its top square and the deploy log sits
   centred in the strip below. On phones it also spans the full screen width. */
@media (max-width: 1024px) {
  .hero-terminal-wrap { width: 100%; }
  .hero-anim-card { aspect-ratio: 1 / 1.3; min-height: 0; }
  .hero-anim-log {
    left: 50%; bottom: 4px;
    transform: translateX(-50%);
    align-items: center; text-align: center;
    width: max-content; max-width: 92%;
    font-size: 10px;
  }
}
@media (max-width: 1024px) {
  /* minmax(0,…): a wide child must never widen the column past the screen
     (Safari let the full-bleed animation stretch it, clipping the hero) */
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* full-bleed: cancel the hero's side padding instead of using 100vw */
  .hero-anim-card { width: auto; margin-inline: calc(-1 * var(--gutter, 18px)); }
}

/* Docs on phones: the button that opens the section drawer */
@media (max-width: 900px) {
  .docs-menu-btn {
    position: sticky; top: calc(var(--nav-h) + 8px); z-index: 80;
    align-items: center; gap: 8px;
    margin: 12px 16px 0; padding: 10px 14px; min-height: 44px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
    background: rgba(20,17,15,.92); color: #fff;
    font: 600 .9rem var(--font-body);
    box-shadow: 0 8px 24px -10px rgba(0,0,0,.5);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phones (≤600px): designed for the phone, not a squeezed desktop.
   Same look, header and animations; phone-sized spacing and type, a compact
   hero, swipeable card rows instead of long stacks, a smaller Ask Lenz
   button and a two-column footer.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --section-pad: 56px; --gutter: 18px; }
  .wrap, .nav-inner { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* Hero: left-aligned, tighter, buttons full width */
  .hero-inner { padding: calc(var(--nav-h) + 22px) var(--gutter) 28px; gap: 28px; text-align: left; }
  /* "Now live": a compact one-line pill with shorter wording */
  .hero-kicker { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; max-width: 100%;
                 padding: 7px 14px 7px 11px; border-radius: 999px; font-size: .8rem; line-height: 1.3; white-space: nowrap; margin-bottom: 18px; }
  .hero-kicker .k-long { display: none; }
  .hero-kicker .k-short { display: inline; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) {
  .hero-kicker .k-more { display: none; }
  html h1.hero-h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); line-height: 1.06; margin-bottom: 14px; }
  .hero-p { font-size: 1rem; line-height: 1.6; margin-bottom: 22px; max-width: none; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .hero-actions > a { width: 100%; justify-content: center; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 4px 0; }
  .hero-proof .proof-item { padding: 12px 14px; }
  .proof-n { font-size: 1.45rem; }
  .ai-ctx { margin-top: 12px; }

  /* Section heads: left-aligned, phone type scale */
  .section-head, html .section-head { text-align: left; margin-bottom: 28px; max-width: none; }
  html .section-head h2, #platform .section-head h2, #how .section-head h2, #models .section-head h2, html .cta-h2 {
    font-size: clamp(1.7rem, 7.6vw, 2.05rem); line-height: 1.12;
  }
  .section-head p { font-size: 1rem; line-height: 1.6; }
  #platform { padding-top: 64px; padding-bottom: 56px; }
  #usecases { padding-bottom: 24px; }

  /* Swipeable card rows: the next card peeks in */
  .bento, #security .steps, .models-grid, .tgrid, .pgrid {
    display: flex !important; flex-wrap: nowrap; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bento::-webkit-scrollbar, #security .steps::-webkit-scrollbar, .models-grid::-webkit-scrollbar,
  .tgrid::-webkit-scrollbar, .pgrid::-webkit-scrollbar { display: none; }
  .bento > *, #security .steps > *, .models-grid > *, .tgrid > *, .pgrid > * {
    flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; margin: 0;
  }
  .pgrid > * { flex-basis: 86%; }
  .pgrid { padding-top: 14px; }
  #security .step { padding: 24px 22px; }
  .bc { padding: 22px; }

  /* Position dots under each swipeable row (added by script.js) */
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .swipe-dots span { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; transition: width .25s, opacity .25s; }
  .swipe-dots span.on { width: 18px; opacity: .9; }
  #platform .swipe-dots, #testimonials .swipe-dots { color: #fb923c; }
  #security .swipe-dots, #models .swipe-dots, #pricing .swipe-dots { color: #ea580c; }

  /* How it works: a compact timeline */
  #how .steps { gap: 26px; }
  #how .step { gap: 10px; }

  /* Use cases: less padding around each story */
  .uc-row, .uc-row-rev { padding: 36px 0 !important; gap: 24px !important; }
  .uc-copy h3 { font-size: 1.4rem; }
  .demo-card { padding: 48px 18px 18px; }

  /* Live demo: readable step labels */
  .sp-lbl { font-size: .62rem; }

  /* CTA */
  .cta-section { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* Footer: brand on top, links in two columns */
  .footer-top { gap: 32px; padding-bottom: 32px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px; }
  footer { padding: 44px 0 28px; }

  /* Ask Lenz: smaller, tucked into the corner */
  html body #lz-wrap { transform: scale(.78); transform-origin: bottom right; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* Background canvas: drawn at the screen's pixel density, shown at viewport size */
#bg-canvas { width: 100vw; height: 100vh; }

/* Wide-gamut screens (recent iPhones, iPads, Macs): a deeper ember than sRGB allows */
@supports (color: color(display-p3 1 0 0)) {
  @media (color-gamut: p3) {
    :root {
      --rich-grad: linear-gradient(110deg, color(display-p3 1 .36 0) 0%, color(display-p3 .98 .45 .1) 38%, color(display-p3 1 .58 .25) 62%, color(display-p3 1 .76 .12) 100%);
    }
    .btn-primary, .nav-cta { background: color(display-p3 .93 .35 .02); }
    .btn-primary:hover, .nav-cta:hover { background: color(display-p3 .8 .25 .02); }
  }
}

/* One-column grids on phones/tablets: a wide child (terminal mockups) must
   never stretch the column past the screen — Safari did, clipping the text */
@media (max-width: 900px) {
  .feat-ov-inner { grid-template-columns: minmax(0, 1fr) !important; }
  .feat-ov-inner > *, .hero-inner > * { min-width: 0; }
}
/* Wide reference tables scroll sideways inside their own box on phones */
@media (max-width: 760px) {
  .config-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .config-table td:last-child { white-space: normal; min-width: 260px; }
}

/* Hero "Now live" pill: dark charcoal like the header, white text, orange link */
@media (min-width: 601px) { .hero-kicker .k-short { display: none; } }
.hero-kicker { background: rgba(20,17,15,.88); border: 1px solid rgba(255,255,255,.12); color: #f3ede6; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.hero-kicker a { color: #fb923c; }
.hero-kicker a:hover { color: #fdba74; }

/* Phones: hero stats card in dark charcoal, matching the "Now live" pill (desktop stays white) */
@media (max-width: 600px) {
  .hero-proof { background: rgba(20,17,15,.88); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px -14px rgba(0,0,0,.55); }
  .hero-proof .proof-l { color: #b3a89d; }
}

/* Phones: the agent animation sits on its own dark stage, continuing the
   charcoal stats card above it; js/index-1.js draws light labels here */
@media (max-width: 600px) {
  .hero-anim-card {
    background:
      radial-gradient(ellipse 75% 50% at 50% 40%, rgba(255,106,0,.24) 0%, transparent 70%),
      radial-gradient(ellipse 60% 30% at 50% 100%, rgba(251,191,36,.08) 0%, transparent 70%),
      linear-gradient(180deg, #17110d 0%, #0c0907 100%);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .hero-anim-log { font-size: 11px; }
  .hero-anim-card { aspect-ratio: 1 / 1.5; }
  .hero-inner { padding-bottom: 0; }
  .hal { color: rgba(251,146,60,.95); }
  .hal .ok { color: #4ade80; }
  .hal .w { color: #fbbf24; }
}

/* Desktop: the agent animation fits the visible height, so the outer ring is
   never cut off below the fold (square, up to its original 800px) */
@media (min-width: 1025px) {
  .hero-anim-card {
    width: min(100%, max(520px, calc(100vh - 215px)));
    margin-inline: auto;
  }
}

/* Boot log sits a little lower, clear of the outer ring */
@media (min-width: 1025px) { .hero-anim-log { bottom: 2px; } }
