:root {
  --accent: #2ba9b4;
  --ink: #14212b;
  --muted: #5b6b78;
  --bg: #f4f7f9;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg));
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.inapp-banner {
  background: #fff7e0;
  border: 1px solid #ecd9a0;
  color: #6b5716;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  max-width: 560px;
  margin-bottom: 14px;
  text-align: center;
}
.inapp-actions { display: flex; gap: 10px; justify-content: center; margin: 10px 0 6px; }
.inapp-btn {
  appearance: none; cursor: pointer;
  border-radius: 999px; padding: 9px 20px;
  font-size: 14px; font-weight: 700;
  background: #fff; color: #6b5716; border: 1.5px solid #d9c37e;
}
.inapp-btn.primary { background: #6b5716; color: #fff; border-color: #6b5716; }
.inapp-alt { font-size: 12.5px; opacity: 0.85; }

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(20, 33, 43, 0.10);
  max-width: 560px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  margin-top: 4vh;
}

.state h1 { font-size: 26px; margin-bottom: 10px; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

.badge {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.tagline { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 26px; }

.start-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 700;
  padding: 16px 36px; border-radius: 999px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.start-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 55%, transparent); }
.start-btn:active { transform: translateY(0); }
.phone-ic { margin-right: 8px; }

.mic-note { font-size: 12px; margin-top: 10px; }

.hints { margin-top: 30px; text-align: left; background: color-mix(in srgb, var(--accent) 6%, #fff); border-radius: 14px; padding: 16px 20px; }
.hints-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
.hints ul { list-style: none; }
.hints li { padding: 6px 0; color: var(--ink); font-size: 15px; }
.hints li::before { content: "“"; color: var(--accent); font-weight: 700; }
.hints li::after { content: "”"; color: var(--accent); font-weight: 700; }

.orb-wrap { display: flex; justify-content: center; margin: 8px 0 18px; }
.orb {
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
  animation: idle 2.4s ease-in-out infinite;
}
.orb.talking { animation: talk 0.9s ease-in-out infinite; }
@keyframes idle {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 16px transparent; }
}
@keyframes talk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 22px transparent; }
}

.call-status { font-weight: 600; margin-bottom: 14px; }

.transcript {
  max-height: 220px; overflow-y: auto;
  text-align: left; font-size: 14px; line-height: 1.5;
  background: #f7fafb; border-radius: 12px; padding: 12px 16px;
  margin-bottom: 18px;
}
.transcript p { margin: 4px 0; }
.transcript .agent { color: var(--ink); }
.transcript .user { color: var(--muted); }
.transcript .who { font-weight: 700; }

.hd-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 16px; cursor: pointer; user-select: none;
}
.hd-toggle input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

.end-btn, .again-btn {
  appearance: none; cursor: pointer;
  background: #fff; color: #c0392b;
  border: 1.5px solid #e4b6b0; border-radius: 999px;
  font-size: 15px; font-weight: 600; padding: 10px 26px;
}
.again-btn { color: var(--muted); border-color: #ccd6dd; margin-top: 18px; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cta {
  display: inline-block; text-decoration: none;
  border-radius: 999px; padding: 13px 26px;
  font-weight: 700; font-size: 15px;
  color: var(--accent); border: 1.5px solid var(--accent);
}
.cta.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent); }

.foot {
  margin-top: auto; padding: 26px 10px 8px;
  font-size: 12.5px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; text-align: center;
}
.dot { opacity: 0.5; }

@media (max-width: 480px) {
  .card { padding: 30px 20px; }
  .state h1 { font-size: 22px; }
}
