:root {
  --bg: #f6f0ea;
  --surface: rgba(255,255,255,0.84);
  --surface-strong: #ffffff;
  --ink: #241614;
  --muted: #705653;
  --accent: #7e3f27;
  --accent-2: #d38d5f;
  --accent-soft: #f2dfd3;
  --line: rgba(62, 31, 22, 0.12);
  --good: #185c3d;
  --warn: #8f5b18;
  --bad: #8b2f36;
  --shadow: 0 24px 60px rgba(77, 42, 30, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 141, 95, 0.18), transparent 34%),
    linear-gradient(180deg, #fff7f2 0%, var(--bg) 58%, #efe3db 100%);
}
a { color: inherit; }
main { padding-bottom: 3rem; }
.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.hero { padding: 4.6rem 0 2rem; }
.hero-grid, .tool-layout, .result-grid, .three-up {
  display: grid;
  gap: 1.2rem;
}
.hero-grid { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
.tool-layout { grid-template-columns: 1.35fr 0.8fr; align-items: start; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,239,231,0.9)); }
.eyebrow, .mini-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.mini-label { margin-bottom: 0.5rem; }
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 12ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { color: var(--muted); line-height: 1.65; margin: 0 0 1rem; }
.lead { font-size: 1.08rem; max-width: 58ch; }
.section { padding: 1rem 0 0; }
.section-heading { margin-bottom: 1rem; }
.cta-row, .planner-actions, .inline-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.88rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #a85c35); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.75); border-color: var(--line); color: var(--ink); }
.bullet-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.bullet-list li + li { margin-top: 0.55rem; }
.compact li + li { margin-top: 0.4rem; }
.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.88rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(78, 40, 28, 0.18);
  background: rgba(255,255,255,0.94);
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(211,141,95,0.32);
  border-color: rgba(126,63,39,0.34);
}
.full-width { grid-column: 1 / -1; }
.small-note { font-size: 0.92rem; color: var(--muted); }
.no-top { margin-top: 0.8rem; }
.info-card { position: sticky; top: 1rem; }
.hidden { display: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(24,92,61,0.12);
  color: var(--good);
}
.status-ready { background: rgba(24,92,61,0.12); color: var(--good); }
.status-warn { background: rgba(143,91,24,0.14); color: var(--warn); }
.status-bad { background: rgba(139,47,54,0.14); color: var(--bad); }
.top-gap { margin-top: 0.9rem; }
.metric-list strong { color: var(--ink); }
.accent-card { background: linear-gradient(180deg, rgba(242,223,211,0.78), rgba(255,255,255,0.84)); }
.wide-card { grid-column: span 1; }
.table-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
#brief-output {
  min-height: 240px;
  background: #fffaf6;
}
.muted-band { padding-top: 1.1rem; }
.prose-card { max-width: 860px; }
.prose-card h2 { margin-top: 1.4rem; font-size: 1.3rem; }
.prose-card ol, .prose-card ul { color: var(--muted); line-height: 1.65; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 1rem;
  align-items: start;
}
.site-footer nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.site-footer nav a, .company-line { color: var(--muted); text-decoration: none; }
@media (max-width: 940px) {
  .hero-grid, .tool-layout, .result-grid, .three-up, .site-footer { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .wide-card { grid-column: auto; }
}
@media (max-width: 720px) {
  .field-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .card { border-radius: 20px; }
  .table-header { align-items: flex-start; flex-direction: column; }
}
@media print {
  .cta-row, .planner-actions, .inline-actions, .site-footer, .info-card { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; }
}
