/* Home-only Voice preview. It is an HTML/CSS illustration, not a microphone. */
.hero .voice-preview {
  margin: 0.9rem 0 0;
  font: 500 0.73rem/1.45 var(--mono);
  letter-spacing: 0.015em;
}
.hero .voice-preview a {
  color: var(--tomato-deep);
  text-decoration-color: currentColor;
  text-underline-offset: 0.22em;
}

.voice {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(20rem, 6fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(4.5rem, 10vw, 9rem) var(--gutter);
  overflow: hidden;
}

.voice-copy { max-width: 38rem; }
.voice-kicker {
  margin: 0 0 1rem;
  color: var(--tomato-deep);
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.voice-kicker span { padding: 0 0.35em; color: var(--tomato); }
.voice h2 {
  margin: 0;
  font: 560 clamp(2.7rem, 5vw, 5rem)/0.93 var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.025em;
}
.voice h2 em {
  color: var(--tomato);
  font-weight: 460;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.voice-lede {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}
.voice-notes {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 2rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--tomato);
}
.voice-notes p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.voice-notes strong { color: var(--ink); }

.voice-availability {
  position: relative;
  max-width: 38rem;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem 1.1rem 1.35rem;
  border: 1px solid rgba(184, 52, 29, 0.35);
  border-radius: 0.75rem;
  background: var(--wall-deep);
  background: color-mix(in srgb, var(--wall-deep) 77%, var(--tomato) 8%);
  box-shadow: 0 16px 30px -28px rgba(var(--shadow), 0.7);
}
.voice-availability::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  border-radius: 0.75rem 0 0 0.75rem;
  background: var(--tomato);
  content: "";
}
.voice-availability strong {
  display: block;
  padding-left: 0.25rem;
  color: var(--tomato-deep);
  font: 600 0.73rem/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.voice-availability p {
  margin: 0.55rem 0 0;
  padding-left: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.voice-availability b { color: var(--ink); }

.voice-demo { min-width: 0; }
.voice-picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.voice-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.voice-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.voice-picker label {
  z-index: 2;
  padding: 0.62rem 0.3rem;
  border: 1px solid var(--rule);
  border-radius: 0.55rem;
  color: var(--ink-soft);
  cursor: pointer;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.03em;
  text-align: center;
}
.voice-choice:checked + label {
  border-color: var(--tomato-deep);
  background: var(--tomato-deep);
  color: #fff;
  box-shadow: 0 7px 14px -10px rgba(184, 52, 29, 0.8);
}
.voice-choice:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.voice-picker label:hover { border-color: var(--tomato); color: var(--tomato-deep); }
.voice-choice:checked + label:hover { color: #fff; }

.voice-tablet {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding: clamp(0.5rem, 1.2vw, 0.85rem);
  border-radius: clamp(1.4rem, 3vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(145deg, #34363b, #111216 56%, #202228);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 38px 55px -34px rgba(var(--shadow), 0.68);
  transform: rotate(1.3deg);
}
.voice-tablet::before {
  position: absolute;
  top: 0.38rem;
  left: 50%;
  width: 23%;
  height: 0.28rem;
  border-radius: 99px;
  background: #050506;
  box-shadow: 0 1px 1px rgba(255,255,255,0.13);
  content: "";
  transform: translateX(-50%);
}
.voice-screen {
  position: relative;
  min-height: clamp(23rem, 40vw, 33rem);
  overflow: hidden;
  border-radius: clamp(1rem, 2.2vw, 1.8rem);
  background:
    radial-gradient(80% 52% at 76% 8%, rgba(247, 216, 175, 0.35), transparent 66%),
    linear-gradient(155deg, #E8E0D4, #CFC1B1);
  color: #202025;
}
.voice-system {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.05rem 0;
  color: rgba(32, 32, 37, 0.76);
  font: 600 0.64rem/1 var(--mono);
}
.voice-system span:last-child { display: inline-flex; align-items: center; gap: 0.26rem; }
.voice-system i { width: 0.18rem; border-radius: 999px; background: currentColor; }
.voice-system i:nth-child(1) { height: 0.24rem; }
.voice-system i:nth-child(2) { height: 0.4rem; }
.voice-system i:nth-child(3) { height: 0.58rem; }
.voice-dashboard {
  position: absolute;
  inset: 0;
  padding: 2.6rem 1.3rem 1.3rem;
  opacity: 0.75;
}
.voice-time {
  display: block;
  font: 520 clamp(3.4rem, 8vw, 5.7rem)/0.9 var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 68;
  letter-spacing: -0.06em;
}
.voice-weather { display: block; margin-top: 0.35rem; font-size: 0.86rem; }
.voice-weather b { margin-left: 0.3rem; font-weight: 500; color: rgba(32, 32, 37, 0.65); }
.voice-tile {
  position: absolute;
  display: block;
  border-radius: 0.75rem;
  background: rgba(255, 253, 249, 0.54);
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}
.voice-tile-one { top: 9.3rem; right: 1.35rem; width: 31%; height: 4.8rem; }
.voice-tile-two { top: 15.2rem; left: 1.35rem; width: 44%; height: 4rem; }
.voice-tile-three { top: 20.1rem; right: 1.35rem; width: 52%; height: 3.4rem; }

.conversation-card {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  min-height: 9.5rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 1.1rem;
  background: rgba(27, 28, 31, 0.94);
  color: #F8F2E9;
  box-shadow: 0 20px 34px -24px rgba(0,0,0,0.8);
  backdrop-filter: blur(14px);
}
.conversation-card header { display: flex; align-items: center; gap: 0.45rem; }
.conversation-card header b { font-size: 0.78rem; }
.voice-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #E85F47;
  box-shadow: 0 0 0 0.25rem rgba(232, 95, 71, 0.16);
}
.voice-state-name { display: none; margin-left: auto; color: #D7CFC3; font: 500 0.61rem/1 var(--mono); }
.voice-panel { display: none; align-items: center; min-height: 5.3rem; }
.voice-panel p { margin: 0; }
.conversation-listen { gap: 0.85rem; color: #D7CFC3; font-size: 0.86rem; }
.voice-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: #E85F47;
  box-shadow: 0 0 0 0.38rem rgba(232, 95, 71, 0.14);
}
.voice-mic i { width: 0.16rem; border-radius: 999px; background: #fff; animation: voice-wave 1.05s ease-in-out infinite alternate; }
.voice-mic i:nth-child(1), .voice-mic i:nth-child(5) { height: 0.45rem; animation-delay: -0.6s; }
.voice-mic i:nth-child(2), .voice-mic i:nth-child(4) { height: 0.9rem; animation-delay: -0.3s; }
.voice-mic i:nth-child(3) { height: 1.25rem; }
.conversation-think { gap: 0.85rem; color: #D7CFC3; font-size: 0.86rem; }
.thinking-dots { display: inline-flex; align-items: center; gap: 0.26rem; width: 2.9rem; }
.thinking-dots i { width: 0.52rem; height: 0.52rem; border-radius: 50%; background: #F2BC64; animation: voice-think 1s ease-in-out infinite both; }
.thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.3s; }
.conversation-reply { align-items: stretch; flex-direction: column; justify-content: center; gap: 0.7rem; font-size: 0.79rem; line-height: 1.35; }
.conversation-reply p { padding-left: 0.7rem; border-left: 2px solid rgba(255,255,255,0.22); }
.conversation-reply b { display: block; margin-bottom: 0.1rem; color: #BEB5A8; font: 600 0.6rem/1.35 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
.voice-answer { border-left-color: #E85F47 !important; color: #fff; }

#voice-listen:checked ~ .voice-tablet .conversation-listen,
#voice-think:checked ~ .voice-tablet .conversation-think,
#voice-reply:checked ~ .voice-tablet .conversation-reply { display: flex; }
#voice-listen:checked ~ .voice-tablet .voice-state-listen,
#voice-think:checked ~ .voice-tablet .voice-state-think,
#voice-reply:checked ~ .voice-tablet .voice-state-reply { display: block; }
#voice-think:checked ~ .voice-tablet .voice-dot { background: #F2BC64; box-shadow: 0 0 0 0.25rem rgba(242, 188, 100, 0.14); }
#voice-reply:checked ~ .voice-tablet .voice-dot { background: #7FC8A9; box-shadow: 0 0 0 0.25rem rgba(127, 200, 169, 0.14); }

.voice-caption { margin: 1.4rem 0 0; color: var(--muted); font: 400 0.78rem/1.5 var(--mono); text-align: center; }

@keyframes voice-wave {
  from { transform: scaleY(0.55); opacity: 0.6; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes voice-think {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-0.32rem); opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  .voice-kicker, .hero .voice-preview a, .voice-picker label:hover { color: #FF927D; }
  .voice-availability { border-color: rgba(232, 71, 43, 0.5); background: color-mix(in srgb, var(--card) 88%, var(--tomato) 12%); }
  .voice-availability strong { color: #FF927D; }
  .voice-screen { background: radial-gradient(80% 52% at 76% 8%, rgba(126, 104, 76, 0.45), transparent 66%), linear-gradient(155deg, #4A4137, #2A2722); }
  .voice-system, .voice-weather b { color: rgba(247, 241, 232, 0.72); }
  .voice-dashboard { color: #F7F1E8; }
  .voice-tile { background: rgba(255, 252, 247, 0.12); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset; }
}

@media (max-width: 960px) {
  .voice { grid-template-columns: 1fr; }
  .voice-copy { max-width: 46rem; }
  .voice-demo { width: min(100%, 40rem); justify-self: center; }
}
@media (min-width: 961px) {
  .voice-copy { grid-column: 1; grid-row: 1; }
  .voice-demo { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .voice-availability { grid-column: 1; grid-row: 2; margin-top: 0; }
  .voice-notes { grid-column: 1; grid-row: 3; margin-top: 0; }
}
@media (max-width: 390px) {
  .voice { padding-inline: 1rem; }
  .voice-picker label { padding-inline: 0.15rem; font-size: 0.68rem; }
  .voice-screen { min-height: 21rem; }
  .voice-tile-three { top: 18.7rem; }
  .conversation-card { min-height: 8.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-tablet { transform: none; }
  .voice-mic i, .thinking-dots i { animation: none; }
}
