:root {
  --bg: #f5f1eb;
  --bg-soft: #faf7f2;
  --card: rgba(255, 253, 249, 0.86);
  --card-strong: #ffffff;
  --ink: #312d37;
  --ink-80: rgba(49, 45, 55, 0.8);
  --ink-60: rgba(49, 45, 55, 0.6);
  --ink-40: rgba(49, 45, 55, 0.4);
  --line: rgba(49, 45, 55, 0.12);
  --teal: #00d1d2;
  --teal-deep: #00a8a9;
  --teal-soft: rgba(0, 209, 210, 0.12);
  --green: #478254;
  --red: #c4373f;
  --shadow-sm: 0 1px 4px rgba(33, 29, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(33, 29, 39, 0.12);
  --shadow-lg: 0 18px 50px rgba(33, 29, 39, 0.16);
  --radius: 24px;
}

@font-face {
  font-family: 'IQOS';
  src: url('https://www.iqos.com/global-assets/iqos/fonts/IQOSW04-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IQOS';
  src: url('https://www.iqos.com/global-assets/iqos/fonts/IQOSW04-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'IQOS', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 209, 210, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(49, 45, 55, 0.08), transparent 28%),
    linear-gradient(180deg, #f9f5f0 0%, #f3eee7 56%, #f6f1eb 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 209, 210, 0.32);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  width: 26rem;
  height: 26rem;
  top: -8rem;
  left: -8rem;
  background: rgba(0, 209, 210, 0.12);
}

.ambient-b {
  width: 22rem;
  height: 22rem;
  top: 12rem;
  right: -8rem;
  background: rgba(49, 45, 55, 0.08);
}

.ambient-c {
  width: 20rem;
  height: 20rem;
  bottom: -8rem;
  left: 18%;
  background: rgba(71, 130, 84, 0.07);
}

.root-shell,
.screen,
.app {
  position: relative;
  z-index: 1;
}

.root-shell {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  width: 100%;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

.screen-dark {
  background: linear-gradient(180deg, #312d37 0%, #25222c 100%);
  color: rgba(255, 253, 249, 0.92);
}

.screen-copy,
.selection-shell,
.app-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.screen-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: 38vh;
  padding: 28px 4px 22px;
}

.brand-mark,
.brand-copy,
.eyebrow,
.field-label,
.panel-subtitle,
.selection-hint,
.prompt-label,
.context-chip,
.context-pill,
.ghost-btn,
.primary-btn,
.product-card-sub,
.field-error,
.legal-text,
.status-row,
.transcript {
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark::after {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
}

.brand-mark-light {
  color: var(--ink);
}

.selection-hero .brand-mark-light {
  color: var(--ink);
}

.app-header .brand-mark-light {
  color: rgba(255, 253, 249, 0.96);
}

.eyebrow {
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.72;
}

.screen-copy h1,
.selection-hero h2,
.briefing h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.screen-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 253, 249, 0.78);
  line-height: 1.6;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.briefing p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-80);
  line-height: 1.65;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.selection-hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-80);
  line-height: 1.65;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.auth-card,
.selection-hero,
.selection-panel,
.briefing,
.conversation {
  box-shadow: var(--shadow-lg);
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--card);
  backdrop-filter: blur(22px);
  border-radius: var(--radius);
}

.auth-card {
  width: min(420px, 100%);
  justify-self: center;
  margin-top: 12px;
  padding: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--ink);
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-60);
}

.pw-input {
  width: 100%;
  border: 1px solid rgba(49, 45, 55, 0.14);
  background: rgba(49, 45, 55, 0.04);
  border-radius: 18px;
  color: var(--ink);
  padding: 16px 18px;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pw-input::placeholder {
  color: var(--ink-40);
}

.pw-input:focus {
  border-color: rgba(0, 209, 210, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 209, 210, 0.18);
}

.field-error {
  min-height: 1.2rem;
  margin-top: 12px;
  font-size: 0.72rem;
  color: #ff8c91;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  border-radius: 16px;
  background: var(--ink);
  color: rgba(255, 253, 249, 0.96);
  padding: 15px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background: #1d1a23;
  transform: translateY(-1px);
}

.selection-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 32px 0;
}

.selection-hero,
.selection-panel {
  padding: 28px;
}

.selection-hero {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 209, 210, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 238, 0.88));
}

.selection-hero h2 {
  color: var(--ink);
  max-width: 11ch;
  margin-bottom: 4px;
}

.selection-hero p {
  color: var(--ink-80);
  max-width: 52ch;
}

.hero-note {
  width: fit-content;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--ink-80);
  background: rgba(0, 209, 210, 0.1);
  border: 1px solid rgba(0, 209, 210, 0.2);
}

.selection-panel {
  background: rgba(255, 255, 255, 0.9);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-40);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-height: 186px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  text-align: left;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card.active {
  border-color: rgba(0, 209, 210, 0.55);
  background: linear-gradient(180deg, rgba(0, 209, 210, 0.11), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 30px rgba(0, 209, 210, 0.12);
}

.product-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-card-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 700;
}

.product-card-copy {
  color: var(--ink-80);
  line-height: 1.55;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.selection-actions {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.selection-actions .primary-btn {
  width: fit-content;
  min-width: 180px;
}

.selection-hint {
  font-size: 0.72rem;
  color: var(--ink-60);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px max(0px, env(safe-area-inset-bottom));
}

.app-header {
  width: min(1240px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(49, 45, 55, 0.98);
  color: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 253, 249, 0.16);
}

.header-left,
.header-context,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-copy {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.56);
  overflow-wrap: anywhere;
}

.context-pill,
.context-chip,
.ghost-btn {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.context-pill {
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(0, 209, 210, 0.1);
  border: 1px solid rgba(0, 209, 210, 0.25);
}

.context-chip {
  padding: 8px 12px;
  color: rgba(255, 253, 249, 0.55);
  border: 1px solid rgba(255, 253, 249, 0.12);
}

.ghost-btn {
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(255, 253, 249, 0.14);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.ghost-btn:hover {
  background: rgba(255, 253, 249, 0.04);
  color: rgba(255, 253, 249, 0.96);
  border-color: rgba(255, 253, 249, 0.28);
}

.ghost-btn[aria-pressed='true'] {
  color: var(--teal);
  border-color: rgba(0, 209, 210, 0.35);
  background: rgba(0, 209, 210, 0.08);
}

.ghost-btn[data-state='speaking'] {
  color: #ff9aa0;
  border-color: rgba(196, 55, 63, 0.38);
  background: rgba(196, 55, 63, 0.12);
}

.ghost-btn[data-state='off'] {
  color: rgba(255, 253, 249, 0.46);
  border-color: rgba(255, 253, 249, 0.12);
  background: transparent;
}

.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding-bottom: 18px;
}

.briefing,
.conversation {
  min-height: 0;
}

.briefing {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 209, 210, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.briefing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-top: 4px;
}

.briefing p {
  color: var(--ink-80);
  max-width: 34ch;
  overflow-wrap: anywhere;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.fact-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 209, 210, 0.12);
  flex: 0 0 auto;
}

.fact-text {
  color: var(--ink-80);
  line-height: 1.45;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.prompt-section {
  margin-top: 20px;
}

.prompt-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 10px;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-80);
  font-size: 0.82rem;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.prompt-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 209, 210, 0.42);
  background: rgba(0, 209, 210, 0.1);
}

.briefing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #16131e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.briefing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 209, 210, 0.24);
}

.conversation {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.chat-area {
  flex: 1;
  overflow: auto;
  padding: 24px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: rise 150ms ease;
}

.message.user {
  flex-direction: row-reverse;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-av {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex: 0 0 auto;
}

.msg-av.ai {
  background: var(--teal);
  color: var(--ink);
}

.msg-av.you {
  color: var(--ink-40);
  background: rgba(49, 45, 55, 0.06);
  border: 1px solid var(--line);
}

.msg-col {
  max-width: min(84%, 640px);
  min-width: 0;
  display: grid;
  gap: 6px;
}

.message.user .msg-col {
  align-items: flex-end;
}

.msg-bubble {
  border-radius: 18px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--ink-80);
  border: 1px solid var(--line);
  line-height: 1.6;
  font-size: 0.98rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}

.message.user .msg-bubble {
  background: linear-gradient(180deg, #31303b, #23212b);
  color: rgba(255, 253, 249, 0.94);
  border-color: transparent;
}

.message.assistant .msg-bubble {
  border-left: 3px solid var(--teal);
}

.message.assistant .msg-bubble.speaking {
  animation: bubblePulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(0, 209, 210, 0.12), var(--shadow-sm);
}

.msg-bubble a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.msg-bubble a:hover {
  color: var(--teal);
}

.msg-bubble.deflected {
  border-left: 3px solid rgba(196, 55, 63, 0.42);
  background: rgba(196, 55, 63, 0.04);
}

.journey-message .msg-col {
  max-width: min(92%, 760px);
}

.journey-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.96));
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
}

.journey-title {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.journey-copy {
  color: var(--ink-80);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.journey-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.journey-detail {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(49, 45, 55, 0.1);
}

.journey-detail.clickable {
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.journey-detail.clickable:hover,
.journey-detail.clickable:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 209, 210, 0.46);
  background: rgba(0, 209, 210, 0.09);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.journey-detail span,
.trial-grid label span {
  color: var(--ink-40);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-detail strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.journey-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.journey-action:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 209, 210, 0.44);
  background: rgba(0, 209, 210, 0.1);
  box-shadow: var(--shadow-sm);
}

.journey-action.primary-action {
  width: fit-content;
  color: rgba(255, 253, 249, 0.96);
  background: linear-gradient(180deg, #31303b, #23212b);
  border-color: transparent;
}

.trial-card {
  gap: 16px;
}

.trial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trial-grid label {
  display: grid;
  gap: 8px;
}

.trial-grid input,
.trial-grid select {
  width: 100%;
  border: 1px solid rgba(49, 45, 55, 0.14);
  background: #fffdf9;
  border-radius: 14px;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
  font-size: 0.92rem;
}

.trial-grid input:focus,
.trial-grid select:focus {
  outline: 3px solid rgba(0, 209, 210, 0.18);
  border-color: rgba(0, 209, 210, 0.7);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--ink-40);
  padding: 0 2px;
}

.thinking {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.thinking-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
}

.tdot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  opacity: 0.3;
  animation: pulse 1.15s infinite;
}

.tdot:nth-child(2) {
  animation-delay: 0.16s;
}

.tdot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes bubblePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 209, 210, 0.12), var(--shadow-sm);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 7px rgba(0, 209, 210, 0.08), var(--shadow-sm);
  }
}

.composer {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 249, 244, 0.98));
}

.composer-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.composer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.transcript {
  min-height: 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-60);
  font-style: italic;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.transcript.live {
  color: var(--ink-80);
  font-style: normal;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fffdf9;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.composer-row:focus-within {
  border-color: rgba(0, 209, 210, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 209, 210, 0.12);
}

.composer-row.recording {
  border-color: rgba(196, 55, 63, 0.7);
  background: rgba(196, 55, 63, 0.03);
  box-shadow: 0 0 0 4px rgba(196, 55, 63, 0.08);
}

.composer-row.speaking {
  border-color: rgba(0, 209, 210, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 209, 210, 0.12);
}

.text-inp {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.98rem;
  padding: 12px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  resize: none;
  line-height: 1.45;
  min-height: 24px;
  max-height: 88px;
  overflow-y: auto;
}

.text-inp::placeholder {
  color: var(--ink-40);
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.waveform.active {
  opacity: 1;
}

.wbar {
  width: 4px;
  min-height: 3px;
  border-radius: 999px;
  background: var(--red);
  animation: wave 640ms ease-in-out infinite alternate;
}

.wbar:nth-child(1) { animation-duration: 460ms; }
.wbar:nth-child(2) { animation-duration: 620ms; animation-delay: 90ms; }
.wbar:nth-child(3) { animation-duration: 420ms; animation-delay: 40ms; }
.wbar:nth-child(4) { animation-duration: 680ms; animation-delay: 140ms; }
.wbar:nth-child(5) { animation-duration: 540ms; animation-delay: 70ms; }

@keyframes wave {
  from { height: 4px; }
  to { height: 18px; }
}

.mic-btn,
.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.mic-btn {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(49, 45, 55, 0.14);
  box-shadow: 0 2px 6px rgba(49, 45, 55, 0.08);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.mic-btn:hover {
  color: var(--teal-deep);
  background: rgba(0, 209, 210, 0.1);
  border-color: rgba(0, 209, 210, 0.35);
}

.mic-btn.recording {
  color: var(--red);
  background: rgba(196, 55, 63, 0.11);
  border-color: rgba(196, 55, 63, 0.4);
  transform: scale(1.05);
}

.mic-btn.processing {
  color: var(--teal-deep);
  background: rgba(0, 209, 210, 0.1);
  border-color: rgba(0, 209, 210, 0.34);
  opacity: 0.7;
}

.mic-btn.speaking,
.send-btn:hover {
  transform: translateY(-1px);
}

.send-btn {
  background: linear-gradient(180deg, #31303b, #23212b);
  color: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-sm);
}

.send-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.mic-icon-body {
  fill: currentColor;
}

.mic-icon-stroke {
  stroke: currentColor;
}

.status-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-40);
}

.sdot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.sdot.idle { background: var(--ink-40); }
.sdot.ready { background: var(--green); }
.sdot.recording { background: var(--red); animation: blink 800ms infinite; }
.sdot.processing { background: var(--teal); animation: blink 1.1s infinite; }
.sdot.speaking { background: var(--teal); animation: blink 1.5s infinite; }

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.legal-bar {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 10px 14px 0;
}

.legal-text {
  padding: 12px 16px;
  text-align: center;
  color: rgba(49, 45, 55, 0.52);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(49, 45, 55, 0.08);
  border-radius: 18px 18px 0 0;
  line-height: 1.45;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.legal-text strong {
  color: rgba(49, 45, 55, 0.72);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(49, 45, 55, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 1120px) {
  .selection-shell,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app {
    height: 100dvh;
  }

  .app-grid {
    grid-template-rows: auto 1fr;
  }

  .briefing {
    display: none;
  }

  .app-grid {
    grid-template-rows: 1fr;
  }

  .legal-bar {
    display: none;
  }
}

@media (max-width: 820px) {
  .screen {
    padding-inline: 14px;
  }

  .screen-copy {
    min-height: auto;
    padding-top: 40px;
  }

  .selection-hero {
    display: none;
  }

  .selection-shell {
    min-height: unset;
    align-items: start;
    padding: 20px 0;
  }

  .product-card {
    min-height: 0;
    padding: 14px 16px;
    gap: 6px;
  }

  .product-card-copy {
    display: none;
  }

  .selection-hero,
  .selection-panel,
  .briefing,
  .conversation,
  .app-header {
    border-radius: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand-lockup,
  .context-chip {
    display: none;
  }

  .header-left {
    flex-wrap: nowrap;
  }

  .header-actions .ghost-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  .header-actions .ghost-btn .btn-label {
    display: none;
  }

  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .app {
    padding-inline: 14px;
  }

  .chat-area {
    padding: 18px 14px 10px;
  }

  .composer {
    padding: 14px 14px 16px;
  }

  .msg-col {
    max-width: 90%;
  }

  .journey-message .msg-col {
    max-width: 94%;
  }

  .journey-detail-grid,
  .trial-grid {
    grid-template-columns: 1fr;
  }

  .journey-detail {
    min-height: 0;
  }

  .composer-row {
    padding-left: 14px;
    gap: 8px;
  }

  .composer-topline {
    align-items: center;
  }

  .composer-actions {
    margin-left: auto;
  }

  .transcript:not(.live) {
    display: none;
  }

  .mic-btn,
  .send-btn {
    width: 42px;
    height: 42px;
  }

  .waveform {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }

  .chat-area {
    scroll-behavior: auto;
  }
}
