:root {
  --ink: #1c2733;
  --muted: #5d6b7a;
  --line: #e2e6ea;
  --accent: #0a5e8a;
  --bg: #fbfcfd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
main { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
a { color: var(--accent); }

.site-header, .site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; display: block; }
.site-title { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); }

.contact-strip { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn.call { background: var(--accent); color: #fff; }

.article-list { list-style: none; padding: 0; }
.article-link { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.article-link a { font-weight: 600; text-decoration: none; }
.meta { color: var(--muted); font-size: .85rem; }
.lede { color: var(--muted); }

.article h1, .index h1 { line-height: 1.25; }
.article h2 { margin-top: 1.8rem; }
.article ul { padding-left: 1.2rem; }

.lead-form {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: .7rem;
}
.lead-form label { display: grid; gap: .25rem; font-size: .9rem; color: var(--muted); }
.lead-form input, .lead-form select {
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.lead-form button {
  justify-self: start;
  padding: .55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.disclaimer { color: var(--muted); font-size: .82rem; margin-top: 1rem; }
.thanks h1 { color: var(--accent); }

/* ── Quote form v2 ─────────────────────────────────────────────────────── */
.step-indicator { color: var(--muted); font-size: .85rem; margin: -.2rem 0 .4rem; }

.types { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.types legend { font-size: .9rem; color: var(--muted); padding: 0 .4rem; }
.type-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: var(--ink);
  padding: .35rem 0;
}
.type-check input { width: 1.1rem; height: 1.1rem; }

.situation { display: grid; gap: .5rem; }
.situation-instruction {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: .3rem 0 0;
}
.situation-box { position: relative; }
.situation-box textarea {
  width: 100%;
  padding: .7rem .8rem;
  /* leave room for the mic button overlapping the top-right */
  padding-right: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 8.5rem;
}

/* Prominent, visually-primary microphone button placed atop the textarea. */
.mic-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  width: 4.25rem;
  height: 4.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(10, 94, 138, 0.45);
  animation: mic-glow 2.2s ease-in-out infinite;
}
.mic-glyph { font-size: 1.5rem; line-height: 1; }
.mic-label { font-size: .55rem; text-transform: uppercase; letter-spacing: .03em; }

/* Idle: subtle invitation pulse/glow. */
@keyframes mic-glow {
  0%   { box-shadow: 0 0 0 0 rgba(10, 94, 138, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(10, 94, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 94, 138, 0); }
}

/* Active: clearly live — color shift + faster, stronger pulse. */
.mic-btn.listening {
  background: #c0392b;
  animation: mic-live 1s ease-in-out infinite;
}
@keyframes mic-live {
  0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6); transform: scale(1); }
  50%  { transform: scale(1.06); }
  70%  { box-shadow: 0 0 0 16px rgba(192, 57, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mic-btn, .mic-btn.listening { animation: none; }
}

.voice-trust { color: var(--muted); font-size: .8rem; margin: 0; }
