/* Landing v2: only what is new or must differ from v3.css, product.css and homepage.css. */
[hidden] { display: none !important; }

/* Hero: heading, one paragraph, buy row, then the notch capture. */
.revision-hero { overflow: visible; }
.revision-hero .hero-heading { max-width: none; }
.revision-hero h1 { font-size: clamp(32px, 3.9vw, 54px); }
.revision-hero h1, .chapter h2 { text-wrap: balance; word-spacing: .04em; }
.hero-detail .availability { margin-top: 8px; }
.availability { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .3em; }
.availability .nb { display: inline-flex; align-items: baseline; gap: .25em; white-space: nowrap; }
.availability a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#watch-demo { display: inline-flex; align-items: center; min-height: 44px; }
.hero-shot {
  max-width: 920px;
  margin: 32px auto 0;
  padding: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: #1d1f23; /* the capture's own background */
  box-shadow: 0 24px 64px -24px #28362540;
}
.hero-shot img { width: 100%; height: auto; border-radius: 10px; }

/* Sessions: the recording frame keeps its dark look. The play pill sits at the video's bottom right. */
.chapter .product-stage { max-width: 1080px; margin: 40px auto 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.product-stage .capture { aspect-ratio: auto; padding: 14px; border-radius: 22px; background: #1e1e1e; /* the panel's own background */ box-shadow: 0 24px 64px -24px #28362540; }
.product-stage .capture video { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1708 / 612; border-radius: 10px; }
.product-stage .capture video.demo-agent { display: none; margin-top: 8px; aspect-ratio: 708 / 380; }
.product-stage .stage-controls { display: flex; justify-content: flex-end; margin-top: 10px; width: auto; }
.product-stage .stage-controls .btn-ghost { color: var(--ink); cursor: pointer; }
.product-stage .stage-controls button:focus-visible { outline: 2px solid #202520; outline-offset: 3px; }

/* Three short points under a demo. */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.points li { min-width: 0; padding-top: 18px; border-top: 1px solid var(--line-hover); }
.points b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.points p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.points .points-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.points a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.points .credit { font-size: 14px; }

/* Dictation: the existing demo in a full-width white card. */
.dict-card { margin-top: 40px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.dict-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.dict-controls .btn-ghost { color: var(--ink); cursor: pointer; }
.dict-controls .btn-ghost:hover { background: var(--card-hover); }
.dict-controls .btn-ghost[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dict-controls .dict-toggle { margin-left: 12px; }
.dict-card .dict-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; align-content: stretch; gap: 16px; }
.dict-card .dict-heard { align-content: start; padding: 14px 16px; background: #f1f4ed; border: 1px solid #d8dfd0; }
.dict-card .dict-heard p { grid-column: 1 / -1; margin: 0; font: 14px/1.6 var(--mono); color: #2f382c; }
.dict-card .dict-heard-label { font: 12px/1 var(--sans); color: #586158; }
.dict-card .dict-wave i { background: #6f8a63; }
.dict-card .dict-heard .is-drop { color: #5c665a; text-decoration-color: #c4604a; }
.dict-card .dict-demo.is-animating .dict-heard .w:not(.struck) { color: #2f382c; text-decoration: none; }
.dict-card .dict-field { padding: 16px 18px; background: #fff; border: 1px solid var(--line-hover); box-shadow: 0 10px 24px -16px #28362555; }
.dict-card .dict-field-label { font: 12px/1.4 var(--sans); color: #586158; }
.dict-card .dict-out { margin: 8px 0 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: var(--ink); }
/* Waiting: until the first typed word lands, a caret blinks at the start of the field. */
.dict-card .dict-out { position: relative; }
.dict-card .dict-demo.is-animating .dict-scene.is-active:not(.is-typing):not(.is-done) .dict-out::before { content: ""; position: absolute; left: 0; top: .22em; width: 2px; height: 1.1em; background: #526c3f; animation: dict-caret 1s steps(1) infinite; }

/* Talk: the HUD capture beside three points. */
.talk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; margin-top: 48px; }
.hud-shot { max-width: 440px; width: 100%; margin-inline: auto; }
.hud-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px -24px #28362560; }
.points-stack { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 28px; }
.avatars { display: flex; gap: 16px; margin-top: 12px; }
.avatars figure { flex: 0 1 160px; min-width: 0; text-align: center; }
.avatars img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 1024px) { .avatars figure { flex-basis: 200px; } }
.avatars .avatar-mascot { display: block; width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: #1e1e1e; /* the demo frame's background */ }
.avatar-mascot .mascot-shadow { fill: #000; opacity: .3; }
.avatar-mascot .mascot-body { fill: #deded5; }
.avatar-mascot .mascot-eye { fill: #151614; }
.avatars figcaption { margin-top: 8px; color: var(--ink); font-size: 14px; }

/* Tools: one static, centred, wrapping row. */
.stack-chip { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.stack-chip::before { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.stack-chip-text { padding-inline: 16px; }
.stack-chip-text::before { content: none; }
.stack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 40px auto 0; padding: 0; list-style: none; }

@media (max-width: 760px) {
  .revision-hero { padding-top: 24px; }
  .hero-shot { margin-top: 24px; padding: 8px; border-radius: 14px; }
  .hero-shot img { border-radius: 8px; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
  .dict-card { margin-top: 32px; padding: 16px; border-radius: 16px; }
  .dict-controls { justify-content: flex-start; margin-bottom: 16px; }
  .dict-controls .dict-toggle { margin-left: 0; }
  .dict-card .dict-scene { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .dict-card .dict-heard { min-height: 119px; }
  .dict-card .dict-field { min-height: 155px; }
  #voice { scroll-margin-top: -24px; }
  .product-stage .capture { padding: 8px; border-radius: 14px; }
  .product-stage .capture video { aspect-ratio: 728 / 574; border-radius: 8px; }
  .product-stage .capture video.demo-agent { display: block; }
  .talk-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 36px; }
  .hud-shot { max-width: none; }
  .stack-list { margin-top: 32px; }
  .availability a { padding-block: 12px; margin-block: -12px; }
  .faq details { padding-block: 0; }
  .faq summary { padding-block: 16px; }
  #availability { padding-bottom: 12px; border-bottom: 0; }
  /* Open menu: full-width panel on the page gutter, separated from the page. */
  .nav-inner { position: static; }
  .nav.is-open .nav-links { gap: 0; padding: 4px var(--pad) 8px; border-bottom: 1px solid var(--line-hover); box-shadow: 0 16px 24px -14px #20252040; }
  .nav.is-open .nav-links a { min-height: 48px; }
}
@media (pointer: coarse) {
  .availability a { padding-block: 12px; margin-block: -12px; }
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.faq summary { min-height: 44px; }
@media (min-width: 768px) {
  .faq { max-width: none; display: flex; gap: 0 40px; align-items: flex-start; }
  .faq-col { flex: 1 1 0; min-width: 0; }
  #availability { padding-bottom: 64px; }
}
.foot { align-items: baseline; }

/* Sticky Buy bar: blur like the nav, and keep focus and anchor targets clear of it. */
.sticky-buy { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (min-width: 761px) { html:has(#sticky-buy:not([hidden])) { scroll-padding-top: 141px; } }
@media (max-width: 760px) { html:has(#sticky-buy:not([hidden])) { scroll-padding-bottom: calc(69px + env(safe-area-inset-bottom)); } }

/* Anchor targets that are not sections: html already scrolls 92px below the top, so these need a little more to clear the nav and the sticky Buy bar on desktop. */
.points li[id], .hud-shot, .product-stage { scroll-margin-top: 60px; }
@media (max-width: 760px) { .points li[id], .hud-shot, .product-stage { scroll-margin-top: 0; } }

/* Keyboard focus moves the page instantly; the site's smooth scrolling is for anchor clicks. */
html:has(:focus-visible) { scroll-behavior: auto; }
@media (min-width: 400px) and (max-width: 760px) { .dict-card .dict-heard { min-height: 97px; } }
