/* Product-first hero: compact introduction, full-width real recording, quiet controls.
   Existing Jakarta type / ink and warm-paper surfaces / teal accents; 8px rhythm. */
.hero .hero-layout { display: block; padding-block: 48px 42px; min-height: 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); column-gap: 64px; align-items: center; margin-bottom: 44px; }
.hero-copy .eyebrow { grid-column: 1 / -1; margin: 0 0 20px; }
.hero .hero-copy h1 { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.16; letter-spacing: -.055em; white-space: normal; margin: 0; text-wrap: balance; }
.hero-intro-actions { align-self: center; }
.hero .hero-description { margin: 0 0 20px; max-width: 460px; font-size: 13px; line-height: 1.75; }
.hero .button-row { gap: 10px; }
.hero .button { min-height: 44px; padding: 12px 16px; font-size: 11px; gap: 10px; }
.hero .hero-footnote { margin-top: 15px; font-size: 9px; gap: 18px; }
.hero .hero-visual { display: block; perspective: none; min-height: 0; width: 100%; max-width: none; margin: 0; }
.hero .hero-baseline { padding-block: 22px; }
.hero-grain { opacity: .45; }
.hero-tour { position: relative; width: 100%; transform: none !important; }
.hero-tour [hidden] { display: none !important; }
.demo-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; }
.demo-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 9px var(--mono); letter-spacing: .09em; }
.demo-recorded { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 10px; }
.demo-tabs { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.demo-tabs button { position: relative; display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; min-width: 0; padding: 10px 16px; border: 0; background: transparent; color: var(--muted); font: 12px var(--font); cursor: pointer; }
.demo-tabs button > span { color: var(--faint); font: 9px var(--mono); }
.demo-tabs button:hover { color: var(--text); background: var(--surface); }
.demo-tabs [aria-selected="true"] { color: var(--text); background: var(--surface); border-radius: 5px 5px 0 0; }
.demo-tabs i { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--line); }
.demo-tabs [aria-selected="true"] i::after { content: ''; display: block; height: 100%; background: var(--accent); transform: scaleX(var(--demo-progress, 0)); transform-origin: left; }
.demo-mount { position: relative; padding: 10px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--surface) 65%, var(--bg)); box-shadow: 0 30px 80px #0003; }
.demo-mount::before, .demo-mount::after { content: ''; position: absolute; width: 20px; height: 20px; border: solid var(--accent); pointer-events: none; opacity: .7; }
.demo-mount::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: 12px; }
.demo-mount::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: 12px; }
.demo-frame { position: relative; aspect-ratio: 1480/864; overflow: hidden; border-radius: 5px; background: #0a1115; }
#heroRecording { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-message { position: absolute; inset: auto 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #101c21ed; border: 1px solid #ffffff2a; border-radius: 6px; color: #f1f3ee; padding: 12px 16px; font-size: 12px; }
.demo-message button { min-height: 44px; padding: 8px 14px; border: 1px solid #ffffff40; border-radius: 5px; color: #f1f3ee; background: transparent; cursor: pointer; }
.demo-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px 0; }
.demo-story { display: flex; gap: 18px; align-items: center; }
.demo-count { color: var(--accent); font: 10px var(--mono); border-right: 1px solid var(--line); padding-right: 18px; white-space: nowrap; }
#demoCaption { margin: 0; color: var(--text); font-size: 13px; font-weight: 500; }
#demoDescription { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.demo-controls { display: flex; align-items: center; gap: 6px; }
.demo-time { color: var(--faint); font: 10px var(--mono); font-variant-numeric: tabular-nums; min-width: 0; text-align: center; margin-right: 6px; }
.demo-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.demo-controls button:hover { border-color: var(--accent); background: var(--surface); }
.demo-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-play-icon, .hero-tour[data-playing="false"] .demo-pause-icon { display: none; }
.hero-tour[data-playing="false"] .demo-play-icon { display: block; }
.demo-transcript { margin-top: 16px; color: var(--muted); font-size: 11px; }
.demo-transcript summary { cursor: pointer; width: fit-content; min-height: 32px; padding-block: 8px; }
.demo-transcript ol { max-width: 780px; line-height: 1.8; padding-left: 20px; }
.demo-transcript li { margin-block: 10px; }
.demo-transcript p { max-width: 780px; line-height: 1.8; }
.demo-dialog { width: min(1400px, 96vw); max-width: 96vw; max-height: 94vh; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.demo-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.demo-dialog-heading h2 { font-size: 16px; margin: 0; }
.demo-dialog video { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #0a1115; }
.demo-dialog > p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
@media (min-width: 1600px) { .hero .hero-layout { max-width: 1440px; } }
@media (max-width: 1050px) {
  .hero-copy { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .hero .hero-copy h1 { font-size: 38px; }
  .demo-recorded { display: none; }
}
@media (max-width: 760px) {
  .hero .hero-layout { padding-block: 32px; }
  .hero-copy { display: block; margin-bottom: 28px; }
  .hero .hero-copy h1 { font-size: clamp(30px, 5.4vw, 40px); max-width: 660px; }
  .hero .hero-copy .eyebrow { margin-bottom: 16px; font-size: 8px; }
  .hero-intro-actions { margin-top: 18px; }
  .hero .hero-description { max-width: 520px; margin-bottom: 18px; font-size: 13px; }
  .demo-heading { gap: 12px; }
  .demo-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 0; }
  .demo-tabs button { min-width: 0; gap: 8px; padding-inline: 10px; }
  .demo-mount { padding: 5px; border-radius: 8px; }
  .demo-bottom { align-items: flex-start; flex-wrap: wrap; gap: 14px; padding-top: 16px; }
  .demo-controls { margin-left: auto; }
  .demo-story { gap: 10px; }
  .demo-count { padding-right: 10px; font-size: 9px; }
  #demoCaption { font-size: 12px; }
  #demoDescription { font-size: 9px; }
  .demo-dialog { padding: 12px; }
}
@media (max-width: 480px) {
  .demo-heading { display: grid; }
  .demo-label { margin-bottom: 12px; font-size: 8px; }
  .demo-tabs { width: 100%; }
  .demo-tabs button { flex: 1; min-width: 0; }
  .demo-count { display: none; }
  .demo-story { flex: 1 0 100%; }
  .demo-controls { width: 100%; justify-content: flex-end; }
  .demo-time { margin-right: auto; text-align: left; }
  .hero .hero-copy h1 { font-size: 31px; }
}
