:root {
  --paper: #f5f4f0;
  --surface: #ffffff;
  --ink: #1d211f;
  --muted: #686e6a;
  --line: #d9dcd9;
  --accent: #17633e;
  --soft-accent: #e8f1eb;
  --bank: #173c5b;
  --alert: #a8542a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.45; }
button, input { font: inherit; }
button { cursor: pointer; }
main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
a { color: inherit; text-underline-offset: .2em; }
nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
nav a { font-weight: 650; text-decoration: none; }
nav span { color: var(--muted); }
header { max-width: 700px; padding: 52px 0 32px; }
.eyebrow, .section-label, .aside-label { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .09em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 10px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.lede { max-width: 670px; margin: 0; color: var(--muted); font-size: 18px; }
.scenario-title { margin: 0 0 14px; font-size: 22px; letter-spacing: -.015em; }

.mode-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); }
.mode { padding: 15px 18px; border: 0; background: transparent; color: var(--ink); text-align: center; }
.mode + .mode { border-left: 1px solid var(--line); }
.mode strong { font-size: 15px; }
.mode.active { background: var(--soft-accent); }

.demo-panel { padding: 32px 0 44px; border-bottom: 1px solid var(--line); }
.manual-experience { display: grid; grid-template-columns: minmax(0, 430px); justify-content: center; gap: 24px; transition: grid-template-columns .3s ease; }
.manual-experience.holding { grid-template-columns: minmax(0, 430px) minmax(260px, 350px); align-items: center; }
.panel-copy { max-width: 650px; margin-bottom: 28px; }
.panel-copy h2, .explanation h2 { margin-bottom: 8px; font-size: 25px; letter-spacing: -.015em; }
.panel-copy p:last-child { margin: 0; color: var(--muted); }
.phone-shell { width: min(100%, 430px); margin: 0 auto; padding: 22px; border: 1px solid #cfd3d0; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 30px rgba(25, 31, 27, .05); }
.phone-topline, .agent-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.phone-topline > div, .agent-summary > div { display: flex; align-items: center; gap: 8px; }
.live-dot, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #aeb4b0; }
.phone-shell.calling .live-dot, .agent-call.running .status-dot, .agent-call.complete .status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(23, 99, 62, .1); }
.speaker { min-height: 178px; margin: 20px 0 10px; padding: 18px; overflow: hidden; border-radius: 10px; background: #f1f4f6; }
.speaker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.speaker-label { color: var(--bank); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.prompt-carousel { display: grid; grid-template-rows: repeat(3, minmax(0, auto)); gap: 7px; min-height: 112px; margin-top: 12px; }
.prompt-carousel p { margin: 0; color: #a0a7a3; font-size: 16px; line-height: 1.32; transition: color .22s ease, opacity .22s ease, transform .22s ease; }
.prompt-carousel p.past { color: #7d8581; opacity: .62; }
.prompt-carousel p.active { color: var(--ink); opacity: 1; font-weight: 550; }
.prompt-carousel p.future { opacity: .5; }
.progress { height: 3px; margin-bottom: 22px; overflow: hidden; background: #e3e6e4; }
.progress::before { content: ""; display: block; width: var(--progress, 0%); height: 100%; background: var(--bank); transition: width .3s linear; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.keypad button { min-height: 58px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 19px; font-weight: 600; }
.keypad button span { display: block; min-height: 12px; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.keypad button:disabled { cursor: not-allowed; opacity: .36; }
.keypad button:not(:disabled):active { background: #e9eeeb; transform: translateY(1px); }
.call-actions { display: flex; gap: 10px; margin-top: 16px; }
.primary, .secondary { min-height: 43px; padding: 10px 15px; border-radius: 6px; font-weight: 650; }
.primary { border: 0; background: var(--ink); color: #fff; }
.primary:hover { background: #333936; }
.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.call-actions button { width: 100%; }
.hold-card { padding: 24px; border: 1px solid #d5c8b7; background: #fffaf2; }
.hold-card > span { display: block; color: var(--alert); font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.hold-card > strong { display: block; margin-top: 4px; font-size: 21px; }
.hold-card h2 { margin: 24px 0 6px; font-size: 21px; letter-spacing: -.015em; }
.hold-card p { margin: 0; color: var(--muted); font-size: 14px; }
.hold-wave { height: 36px; display: flex; align-items: center; gap: 4px; margin-top: 20px; }
.hold-wave i { width: 3px; height: 10px; background: #b68655; animation: hold-wave .9s ease-in-out infinite alternate; }
.hold-wave i:nth-child(2) { height: 22px; animation-delay: -.5s; }
.hold-wave i:nth-child(3) { height: 30px; animation-delay: -.25s; }
.hold-wave i:nth-child(4) { height: 18px; animation-delay: -.7s; }
.hold-wave i:nth-child(5) { height: 12px; animation-delay: -.35s; }
@keyframes hold-wave { from { transform: scaleY(.55); opacity: .5; } to { transform: scaleY(1); opacity: 1; } }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; }
#skip-prompt { margin-top: 12px; }
.text-button:hover { text-decoration: underline; }

.intent-form { display: grid; gap: 10px; max-width: 760px; }
.intent-form label { font-size: 13px; font-weight: 650; }
.intent-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.intent-row input { min-width: 0; padding: 13px 14px; border: 1px solid #c7ccc8; border-radius: 6px; background: var(--surface); color: var(--ink); }
.examples { display: flex; flex-wrap: wrap; gap: 7px; }
.examples button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.examples button:hover { border-color: #abb2ad; color: var(--ink); }
.agent-call { margin-top: 28px; border: 1px solid var(--line); background: var(--surface); }
.agent-summary { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.agent-summary > div > div { display: grid; }
.agent-summary small { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.agent-summary strong { font-size: 15px; }
.intent-summary { display: grid; grid-template-columns: 80px 1fr; gap: 15px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.intent-summary span { color: var(--muted); }
.call-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); }
.call-layout > div { min-height: 390px; padding: 20px; }
.call-layout aside { padding: 20px; border-left: 1px solid var(--line); background: #fafaf8; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; }
.agent-log { margin: 0; padding: 0; list-style: none; }
.agent-log li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.agent-log span { color: var(--muted); font-size: 11px; font-weight: 700; }
.agent-log p { margin: 0; }
.agent-log .action p { color: var(--accent); font-weight: 650; }
.user-card { padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.user-card strong { display: block; font-size: 14px; }
.user-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.user-card.ringing { border-color: #7aa087; background: var(--soft-accent); }
.user-card.ringing strong { color: var(--accent); }
.attention { display: grid; gap: 3px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.attention span { color: var(--muted); font-size: 12px; }
.attention strong { font-size: 18px; }
#restart-agent { margin: 0 20px 20px; }

.reservation-demo { padding: 48px 0 52px; border-bottom: 1px solid var(--line); }
.reservation-demo > h2 { margin-bottom: 18px; font-size: 25px; letter-spacing: -.02em; }
.reservation-form { display: grid; gap: 8px; max-width: 760px; }
.reservation-form label { font-size: 13px; font-weight: 650; }
.reservation-call { max-width: 760px; margin-top: 24px; border: 1px solid var(--line); background: var(--surface); }
.reservation-call.running .status-dot, .reservation-call.complete .status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(23, 99, 62, .1); }
.reservation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.reservation-heading > div { display: flex; align-items: center; gap: 10px; }
.reservation-heading strong { font-size: 14px; }
.reservation-heading time { color: var(--muted); font-size: 12px; }
.reservation-log { margin: 0; padding: 0 20px; list-style: none; }
.reservation-log li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.reservation-log span { color: var(--muted); font-size: 11px; font-weight: 700; }
.reservation-log p { margin: 0; }
.reservation-log .agent p { color: var(--accent); }
.reservation-result { margin: 20px; padding: 18px; border: 1px solid #8eb09a; background: var(--soft-accent); }
.reservation-result span { display: block; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.reservation-result strong { display: block; margin-top: 4px; font-size: 17px; }
.reservation-result p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
#reservation-restart { margin: 0 20px 20px; }

footer { min-height: 64px; display: flex; align-items: center; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }

button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid rgba(23, 99, 62, .35); outline-offset: 2px; }

@media (max-width: 720px) {
  main { width: min(100% - 28px, 1040px); }
  header { padding-top: 44px; }
  .call-layout { grid-template-columns: 1fr; }
  .manual-experience.holding { grid-template-columns: minmax(0, 430px); }
  .call-layout aside { border-top: 1px solid var(--line); border-left: 0; }
  .intent-row { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
