:root {
  --ink: #18342d;
  --muted: #65736e;
  --paper: #f6f2e9;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(24, 52, 45, 0.12);
  --green: #1c725a;
  --green-dark: #12513f;
  --orange: #f47f45;
  --yellow: #f5c956;
  --shadow: 0 24px 70px rgba(32, 66, 56, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(3px); opacity: .58; pointer-events: none; }
.ambient-one { width: 520px; height: 520px; right: -180px; top: -210px; background: radial-gradient(circle, #f8d87f, transparent 68%); }
.ambient-two { width: 580px; height: 580px; left: -300px; bottom: -320px; background: radial-gradient(circle, #9ccfc0, transparent 68%); }
.shell { position: relative; width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--green); font: 800 23px/1 Georgia, serif; transform: rotate(-4deg); }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 19px/1.15 Georgia, serif; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .06em; }
.cost-pill { padding: 9px 14px; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.cost-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #39a87c; box-shadow: 0 0 0 4px rgba(57,168,124,.12); }
.welcome-view { padding: 54px 0 80px; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 17px; font-size: 11px; font-weight: 800; letter-spacing: .19em; color: var(--orange); }
h1 { font: 700 clamp(48px, 7vw, 84px)/.99 Georgia, "Noto Serif SC", serif; letter-spacing: -.05em; margin: 0; }
h1 em { font-style: normal; color: var(--green); }
.hero-text { max-width: 600px; margin: 27px 0 22px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.promise-row { display: flex; gap: 10px; align-items: center; color: #4e625b; font-size: 12px; font-weight: 650; }
.promise-row i { width: 3px; height: 3px; background: #a5afa9; border-radius: 50%; }
.scenario-section { margin-top: 78px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font: 700 30px/1.1 Georgia, "Noto Serif SC", serif; }
.section-heading > p { color: var(--muted); font-size: 13px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.scenario-card { position: relative; min-height: 235px; padding: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: var(--card); box-shadow: 0 12px 40px rgba(37,72,62,.07); cursor: pointer; text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.scenario-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.scenario-card:focus-visible { outline: 3px solid rgba(28,114,90,.3); outline-offset: 3px; }
.scenario-card .number { position: absolute; right: 19px; top: 16px; font: italic 700 48px/1 Georgia, serif; color: rgba(24,52,45,.06); }
.scenario-card .emoji { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--tint); font-size: 25px; }
.scenario-card h3 { margin: 24px 0 8px; font: 700 21px/1.2 Georgia, "Noto Serif SC", serif; }
.scenario-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.scenario-card footer { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 750; color: var(--green); letter-spacing: .08em; }
.scenario-card footer span:last-child { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 16px; }

.session-view { max-width: 760px; margin: 14px auto 0; padding-bottom: 35px; }
.session-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.icon-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.6); cursor: pointer; }
.icon-button.speaking { background: #fff1c9; animation: pulse 1.1s infinite; }
.session-title { display: flex; justify-content: center; align-items: center; gap: 11px; }
.session-title > span { font-size: 25px; }
.session-title small, .session-title strong { display: block; }
.session-title small { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
.session-title strong { font: 700 16px/1.2 Georgia, serif; }
.progress-wrap { display: flex; align-items: center; gap: 14px; margin: 27px auto 20px; max-width: 530px; }
.progress-steps { display: flex; gap: 6px; flex: 1; }
.progress-steps i { height: 5px; flex: 1; border-radius: 9px; background: rgba(24,52,45,.1); transition: background .35s; }
.progress-steps i.done { background: var(--green); }
.progress-wrap > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.conversation { height: min(49vh, 460px); overflow-y: auto; padding: 25px 10px 18px; scroll-behavior: smooth; }
.message { display: flex; gap: 10px; margin: 0 0 18px; animation: rise .3s ease both; }
.message.user { justify-content: flex-end; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: white; font-size: 13px; font-weight: 800; }
.bubble { max-width: min(78%, 530px); padding: 14px 17px; border-radius: 7px 19px 19px 19px; background: white; box-shadow: 0 8px 28px rgba(36,66,57,.08); font-size: 15px; line-height: 1.55; }
.bubble small { display: block; margin-top: 6px; color: #8c9893; font-size: 11px; }
.user .bubble { color: white; background: var(--green); border-radius: 19px 7px 19px 19px; box-shadow: none; }
.typing .bubble { display: flex; gap: 4px; padding: 18px; }
.typing b { width: 5px; height: 5px; border-radius: 50%; background: #8aa097; animation: bounce 1s infinite; }
.typing b:nth-child(2) { animation-delay: .16s; }.typing b:nth-child(3) { animation-delay: .32s; }
.coach-card { max-width: 560px; margin: 0 auto 12px; padding: 12px 15px; border: 1px solid rgba(244,127,69,.22); border-radius: 15px; background: rgba(255,247,236,.9); font-size: 13px; }
.coach-label { color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.coach-card p { margin: 5px 0 0; line-height: 1.55; }
.composer { position: sticky; bottom: 0; padding: 13px 10px 6px; background: linear-gradient(transparent, var(--paper) 18%); }
.input-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.text-input-wrap { display: flex; align-items: center; padding: 5px 6px 5px 17px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 12px 35px rgba(33,68,57,.09); }
.text-input-wrap input { width: 100%; height: 42px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.text-input-wrap button { width: 35px; height: 35px; flex: 0 0 auto; border: 0; border-radius: 50%; color: white; background: var(--green); cursor: pointer; font-size: 20px; }
.secondary-button, .primary-button { padding: 13px 18px; border-radius: 15px; cursor: pointer; font-weight: 750; font-size: 13px; }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.primary-button { color: white; border: 1px solid var(--green); background: var(--green); }
.talk-button { width: 54px; height: 54px; border: 0; border-radius: 18px; background: var(--orange); box-shadow: 0 10px 25px rgba(244,127,69,.25); cursor: pointer; }
.talk-button.hold-mode { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mic-shape { display: inline-block; width: 13px; height: 20px; border: 2px solid white; border-radius: 8px; position: relative; }
.mic-shape:after { content: ""; position: absolute; width: 19px; height: 10px; left: -5px; bottom: -6px; border: 2px solid white; border-top: 0; border-radius: 0 0 10px 10px; }
.talk-button.listening { animation: pulse 1.1s infinite; }
.composer-note { margin: 8px 0 0; text-align: center; color: #8a9691; font-size: 10px; }
.speech-status { display: flex; justify-content: center; align-items: center; gap: 7px; text-align: center; margin-bottom: 8px; color: var(--orange); font-size: 11px; font-weight: 700; }
.speech-status .listen-dot { display: inline-block; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 1s infinite; }
.audio-level { width: 54px; height: 5px; overflow: hidden; border-radius: 9px; background: rgba(244,127,69,.16); }
.audio-level b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .08s linear; }

.summary-view { max-width: 690px; margin: 50px auto 0; padding: 60px 45px; text-align: center; border: 1px solid rgba(255,255,255,.8); border-radius: 34px; background: rgba(255,255,255,.68); box-shadow: var(--shadow); }
.confetti { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 21px; border-radius: 22px; color: #84620d; background: var(--yellow); font-size: 28px; transform: rotate(-5deg); }
.summary-view h2 { margin: 0; font: 700 34px/1.2 Georgia, "Noto Serif SC", serif; }
.summary-message { color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.metric-grid div { padding: 18px 8px; border-radius: 17px; background: #f6f4ed; }
.metric-grid strong, .metric-grid span { display: block; }
.metric-grid strong { font: 700 29px/1 Georgia, serif; color: var(--green); }
.metric-grid span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.takeaways { text-align: left; margin: 20px 0; }
.takeaways p { padding: 10px 13px; margin: 7px 0; border-left: 3px solid var(--yellow); background: rgba(245,201,86,.12); font-size: 13px; }
.summary-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes bounce { 50% { transform: translateY(-4px); } }
@keyframes pulse { 50% { transform: scale(1.07); opacity: .78; } }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 680px); }
  .topbar { height: 74px; }
  .welcome-view { padding-top: 32px; }
  .scenario-section { margin-top: 52px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 195px; }
  .section-heading > p { display: none; }
  .session-view { margin-top: 4px; }
  .conversation { height: calc(100vh - 310px); min-height: 290px; }
  .input-row { grid-template-columns: 1fr auto; }
  .input-row > .secondary-button { grid-column: 1 / -1; justify-self: center; padding: 8px 13px; border: 0; background: transparent; color: var(--orange); }
  .summary-view { margin-top: 25px; padding: 38px 20px; }
}
