/* Speech to Text — landing page layout.
   One bold element carries the page: the live caption console in the hero.
   Everything else is quiet lines and restrained type, all on landing-theme.css
   tokens. */

.lp-hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 65%;
  background: radial-gradient(60% 60% at 72% 15%, var(--glow), transparent 70%);
  pointer-events: none;
}
.lp-hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lp-kicker { font-size: .92rem; color: var(--accent-3); margin: 0 0 1rem; font-weight: 600; }
.lp-hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 1.3rem;
}
.lp-hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 42ch;
  margin: 0 0 1.9rem;
}
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.lp-hero__note { margin-top: 1.1rem; font-size: .88rem; color: var(--fg-dim); }

/* ---------- the console (one bold element) ---------- */
.lp-console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.lp-console__bar {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.lp-console__live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; color: var(--live-dot);
  border: 1px solid var(--line); border-radius: 6px; padding: .18rem .5rem;
  margin-left: .3rem;
}
.lp-console__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live-dot);
  animation: lp-pulse 1.6s ease-in-out infinite;
}
.lp-console__engine { margin-left: auto; font-size: .76rem; color: var(--fg-dim); font-family: var(--mono); }

.lp-console__wave {
  display: flex; align-items: center; gap: 3px;
  padding: 1.1rem 1.15rem .9rem;
  height: 52px;
  border-bottom: 1px dashed var(--line);
}
.lp-console__wave span {
  flex: 1; min-width: 2px; max-width: 5px; border-radius: 3px;
  background: var(--accent-3);
  animation: lp-wave 1.4s ease-in-out infinite;
}

.lp-console__captions {
  padding: 1.1rem 1.15rem 1.3rem;
  min-height: 118px;
  font-size: .98rem;
  line-height: 1.7;
}
.lp-console__captions p {
  margin: 0 0 .5rem;
  color: var(--cap-d);
  opacity: 0;
  animation: lp-caption .9s ease forwards;
}
.lp-console__captions p:last-child { color: var(--cap-k); font-weight: 500; margin-bottom: 0; }
.lp-console__captions p:nth-child(1) { animation-delay: .3s; }
.lp-console__captions p:nth-child(2) { animation-delay: 1.3s; }
.lp-console__captions p:nth-child(3) { animation-delay: 2.3s; }
.lp-console__cursor {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px;
  vertical-align: -2px; background: var(--accent-3);
  animation: lp-blink 1s steps(2, start) infinite;
}

/* ---------- section shared ---------- */
.lp-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .7rem;
  max-width: 24ch;
}
.lp-sub { color: var(--fg-muted); font-size: 1.05rem; margin: 0 0 2.5rem; max-width: 56ch; }

/* ---------- how it works ---------- */
.lp-how { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.lp-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-step { display: flex; gap: 1rem; padding: 1.6rem 1.5rem; background: var(--surface); }
.lp-step__n { font-family: var(--mono); font-size: .85rem; color: var(--accent-3); padding-top: .2rem; }
.lp-step__t { font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; color: var(--fg); }
.lp-step__d { margin: 0; color: var(--fg-muted); font-size: .95rem; line-height: 1.55; }

/* ---------- capabilities ---------- */
.lp-caps { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.lp-caps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.lp-cap { padding-top: 1.3rem; border-top: 2px solid var(--accent); }
.lp-cap__t { font-size: 1.15rem; font-weight: 600; margin: 0 0 .5rem; }
.lp-cap__d { margin: 0; color: var(--fg-muted); line-height: 1.6; }

/* ---------- try band ---------- */
.lp-try { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); text-align: center; }
.lp-try__in { display: flex; flex-direction: column; align-items: center; }
.lp-try__h { max-width: none; }
.lp-try__sub { max-width: 48ch; }

/* ---------- footer ---------- */
.lp-foot { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.lp-foot__in { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.lp-foot__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.lp-foot__brand .wordmark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live-dot); }
.lp-foot__tag { color: var(--fg-dim); font-size: .9rem; margin: 0; }

/* ---------- motion ---------- */
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-caption { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-wave {
  0%, 100% { height: 10px; }
  50%      { height: 34px; }
}
.lp-console__wave span:nth-child(odd)  { animation-duration: 1.1s; }
.lp-console__wave span:nth-child(3n)   { animation-duration: 1.7s; }
.lp-console__wave span:nth-child(5n+1) { animation-duration: .9s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .lp-hero__in { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-caps__grid { grid-template-columns: 1fr; }
  .lp-nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-console { animation: none; }
  .lp-console__live i { animation: none; }
  .lp-console__wave span { animation: none; height: 18px; }
  .lp-console__captions p { animation: none; opacity: 1; }
  .lp-console__cursor { animation: none; }
}
