/* Gunill.ai brand system — paper / moss / deep green.
   Single stylesheet for every page (chat + practice home). Matches docs/plan artifacts. */
:root {
  --paper: oklch(96.5% .013 96);
  --paper2: oklch(93% .021 98);
  --paper3: oklch(89% .028 99);
  --ink: oklch(22% .026 148);
  --muted: oklch(47% .026 125);
  --faint: oklch(62% .022 118);
  --line: oklch(82% .026 110);
  --moss: oklch(41% .108 148);
  --moss2: oklch(52% .115 150);
  --deep: oklch(24% .062 150);
  --deep2: oklch(29% .07 152);
  --soft: oklch(90% .048 148);
  --amber: oklch(64% .112 72);
  --rust: oklch(55% .125 45);
  --paper-line: oklch(40% .05 150);
  --paper-text: oklch(80% .04 130);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
h1, h2, h3, h4 { text-wrap: balance; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Chat layout ---------- */
.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-width: 0;
}
.shell {
  display: flex;
  height: 100%;
}
.shell > header {
  width: 100%;
}

/* ---------- Sidebar (deep-green cover) ---------- */
.sidebar {
  width: 256px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--deep);
  color: var(--paper);
}
.new-session { padding: 14px; border-bottom: 1px solid var(--paper-line); }
.new-session button {
  width: 100%;
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.new-session button:hover { background: var(--moss2); }
.clients-link {
  display: block;
  color: var(--paper-text);
  text-decoration: none;
  font-size: 13px;
}
.clients-link:hover { color: var(--paper); }
.client-heading {
  padding: 14px 14px 0;
}
.client-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--paper);
}
.integration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--paper-text);
}
.integrations-title {
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--moss2);
}
.integrations-category {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss2);
}
.dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.on { background: oklch(78% .12 150); box-shadow: 0 0 4px oklch(78% .12 150 / .45); }
.dot.off {
  background: var(--amber);
  box-shadow: 0 0 4px oklch(64% .112 72 / .5);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 50% { opacity: 0.45; } }
.integration-status.ok { color: oklch(85% .1 145); }
.integration-status.err { color: oklch(84% .09 78); }
.integration-btn {
  background: transparent;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
  padding: 3px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper-text);
  text-decoration: none;
  cursor: pointer;
}
.integration-btn:hover { border-color: var(--moss2); color: var(--paper); }
.integration-form { display: inline; }
.thread-start {
  margin: auto;
  text-align: center;
  color: var(--paper-text);
}
.thread-start button {
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.thread-start button:hover { background: var(--moss2); }
.thread-start-hint { margin-bottom: 12px; }
.sessions {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  color: var(--paper-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}
.session:hover { background: var(--deep2); color: var(--paper); }
.session.active { background: var(--deep2); color: var(--paper); outline: 1px solid var(--moss2); }
.session span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sessions-empty { color: var(--paper-text); font-size: 13px; padding: 10px 12px; }
.messages, .sessions {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.messages::-webkit-scrollbar, .sessions::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .sidebar { display: none; } }

/* ---------- Header (shared) ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--paper2);
  border-bottom: 1px solid var(--line);
}
header .title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
header .who { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; }
header a { color: var(--moss2); text-decoration: none; font-size: 14px; }
header a:hover { color: var(--moss); }

/* ---------- Messages ---------- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: 78%;
  padding: 12px 15px;
  border-radius: var(--radius);
  line-height: 1.6;
  font-size: 15px;
  white-space: normal;
}
.bubble.user {
  align-self: flex-end;
  background: var(--moss);
  color: var(--paper);
  border-bottom-right-radius: 2px;
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
}
.bubble.empty { display: none; }
.bubble.assistant p { margin: 0 0 8px; }
.bubble.assistant :is(h1, h2, h3, h4) { font-family: var(--serif); font-weight: 400; margin: 10px 0 6px; line-height: 1.25; }
.bubble.assistant h1 { font-size: 1.35em; }
.bubble.assistant h2 { font-size: 1.2em; }
.bubble.assistant h3, .bubble.assistant h4 { font-size: 1.08em; }
.bubble.assistant :is(h1, h2, h3, h4):first-child, .bubble.assistant p:first-child { margin-top: 0; }
.bubble.assistant p:last-child { margin-bottom: 0; }
.bubble.assistant :is(ul, ol) { margin: 8px 0; padding-left: 22px; }
.bubble.assistant li { margin: 2px 0; }
.bubble.assistant li > p { margin: 2px 0; }
.bubble.assistant :is(ul, ol):last-child, .bubble.assistant pre:last-child { margin-bottom: 0; }
.bubble.assistant pre {
  background: var(--deep);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  padding: 10px 12px;
  overflow-x: auto;
  margin: 8px 0;
}
.bubble.assistant pre code { display: block; padding: 0; background: none; border: none; border-radius: 0; color: inherit; }
.bubble.assistant :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}
.bubble.assistant code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  white-space: pre-wrap;
}
.bubble.assistant blockquote {
  margin: 8px 0;
  padding: 2px 12px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
}
.bubble.assistant table { border-collapse: collapse; margin: 8px 0; font-size: 0.9em; display: block; overflow-x: auto; }
.bubble.assistant :is(th, td) { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.bubble.assistant th {
  background: var(--deep);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bubble.assistant tr:nth-child(even) td { background: var(--paper3); }
.bubble.assistant hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.bubble.assistant a { color: var(--moss2); }

.thinking { color: var(--muted); font-style: italic; animation: pulse 1.2s ease-in-out infinite; }
.error { color: var(--rust); }
@keyframes pulse { 50% { opacity: 0.4; } }

.assistant-turn { display: contents; }
.assistant-turn .tool-slot { display: contents; }
.tool-trail { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bubble.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
  width: fit-content;
  animation: chipIn .18s ease;
}
@keyframes chipIn { from { opacity: 0; } }
.bubble.tool.running { color: var(--moss2); border-color: var(--moss2); }
.bubble.tool.done { color: var(--muted); border-color: oklch(72% .09 150); background: var(--paper2); }
.bubble.tool.failed { color: var(--muted); border-color: oklch(75% .1 35); background: var(--paper2); }
.bubble.tool .tool-tick { font-weight: 800; font-size: 1.15em; }
.bubble.tool.done .tool-tick { color: oklch(62% .2 150); }
.bubble.tool.failed .tool-tick { color: oklch(57% .21 29); }
.tool-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss2);
  animation: pulse 1.2s ease-in-out infinite;
}

/* ---------- Composer ---------- */
form.composer {
  display: flex;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 12px 14px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
form.composer textarea {
  flex: 1;
  resize: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
}
form.composer textarea:focus { outline: 2px solid var(--moss2); border-color: transparent; }
form.composer button {
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
form.composer button:hover { background: var(--moss2); }
form.composer button:disabled { opacity: 0.5; cursor: default; }
.htmx-request form.composer button { pointer-events: none; opacity: 0.5; }
form.composer .attach {
  align-self: stretch;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--moss);
}
form.composer .attach:hover { border-color: var(--moss2); }
form.composer .attach input[type="file"] { display: none; }
form.composer .attach.has-file { border-color: var(--moss); }

.receipt-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; justify-content: flex-end; }
.receipt-thumb { position: relative; display: block; line-height: 0; }
.receipt-thumb img {
  max-height: 160px;
  max-width: 220px;
  min-width: 96px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: block;
}
.receipt-thumb.dup img { opacity: 0.6; }
.receipt-thumb .dup-chip {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font: 600 11px var(--sans);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Receipt proposal cards ---------- */
.receipt-card {
  width: 100%;
  max-width: 520px;
  margin: 4px 0 8px;
  border: 1px solid var(--line, #d8d5cc);
  border-radius: 12px;
  background: #fffdf7;
  padding: 8px 10px;
  text-align: left;
}
.receipt-card-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.receipt-card-thumb { line-height: 0; }
.receipt-card-thumb img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: block;
}
.receipt-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; flex: 1; min-width: 140px; }
.receipt-card-title { font: 600 13px var(--sans); }
.receipt-card-fact { color: var(--moss2, #6b6f5d); font: 12px var(--sans); }
.status-chip {
  font: 600 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eee;
  color: #555;
}
.status-proposed { background: #fdf1d6; color: #8a6d1a; }
.status-approved { background: #e2efdc; color: #2e6b34; }
.status-posted { background: #d9e8f7; color: #235b8c; }
.status-failed { background: #f6dcd7; color: #8c2f1d; }
.status-discarded { background: #e8e6e1; color: #777; }
.receipt-card .dup-chip { position: static; background: #f3dfdf; color: #8c2f1d; }
.receipt-actions { display: flex; gap: 6px; align-items: center; }
.receipt-reason { width: 150px; font: 12px var(--sans); padding: 4px 8px; border: 1px solid #c9c5b8; border-radius: 8px; }
.receipt-approve, .receipt-discard {
  border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer;
  font: 600 12px var(--sans);
}
.receipt-approve { background: #2e6b34; color: #fff; }
.receipt-approve:hover { background: #275c2d; }
.receipt-discard { background: transparent; color: #8c2f1d; border: 1px solid #d8b0a6; }
.receipt-discard:hover { background: #f6e7e3; }
.proposal-rows { width: 100%; border-collapse: collapse; margin-top: 8px; font: 12.5px var(--sans); }
.proposal-rows th, .proposal-rows td { text-align: left; padding: 3px 6px; border-bottom: 1px solid #eee9dc; }
.proposal-rows th { color: #77736a; font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; }
.proposal-rows .num { text-align: right; font-variant-numeric: tabular-nums; }
.proposal-notes { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.proposal-note { font: 12px var(--sans); color: #8a6d1a; }

/* ---------- Practice home ---------- */
.shell.home-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home {
  flex: 1;
  overflow-y: auto;
  padding: 48px 20px;
}
.home-inner {
  max-width: 560px;
  margin: 0 auto;
}
.home h2 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--moss);
  margin: 0 0 16px;
}
.clients {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.clients a {
  display: block;
  padding: 15px 16px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.clients a:hover { border-color: var(--moss2); background: var(--paper3); }
.clients-empty { color: var(--muted); margin-bottom: 32px; }
.new-client {
  display: flex;
  gap: 8px;
}
.new-client input {
  flex: 1;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
}
.new-client input:focus { outline: 2px solid var(--moss2); border-color: transparent; }
.new-client button {
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.new-client button:hover { background: var(--moss2); }

/* ---------- Client profile ---------- */
.profile-client-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.1em;
  line-height: 1.2;
  margin: 0 0 18px;
  padding: 0 2px 2px;
  min-height: 1.2em;
  border-bottom: 1px solid transparent;
  overflow-wrap: break-word;
}
.profile-client-name:focus { outline: none; border-bottom-color: var(--moss2); }
form.new-session .profile-link { display: block; margin-top: 12px; }
.profile-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--moss2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.profile-back:hover { text-decoration: underline; }
.profile-lede { color: var(--muted); font-size: 14px; margin: -6px 0 20px; }
.profile-version { color: var(--muted); font-size: 13px; margin: -14px 0 20px; }
.profile-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.profile-form label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.profile-hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.profile-form textarea {
  background: var(--paper2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}
.profile-form textarea:focus { outline: 2px solid var(--moss2); border-color: transparent; }
.profile-form button {
  align-self: flex-start;
  margin-top: 10px;
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-form button:hover { background: var(--moss2); }
.revisions { display: flex; flex-direction: column; gap: 8px; }
.revision {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.revision summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.revision-body { margin-top: 10px; }
.revision-body h3 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--moss); }
.revision-body pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  margin: 0;
}
.revision-empty { color: var(--faint); font-style: italic; margin: 0; }

/* ---------- Knowledge (FAQ + skills) management ---------- */
.knowledge-create details, .knowledge-import { background: var(--paper2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 24px; }
.knowledge-create summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--moss); }
.knowledge-create input, .knowledge-create textarea, .knowledge-import textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  font: inherit;
  margin-top: 4px;
  resize: vertical;
}
.knowledge-create input:focus, .knowledge-create textarea:focus, .knowledge-import textarea:focus { outline: 2px solid var(--moss2); border-color: transparent; }
.knowledge-create button, .knowledge-import button {
  margin-top: 8px;
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.knowledge-create button:hover, .knowledge-import button:hover { background: var(--moss2); }
.knowledge-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.knowledge-item { display: flex; gap: 8px; align-items: flex-start; }
.knowledge-edit { flex: 1; display: flex; flex-direction: column; gap: 6px; background: var(--paper2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.knowledge-edit input, .knowledge-edit textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}
.knowledge-edit input:focus, .knowledge-edit textarea:focus { outline: 2px solid var(--moss2); border-color: transparent; }
.knowledge-edit input[type="text"] { font-weight: 700; }
.knowledge-actions { display: flex; gap: 8px; }
.knowledge-edit input { font-family: var(--sans); }
.knowledge-actions button {
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.knowledge-actions button:hover { background: var(--moss2); }
.knowledge-delete button {
  background: none;
  color: var(--rust);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  margin-top: 20px;
}
.knowledge-delete button:hover { border-color: var(--rust); }
.knowledge-import textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.defaults-link { margin: 0 0 32px; }
.defaults-link a { color: var(--moss2); text-decoration: none; font-size: 14px; font-weight: 600; }
.defaults-link a:hover { text-decoration: underline; }

/* ---------- Public landing (docs/adr/0017) ---------- */
body.landing { background: var(--paper); }
.land-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: var(--paper2);
}
.land-wordmark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--deep);
  text-decoration: none;
}
.land-login {
  color: var(--moss);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.land-login:hover { text-decoration: underline; }
.land-hero {
  background: var(--deep);
  color: var(--paper);
  padding: 96px 32px 32px;
  text-align: center;
}
.land-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-text);
}
.land-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin: 0 auto;
  max-width: 780px;
}
.land-hero-sub {
  margin: 18px auto 8px;
  max-width: 640px;
  padding: 0 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-text);
}

.path-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--deep);
}
.path-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  cursor: pointer;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}
.path-btn:hover { border-color: var(--paper); }
.path-btn.active { background: var(--paper); border-color: var(--paper); color: var(--deep); }
.land-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px 32px;
}
.land-promise h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--deep);
  margin: 0 0 10px;
}
.land-promise p { margin: 0; color: var(--muted); line-height: 1.6; }
.land-signup {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 32px 72px;
}
.land-signup h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--deep);
  text-align: center;
  margin: 0 0 24px;
}
.land-quote {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}
.land-quote p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--deep);
  margin: 0;
}
.land-quote footer {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--faint);
}
.land-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.land-form label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.land-req { color: var(--rust); }
.land-form input, .land-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.land-form input:focus, .land-form textarea:focus { outline: 2px solid var(--moss2); border-color: transparent; }
.land-form button {
  margin-top: 14px;
  background: var(--moss);
  color: var(--paper);
  border: 1px solid var(--moss);
  border-radius: 2px;
  padding: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.land-form button:hover { background: var(--moss2); }
.htmx-request .land-form button { pointer-events: none; opacity: 0.5; }
.land-privacy { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.land-privacy a { color: var(--moss); }
.land-form-error {
  margin: 0;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--rust);
  border-radius: 2px;
  color: var(--rust);
  font-size: 14px;
  font-weight: 600;
}
.land-thanks {
  background: var(--soft);
  border: 1px solid var(--moss);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.land-thanks p { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--deep); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.land-legal { max-width: 720px; margin: 0 auto; padding: 48px 32px 80px; }
.land-legal h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; color: var(--deep); margin: 0 0 24px; }
.land-legal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--deep); margin: 32px 0 8px; }
.land-legal p { color: var(--muted); line-height: 1.7; margin: 0; }
.land-legal a { color: var(--moss); }
.signup-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.signup-kind.customer { background: var(--soft); color: var(--moss); }
.signup-kind.consultant { background: var(--deep); color: var(--paper); }
.signup-detail { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.signup-message { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
@media (max-width: 800px) {
  .land-promises { grid-template-columns: 1fr; padding: 48px 24px 24px; }
  .land-hero { padding: 64px 20px 24px; }
  .land-signup { padding: 16px 20px 56px; }
}
