/* Pairing Mind tokens, from website/src/styles.css */
@font-face { font-family: Jakarta; src: url("./fonts/plusjakartasans.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Source; src: url("./fonts/sourcesans3.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }

:root {
  --blue: #367cff;
  --action: #2161db;
  --carbon: #26282b;
  --ink: #202124;
  --muted: #62676f;
  --white: #fafafa;
  --surface: #f0f2f4;
  --line: #dadde2;
  --ai: #ffffff;
  --you: #e8f0ff;
  --error: #b3261e;
  --font: Jakarta, system-ui, sans-serif;
  --body: Source, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--white); color: var(--ink); font: 400 18px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--carbon); text-decoration: none; font: 500 18px var(--font); letter-spacing: -0.01em; }
.brand b { font-weight: 800; }
.bar-tag { font: 600 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

main { max-width: 680px; margin: 0 auto; padding: 32px 16px 120px; }
.screen > * + * { margin-top: 20px; }
.eyebrow { font: 700 13px var(--font); color: var(--action); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
h1 { font: 800 clamp(30px, 6vw, 40px)/1.1 var(--font); letter-spacing: -0.025em; color: var(--carbon); margin: 8px 0 0; }
h2 { font: 700 20px/1.25 var(--font); margin: 0 0 6px; color: var(--carbon); }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); margin: 0 0 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font: 600 15px var(--font); color: var(--carbon); }
input, textarea { font: 400 18px var(--body); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.consent { background: var(--surface); border-radius: 8px; padding: 14px 16px; font-size: 16px; }
.consent p { margin: 0 0 10px; color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font: 600 16px var(--body); }
.check input { width: 20px; height: 20px; margin: 0; }
.form-error { color: var(--error); margin: 0; min-height: 0; font-size: 16px; }
.form-error:empty { display: none; }

.btn { font: 700 16px var(--font); border: 0; border-radius: 8px; padding: 13px 20px; background: var(--action); color: #fff; cursor: pointer; justify-self: start; }
.btn:hover { background: #1a52bd; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--action); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

.project dl { margin: 0; display: grid; gap: 14px; }
.project dt { font: 700 12px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.project dd { margin: 2px 0 0; font-size: 19px; color: var(--carbon); }
.classes { display: flex; flex-wrap: wrap; gap: 8px; }
.classes button { font: 600 15px var(--font); border: 1px solid var(--line); background: #fff; color: var(--carbon); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.classes button:hover { border-color: var(--blue); }
.classes button.done { background: var(--surface); color: var(--muted); }
.classes button.done::after { content: " ✓"; }
.log summary { font: 600 15px var(--font); cursor: pointer; color: var(--muted); }
.log ol { padding-left: 20px; color: var(--muted); }
.log li { margin: 6px 0; }

/* chat */
.chat { display: flex; flex-direction: column; }
.progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 14px var(--font); color: var(--muted); position: sticky; top: 51px; background: var(--white); padding: 8px 0; z-index: 1; }
.dots { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.dots li { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.dots li.on { background: var(--blue); }
.thread { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 16px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; }
.msg.ai { background: var(--ai); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.you { background: var(--you); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.note { align-self: center; background: none; color: var(--muted); font-size: 15px; padding: 0; }
.msg.err { align-self: center; color: var(--error); background: none; font-size: 15px; padding: 0; }
.typing { align-self: flex-start; color: var(--muted); font-size: 15px; }
.typing::after { content: "…"; animation: blink 1.2s steps(4) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.composer { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--white) 18px); padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips:empty { display: none; }
.chips button { font: 600 16px var(--body); border: 1px solid var(--blue); color: var(--action); background: #fff; border-radius: 999px; padding: 9px 15px; cursor: pointer; }
.chips button:hover, .chips button[aria-pressed="true"] { background: var(--you); }
.say { display: flex; gap: 8px; align-items: flex-end; }
.say textarea { resize: none; max-height: 180px; }

/* files */
.file { margin-top: 14px; }
.file header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.file h2 { font-size: 18px; margin: 0; }
.file pre { background: var(--surface); border-radius: 8px; padding: 14px; font: 14px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; max-height: 260px; overflow: auto; margin: 0; }
.link-row { display: flex; gap: 8px; }
.link-row input { font-size: 15px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .msg { max-width: 94%; }
  .bar-tag { display: none; }
}
