/* services/us-site/public/assets/css/demo.css
   Page-specific styles for demo.html (Test it live). Builds on site.css tokens. */

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.eyebrow { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.btn-lg { padding: 17px 34px; font-size: .86rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

/* Hero */
.hero-demo { padding: clamp(44px, 7vw, 80px) 0 clamp(20px, 4vw, 40px); text-align: left; }
.hero-demo h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; max-width: 20ch; }
.hero-demo .lead { max-width: 46ch; font-size: clamp(1.02rem, 2vw, 1.22rem); }
.demo-flag { display: inline-block; margin-top: 14px; font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); background: #f1ece3; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }

/* Grid */
.demos { padding-top: clamp(20px, 4vw, 40px); }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .demo-grid { grid-template-columns: 1fr 1fr; } .demo-card.span-2 { grid-column: 1 / -1; } }

.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.dc-head { position: relative; }
.dc-num { font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--orange); }
.dc-head h2 { font-size: 1.32rem; margin: 6px 0 6px; line-height: 1.2; }
.dc-head p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Forms shared */
.dc-form { display: flex; flex-direction: column; gap: 12px; }
.dc-form input[type=text], .dc-form input[type=email], .dc-form input[type=tel], .chat-form input {
  font-family: var(--font-sans); font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--ink); width: 100%;
}
.dc-form input:focus, .chat-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(214,69,7,.12); }
.svc { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.svc legend { font-weight: 700; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.svc label { display: flex; align-items: center; gap: 10px; font-size: .96rem; cursor: pointer; }
.svc input { accent-color: var(--orange); width: 17px; height: 17px; }

/* Result panels */
.dc-result { font-size: .96rem; }
.dc-result .loading { color: var(--ink-soft); }
.dc-result .loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dc-result .err { color: #9a3a12; }
.dc-result .ok { background: #fbf7f2; border: 1px solid #ecd9c9; border-radius: 12px; padding: 16px; }
.dc-result .ok strong { color: var(--orange); font-size: 1.05rem; }
.dc-result .ok p { margin: 6px 0 0; color: var(--ink-soft); }
.dc-result .when { font-weight: 600; color: var(--ink); }
.slots { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.slot { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; padding: 10px 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 10px; cursor: pointer; transition: background .14s, color .14s; }
.slot:hover { background: var(--ink); color: #fff; }
.cal-link { display: inline-block; margin-top: 12px; font-weight: 700; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 9px; min-height: 180px; max-height: 320px; overflow-y: auto; padding: 6px 2px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: .95rem; line-height: 1.4; }
.msg.user { align-self: flex-end; background: var(--ink); color: #f6f1e8; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #f1ece3; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.typing { color: var(--ink-soft); letter-spacing: 3px; }
.msg.err { background: #f7e7df; color: #9a3a12; }
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; }

/* Voice */
.voice-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 14px 0 6px; }
.voice-orb { width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #e85b1f, var(--orange)); box-shadow: 0 18px 36px -14px rgba(214,69,7,.7); transition: transform .15s; }
.voice-orb:hover { transform: scale(1.04); }
.voice-orb svg { width: 34px; height: 34px; }
.voice-orb.pulse { animation: orbPulse 1.6s ease-out infinite; }
@keyframes orbPulse { 0% { box-shadow: 0 0 0 0 rgba(214,69,7,.45); } 70% { box-shadow: 0 0 0 22px rgba(214,69,7,0); } 100% { box-shadow: 0 0 0 0 rgba(214,69,7,0); } }
.voice-status { text-align: center; color: var(--ink-soft); font-size: .92rem; max-width: 30ch; margin: 0; }
@media (prefers-reduced-motion: reduce) { .voice-orb.pulse { animation: none; } .dc-result .loading::after { animation: none; } }

/* Phone screen (SMS) */
.phone-screen { background: #0e0d0c; border-radius: 18px; padding: 14px; color: #fff; }
.ps-bar { text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ps-name { font-size: .8rem; color: #bdb6ab; font-weight: 600; }
.ps-bubble { margin: 14px 6px 8px; background: #2c2c2e; color: #fff; padding: 11px 14px; border-radius: 16px; border-bottom-left-radius: 5px; font-size: .92rem; line-height: 1.4; max-width: 86%; }
.ps-meta { font-size: .76rem; color: #8a847b; margin: 6px; }
.ps-meta.ok { color: #5fbf7f; }

/* Ring flow */
.ring-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rf-step { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rf-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; font-size: .9rem; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.rf-ico.ai { background: var(--orange); color: #fff; border-color: var(--orange); }
.rf-ico.ring-dot { position: relative; }
.rf-ico.ring-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); animation: ringDot 1.6s ease-out infinite; }
@keyframes ringDot { 0% { box-shadow: 0 0 0 0 rgba(214,69,7,.5); } 70% { box-shadow: 0 0 0 14px rgba(214,69,7,0); } }
.rf-step span { font-size: .92rem; color: var(--ink); }
.rf-arrow { color: var(--orange); font-size: 1.4rem; flex: none; }
@media (max-width: 759px) { .rf-arrow { transform: rotate(90deg); align-self: center; } .rf-step { min-width: 0; } }
.ring-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ring-num { font-family: var(--font-sans); font-size: .86rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .rf-ico.ring-dot::before { animation: none; } }

/* ── DEMO PROFILE CARD ── */
.demo-profile {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px 18px; margin-bottom: 28px;
  border-left: 3px solid var(--orange);
}
.dp-label {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 6px;
}
.dp-name {
  font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); margin: 0 0 14px;
}
.dp-rows { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 32px; }
.dp-row { display: flex; gap: 8px; align-items: baseline; }
.dp-row dt { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; color: var(--ink-soft); min-width: 64px; }
.dp-row dd { margin: 0; font-size: .88rem; color: var(--ink); }
.dp-note { margin: 14px 0 0; font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; font-style: italic; }

/* CTA band (shared with home charte) */
.cta-band { background: var(--ink); color: #f6f1e8; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.7rem); max-width: 20ch; margin: 0 auto 14px; }
.cta-band p { color: #cfc6ba; max-width: 46ch; margin: 0 auto 28px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
