:root {
  color-scheme: light;
  --ink: #143331;
  --muted: #657b79;
  --green: #0b625a;
  --green-dark: #084a45;
  --mint: #e5f4f0;
  --cream: #f7f4ed;
  --white: #fff;
  --danger: #a63d40;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, #eef8f5 0, transparent 35%), var(--cream);
  color: var(--ink);
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: 24px 18px 30px; }
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 36px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--green); color: white; font-weight: 800; }
.panel { background: rgba(255,255,255,.84); border: 1px solid rgba(11,98,90,.1); border-radius: 28px; padding: 28px 22px; box-shadow: 0 18px 50px rgba(20,51,49,.08); }
.welcome { padding-top: 44px; padding-bottom: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(40px, 12vw, 66px); max-width: 600px; }
h2 { font-size: clamp(29px, 8vw, 42px); }
.lead { max-width: 540px; margin: 22px 0 30px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.actions { display: grid; gap: 12px; }
button { border: 0; border-radius: 16px; min-height: 54px; padding: 0 20px; font-weight: 750; }
.primary { background: var(--green); color: white; box-shadow: 0 8px 22px rgba(11,98,90,.2); }
.primary:hover { background: var(--green-dark); }
.secondary { background: var(--mint); color: var(--green-dark); }
.notice { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #e2e9e6; color: var(--muted); font-size: 13px; }
.back { min-height: 36px; padding: 0; background: transparent; color: var(--green); margin-bottom: 32px; }
label { display: block; margin: 28px 0 9px; font-size: 13px; font-weight: 750; }
input { width: 100%; height: 68px; padding: 0 18px; margin-bottom: 14px; border: 2px solid #d7e2df; border-radius: 16px; background: white; color: var(--ink); font-size: 28px; font-weight: 750; letter-spacing: .15em; text-align: center; outline: none; }
input:focus { border-color: var(--green); }
.error { min-height: 20px; color: var(--danger); font-size: 14px; }
.code { margin: 30px 0 16px; padding: 22px 10px; background: var(--mint); border-radius: 20px; font-size: clamp(40px, 14vw, 72px); font-weight: 850; letter-spacing: .14em; text-align: center; color: var(--green-dark); }
.muted { color: var(--muted); text-align: center; }
.pulse { width: 12px; height: 12px; margin: 20px auto 0; border-radius: 50%; background: var(--green); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.hidden { display: none !important; }
.callTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.badge { display: inline-block; margin-right: 8px; padding: 7px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.status { color: var(--muted); font-size: 13px; }
.end { min-height: 40px; padding: 0 14px; background: #f8e8e8; color: var(--danger); font-size: 13px; }
.transcript { min-height: 180px; margin-bottom: 14px; padding: 22px; border-radius: 24px; }
.source { background: white; border: 1px solid #e3e9e7; }
.translated { background: var(--green); color: white; }
.translated .eyebrow { color: #aee0d8; }
.spoken { margin: 0; font-size: clamp(22px, 6vw, 34px); line-height: 1.28; letter-spacing: -.025em; }
.callError { margin: 12px 0; padding: 14px; border-radius: 12px; background: #fbeaea; color: var(--danger); font-size: 14px; }
.talkArea { position: sticky; bottom: 0; padding: 20px 0 max(8px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--cream) 18%); text-align: center; }
.talk { width: min(100%, 360px); height: 76px; border-radius: 999px; background: var(--green); color: white; box-shadow: 0 12px 28px rgba(11,98,90,.25); touch-action: none; user-select: none; }
.talk:disabled { opacity: .45; cursor: not-allowed; }
.talk.active { background: #b44a47; transform: scale(.98); }
.mic { display: inline-block; margin-right: 9px; font-size: 15px; }
#talkHint { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .actions { grid-template-columns: 1fr 1fr; } .panel { padding-left: 38px; padding-right: 38px; } }
