/* ───────────── Inner pages (product, solution, company…) ─────────────
   Loaded after styles.css, which supplies tokens, nav, cards, .section, .final and the footer.
   Building blocks, top to bottom of a typical product page:
   .page-hero → .personas → .showcase → .quote → .features (.feature rows) → .steps → .more → .final */

/* ───── Page hero ───── */
.page-hero { position: relative; padding: 112px 0 0; text-align: center; overflow: hidden; }
/* the blurred mint wash that used to sit behind the shot (.page-hero::before) is gone (DE-AI V3);
   the window's own border/shadow carries it, on both skins */
.page-hero .container { position: relative; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-current] { color: var(--fg-2); }
.page-hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 560; }
.page-hero .lead { max-width: 680px; margin: 28px auto 0; font-size: 19px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-actions .btn { height: 46px; padding: 0 24px; font-size: 15px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--fg-3); }
.hero-shot { position: relative; max-width: 1040px; margin: 72px auto 0; }
.hero-shot img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* media frame: product screenshots and GIFs */
.frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--bg-1); box-shadow: inset 0 1px 0 rgb(var(--ink) / .06), 0 40px 100px -40px rgb(0 0 0 / calc(.9 * var(--sh))), 0 0 0 1px rgb(0 0 0 / calc(.5 * var(--sh)));
}
.frame img, .frame video { display: block; width: 100%; height: auto; }

/* ───── Personas: three cards ───── */
.personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.persona { padding: 32px; }
.persona-ic { width: 44px; height: 44px; display: grid; place-items: center start; margin-bottom: 26px; color: var(--mint); }
.persona-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.persona h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.persona p { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
/* A pair of cards in a three-column grid leaves a hole where the third would be. Centre the pair on
   the measure two cards want instead. Scoped to above the 960px collapse on purpose: :has() scores
   higher than the plain .personas rule in the media query below, so an unscoped version would keep
   two columns on a phone. */
@media (min-width: 961px) {
  .personas:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; margin-inline: auto; }
}

/* ───── Showcase: one big product view ───── */
.showcase { margin-top: 64px; }
.showcase-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ───── Customer quote ───── */
.quote { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px; border-color: var(--line-2); background: var(--card-b); }
.quote-logo { height: 38px; width: auto; display: block; margin-bottom: 32px; }
.quote blockquote { font-size: clamp(20px, 2vw, 25px); line-height: 1.45; letter-spacing: -0.02em; font-weight: 500; }
.quote figcaption { margin-top: 26px; font-size: 14.5px; color: var(--fg-2); }
.quote figcaption b { display: block; color: var(--fg); font-weight: 500; }
.quote .link { margin-top: 26px; }
.quote-stats { display: flex; flex-direction: column; gap: 36px; }
.quote-stats div { padding-left: 24px; border-left: 1px solid rgba(19,233,137,.4); }
.quote-stats b { display: block; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--accent); }
.quote-stats span { display: block; margin-top: 10px; font-size: 15px; color: var(--fg-2); }

/* ───── Features: alternating text + media rows ───── */
.features { display: flex; flex-direction: column; gap: 140px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature .eyebrow { margin-bottom: 18px; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 560; }
.feature p { margin-top: 20px; font-size: 16.5px; line-height: 1.7; color: var(--fg-2); }
.feature .link { margin-top: 24px; }
/* a feature whose media is a live product window (see CLAUDE.md "Product replays"): text above, the full-width app below */
.feature-wide, .feature-wide:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.feature-wide .feature-text, .feature-wide:nth-child(even) .feature-text { max-width: 640px; order: 0; }

/* ───── Steps: how to turn it on ───── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 32px; display: flex; flex-direction: column; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 30px; right: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--fg-3); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p { flex: 1; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.step .link { margin-top: 22px; font-size: 14.5px; }

/* ───── More: related capabilities ───── */
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more a { display: flex; flex-direction: column; padding: 28px; }
.more h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.more p { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.more .link { margin-top: 20px; font-size: 14px; }

/* ───── Final CTA additions ───── */
.final p.lead { margin: 26px auto 0; text-align: center; }
.final .hero-actions { margin-top: 40px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 900px; margin: 88px auto 0; text-align: left; }
.facts div { padding-left: 20px; border-left: 1px solid var(--line-2); }
.facts span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.facts b { display: block; margin-top: 8px; font-size: 16px; font-weight: 500; line-height: 1.45; }

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature, .feature:nth-child(even) { gap: 48px; }
}
@media (max-width: 960px) {
  .page-hero { padding-top: 88px; }
  .personas, .steps { grid-template-columns: minmax(0, 1fr); }
  .quote { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px; }
  .quote-stats { flex-direction: row; gap: 32px; }
  .quote-stats div { flex: 1; }
  .features { gap: 96px; }
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 420px; margin-top: 64px; }
}
@media (max-width: 560px) {
  .page-hero { padding-top: 64px; }
  .page-hero .lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-shot { margin-top: 48px; }
  .persona, .step, .more a { padding: 26px; }
  .quote { padding: 28px; }
  .quote-stats { flex-direction: column; gap: 24px; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 80px; }
  .frame { border-radius: 12px; }
}

/* ───── App hero (.page-hero.is-app): the product's live window high in the first fold ─────
   Like the Traces and APM heroes: tighter spacing scaled to screen height, the title on one line on wide screens,
   a 960px window (a .cxw inside .hero-shot), and the window's glow running into the next section. */
.page-hero.is-app { padding-top: clamp(64px, 10svh, 104px); overflow: visible; overflow-x: clip; }
.page-hero.is-app .crumbs { margin-bottom: 22px; }
.page-hero.is-app .lead { max-width: 640px; margin-top: 22px; text-wrap: balance; }
.page-hero.is-app .hero-actions { margin-top: 32px; }
.page-hero.is-app .fine { margin-top: 14px; }
.page-hero.is-app .hero-shot { max-width: 960px; margin-top: 48px; }
.page-hero.is-app .hero-shot img { -webkit-mask-image: none; mask-image: none; }
@media (min-width: 961px) { .page-hero.is-app h1 { max-width: none; font-size: clamp(40px, 4.6vw, 64px); } }
@media (max-height: 820px) and (min-width: 961px) { /* short laptop screens */
  .page-hero.is-app h1 { font-size: clamp(40px, 5vw, 60px); }
  .page-hero.is-app .hero-shot { margin-top: 40px; }
}
@media (max-width: 560px) { .page-hero.is-app { padding-top: 56px; } .page-hero.is-app .hero-shot { margin-top: 36px; } }

/* ───── Film: a Wistia video that costs nothing until someone presses play ─────
   The poster is ours and the player is not loaded at all until the click, so a page carrying a
   customer film still ships no third-party script. Styled like the product windows (.cxw) so a
   story and a product view read as the same family. */
.film { position: relative; margin: 0; }
/* After a quote card in the same section, it needs air between them. */
.quote + .film { margin-top: 20px; }
.film-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 18px; overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(var(--ink) / .06), 0 40px 100px -40px rgb(0 0 0 / calc(.9 * var(--sh))), 0 0 0 1px rgb(0 0 0 / calc(.5 * var(--sh)));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) { .film-frame:hover { border-color: rgba(19,233,137,.45); } }
.film-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film-frame::after { /* darkens towards the head, where the caption sits: these posters carry
                       their own lower-third with the speaker's name, so the foot stays clear */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .25) 34%, transparent 58%);
}
.film-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--ink) / .1); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(19,233,137,.5), 0 18px 50px -14px rgb(0 0 0 / calc(.7 * var(--sh)));
  transition: background .25s, box-shadow .25s, scale .25s var(--ease);
}
@media (hover: hover) { .film-frame:hover .film-play { background: rgba(19,233,137,.16); box-shadow: inset 0 0 0 1px rgba(19,233,137,.9), 0 18px 50px -14px rgb(0 0 0 / calc(.7 * var(--sh))); scale: 1.06; } }
.film-play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--mint); }
.film-cap {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; padding: 24px 28px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; text-align: left;
}
.film-cap b { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.35; font-weight: 560; color: #fff; max-width: 60ch; }
.film-meta { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-family: var(--mono); font-size: 12.5px; color: rgb(255 255 255 / .72); }
.film-meta i { width: 3px; height: 3px; border-radius: 50%; background: rgb(255 255 255 / .4); }
.film.is-on .film-frame { cursor: default; transform: none; }
.film.is-on .film-frame img, .film.is-on .film-play, .film.is-on .film-cap, .film.is-on .film-frame::after { display: none; }
.film-player { display: none; }
.film.is-on .film-player { display: block; aspect-ratio: 16 / 9; }
.film.is-on .film-player wistia-player { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) {
  .film-cap { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .film-play { width: 58px; height: 58px; }
  .film-play svg { width: 20px; height: 20px; }
}
