:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --ink: #1f2942;
  --muted: #63708e;
  --line: rgba(31, 41, 66, 0.1);
  --brand: #4467ff;
  --brand-deep: #304bc7;
  --accent: #ff8d5d;
  --accent-soft: #fff1e9;
  --warn: #d59b37;
  --danger: #cf5050;
  --success: #1d8a67;
  --shadow: 0 20px 48px rgba(48, 65, 117, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(68, 103, 255, 0.17), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 141, 93, 0.12), transparent 26%),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; }
main { padding-bottom: 48px; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin: 0 auto; }
.shell.narrow { width: min(calc(100% - 32px), 860px); }
.hero { padding: 38px 0 10px; }
.docs-hero { padding: 38px 0 10px; }
.section { padding: 18px 0 0; }
.hero-grid, .tool-layout, .result-grid, .three-up, .field-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.88fr); align-items: stretch; }
.tool-layout { grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.78fr); align-items: start; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 10px; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-stack { display: grid; gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.hero-card { background: linear-gradient(180deg, rgba(68, 103, 255, 0.1), rgba(255,255,255,0.95)); }
.accent-card { background: linear-gradient(180deg, rgba(255, 141, 93, 0.12), rgba(255,255,255,0.95)); }
.caveat-card { background: linear-gradient(180deg, rgba(213, 155, 55, 0.12), rgba(255,255,255,0.95)); }
.info-card { position: sticky; top: 20px; }
.eyebrow, .mini-label {
  display: inline-flex;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-deep);
}
.mini-label { margin-bottom: 10px; }
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 67ch;
}
.hero h1, .docs-hero h1, .section-heading h2, .card h2, .card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}
.hero h1, .docs-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; margin-top: 8px; }
.section-heading h2 { font-size: clamp(1.5rem, 2vw, 2rem); margin-top: 6px; }
.card h2 { font-size: 1.24rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.section-heading { margin-bottom: 18px; }
.cta-row, .planner-actions, .inline-actions, .table-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row, .planner-actions { margin: 24px 0 18px; }
.table-header { justify-content: space-between; align-items: center; margin-bottom: 12px; }
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 20px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 28px rgba(68, 103, 255, 0.24);
}
.btn-secondary {
  color: var(--ink);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(31, 41, 66, 0.09);
}
.btn-small { padding: 10px 16px; }
.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}
.bullet-list li + li { margin-top: 8px; }
.compact li + li { margin-top: 6px; }
.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.no-top { margin-top: 0; }
label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
label span { font-size: 0.95rem; }
label.full-width { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 66, 0.13);
  background: rgba(255,255,255,0.95);
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(68, 103, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(68, 103, 255, 0.12);
}
textarea { resize: vertical; min-height: 120px; }
.result-zone.hidden { display: none; }
.top-gap { margin-top: 20px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(68, 103, 255, 0.12);
  color: var(--brand-deep);
}
.status-renew { background: rgba(29, 138, 103, 0.12); color: var(--success); }
.status-negotiate { background: rgba(213, 155, 55, 0.16); color: #8f6500; }
.status-exit { background: rgba(207, 80, 80, 0.12); color: var(--danger); }
.metric-list strong { color: var(--ink); }
.score-table { display: grid; gap: 10px; margin-top: 8px; }
.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(68, 103, 255, 0.06);
  color: var(--ink);
}
.score-row strong { font-size: 1.05rem; }
.brief-output {
  min-height: 220px;
  background: rgba(247, 249, 255, 0.95);
}
@media (max-width: 980px) {
  .hero-grid, .tool-layout, .result-grid, .three-up, .field-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
}
@media (max-width: 640px) {
  .card { padding: 20px; border-radius: 22px; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .table-header { align-items: flex-start; }
}
