:root {
  --blue: #12355b;
  --blue-2: #1f5a96;
  --ink: #1b1f24;
  --muted: #5b6470;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #d8dee6;
  --ok: #e8f1fb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--blue); color: #fff;
}
.brand { display: block; line-height: 0; }
.brand img { display: block; max-width: 100%; height: auto; }
header .lang { color: #fff; font-size: 15px; padding: 8px 4px; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
main:focus { outline: none; }
.skip { position: absolute; left: 8px; top: -64px; background: #fff; color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.top .lang:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
header .lang:focus-visible { outline-color: #fff; }
.page-title { font-size: 22px; margin: 8px 0 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 16px; margin: 0 0 16px;
}
.card h1 { font-size: 22px; line-height: 1.3; margin: 0 0 16px; }
.card h2.day { font-size: 16px; margin: 18px 0 8px; color: var(--muted); text-transform: capitalize; }
.progress { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; background: var(--ok); color: var(--blue); border-radius: 10px; padding: 2px 8px; vertical-align: middle; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  color: #fff; background: var(--blue); border: 2px solid var(--blue); border-radius: 10px; cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--blue-2); border-color: var(--blue-2); }
.btn.secondary { background: #fff; color: var(--blue); }
.btn.option { background: #fff; color: var(--ink); border-color: var(--line); text-align: left; font-weight: 500; }
.btn.option:hover, .btn.option:focus-visible { border-color: var(--blue); background: var(--ok); }
.btn.big { padding: 18px 16px; font-size: 18px; margin-bottom: 12px; }
.btn .sub { display: block; font-weight: 400; font-size: 14px; opacity: .9; margin-top: 4px; }
a.btn + a.btn { margin-top: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.btn.slot { min-height: 46px; padding: 8px; background: #fff; color: var(--blue); }
.link { background: none; border: 0; color: var(--blue-2); font: inherit; text-decoration: underline; padding: 10px 0; cursor: pointer; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.ai-label { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border: 2px solid var(--blue); border-radius: 8px; color: var(--blue); font-size: 15px; }
.lang-choice { border: 0; padding: 0; margin: 0 0 12px; }
.lang-choice label { display: block; padding: 6px 0; }
.video { margin: 0 0 16px; }
.video video { display: block; width: 100%; max-height: 80vh; background: #000; border-radius: 12px; }
footer { max-width: 640px; margin: 8px auto 32px; padding: 0 16px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }
.chat { min-height: 240px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 88%; word-wrap: break-word; }
.msg.assistant { background: var(--ok); align-self: flex-start; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; }
.msg.user a { color: #fff; }
.msg.error, .msg.system { background: #fff4e5; align-self: center; font-size: 14px; }
.msg.typing { opacity: .6; }
.chat-form { display: flex; gap: 8px; align-items: stretch; }
.chat-form textarea { flex: 1; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; min-height: 52px; }
.chat-form .btn { width: auto; min-width: 88px; }
/* Forms on /a and /c (A05, A06) */
.intake label { font-weight: 600; }
.intake input[type="text"], .intake input[type="email"], .intake input[type="file"], .intake textarea { display: block; width: 100%; font: inherit; padding: 10px; border: 2px solid var(--muted); border-radius: 8px; background: #fff; color: var(--ink); }
.intake input[type="checkbox"], .intake input[type="radio"] { width: 1.25rem; height: 1.25rem; margin-right: 8px; vertical-align: middle; }
.intake label:has(input[type="checkbox"]), .intake label:has(input[type="radio"]) { font-weight: 400; display: block; padding: 6px 0; }
.intake input:focus-visible, .intake textarea:focus-visible, .intake button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.intake fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.intake legend { font-weight: 600; padding: 0; }
.notice { background: #fff4e5; border: 2px solid var(--ink); border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.notice:focus { outline: 3px solid var(--ink); }
details { margin: 10px 0; }
summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
dt { font-weight: 600; margin-top: 10px; }
dd { margin: 2px 0 0; }
.card h3 { font-size: 17px; margin: 0 0 10px; }
.privacy h1 { font-size: 22px; }
.privacy h2 { font-size: 17px; margin-top: 18px; }
@media (min-width: 700px) {
  .choices.inline { flex-direction: row; }
}
