/* Moses TTS landing page (moses-ai.com/tts for visitors). Builds on /welcome/welcome.css: same tokens, header,
   buttons, sections and footer; this file adds the stream figure, timelines, API cards, FAQ and access box. */

.brand-sub { font: 600 13px/1 var(--sans); letter-spacing: .06em; padding: 5px 8px; border-radius: 8px; background: color-mix(in srgb, var(--mind) 14%, transparent); color: var(--mind); }
@media (max-width: 560px) { .nav-hide-sm { display: none !important; } }


/* ── The stream: tokens appear, the waveform starts after the first words ─────────────────── */
.stream { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 18px 20px 20px; max-width: 520px; width: 100%; justify-self: center; display: grid; gap: 16px; }
.stream-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.lane { display: grid; gap: 6px; }
.lane-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tokens { margin: 0; font-size: 16.5px; line-height: 1.5; min-height: 3em; }
.tokens span { display: inline; }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 12px; border-radius: 16px; background: color-mix(in srgb, var(--mind) 8%, transparent); overflow: hidden; }
.wave i { flex: 1; min-width: 3px; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--mind); }
.marks { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.mark { display: flex; align-items: baseline; gap: 8px; }
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; top: -1px; }
.mark-first::before { background: var(--ok); }
.mark-done::before { background: var(--mind); }
.mark b { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .js .tokens span { opacity: 0; animation: reveal .25s ease-out forwards; animation-delay: calc(500ms + var(--i) * 260ms); }
  .js .wave i { transform: scaleY(.08); opacity: .35; animation: talk 1.1s ease-in-out infinite alternate; animation-delay: calc(1800ms + var(--h) * -600ms); }
  .js .wave { animation: wave-on .3s ease-out 1.55s backwards; }
  .js .mark-first { opacity: 0; animation: reveal .4s ease-out 1.7s forwards; }
  .js .mark-done { opacity: 0; animation: reveal .4s ease-out 3.6s forwards; }
}
@keyframes talk { 0% { transform: scaleY(.25); opacity: 1; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes wave-on { from { opacity: .4; } }

/* ── Why: two timelines ───────────────────────────────────────────────────────────────────── */
.why, .apis, .fast, .uses, .voices, .faq { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.timelines { display: grid; gap: 18px; margin-top: 40px; }
.tl { display: grid; gap: 8px; }
@media (min-width: 760px) { .tl { grid-template-columns: 200px 1fr; align-items: center; gap: 20px; } }
.tl-name { font: 650 1.02rem/1.3 var(--display); font-variation-settings: "wdth" 90; }
.tl-bar { display: flex; height: 44px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.seg { width: var(--w); display: flex; align-items: center; padding: 0 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-wait { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.seg-gap { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.seg-say { background: var(--mind); color: var(--on-mind); }
.seg-short { padding: 0; }
.tl-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ── API cards ────────────────────────────────────────────────────────────────────────────── */
.api-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 960px) { .api-grid { grid-template-columns: 1fr 1fr; } }
.api-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.api-card h3 { font-size: 1.3rem; font-weight: 650; display: flex; align-items: center; gap: 12px; font-variation-settings: "wdth" 90; }
.api-card p { margin: 0; color: var(--muted); }
.api-card b { color: var(--text); }
.api-url code { font-size: 14px; color: var(--text); background: var(--surface-2); padding: 4px 8px; border-radius: 8px; word-break: break-all; }
.code { margin: auto 0 0; padding: 16px; border-radius: 16px; background: #0f1b2e; color: #dbe7ff; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; max-width: 100%; }
.code .c { color: #8fa6c8; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ── Use cases ────────────────────────────────────────────────────────────────────────────── */
.chips-lg { margin-top: 28px; gap: 10px; }
.chips-lg li { padding: 9px 16px; font-size: 15.5px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────────────────────── */
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font: 650 1.08rem/1.35 var(--display); font-variation-settings: "wdth" 90; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mind); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ── Access ───────────────────────────────────────────────────────────────────────────────── */
.access-box .how { margin-bottom: 4px; }
.access-cta { margin-top: 6px; }
.access-box .btn { width: auto; }

/* ── Pricing page (/pricing/) ─────────────────────────────────────────────────────────── */
.pricing-main { padding-top: 24px; padding-bottom: 56px; }
.pricing-main h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
