:root {
  /* Smallest brand — teal primary (#009684) + amber accent, dark theme.
     Mirrors atoms-platform packages/platform colors.css / tailwind config. */
  --bg: #04110f;
  --panel: #0b1a18;
  --panel-2: #102523;
  --text: #eaf4f1;
  --muted: #88a39d;
  --accent: #009684;        /* Smallest teal */
  --accent-2: #2fd4bb;      /* bright teal highlight */
  --amber: #f5a623;         /* brand amber accent */
  --danger: #ff6b6b;
  --ok: #2fd4bb;
  --line: #1d3531;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(1200px 700px at 72% -12%, #0a3a33 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 36px;
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.brand span { color: var(--accent-2); }
.booth-tag {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.03);
}
.view { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 34px; }
.hidden { display: none !important; }

/* ---- setup ---- */
.hero { text-align: center; }
.hero h1 { font-size: 54px; letter-spacing: -1.5px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--muted); margin-top: 14px; font-size: 17px; line-height: 1.55; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; width: min(440px, 92vw); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hint { font-weight: 400; font-size: 12px; opacity: 0.7; margin-left: 6px; }
input {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 14px 16px; font-size: 17px; outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }
button {
  border: none; border-radius: 12px; padding: 15px 22px; font-size: 16px;
  font-weight: 700; cursor: pointer; transition: transform 0.08s, opacity 0.15s;
}
button:active { transform: scale(0.98); }
.primary {
  background: linear-gradient(90deg, var(--accent), #00b89f);
  color: #fff; font-size: 18px; margin-top: 6px;
}
.primary:disabled { opacity: 0.5; cursor: wait; }
.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.danger { background: var(--danger); color: #fff; }
.error { color: var(--danger); font-size: 14px; min-height: 18px; }

/* ---- call view ---- */
.call-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px;
  width: min(1100px, 94vw); align-items: stretch;
}
.stage {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 48px 32px; min-height: 540px;
}
.orb {
  width: 190px; height: 190px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.orb::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,150,132,0.40), transparent 70%);
  animation: breathe 3.2s ease-in-out infinite;
}
.orb-core {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #2fd4bb, var(--accent));
  filter: blur(2px) saturate(1.2);
  animation: spin 9s linear infinite;
  transition: transform 0.18s ease;
}
.orb.talking .orb-core { animation-duration: 2.5s; transform: scale(1.12); }
.orb.talking::before { animation-duration: 0.9s; }
.orb.listening .orb-core { transform: scale(0.96); }
@keyframes spin { to { transform: rotate(360deg); } }
.orb.talking .orb-core { animation-name: spin-talk; }
@keyframes spin-talk { from { transform: scale(1.1) rotate(0); } to { transform: scale(1.1) rotate(360deg); } }
@keyframes breathe { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
.status { font-size: 19px; font-weight: 600; }
.caption {
  color: var(--muted); font-size: 15px; min-height: 44px; max-width: 520px;
  text-align: center; line-height: 1.5;
}
.controls { display: flex; gap: 12px; }
.tip { color: var(--muted); font-size: 13px; opacity: 0.8; }

/* ---- activity feed ---- */
.feed-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow-y: auto; max-height: 540px;
}
.feed-panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 18px; }
#feed { list-style: none; display: flex; flex-direction: column; gap: 12px; }
#feed li {
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 13px 15px; animation: slidein 0.3s ease;
}
#feed li .t { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
#feed li .d { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; word-break: break-word; }
#feed li.sms { border-left-color: var(--ok); }
#feed li.email { border-left-color: var(--accent-2); }
#feed li.calendar { border-left-color: var(--amber); }
#feed li.phone { border-left-color: var(--amber); }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .call-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}

/* ===== landing gallery ===== */
.brand { cursor: pointer; }
#landing-view { justify-content: flex-start; padding-top: 36px; gap: 26px; }
.featured {
  position: relative; width: min(760px, 94vw);
  background: linear-gradient(135deg, #0c2e29, #0a1f1c);
  border: 1px solid var(--accent); border-radius: 22px; padding: 30px 34px; overflow: hidden;
  cursor: pointer; transition: transform .12s, border-color .15s;
}
.featured:hover { transform: translateY(-2px); border-color: var(--accent); }
.featured-glow { position: absolute; inset: -40% 50% auto -10%; height: 280px;
  background: radial-gradient(circle, rgba(0,150,132,0.55), transparent 70%); filter: blur(20px); }
.featured-body { position: relative; }
.featured-tag { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: var(--accent-2); font-weight: 700; }
.featured h2 { font-size: 38px; margin: 6px 0 6px; letter-spacing: -1px; }
.featured p { color: #cfd2ea; max-width: 56ch; font-size: 15px; line-height: 1.5; margin-bottom: 18px; }

.gallery-wrap { width: min(960px, 94vw); }
.gallery-label { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scn-card {
  --accent: #2d7a8c;
  text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 16px; padding: 20px 22px;
  cursor: pointer; transition: transform .1s, border-color .15s, background .15s; color: var(--text);
  position: relative;
}
.scn-card:hover:not(:disabled) { transform: translateY(-2px); background: var(--panel-2); }
.scn-card:disabled { opacity: .5; cursor: not-allowed; }
.scn-card-vertical { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.scn-card-name { font-size: 20px; font-weight: 700; margin: 5px 0 7px; }
.scn-card-blurb { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.scn-card-go { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-2); }
.scn-card-off { position: absolute; top: 16px; right: 16px; font-size: 10px; color: var(--danger); text-transform: uppercase; letter-spacing: 1px; }

/* ===== back button / card title ===== */
.back { position: absolute; top: 90px; left: 36px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.card-title { font-size: 24px; margin-bottom: 4px; }

/* ===== scenario view ===== */
.scn-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; width: min(1100px, 95vw); align-items: stretch; }
.scn-stage { justify-content: flex-start; gap: 16px; padding: 34px 30px; }
.scn-head { text-align: center; }
.scn-vertical { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent-2); font-weight: 700; }
.scn-head h2 { font-size: 30px; letter-spacing: -.6px; margin: 4px 0 8px; }
.scn-blurb { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 46ch; margin: 0 auto; }
.orb.small { width: 130px; height: 130px; margin: 6px 0; }

.guide-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; overflow-y: auto; max-height: 600px; display: flex; flex-direction: column; gap: 20px; }
.guide-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); margin-bottom: 10px; }
.guide-hint { color: var(--muted); font-size: 12.5px; margin: -6px 0 10px; }
.personas { display: flex; flex-direction: column; gap: 9px; }
.persona { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.persona-name { font-weight: 700; font-size: 15px; }
.persona-verify { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--accent-2); margin: 2px 0 3px; }
.persona-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.try-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.try-list li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; }
.try-list li.star { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.try-list .say { display: block; font-weight: 600; font-size: 14px; }
.try-list .does { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

.guard-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.guard-list li { color: var(--muted); font-size: 12.5px; line-height: 1.45; padding-left: 16px; position: relative; }
.guard-list li::before { content: "→"; position: absolute; left: 0; color: var(--danger); }

@media (max-width: 920px) {
  .scn-grid, .call-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .back { position: static; align-self: flex-start; margin-bottom: 8px; }
}

/* ===== persona-first scenario view ===== */
:root { --scn-accent: var(--accent); }
.scn-stage { justify-content: flex-start; }
.persona-chips { display: flex; flex-direction: column; gap: 9px; }
.persona-chip {
  text-align: left; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 14px; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; gap: 3px; transition: border-color .12s, background .12s;
}
.persona-chip:hover { border-color: var(--scn-accent); }
.persona-chip.active { border-color: var(--scn-accent); background: color-mix(in srgb, var(--scn-accent) 14%, var(--panel-2)); box-shadow: 0 0 0 1px var(--scn-accent) inset; }
.chip-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.chip-rec { font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--bg); background: var(--amber); padding: 1px 7px; border-radius: 999px; font-weight: 800; }
.chip-verify { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--accent-2); }

.briefing { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; animation: slidein .25s ease; }
.brief-block { }
.brief-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--scn-accent); font-weight: 800; margin-bottom: 6px; }
.brief-story { font-size: 14.5px; line-height: 1.5; }
.brief-verify { color: var(--muted); font-size: 12.5px; margin-top: 6px; font-style: italic; }
.say-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.say-steps li { font-size: 14px; line-height: 1.45; }
.push-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.push-list li { color: var(--muted); font-size: 12.5px; line-height: 1.45; padding-left: 16px; position: relative; }
.push-list li::before { content: "→"; position: absolute; left: 0; color: var(--amber); }
.faq-tip { color: var(--muted); font-size: 12px; line-height: 1.45; border-top: 1px dashed var(--line); padding-top: 12px; }

/* live transcript */
.transcript {
  width: 100%; flex: 1; min-height: 150px; max-height: 320px; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px;
}
.transcript-empty { color: var(--muted); font-size: 13px; opacity: .7; margin: auto; }
.tx { font-size: 14px; line-height: 1.45; max-width: 92%; }
.tx-agent { align-self: flex-start; }
.tx-user { align-self: flex-end; text-align: right; }
.tx-who { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 1px; }
.tx-agent .tx-text { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 8px 12px; display: inline-block; }
.tx-user .tx-text { background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); border: 1px solid var(--accent); border-radius: 12px 12px 4px 12px; padding: 8px 12px; display: inline-block; }
