/* ChadFlow brand styles: violet/pink/cyan identity. */
:root { --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --serif: var(--sans); }
html { scroll-padding-top: 90px; }
body { background: #fbfafc; }
.brand .logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
nav { background: rgba(251,250,252,.96); }
.brand { letter-spacing: -.035em; font-weight: 850; }
.hero { padding-top: 56px; background: radial-gradient(ellipse at 86% 18%, #d4f6ff 0, transparent 48%), radial-gradient(ellipse at 8% 40%, #ebe3ff 0, transparent 48%), #fbfafc; }
.chad-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.chad-hero-grid .hero-copy { text-align: left; margin: 0; max-width: none; }
.chad-intro { font-size: 13px; color: #4b4866; margin: 0 0 26px; line-height: 1.6; }
.chad-intro strong { color: #5a3ad6; }
.chad-hero-grid h1 { margin: 0 0 24px; font-size: clamp(48px,6.2vw,88px); line-height: 1.01; letter-spacing: -.035em; font-weight: 850; }
.chad-hero-grid h1 span { color: #5a3ad6; }
.chad-hero-grid .hero-sub { margin: 0; max-width: 370px; font-size: 20px; line-height: 1.6; }
.chad-hero-grid .hero-actions { justify-content: flex-start; gap: 12px; margin-top: 30px; }
.btn { white-space: nowrap; }
.btn-violet { background: #5a3ad6; color: white; }
.btn-violet:hover { background: #4526b7; }
.chad-portrait { margin: 0; position: relative; padding-bottom: 20px; }
.chad-portrait > img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 36px; box-shadow: 0 24px 64px #3e236b1c; }
.chad-portrait figcaption { position: absolute; right: -16px; bottom: 0; padding: 18px 24px; background: #fff; color: #4b4866; font-size: 14px; line-height: 1.45; border: 1px solid #e7e4ee; border-radius: 16px; transform: rotate(-4deg); }
.chad-portrait figcaption strong { font-size: 19px; color: #0b0a1f; }
.demo-wrap { margin-top: 90px; }
.section-head h2 { font-weight: 800; letter-spacing: -.05em; }
.serif { font-style: normal; font-family: var(--sans); font-weight: 750; color: #5a3ad6; }
section { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid #5a3ad6; outline-offset: 5px; }
@media (min-width: 1024px) and (max-width: 1250px) { .nav-links { gap: 13px; font-size: 12px; } .chad-hero-grid { gap: 34px; } }
@media (max-width: 767px) {
  .hero { padding-top: 32px; }
  .chad-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .chad-hero-grid h1 { font-size: clamp(48px,12vw,76px); }
  .chad-hero-grid .hero-sub { font-size: 18px; max-width: 350px; }
  .chad-hero-grid .hero-actions { flex-wrap: wrap; }
  .chad-portrait { max-width: 460px; width: 100%; justify-self: center; }
  .chad-portrait > img { border-radius: 26px; }
  .chad-portrait figcaption { right: 8px; }
  .demo-wrap { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .reveal,.hero-copy>*,.demo-wrap,.overlay { opacity: 1 !important; transform: none !important; } }

/* Voice recognition landing: the portrait and projected wave surface are separate layers. */
.hero { padding: 40px 0 46px; background: var(--paper-warm); }
.hero::before { display: none; }
.chad-hero-grid { grid-template-columns: 1.12fr 1fr; gap: 32px; min-height: 610px; }
.chad-hero-grid .hero-copy { z-index: 1; }
.chad-intro { margin-bottom: 20px; }
.chad-hero-grid h1 { max-width: 570px; font-size: clamp(42px,4.4vw,65px); line-height: 1.04; margin-bottom: 22px; letter-spacing: -.04em; }
.chad-hero-grid h1 .chad-title { display: block; font-size: 1.48em; line-height: .98; margin-bottom: 8px; }
.chad-hero-grid .hero-sub { max-width: none; font-size: 20px; }
.hero-capabilities { list-style: none; margin: 24px 0 0; display: grid; gap: 14px; }
.hero-capabilities a { display: inline-flex; flex-direction: column; font-size: 17px; line-height: 1.45; font-weight: 750; }
.hero-capabilities a::before { content: none; }
.hero-capabilities a span { color: var(--ink-muted); font-size: 14px; font-weight: 400; }
.hero-capabilities a:hover { color: var(--violet-deep); }
.chad-hero-grid .hero-actions { margin-top: 26px; }
.chad-portrait { align-self: center; isolation: isolate; padding: 0 0 32px; width: 100%; }
.chad-portrait > img { position: relative; z-index: 1; width: 94%; margin: 0 auto; height: auto; aspect-ratio: 960 / 1018; object-fit: contain; border-radius: 0; box-shadow: none; }
.chad-waves { position: absolute; z-index: 0; width: 170%; height: 125%; left: -35%; top: -14%; pointer-events: none; }
.wave-toggle { position: absolute; z-index: 2; right: 18px; bottom: 0; background: transparent; color: var(--ink-muted); border: 0; border-bottom: 1px solid currentColor; padding: 7px 0; font-size: 12px; cursor: pointer; }
.wave-toggle:hover { color: var(--violet-deep); }
.voice-usecases { background: var(--paper); padding: 90px 0; }
.usecase-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.usecase-intro h2 { font-size: clamp(32px,3.6vw,48px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 24px; }
.usecase-intro h2 span { color: var(--violet-deep); }
.usecase-intro p { color: var(--ink-muted); max-width: 360px; margin-bottom: 24px; }
.usecase-list { display: grid; gap: 32px; }
.usecase-list article { scroll-margin-top: 110px; }
.usecase-list h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 10px; }
.usecase-list p { color: var(--ink-muted); margin-bottom: 12px; }
.text-link { color: var(--violet-deep); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.live-demo-section { background: var(--paper-dim); padding: 76px 0; }
.live-demo-section .demo-wrap { margin-top: 34px; }
.live-demo-section .section-head { margin-bottom: 0; }
@media (max-width: 1023px) {
  .chad-hero-grid { min-height: 560px; gap: 18px; }
  .chad-hero-grid h1 { font-size: 43px; }
  .usecase-layout { gap: 48px; }
}
@media (max-width: 767px) {
  .hero { padding: 32px 0 24px; }
  .chad-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .chad-hero-grid h1 { font-size: clamp(36px,9.7vw,62px); max-width: 540px; }
  .chad-intro { font-size: 12px; margin-bottom: 20px; }
  .chad-hero-grid .hero-sub { font-size: 18px; }
  .hero-capabilities { gap: 11px; margin-top: 20px; }
  .hero-capabilities a { font-size: 16px; }
  .chad-hero-grid .hero-actions { gap: 10px; }
  .chad-hero-grid .btn { padding: 0 17px; font-size: 13px; }
  .chad-portrait { width: min(90%,420px); }
  .chad-portrait > img { border-radius: 0; }
  .voice-usecases,.live-demo-section { padding: 56px 0; }
  .usecase-layout { grid-template-columns: 1fr; gap: 36px; }
  .usecase-intro h2 { font-size: 36px; }
  .usecase-list h3 { font-size: 22px; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink:#f2efff; --ink-soft:#ddd7f0; --ink-muted:#bdb5d1; --slate:#b5abc9; --silver:#a79bbf; --paper:#151121; --paper-warm:#191428; --paper-dim:#211a32; --line:#3e3352; --line-soft:#302740; --violet-deep:#b59aff; }
  body { background: var(--paper); }
  nav { background: #191428f5; }
  .chad-intro { color: var(--ink-muted); }
  .chad-intro strong,.chad-hero-grid h1 span,.serif { color: var(--violet-deep); }
  .btn-violet { background:#6540de; color:#fff; }
  .btn-violet:hover { background:#754cf0; }
  .btn-light { background:var(--paper-dim); color:var(--ink); }
  .also-strip,.platform-card,.price-card,.journal-card,.assist-card,.mini-card,.step-ic { background:var(--paper-dim); }
  .trust,.how,.pricing,.platforms,.journal,footer { background:var(--paper); }
  .reflect,.invis { background:var(--paper-warm); }
  .closing { background:var(--paper-dim); }
  .tool-chip { background:var(--paper-dim); color:var(--ink); }
  /* Preserve the intentional light app illustrations independently of page theme. */
  .mock,.review-card,.context-card { --ink:#0b0a1f; --ink-soft:#1a1832; --ink-muted:#4b4866; --slate:#6b6886; --paper:#fff; --paper-dim:#f4f3f8; --line:#e7e4ee; color:#0b0a1f; }
}
/* Keep both the mascot and primary action in a phone's first screen. */
html { overflow-x: clip; }
@media (max-width: 767px) {
  .chad-hero-grid { grid-template-columns: 1.18fr 1fr; grid-template-areas: 'intro intro' 'title portrait' 'sub sub' 'features features' 'actions actions'; gap: 18px 4px; }
  .chad-hero-grid .hero-copy { display: contents; }
  .chad-intro { grid-area: intro; margin: 0 0 4px; }
  .chad-hero-grid h1 { grid-area: title; font-size: clamp(27px,7.5vw,45px); line-height: 1.07; margin: 0; }
  .chad-hero-grid h1 .chad-title { margin-bottom: 7px; }
  .chad-portrait { grid-area: portrait; width: 115%; justify-self: end; margin-right: -9px; padding-bottom: 22px; }
  .chad-portrait > img { width: 100%; }
  .chad-hero-grid .hero-sub { grid-area: sub; font-size: 16px; margin: 0; }
  .hero-capabilities { grid-area: features; gap: 12px; margin: 0; }
  .chad-hero-grid .hero-actions { grid-area: actions; margin: 4px 0 0; flex-wrap: nowrap; }
  .chad-hero-grid .hero-actions .btn { width: auto; max-width: none; padding: 0 14px; font-size: 12px; }
  .wave-toggle { right: 12px; font-size: 10px; padding: 3px 0; }
  .mobile-cta { display: none; }
}
/* Product copy is visible immediately; the waveform carries the motion. */
.chad-hero-grid .hero-copy > * { opacity: 1; animation: none; transform: none; }
@media (prefers-color-scheme: dark) {
  .plat,.price,.step,.setup-window,kbd { background:var(--paper-dim); }
  .btn-primary { background:#352553; border-color:#594173; }
}

.motion-outside *, .motion-outside *::before, .motion-outside *::after { animation-play-state: paused !important; }
