/* Harbie Automation AI receptionist (Retell web call, gated by a lead form) */
[data-voice-demo] [hidden] { display: none !important; }
.list-tag { margin-left: auto; padding: 4px 7px; border: 1px solid #cfcabe; color: var(--green-deep); font: 10px var(--mono); white-space: nowrap; transition: background .18s, border-color .18s; }
.list-tag:hover { background: #e9ebdf; border-color: var(--green); }

.voice-section { padding-block: 104px; background: var(--paper-deep); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.voice-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.voice-intro h2 { margin: 18px 0 20px; font: 400 clamp(43px, 4.7vw, 60px)/1.03 var(--serif); letter-spacing: -1.4px; text-wrap: balance; }
.voice-lede { max-width: 470px; margin: 0 0 26px; color: #59635b; font-size: 14px; line-height: 1.75; }
.voice-points { max-width: 470px; margin: 0; padding: 0; list-style: none; border-top: 1px solid #cfcabe; }
.voice-points li { display: flex; gap: 17px; align-items: center; min-height: 46px; padding: 10px 0; border-bottom: 1px solid #cfcabe; font-size: 13px; line-height: 1.5; }
.voice-points li span { color: var(--orange); font: 10px var(--mono); }
.voice-notice { max-width: 470px; }
.voice-notice em { font-style: normal; color: var(--ink); }

.voice-phone { position: relative; max-width: 470px; width: 100%; justify-self: end; background: var(--green-deep); color: #f3efe4; box-shadow: 9px 9px 0 #cfd3c3; overflow: hidden; }
.voice-bar { min-height: 46px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff1c; color: #cfd5c6; font-size: 12px; }
.voice-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; background: #ffffff12; color: var(--lime); font: 9px var(--mono); letter-spacing: .06em; }
.voice-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
[data-state="live"] .voice-tag-dot { background: #ff8a5c; animation: voice-blink 1.2s infinite; }

.voice-stage { padding: 38px 24px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.voice-orb { --level: 0; position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.voice-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #c7d88c40; transition: transform .12s ease-out, opacity .3s; }
.voice-ring-1 { inset: 24px; }
.voice-ring-2 { inset: 10px; opacity: .7; }
.voice-ring-3 { inset: -4px; opacity: .4; }
.voice-core { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e3edb9 0%, var(--lime) 38%, #8fae5e 72%, #4f7a4b 100%);
  box-shadow: 0 0 0 0 #c7d88c55, inset -8px -10px 22px #2e4f3655; transform: scale(calc(1 + var(--level) * .22)); transition: transform .09s ease-out, box-shadow .2s; }
.voice-wave { display: flex; align-items: center; gap: 5px; height: 40px; }
.voice-wave i { display: block; width: 5px; height: 8px; border-radius: 3px; background: var(--green-deep); opacity: .78; transition: height .1s; }

[data-state="idle"] .voice-core, [data-state="ended"] .voice-core, [data-state="error"] .voice-core { animation: voice-breathe 4.5s ease-in-out infinite; }
[data-state="connecting"] .voice-ring { border-color: #c7d88caa; animation: voice-pulse 1.6s ease-out infinite; }
[data-state="connecting"] .voice-ring-2 { animation-delay: .35s; }
[data-state="connecting"] .voice-ring-3 { animation-delay: .7s; }
[data-state="live"] .voice-core { box-shadow: 0 0 calc(18px + var(--level) * 60px) calc(var(--level) * 18px) #c7d88c66, inset -8px -10px 22px #2e4f3655; }
[data-state="live"] .voice-ring-1 { transform: scale(calc(1 + var(--level) * .18)); border-color: #c7d88c88; }
[data-state="live"] .voice-ring-2 { transform: scale(calc(1 + var(--level) * .3)); border-color: #c7d88c66; }
[data-state="live"] .voice-ring-3 { transform: scale(calc(1 + var(--level) * .42)); border-color: #c7d88c44; }
[data-state="live"] .voice-wave i { animation: voice-bars 1s ease-in-out infinite; }
[data-state="live"] .voice-wave i:nth-child(2) { animation-delay: -.8s; }
[data-state="live"] .voice-wave i:nth-child(3) { animation-delay: -.55s; }
[data-state="live"] .voice-wave i:nth-child(4) { animation-delay: -.3s; }
[data-state="live"] .voice-wave i:nth-child(5) { animation-delay: -.15s; }
[data-state="live"][data-speaking="true"] .voice-wave i { animation-duration: .45s; }

.voice-name { margin: 22px 0 4px; font: 400 26px/1.1 var(--serif); }
.voice-name small { display: block; margin-top: 5px; color: #b7c2b1; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.voice-status { min-height: 22px; margin: 10px 0 0; color: #e6e9dc; font-size: 14px; }
.voice-timer { margin: 4px 0 0; color: var(--lime); font: 13px var(--mono); visibility: hidden; }
.voice-timer span { color: #8e9c8d; }
[data-state="live"] .voice-timer { visibility: visible; }

.voice-controls { padding: 20px 24px 6px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.voice-start { min-height: 54px; padding-inline: 26px; gap: 10px; background: var(--lime); color: var(--ink); font-size: 14px; border-radius: 999px; }
.voice-start:hover { background: #d8e6a6; }
.voice-start[disabled] { opacity: .6; cursor: progress; transform: none; }
.voice-end, .voice-secondary { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #ffffff3a; cursor: pointer; font: 600 13px var(--sans); transition: background .18s, border-color .18s; }
.voice-end { background: #c8553d; border-color: #c8553d; color: #fff; }
.voice-end:hover { background: #b3462f; }
.voice-secondary { background: transparent; color: #f3efe4; }
.voice-secondary:hover, .voice-secondary[aria-pressed="true"] { background: #ffffff14; border-color: #ffffff70; }
.voice-error { margin: 12px 24px 0; padding: 10px 12px; border-left: 3px solid var(--orange); background: #ffffff10; color: #f6e7d8; font-size: 13px; line-height: 1.5; }

.voice-tips { margin: 18px 24px 0; padding: 14px 0 4px; border-top: 1px solid #ffffff1c; }
.voice-tips .eyebrow { color: #d6c59e; }
.voice-tips ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.voice-tips li { padding: 6px 9px; border: 1px solid #ffffff22; color: #dfe4d6; font: italic 13px/1.3 var(--serif); }
.voice-foot { margin-top: 18px; min-height: 40px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #ffffff1c; color: #9fab9c; font: 9px var(--mono); letter-spacing: .05em; }

/* Lead form gate */
.voice-lead { padding: 24px 24px 4px; display: grid; gap: 12px; }
.voice-lead-title { margin: 0; font: 400 26px/1.1 var(--serif); color: #f3efe4; }
.voice-lead-sub { margin: -4px 0 4px; color: #b7c2b1; font-size: 13px; line-height: 1.5; }
.voice-field { display: grid; gap: 5px; }
.voice-field label { color: #dfe4d6; font-size: 12px; font-weight: 600; }
.voice-field label span { color: var(--lime); }
.voice-field label small { color: #9fab9c; font-weight: 400; }
.voice-field input, .voice-field textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff2e; border-radius: 0; background: #ffffff0d; color: #f3efe4; font: 14px var(--sans); transition: border-color .18s, background .18s; }
.voice-field textarea { min-height: 60px; resize: vertical; }
.voice-field input::placeholder, .voice-field textarea::placeholder { color: #8e9c8d; }
.voice-field input:focus, .voice-field textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; background: #ffffff14; }
.voice-field [aria-invalid="true"] { border-color: #ff9f7a; }
.voice-field-error { color: #ffb899; font-size: 12px; line-height: 1.4; }
.voice-consent { display: flex; gap: 10px; align-items: flex-start; color: #cfd5c6; font-size: 12px; line-height: 1.5; cursor: pointer; }
.voice-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--lime); }
.voice-consent a, .voice-privacy a { color: var(--lime); }
.voice-continue { justify-self: start; margin-top: 4px; }
.voice-lead .voice-error { margin: 0; }
.voice-who { margin: 6px 24px 0; text-align: center; color: #9fab9c; font: 11px var(--mono); overflow-wrap: anywhere; }
.voice-link { padding: 0; border: 0; background: none; color: var(--lime); font: inherit; text-decoration: underline; cursor: pointer; }
.voice-thanks { margin: 14px 24px 0; padding: 14px 16px; border-left: 3px solid var(--lime); background: #ffffff10; color: #e6e9dc; font-size: 14px; line-height: 1.55; }
.voice-thanks p { margin: 0; }
.voice-thanks-title { margin-bottom: 4px !important; font: 400 22px/1.2 var(--serif); color: #f3efe4; }
.voice-privacy { margin: 14px 24px 0; text-align: center; color: #9fab9c; font-size: 12px; }
@media (max-width: 600px) {
  .voice-lead { padding-inline: 14px; }
  .voice-continue { width: 100%; justify-self: stretch; }
  .voice-thanks, .voice-who, .voice-privacy { margin-inline: 14px; }
}

@keyframes voice-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes voice-pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes voice-bars { 0%, 100% { height: 8px; } 50% { height: 30px; } }
@keyframes voice-blink { 50% { opacity: .25; } }

@media (max-width: 1100px) and (min-width: 901px) { .primary-nav { gap: 18px; font-size: 12px; } }
@media (max-width: 900px) and (min-width: 601px) { .primary-nav { gap: 12px; font-size: 11.5px; } }
@media (max-width: 900px) {
  .voice-layout { grid-template-columns: 1fr; gap: 36px; }
  .voice-phone { justify-self: start; max-width: 560px; }
}
@media (max-width: 600px) {
  .voice-section { padding-block: 68px; }
  .voice-intro h2 { font-size: 45px; letter-spacing: -1px; }
  .voice-phone { box-shadow: 5px 5px 0 #cfd3c3; }
  .voice-bar { padding-inline: 14px; font-size: 11px; }
  .voice-stage { padding-top: 28px; }
  .voice-orb { width: 160px; height: 160px; }
  .voice-core { width: 96px; height: 96px; }
  .voice-controls { padding-inline: 14px; }
  .voice-start { width: 100%; }
  .voice-tips { margin-inline: 14px; }
  .voice-foot { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 10px; gap: 4px; }
  .list-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-core, .voice-ring, .voice-wave i, .voice-tag-dot { animation: none !important; }
}
