:root {
  --paper: #f4efe6;
  --ink: #1c1915;
  --green: #0f6e56;
  --green-deep: #0b5341;
  --signal: #c4491d;
  --line: #d9d0c3;
  --card: #fffaf3;
  --muted: #5e574e;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(15, 110, 86, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(196, 73, 29, 0.1), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-weight: 380;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Fraunces, serif; font-weight: 560; letter-spacing: -0.03em; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand strong { display: block; font-family: Fraunces, serif; font-size: 1.25rem; }
.brand span, .top-note, .muted, .hint { color: var(--muted); }
.mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 40% 60% 50% 50%;
  background: conic-gradient(from 120deg, var(--green), #d7efe4 40%, var(--signal));
}
body[data-company="dockcounter"] {
  --green: #1d4e89;
  --green-deep: #163a66;
  --signal: #b45309;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(29, 78, 137, 0.18), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(180, 83, 9, 0.12), transparent 55%),
    var(--paper);
}
body[data-company="dockcounter"] .mark {
  border-radius: 6px 18px 6px 18px;
  background: conic-gradient(from 40deg, #1d4e89, #d7e4f2 45%, #b45309);
}
.companies { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.2rem 0 1rem; }
.company {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.9rem;
  min-width: 11rem;
}
.company.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.company b { display: block; font-family: Fraunces, serif; }
.company span { color: var(--muted); font-size: 0.82rem; }
.top-note { margin: 0; flex: 1; }
.hidden { display: none !important; }

.app { padding: 1.25rem; max-width: 1120px; margin: 0 auto; }
.loading { color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.signin { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.desk { grid-template-columns: 1.15fr 0.85fr; align-items: start; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.pitch { margin-bottom: 1.5rem; }
.pitch h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.02; max-width: 14ch; }
.pitch .lede { font-size: 1.2rem; max-width: 40rem; }
.pitch-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pitch-points article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}
.pitch-points h2 { font-size: 1.2rem; }
.lede { font-size: 1.35rem; max-width: 34rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 640;
  margin-bottom: 0.45rem;
}

.methods, .pills, .actions, .stack { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.method, .pill, button.solid, button.ghost, button.signal {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem 0.9rem;
}
.method { text-align: left; min-width: 9.5rem; background: #fff; }
.method b { display: block; }
.method span { font-size: 0.82rem; color: var(--muted); }
button.solid { background: var(--green); color: #f6fff9; border-color: var(--green-deep); }
button.signal { background: var(--signal); color: #fffaf3; border-color: #9a3412; }
button.ghost { background: transparent; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

label { display: block; font-size: 0.86rem; margin: 0.7rem 0 0.25rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.8rem 0; }
.check input { width: auto; margin-top: 0.25rem; }

.banner {
  border-left: 4px solid var(--signal);
  background: #fff1e8;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.ok {
  border-left: 4px solid var(--green);
  background: #e7f6f0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}
.error { color: var(--signal); min-height: 1.2rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.demo-code { font-family: Fraunces, serif; font-size: 2rem; letter-spacing: 0.18em; margin: 0.2rem 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  background: #fff;
}
.quote strong { font-family: Fraunces, serif; font-size: 1.45rem; }
.turns { display: flex; flex-direction: column; gap: 0.55rem; max-height: 28rem; overflow: auto; }
.turn { padding: 0.65rem 0.75rem; border-radius: 12px; }
.turn.buyer { background: #efe7da; }
.turn.model { background: #e5f3ec; }
textarea.agent-prompt { width: 100%; min-height: 18rem; max-height: 28rem; margin-top: 0.2rem; }
.pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #1c1915;
  color: #f4efe6;
  border-radius: 12px;
  padding: 0.8rem;
  max-height: 16rem;
  overflow: auto;
  font-size: 0.78rem;
}
.section-title { margin-top: 0.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

@media (max-width: 800px) {
  .top { flex-wrap: wrap; }
  .top-note { flex-basis: 100%; order: 3; }
  .signin, .desk, .split, .pitch-points { grid-template-columns: 1fr; }
  .app { padding: 0.9rem; }
  .method, .company { min-width: 100%; }
  button.solid, button.ghost, button.signal { width: 100%; }
  .actions { flex-direction: column; }
}
