/* ============================================================
   Infere · bento section (Features + AI Gateway pages)
   Replaces .story-section--problems + .story-section--capabilities.
   Six surfaces in one block; two tiles carry a graphic.
   Uses the site's own tokens: --color-*, --font-*, --gradient-*.
   Every class is prefixed .iz- so nothing else on the site is hit.
   ============================================================ */

.iz-bento{
  background: var(--color-bg);
  /* more air between the hero and this section */
  padding: 148px 0 92px;
  color: var(--color-text);
}
.iz-bento .iz-panel{
  /* no purple wash in the corner: the panel is a flat dark card */
  background:linear-gradient(160deg, #110827 0%, #0D0620 58%, #0A0119 100%);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 44px;
  box-sizing: border-box;
}
.iz-bento .iz-panel--plain{
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.iz-bento .iz-head{max-width:820px;margin:0 0 28px}
.iz-bento .iz-eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-primary-light);
}
.iz-bento .iz-h2{
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 10px;
  text-wrap: balance;
}
.iz-bento .iz-hl{color: var(--color-primary-light)}
/* one line at desktop; wraps only when the column can't hold it */
.iz-bento .iz-lede{
  margin: 0; max-width: 68ch;
  font-family: var(--font-sans);
  font-size: .97rem; line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.iz-bento .iz-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.iz-bento .iz-col{display:flex;flex-direction:column;gap:14px;min-width:0}

.iz-bento .iz-card{
  background: #120826;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  min-width: 0;
  box-sizing: border-box;
}
.iz-bento .iz-card.slim{
  display: grid;
  grid-template-columns: 24px minmax(0,auto) minmax(0,1fr);
  align-items: center; gap: 14px;
  padding: 18px 22px; min-height: 84px;
}
.iz-bento .iz-ic{display:inline-flex;width:22px;height:22px;color:var(--color-primary-light)}
.iz-bento .iz-ic svg{width:22px;height:22px}
.iz-bento .iz-card.slim h3{
  font-family: var(--font-heading);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--color-heading); margin: 0; text-wrap: balance;
}
.iz-bento .iz-card.slim p{
  margin: 0; font-family: var(--font-sans);
  font-size: .78rem; line-height: 1.45;
  color: var(--color-text-secondary);
  justify-self: end; text-align: right; max-width: 32ch;
}

.iz-bento .iz-card.tall{
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 26px 22px; flex: 1; overflow: hidden; position: relative;
}
.iz-bento .iz-tall-head{text-align:center}
.iz-bento .iz-tall-head h3,
.iz-bento .iz-tall-foot h3{
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--color-heading); margin: 0 0 4px;
}
.iz-bento .iz-tall-head h3.hl,
.iz-bento .iz-tall-foot h3.hl{color: var(--color-accent)}
.iz-bento .iz-tall-head p,
.iz-bento .iz-tall-foot p{
  margin: 0 auto; font-family: var(--font-sans);
  font-size: .8438rem; line-height: 1.55;
  color: var(--color-text-secondary); max-width: 38ch;
}
.iz-bento .iz-tall-foot{text-align:center}

.iz-bento .iz-tall-art{
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  flex: 1; min-height: 0; container-type: inline-size;
}
.iz-bento .iz-big{
  font-family: var(--font-heading);
  /* 20cqw of the art column: "$0.03" is ~2.5x its font-size wide, so this
     keeps it inside the card at every width instead of clipping the last glyph */
  font-size: clamp(44px, 20cqw, 112px); font-weight: 700; white-space: nowrap;
  letter-spacing: -.05em; line-height: 1;
  background-image: linear-gradient(150deg, #6836F2 0%, #8B7BFF 45%, #CD82FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.iz-bento .iz-sub-big{font-size:.8125rem;color:var(--color-text-muted);letter-spacing:.02em}
.iz-bento .iz-spark{position:absolute;left:0;right:0;bottom:-4px;width:100%;height:60px;opacity:.5}

/* ---- evaluator gauge (Features page) ---- */
.iz-bento .iz-rings{flex:1;display:grid;place-items:center;min-height:200px}
.iz-bento .iz-rings svg{width:100%;max-width:320px;height:auto}

/* ---- fallback chain (AI Gateway page) ---- */
.iz-bento .iz-chain{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  flex:1;justify-content:center;min-height:0;
}
.iz-bento .iz-node{
  width:100%;max-width:290px;
  display:grid;grid-template-columns:1fr auto;gap:2px 10px;
  border:1px solid var(--color-border);border-radius:12px;
  padding:9px 12px;background:rgba(255,255,255,.02);
}
.iz-bento .iz-node .iz-n-k{
  font-size:.594rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--color-text-muted);font-weight:600;
}
.iz-bento .iz-node b{
  grid-column:1;font-family:var(--font-sans);font-size:.8125rem;font-weight:600;
  color:var(--color-text);white-space:nowrap;
}
.iz-bento .iz-node .iz-code{
  grid-column:2;grid-row:1 / span 2;align-self:center;
  font-family:var(--font-mono);font-size:.6875rem;color:var(--color-text-muted);
}
.iz-bento .iz-node.primary{opacity:.62;border-style:dashed}
.iz-bento .iz-node.primary b{text-decoration:line-through;text-decoration-color:rgba(255,90,122,.7)}
.iz-bento .iz-node.ok{border-color:rgba(139,123,255,.55);background:rgba(104,54,242,.14)}
.iz-bento .iz-node .iz-code.good{color:var(--color-emerald)}
.iz-bento .iz-node.ghost{opacity:.5}
.iz-bento .iz-arrow{width:24px;height:26px}
.iz-bento .iz-hdr{
  margin:8px 0 0;font-family:var(--font-mono);font-size:.6875rem;
  color:var(--color-accent);
}

@media (max-width:1080px){
  .iz-bento{padding:64px 0}
  .iz-bento .iz-panel{padding:32px 24px}
  .iz-bento .iz-lede{white-space:normal}
  .iz-bento .iz-card.slim{grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto}
  .iz-bento .iz-card.slim p{grid-column:2;justify-self:start;text-align:left;max-width:none}
}
@media (max-width:820px){
  .iz-bento .iz-grid{grid-template-columns:minmax(0,1fr)}
  .iz-bento .iz-card.slim h3{white-space:normal}
  .iz-bento .iz-big{font-size:72px}
}

/* ============================================================
   Homepage · FAQ and CTA pinned to the features-page metrics.
   IDs are used deliberately: the landing sheet sets very large
   section headings, so class-level selectors lose the cascade.
   ============================================================ */
/* the homepage does not load styles.css, so the tokens are re-declared here */
#faq, #cta{
  --color-bg:#09011A;
  --color-border:rgba(231,231,231,.10);
  --color-heading:#F2F1F6;
  --color-text:#E7E4F2;
  --color-text-secondary:#B2ABC6;
  --color-primary:#6836F2;
  --color-primary-light:#8B7BFF;
  --color-accent:#CD82FF;
  --gradient-primary:linear-gradient(94deg,#6836F2 0%,#CD82FF 100%);
  --font-heading:'Outfit','NunitoSans','Inter',-apple-system,'Segoe UI',sans-serif;
  --font-sans:'Inter','NunitoSans',-apple-system,'Segoe UI',sans-serif;
}
#faq{background:var(--color-bg);padding:92px 0}
#faq .wrap{max-width:1300px;margin:0 auto;padding:0 24px;box-sizing:border-box}
#faq h2{
  font-family:var(--font-heading);font-size:clamp(24px,2.2vw,32px);font-weight:700;
  line-height:1.12;letter-spacing:-.02em;color:var(--color-heading);margin:0 0 20px;
}
/* the accordion keeps landing.css's grid-rows animation and the JS that drives it;
   these rules only retune type, spacing and colour to the features page. */
#faq .faq-list{display:block;border-top:0;margin:0;padding:0}
#faq .faq-item{border:0;border-bottom:1px solid var(--color-border);padding:0;background:none}
#faq .faq-q{
  width:100%;background:none;border:0;cursor:pointer;text-align:left;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 0;font-family:var(--font-sans);font-size:16.32px;font-weight:600;line-height:1.7;
  color:var(--color-heading);transition:color .2s ease;
}
#faq .faq-q:hover{color:var(--color-heading)}
#faq .faq-sign{flex:none;width:20px;height:20px;position:relative;transition:transform .34s cubic-bezier(.4,0,.2,1)}
#faq .faq-sign::before,#faq .faq-sign::after{
  content:"";position:absolute;background:var(--color-primary-light);border-radius:1px;
}
#faq .faq-sign::before{left:3px;top:9.5px;width:14px;height:1.5px}
#faq .faq-sign::after{left:9.5px;top:3px;width:1.5px;height:14px}
#faq .faq-item[data-open] .faq-sign{transform:none}
#faq .faq-item[data-open] .faq-sign::after{opacity:0}
#faq .faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.4,0,.2,1)}
#faq .faq-item[data-open] .faq-a{grid-template-rows:1fr}
#faq .faq-a>div{overflow:hidden}
#faq .faq-a p{
  margin:0;padding:0 0 18px;font-family:var(--font-sans);font-size:15.2px;line-height:1.65;
  color:var(--color-text-secondary);max-width:96ch;
}

#cta{
  background:var(--color-bg);
  padding:100px 0;
  position:relative;
  overflow:hidden;
}
#cta .hero-dots{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
#cta .wrap{position:relative;z-index:2}
#cta .wrap{max-width:1300px;margin:0 auto;padding:0 24px;box-sizing:border-box}
#cta .cta-box{
  background:var(--color-bg);border:1px solid var(--color-border);border-radius:18px;
  padding:72px 48px;text-align:center;box-sizing:border-box;
  position:relative;overflow:hidden;
}
#cta .cta-box::before{
  content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;
  background:radial-gradient(circle at 30% 40%, rgba(104,54,242,.10) 0%, transparent 50%);
  pointer-events:none;
}
#cta .cta-box > *{position:relative}
#cta h2{
  font-family:var(--font-heading);font-size:clamp(30px,3vw,44px);font-weight:700;
  line-height:1.12;letter-spacing:-.022em;color:var(--color-heading);margin:0 0 16px;
}
#cta .iz-grad{
  background-image:var(--gradient-primary);background-repeat:no-repeat;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
#cta .btn-secondary{
  background:transparent;color:#E7E4F2;border:1px solid rgba(231,231,231,.18);
}
#cta .btn-secondary:hover{border-color:rgba(231,231,231,.34)}
#cta p{
  font-family:var(--font-sans);font-size:16.8px;line-height:1.7;
  color:var(--color-text-secondary);max-width:540px;margin:0 auto 36px;
}
#cta .btn{font-size:18px;font-weight:600;line-height:1.8;padding:16px 40px;border-radius:8px}
@media (max-width:720px){
  #faq{padding:64px 0}
  #cta{padding:64px 0}
  #cta .cta-box{padding:44px 20px}
  #faq .faq-q{font-size:15.5px}
  #cta h2{font-size:30px}
}

/* ============================================================
   Homepage · feature walkthrough: the second sentence of the
   headline is a subtitle, and the block below it sits closer.
   Selectors are element + two classes so they beat
   feature-walkthrough.css, which loads after this file.
   ============================================================ */
section.fw .fw-head{margin-bottom:44px}
section.fw .fw-title-em{
  background-image:linear-gradient(94deg,#6836F2 0%,#CD82FF 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
section.fw .fw-title-accent{
  display:block;
  margin-top:12px;
  font-size:clamp(16px,1.4vw,19px);
  font-weight:400;
  line-height:1.6;
  letter-spacing:0;
  background:none;
  -webkit-background-clip:border-box;
  background-clip:border-box;
  -webkit-text-fill-color:currentColor;
  color:#B2ABC6;
  max-width:62ch;
}
@media (max-width:560px){
  section.fw .fw-head{margin-bottom:32px}
  section.fw .fw-title-accent{font-size:16px}
}

/* ============================================================
   Homepage · Getting started: the section carried 140px of padding
   top and bottom around a 357px block, which read as an empty band
   between it and the FAQ. Tightened, and the link sits closer to
   the sentence it follows.
   ============================================================ */
section.steps.gs2{padding:88px 24px}
section.steps.gs2 .gs2-link{margin-top:18px}
section.steps.gs2 .gs2-intro p{margin-top:12px}
@media (max-width:720px){
  section.steps.gs2{padding:64px 20px}
}

/* ============================================================
   Homepage · hero: copy left, product panel right — the split
   Braintrust uses on /product/observe. Selectors are element +
   class so they beat landing.css, which loads after this file.
   ============================================================ */
section.hero .hero-split{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:clamp(28px,3.6vw,56px);
  align-items:center;
  padding-bottom:clamp(40px,6vh,72px);
}
section.hero .hero-split .hero-inner{max-width:none;margin:0;text-align:left}
section.hero .hero-split h1{font-size:clamp(36px,4vw,58px);line-height:1.06;text-align:left}
section.hero .hero-split .lede{margin:18px 0 0;max-width:46ch;text-align:left}
section.hero .hero-split .hero-cta{justify-content:flex-start;margin-top:28px}
section.hero .hero-split .hero-note{text-align:left}
section.hero .hero-split .hl-app-wrap{
  width:100%;height:clamp(340px,44vh,430px);margin:0;
  -webkit-mask-image:none;mask-image:none;
}
section.hero .hero-split .hl-app{border-radius:14px;border-bottom:1px solid #2B2548}
@media (max-width:1024px){
  section.hero .hero-split{grid-template-columns:minmax(0,1fr);gap:32px;padding-bottom:8px}
  section.hero .hero-split h1{font-size:clamp(30px,5.6vw,44px)}
  section.hero .hero-split .hl-app-wrap{height:clamp(300px,42vh,380px)}
}
@media (max-width:620px){
  section.hero .hero-split .hl-app-wrap{height:300px}
}

/* bento: a tall card may never clip its own copy */
.iz-bento .iz-card.tall{min-height:fit-content}

/* ============================================================
   Features page · hero in the Braintrust split: copy left,
   the pipeline right. Vertical flow so it fits a 55% column.
   ============================================================ */
.story-hero--split .container{
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  gap:clamp(32px,4vw,64px);
  column-gap:clamp(56px,6.4vw,108px);
  /* the copy is shorter than the visual now that the chips are gone: both
     columns start on the same top line instead of the copy floating down */
  align-items:start;
}
.story-hero--split .story-hero__copy{max-width:none;margin:0;text-align:left}
.story-hero--split .story-hero h1,
.story-hero--split h1{max-width:17ch}
.story-hero--split .lede{margin:0;max-width:46ch}
.story-hero--split .actions{justify-content:flex-start}
.story-hero--split .obs-chips{justify-content:flex-start}
.story-hero--split .story-visual{margin-top:0}
.story-hero--split .story-visual .pm,
.story-hero--split .story-visual .flow{width:100%;max-width:520px;margin:0 auto}
.story-hero--split .flow--vertical{max-height:min(56vh,520px);height:auto}
/* the vertical flow renders smaller than the wide one, so its type goes up */
.story-hero--split .flow--vertical .t{font-size:17px;font-weight:600}
.story-hero--split .flow--vertical .s{font-size:12.5px;fill:#B2ABC6}
.story-hero--split .flow--vertical .box{stroke:rgba(231,231,231,.16)}

/* showcase heroes: the app-window mock is designed for ~1120px, so the
   column takes the larger share and the mock is zoomed to fit its own
   design width rather than having its table cropped. */
.story-hero--showcase.story-hero--split .container{
  grid-template-columns:minmax(0,.40fr) minmax(0,.60fr);
  column-gap:clamp(56px,6.4vw,108px);
}
.story-hero--showcase.story-hero--split .story-hero__preview .aw{zoom:.72}

/* The AI Gateway hero carries a real capture of the Models screen. The column
   starts on the same top line as the headline and runs down to the section
   divider, so the cut at the bottom reads as the app continuing, not as a
   floating card that fades out. */
.story-hero--showcase.story-hero--split .container{align-items:stretch}
.story-hero--showcase.story-hero--split .story-hero__preview{
  /* no height:100% here — the grid stretch must hand over the row height
     minus the margin, otherwise the panel overflows the divider by 18px */
  align-self:stretch;
  /* 18px = the headline's own leading above its first glyph, so the panel's
     top edge sits on the headline's cap line, not 18px above it */
  margin:18px 0 0;
}
.story-hero--split .iz-shot-wrap{
  position:relative;height:100%;border-radius:14px 14px 0 0;overflow:hidden;background:#0E0724;
  border:1px solid rgba(231,231,231,.12);border-bottom:0;
  box-shadow:none;
  /* .story-hero__preview carries a bottom fade in styles.css (mask-image).
     The capture must stay opaque to the divider, so the mask is off. */
  -webkit-mask-image:none;mask-image:none;
}
.story-hero--split .iz-shot{
  display:block;width:100%;height:100%;object-fit:cover;object-position:top left;
}
/* The copy column is ~442px. The headline size follows that column (cqw), and
   the second line is set nowrap, so "Set the rules per key." is always one
   line — never a single orphan word, at any width. */
.story-hero--showcase.story-hero--split .story-hero__copy{container-type:inline-size}
.story-hero--showcase.story-hero--split h1{
  font-weight:700;
  /* same size as the section headlines under the hero, on every feature page */
  font-size:clamp(30px,3vw,43.2px);
  line-height:1.08;
  letter-spacing:-.03em;
  hyphens:none;
}
.story-hero--showcase.story-hero--split h1 .gradient-text{
  display:inline-block;
  white-space:nowrap;
}
.story-hero--split .story-hero__preview{
  width:100%;max-width:100%;margin:0;height:auto;
}
.story-hero--split .story-hero__preview > .aw{
  border-radius:14px;border-bottom:1px solid #2f2749;
}
.story-hero--split .story-hero__preview .aw-table-wrap,
.story-hero--split .story-hero__preview .aw-body{overflow:hidden}

@media (max-width:1024px){
  .story-hero--showcase.story-hero--split .story-hero__preview .aw{zoom:.82}
  .story-hero--split .container{grid-template-columns:minmax(0,1fr);gap:36px}
  .story-hero--split .story-hero h1,
  .story-hero--split h1{max-width:none}
  .story-hero--split .story-visual .flow{max-width:440px}
}

/* ============================================================
   AI Gateway · limits tile (budget + rate caps)
   ============================================================ */
.iz-bento .iz-parts{
  flex:1;display:flex;flex-direction:column;justify-content:center;gap:14px;
  min-height:0;padding:6px 2px;
}
.iz-bento .iz-parts-bar{
  display:flex;gap:3px;height:10px;border-radius:999px;overflow:hidden;
  background:rgba(231,231,231,.10);
}
.iz-bento .iz-parts-bar i{display:block;height:100%}
.iz-bento .iz-parts-bar .p1{background:#6836F2}
.iz-bento .iz-parts-bar .p2{background:#8B7BFF}
.iz-bento .iz-parts-bar .p3{background:#CD82FF}
.iz-bento .iz-parts-bar .p4{background:#E0B4FF}
.iz-bento .iz-parts-bar .p5{background:#8B7BFF}
.iz-bento .iz-cap-list--tight li{padding:5px 0;font-size:.75rem}
.iz-bento .iz-limits{
  flex:1;display:flex;flex-direction:column;justify-content:center;gap:18px;
  min-height:0;padding:6px 2px;
}
.iz-bento .iz-budget-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--color-text-secondary)}
.iz-bento .iz-budget-top b{font-family:var(--font-heading);font-size:20px;font-weight:700;color:var(--color-heading)}
.iz-bento .iz-bar{position:relative;height:10px;border-radius:999px;background:rgba(231,231,231,.10);margin:9px 0 7px}
.iz-bento .iz-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,#6836F2,#CD82FF)}
.iz-bento .iz-bar .iz-mark{position:absolute;top:-5px;bottom:-5px;width:2px;border-radius:1px;background:var(--color-accent,#CD82FF);box-shadow:0 0 6px rgba(205,130,255,.6)}
.iz-bento .iz-budget-note{font-size:11.5px;color:var(--color-text-secondary)}
.iz-bento .iz-cap-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.iz-bento .iz-cap-list li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  font-size:12.5px;color:var(--color-text-secondary);border-top:1px solid rgba(231,231,231,.08);padding:8px 0}
.iz-bento .iz-cap-list b{font-weight:600;color:var(--color-heading);white-space:nowrap}
@media (max-width:520px){.iz-bento .iz-cap-list{grid-template-columns:1fr}}

/* ---- one type scale on the feature pages: the hero headline and the section
   headlines share a weight and a size, and every subhead sits on 16.5/1.68 ---- */
.iz-bento .iz-h2{
  font-weight:700;
  font-size:clamp(28px,3vw,43.2px);
  line-height:1.1;
  letter-spacing:-.022em;
}
.iz-bento .iz-lede,
.story-hero--split .lede{font-size:16.5px;line-height:1.68;font-weight:400}

/* ---- the features hero diagram sits in the same panel as the captures ---- */
.story-hero--split .story-visual{
  position:relative;display:flex;align-items:center;justify-content:center;
  height:100%;padding:18px 10px;overflow:hidden;
  border-radius:14px 14px 0 0;border:1px solid rgba(231,231,231,.12);border-bottom:0;
  background:
    radial-gradient(72% 62% at 50% 0%, rgba(104,54,242,.20) 0%, rgba(104,54,242,0) 70%),
    #0E0724;
  box-shadow:none;
}
.story-hero--split:not(.story-hero--showcase){padding-bottom:clamp(40px,5vh,64px)}
.story-hero--split:not(.story-hero--showcase) .container{align-items:stretch}

/* the loop, animated: each station lights in turn, the dashed return wire runs */
@keyframes izNode{
  0%,100%{fill:rgba(255,255,255,.02);stroke:rgba(231,231,231,.16)}
  6%{fill:rgba(104,54,242,.30);stroke:rgba(139,123,255,.90)}
  18%{fill:rgba(255,255,255,.02);stroke:rgba(231,231,231,.16)}
}
@keyframes izDash{to{stroke-dashoffset:-16}}
@keyframes izDraw{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.story-hero--split .story-visual .flow{animation:izDraw .7s ease-out both}
.story-hero--split .story-visual .flow .box{animation:izNode 7.5s ease-in-out infinite}
.story-hero--split .story-visual .flow .box:nth-of-type(1){animation-delay:0s}
.story-hero--split .story-visual .flow .box:nth-of-type(2){animation-delay:1.5s}
.story-hero--split .story-visual .flow .box:nth-of-type(3){animation-delay:3s}
.story-hero--split .story-visual .flow .box:nth-of-type(4){animation-delay:4.5s}
.story-hero--split .story-visual .flow .box:nth-of-type(5){animation-delay:6s}
.story-hero--split .story-visual .flow .wire--loop{animation:izDash 2.2s linear infinite}
@media (prefers-reduced-motion:reduce){
  .story-hero--split .story-visual .flow,
  .story-hero--split .story-visual .flow .box,
  .story-hero--split .story-visual .flow .wire--loop{animation:none}
}

/* ---- the capture reads as a browser window: chrome bar with the app's URL,
   then the content area at close to 1:1, cut off at the section divider ---- */
.story-hero--split .iz-shot-wrap{display:block}
.story-hero--split .iz-shot-wrap.iz-window{display:flex;flex-direction:column}
.iz-win-bar{
  display:flex;align-items:center;gap:6px;flex:0 0 auto;
  height:38px;padding:0 14px;
  background:#0A0517;border-bottom:1px solid rgba(231,231,231,.09);
}
.iz-win-dots{display:flex;align-items:center;gap:6px}
.iz-dot{width:9px;height:9px;border-radius:50%;background:rgba(231,231,231,.16)}
.iz-dot:nth-child(2){background:rgba(231,231,231,.12)}
.iz-dot:nth-child(3){background:rgba(231,231,231,.09)}
.iz-win-url{
  flex:1;text-align:center;margin-left:-39px;
  font-family:var(--font-sans);font-size:12px;font-weight:500;letter-spacing:.01em;
  color:#8E87A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.iz-win-body{flex:1;min-height:0;overflow:hidden}
.story-hero--split .iz-win-body .iz-shot{width:100%;height:100%;object-fit:cover;object-position:top left}

/* the features hero follows the same column split and the same headline
   scale as every other feature page */
.story-hero--split .story-hero__copy{container-type:inline-size}
.story-hero--split h1{
  /* the same size the section headlines below the hero use */
  font-size:clamp(30px,3vw,43.2px);
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:700;
  hyphens:none;
}

/* the soft glow the homepage hero carries, sitting under the panel at the
   bottom of every feature hero so the section eases into the next one */
.story-hero--split{position:relative}
.story-hero--split::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-140px;
  width:min(1180px,92%);height:320px;pointer-events:none;z-index:0;
  background:radial-gradient(closest-side, rgba(104,54,242,.30) 0%, rgba(69,0,249,.16) 46%, rgba(69,0,249,0) 76%);
  filter:blur(42px);
}
.story-hero--split > .container{position:relative;z-index:1}

/* the divider used to blur into the next section, then it got sliced. This
   puts the blur back without making the capture see-through: the last 150px
   blur and dissolve into the section's own colour (#09011A), opaque, so the
   starfield never shows through the screenshot. */
/* (the captures stay crisp: no overlay on the panel) */

/* ---- one accent, everywhere: the purple → pink ramp. Buttons, eyebrows and
   highlighted words all use the same gradient instead of a solid beside it. ---- */
.btn-primary,
.btn.btn-primary,
.nav-cta{
  background-image:linear-gradient(94deg,#6836F2 0%,#A45CFB 55%,#CD82FF 100%);
  background-color:#6836F2;
  border-color:transparent;
  color:#fff;
}
.btn-primary:hover,
.btn.btn-primary:hover,
.nav-cta:hover{
  background-image:linear-gradient(94deg,#7A4CF7 0%,#B26CFF 55%,#D98CFF 100%);
  background-color:#7A4CF7;
}
.overline,
.iz-eyebrow,
.eyebrow,
.iz-bento .iz-hl,
.gradient-text,
.iz-win-url{
  background-image:linear-gradient(94deg,#6836F2 0%,#A45CFB 52%,#CD82FF 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
/* links and small accents that were flat purple */
.iz-bento .iz-hdr{color:#B98CFF}

/* the hero background no longer cuts off at the divider: the dotted field
   fades out through the last third and a soft glow carries it into the next
   section. Nothing here touches the screenshot. */
.story-hero--split .story-dots{
  -webkit-mask-image:linear-gradient(to bottom,#000 42%,rgba(0,0,0,.55) 74%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 42%,rgba(0,0,0,.55) 74%,transparent 100%);
}
.story-hero--split::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-180px;
  width:min(1500px,115%);height:420px;pointer-events:none;z-index:0;
  background:radial-gradient(closest-side,rgba(104,54,242,.40) 0%,rgba(104,54,242,.16) 50%,rgba(104,54,242,0) 78%);
  filter:blur(70px);
}

/* ---- the features hero uses the homepage's #capabilities graphics: the six
   line drawings, purple only, looping one after another ---- */
.iz-caps{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;
}
.iz-caps figure{
  margin:0;padding:14px 12px;border-radius:12px;
  border:1px solid rgba(231,231,231,.07);background:rgba(255,255,255,.02);
}
.iz-caps .sc-vis{display:block;width:100%;height:auto}
.iz-caps .sc-vis path,.iz-caps .sc-vis circle{stroke:#8B7BFF;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.iz-caps .sc-vis .dim{fill:#8B7BFF;stroke:none}
.iz-caps .sc-vis .hot,.iz-caps .sc-vis .tag,.iz-caps .sc-vis .base{stroke:#CD82FF}
.iz-caps .sc-vis .hot-f,.iz-caps .sc-vis .hotbar,.iz-caps .sc-vis .ok{fill:#CD82FF;stroke:none}
.iz-caps .sc-vis .core{fill:#6836F2;stroke:#CD82FF;stroke-width:1.4}
.iz-caps .sc-vis .node{fill:#16102C}
.iz-caps .sc-vis .tag{fill:rgba(205,130,255,.16);stroke-width:1.2}
.iz-caps .sc-vis .bar{fill:rgba(139,123,255,.35)}
.iz-caps .sc-vis .track{fill:rgba(139,123,255,.14)}
.iz-caps .sc-vis .fill{fill:#8B7BFF}
.iz-caps .sc-vis .mark{stroke:#CD82FF;stroke-dasharray:3 3}
.iz-caps .sc-vis .check{stroke:#09011A;stroke-width:2.2}
.iz-caps .sc-vis .row{fill:rgba(139,123,255,.08);stroke:rgba(139,123,255,.18);stroke-width:1}
.iz-caps .sc-vis .ln{fill:rgba(231,231,231,.22)}
.iz-caps .sc-vis .bad{fill:#FF5A7A;stroke:none}
.iz-caps .sc-vis .a-ring{fill:none;stroke:#CD82FF}
.iz-caps .a-draw,.iz-caps .a-pop,.iz-caps .a-grow,.iz-caps .a-growy,.iz-caps .a-slide{
  animation:izCapIn 7s ease var(--d,0s) infinite both;
}
.iz-caps .a-pop{transform-box:fill-box;transform-origin:center}
.iz-caps .a-grow{transform-box:fill-box;transform-origin:left center}
.iz-caps .a-growy{transform-box:fill-box;transform-origin:center bottom}
@keyframes izCapIn{
  0%{opacity:0}
  8%{opacity:1}
  72%{opacity:1}
  88%{opacity:0}
  100%{opacity:0}
}
@media (prefers-reduced-motion:reduce){.iz-caps *{animation:none!important}}

/* ---- the homepage hero's soft blurred scene, carried onto every feature hero ---- */
.story-hero--split::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(48% 42% at 24% 6%, rgba(104,54,242,.22) 0%, rgba(104,54,242,0) 72%),
    radial-gradient(42% 38% at 78% 12%, rgba(205,130,255,.16) 0%, rgba(205,130,255,0) 74%),
    radial-gradient(56% 46% at 52% 98%, rgba(104,54,242,.18) 0%, rgba(104,54,242,0) 76%);
  filter:blur(48px);
}

/* on the pages that show the app window, the background carries no purple
   light at all: the haze and the glow are off, the capture sits on plain ink */
.story-hero--showcase.story-hero--split::before,
.story-hero--showcase.story-hero--split::after{
  background:none;filter:none;opacity:0;
}

/* the bottom border of the capture softens instead of ending in a cut. It is a
   blur plus an opaque wash into the section colour, so nothing shows through
   and nothing of the platform sits below the hero's own section. */
/* the capture dissolves over the last quarter of the hero: the content sinks
   to the section colour first, then the panel itself fades out, so the bottom
   border disappears into the dotted field exactly like the homepage scene */
/* The window is a floating panel again: it ends above the section divider and
   the dotted field fades out underneath it, the way the homepage scene does.
   Nothing is ever drawn on top of the capture. */
.story-hero--showcase.story-hero--split{padding-bottom:clamp(40px,5vh,64px)}
.story-hero--showcase.story-hero--split .story-hero__preview{
  align-self:start;margin:18px 0 0;height:auto;max-height:none;
}
.story-hero--showcase.story-hero--split .iz-shot-wrap{
  height:auto;border-radius:14px;border-bottom:1px solid rgba(231,231,231,.12);
  -webkit-mask-image:none;mask-image:none;
}
.story-hero--showcase.story-hero--split .iz-shot-wrap::after{content:none}
.story-hero--showcase.story-hero--split .iz-shot{
  height:auto;object-fit:contain;
}
.story-hero--split .story-dots{
  /* the dotted field stays full strength right through the empty band under
     the window, then drops away in the last ~140px only */
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 64%,rgba(0,0,0,.85) 80%,rgba(0,0,0,.35) 93%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 64%,rgba(0,0,0,.85) 80%,rgba(0,0,0,.35) 93%,transparent 100%);
}

/* ---- one headline size and one subhead size, bound to a single token so no
   page, section or breakpoint can drift: hero h1, bento h2 and every section
   h2 read from --fl-headline; every lede from --fl-sub ---- */
:root{--fl-headline:clamp(28px,2.9vw,41.6px);--fl-sub:16.5px}
.story-hero--split h1,
.iz-bento .iz-h2,
.story-section h2{
  font-size:var(--fl-headline)!important;
  line-height:1.1!important;
  font-weight:700!important;
  letter-spacing:-.022em!important;
}
.story-hero--split .lede,
.iz-bento .iz-lede,
.story-section .obs-sub,
.story-section--headers .obs-split__copy p{
  font-size:var(--fl-sub)!important;
  line-height:1.65!important;
  font-weight:400!important;
}

/* the hero background carries no purple light at all, on any feature page */
.story-hero--split::before,
.story-hero--split::after{background:none!important;opacity:0!important;filter:none!important}

/* the features headline is the longest one: its copy column takes half the
   grid so "Route, log, test and release." holds one line and "One platform."
   sits alone on the second, at the same 43.2px as every other headline */
.story-hero--split:not(.story-hero--showcase) .container{
  grid-template-columns:minmax(0,.50fr) minmax(0,.50fr);
}

/* the h1 carried a max-width from the centred hero, which cut this headline
   short: with the column at half the grid it can use the full measure */
.story-hero--split h1{max-width:none}

/* the dotted field no longer stops dead on the section boundary: it runs
   140px past the hero and fades to nothing inside that extra height, so the
   bottom edge has no line at all — it just dissolves into the next section */
.story-hero--split{overflow:visible}
.story-hero--split .story-dots{height:calc(100% + 140px)}
.story-hero--split .story-dots{
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,.72) 82%,rgba(0,0,0,.28) 94%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 62%,rgba(0,0,0,.72) 82%,rgba(0,0,0,.28) 94%,transparent 100%);
}

/* more air between the nav and the hero content on every feature page */
.story-hero--split{padding-top:clamp(180px,14vh,240px)}

/* ---------------- mobile: the two-column hero and the bento stack ------------
   These come last on purpose: the desktop grid rules earlier in this file were
   winning over the old 1024px breakpoint. */
code{overflow-wrap:anywhere;word-break:break-word}

@media (max-width:900px){
  .story-hero--split .container,
  .story-hero--showcase.story-hero--split .container{
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:28px;
  }
  .story-hero--split .story-hero__copy{max-width:100%}
  .story-hero--split .story-hero__preview,
  .story-hero--showcase.story-hero--split .story-hero__preview{
    margin:0!important;height:auto!important;max-width:none;align-self:stretch;
  }
  .story-hero--split .iz-shot-wrap{height:auto!important}
  .story-hero--split .iz-shot{height:auto!important;object-fit:contain}
  .story-hero--split .story-visual{height:auto;min-height:0;padding:16px 10px}
  .story-hero--split .flow{max-height:none;width:100%}
  .story-hero--split,
  .story-hero--showcase.story-hero--split{padding:120px 0 clamp(40px,6vh,64px)}

  .iz-bento{padding:88px 0 72px}
  .iz-bento .iz-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .iz-bento .iz-col{gap:14px}
  .iz-bento .iz-card.tall{padding:22px 20px}
  .iz-bento .iz-big{font-size:clamp(40px,16cqw,72px)}
  .iz-bento .iz-cap-list li{flex-wrap:wrap;gap:2px 10px}
  .iz-bento .iz-cap-list b{white-space:normal;text-align:right}
  .iz-bento .iz-h2{font-size:clamp(26px,7.4vw,34px)!important}
  .iz-bento .iz-lede{font-size:16px!important}
}

@media (max-width:560px){
  .story-hero--split h1{font-size:clamp(26px,7.6vw,34px)!important}
  .story-hero--split .lede{font-size:15.5px!important}
  .story-hero--split .actions{gap:10px}
  .story-hero--split .actions .btn{width:100%;justify-content:center}
  .iz-bento .iz-panel{padding:26px 18px;border-radius:20px}
  .iz-bento .iz-big{font-size:clamp(38px,15cqw,56px)}
}

/* inline code inside running copy must wrap: one 637px <code> with
   white-space:pre was forcing a 370px horizontal scroll on phones */
.story-hero--split .lede code,
.iz-bento p code,
.iz-bento li code,
.story-hero--split p code{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word;
  display:inline;
}

/* a decorative layer (not an element with a box we can trace) was still
   forcing 760px of scroll on a 390px phone: clip it at the root */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:clip}
}

/* the big figure can never touch the card edge: it is capped in card-relative
   units, clipped as a last resort, and its container keeps a little padding */
.iz-bento .iz-tall-art{padding-inline:6px}
.iz-bento .iz-big{
  font-size:clamp(40px,19cqw,96px);
  max-width:100%;
  overflow:hidden;
  line-height:.95;
  padding-inline:2px;
}
