/* Calm, warm, readable. Teal for structure, orange for the one thing to do. System fonts only. */
:root {
  --teal-900: #0f3d3e; --teal-700: #17605f; --teal-500: #2a8a86; --teal-100: #e3f2f0; --teal-50: #f3faf8;
  --orange-600: #c75b12; --orange-500: #e07a2e; --orange-100: #fdebdc;
  --ink: #1f2a2a; --muted: #5b6b6a; --line: #d5e3e0; --bg: #fffdf9; --card: #ffffff;
  --radius: 14px; --gap: 1.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e9f1ef; --muted: #a9bcb9; --bg: #10201f; --card: #162b2a; --line: #2b4644;
          --teal-50: #14302f; --teal-100: #1b3b3a; --teal-700: #8fd3cc; --teal-900: #cdeee9; --orange-100: #3a2414;
          color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--teal-700); text-underline-offset: .15em; }
a:hover { color: var(--orange-600); }
.top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
       padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--teal-50); }
.brand { font-weight: 700; color: var(--teal-900); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .95rem; }
.top nav a { text-decoration: none; padding: .15rem 0; }
.top nav a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--orange-500); }
main { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.9rem; line-height: 1.2; color: var(--teal-900); margin: .5rem 0 1rem; }
h2 { font-size: 1.25rem; color: var(--teal-700); margin: 2rem 0 .5rem; }
section { margin-bottom: var(--gap); }
.hero { padding: 1.5rem 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.steps { padding-left: 1.4rem; }
.steps li { margin: .6rem 0; padding-left: .25rem; }
.steps li::marker { color: var(--orange-600); font-weight: 700; }
.fee { background: var(--orange-100); border-radius: var(--radius); padding: .25rem 1.25rem 1rem; }
.button, button { display: inline-block; font: inherit; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer;
                  background: var(--orange-500); color: #fff; padding: .7rem 1.4rem; text-decoration: none; }
.button:hover, button:hover { background: var(--orange-600); color: #fff; }
button.link { background: none; color: var(--teal-700); padding: 0; font-weight: 400; text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
        display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, select, textarea { font: inherit; width: 100%; padding: .65rem .8rem; border: 1px solid var(--line);
                          border-radius: 10px; background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.small { font-size: .9rem; color: var(--muted); }
.status { min-height: 1.5em; margin: 0; color: var(--teal-700); }
.notice { background: var(--orange-100); padding: .75rem 1rem; border-radius: 10px; }
footer { border-top: 1px solid var(--line); padding: 1rem; text-align: center; font-size: .9rem; color: var(--muted); }
.chooser { text-align: center; padding-top: 18vh; }
.langlist { list-style: none; padding: 0; display: grid; gap: 1rem; }
.langlist a { font-size: 1.3rem; font-weight: 700; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; }
.log { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.log li { padding: .7rem 1rem; border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
.log .me { background: var(--teal-100); justify-self: end; border-bottom-right-radius: 4px; }
.log .bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.log .wait { color: var(--muted); font-style: italic; }
.say { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; position: sticky; bottom: 0;
       background: var(--bg); padding: .5rem 0; }
@media (min-width: 48rem) { h1 { font-size: 2.3rem; } main { padding-top: 2.5rem; } }
