/* Golden Ratio AI - interface tokens.
   Palette and type measured off the LIVE goldenratiosolution.com on 12 Oct 2026.
   Do not substitute the deck gold (#9F6B1F); the live site uses #A9803F. */

:root {
  --page:   #FFFFFF;
  --card:   #FBF7EE;
  --line:   #EADFCB;
  --ink:    #3B3328;
  --body:   #6B6559;
  --eyebrow:#7A6D5A;
  --gold:   #A9803F;
  --fill:   #E7C98E;

  --sans:  "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --text:  "DM Sans", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --r-pill: 999px;
  --r-card: 18px;
  --r-bub:  16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--eyebrow);
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin: 0;
}

.it { font-family: var(--serif); font-style: italic; color: var(--gold); letter-spacing: -0.5px; }

/* the one gold pill, exactly as the live header carries it */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fill);
  color: var(--ink);
  border: 0;
  border-radius: var(--r-pill);
  padding: 13px 18px;
  font-family: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.pill.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--body);
}

/* ---------- site header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.site-head img { height: 34px; display: block; }
.head-right { display: flex; align-items: center; gap: 14px; }
.head-link {
  font-size: 14.5px;
  color: var(--body);
  text-decoration: none;
}

/* ---------- conversation ---------- */
.thread { display: flex; flex-direction: column; gap: 18px; }

.turn { display: flex; gap: 12px; align-items: flex-start; }
.turn.me { justify-content: flex-end; }

.avatar {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.avatar img { width: 18px; height: 18px; }

.bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: var(--r-bub);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}
.bubble.ai   { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 6px; }
.bubble.me   { background: var(--ink); color: #FFF; border-top-right-radius: 6px; }
.bubble p    { margin: 0 0 10px; }
.bubble p:last-child { margin: 0; }
.bubble b    { font-weight: 600; }

/* a fact block: every line in here comes from the catalogue, never from the model */
.facts {
  margin: 12px 0 2px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.facts .fh {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.facts .fh strong { font-family: var(--sans); font-size: 14.5px; letter-spacing: -0.3px; }
.facts .fh span { flex: 0 0 auto; white-space: nowrap; }
.facts .fh span { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; color: var(--eyebrow); text-transform: uppercase; }
.facts ul { margin: 0; padding: 12px 14px 12px 30px; }
.facts li { font-size: 14.5px; line-height: 1.75; color: var(--body); }
.facts .foot {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--eyebrow);
}

/* suggestion chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }

/* composer */
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 7px 7px 18px;
}
.composer input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: var(--text);
  font-size: 15.5px;
  color: var(--ink);
  background: transparent;
  padding: 10px 0;
}
.composer input::placeholder { color: #A89C88; }
.send {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  display: grid; place-items: center;
}

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: .45;
  display: block;
}
.typing i:nth-child(2) { opacity: .7; }
.typing i:nth-child(3) { opacity: 1; }

/* ---------- wired states (added in step 6, not in the round 1 mocks) ---------- */
[hidden] { display: none !important; }

.typing i { animation: gr-blink 1.1s infinite ease-in-out both; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gr-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bubble.is-typing { padding: 15px 16px; }

.bubble ul { margin: 0 0 10px; padding-left: 20px; }
.bubble ul:last-child { margin-bottom: 0; }
.bubble .facts ul { margin: 0; padding: 12px 14px 12px 30px; }
.bubble .facts li { line-height: 1.75; }
.bubble li { line-height: 1.6; }
.bubble .handoff { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.composer input:disabled { opacity: .55; }
.send:disabled { opacity: .5; cursor: default; }

/* the email gate: the composer is replaced, the conversation stays */
.gate-label { margin: 0 2px 10px; }
.gate-form { padding: 6px 6px 6px 18px; }
.gate-form .pill { padding: 11px 18px; flex: 0 0 auto; }
.gate-form .pill:disabled { opacity: .6; cursor: default; }
.gate-form .code-input { letter-spacing: 6px; font-family: var(--mono); font-size: 17px; }
.gate-form .code-input::placeholder { letter-spacing: 0; font-family: var(--text); font-size: 15.5px; }
.gate-note { display: block; line-height: 1.5; }
.gate-note b { color: var(--body); font-weight: 500; margin-right: 0 !important; }
.gate-err { color: #A2442E; }
.linkish {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--gold);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
