:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #123550;
  background: #f5f8f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #123550; text-decoration: none; font-size: 17px; letter-spacing: -.02em; font-weight: 600; }
.brand strong { color: #129780; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: #123550; font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.language-button { border: 1px solid #d3dfdf; background: white; border-radius: 100px; color: #123550; padding: 9px 17px; font-weight: 600; }
.language-button:hover { border-color: #129780; }

.hero { min-height: 310px; border-radius: 28px; padding: 52px 60px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; overflow: hidden; background: linear-gradient(115deg, #123550, #1d5764); color: white; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.eyebrow { color: #92e9d1; }
.hero h1 { margin: 18px 0 13px; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.hero p { max-width: 560px; margin: 0; color: #dcebed; font-size: 17px; line-height: 1.6; }
.hero-art { position: relative; min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.wave { width: 48px; border-radius: 100px; background: linear-gradient(#64e0c2, #319fc1); opacity: .9; box-shadow: 0 0 60px #55c8ba55; }
.wave-one { height: 72px; transform: rotate(-10deg); }
.wave-two { height: 174px; }
.wave-three { height: 112px; transform: rotate(10deg); }

.practice-card, .conversation-card { background: white; border: 1px solid #e5eeee; border-radius: 22px; box-shadow: 0 16px 40px #153e4b08; }
.practice-card { margin-top: 28px; padding: 31px 36px 35px; }
.conversation-card { margin-top: 22px; padding: 31px 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
.section-kicker { color: #11927e; }
h2 { margin: 8px 0 0; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.private-note { max-width: 230px; color: #698188; font-size: 12px; text-align: right; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 9px; color: #315465; font-size: 13px; font-weight: 700; }
.field input { width: 100%; min-height: 48px; border: 1px solid #cbdcde; border-radius: 11px; padding: 0 14px; background: #fbfdfd; color: #123550; outline: none; }
.field input:focus { border-color: #129780; box-shadow: 0 0 0 3px #12978022; }
.field input::placeholder { color: #8da3a8; }
.session-controls { display: flex; align-items: center; gap: 22px; margin-top: 25px; }
.session-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 182px; min-height: 50px; border: 0; border-radius: 11px; background: #129780; color: white; font-weight: 750; box-shadow: 0 8px 18px #1297802b; }
.session-button:hover { background: #0d806c; }
.session-button:disabled { opacity: .6; cursor: wait; }
.session-button.active { background: #c94052; box-shadow: 0 8px 18px #c940522b; }
.session-button.active:hover { background: #ad3040; }
.button-icon { font-size: 14px; }
.session-status { margin: 0; color: #638087; font-size: 13px; line-height: 1.55; }
.session-status.error { color: #ba3447; }
.conversation { min-height: 130px; max-height: 400px; overflow: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty-conversation { margin: auto 0; color: #839a9e; font-size: 14px; }
.message { max-width: min(75%, 630px); padding: 12px 16px; border-radius: 16px; line-height: 1.55; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.ai { background: #f0f7f7; border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; background: #dff6ed; border-bottom-right-radius: 4px; }
.message-label { display: block; margin-bottom: 4px; color: #4b7980; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 33px 0 42px; color: #7d9297; font-size: 12px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 540px); }
  .site-header { min-height: 74px; }
  .brand { font-size: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 38px 27px; }
  .hero-art { display: none; }
  .hero p { font-size: 15px; }
  .practice-card, .conversation-card { padding: 25px 21px; }
  .section-heading { align-items: start; }
  .private-note { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .session-controls { align-items: stretch; flex-direction: column; gap: 12px; }
  .session-button { width: 100%; }
  footer { flex-direction: column; gap: 5px; }
}
