:root {
  color-scheme: light;
  --bg: #f4f8f2;
  --panel: #ffffff;
  --ink: #133024;
  --muted: #597062;
  --line: #d7e6d8;
  --accent: #1f9d55;
  --accent-deep: #0f6b38;
  --accent-soft: #e8f7ee;
  --shadow: 0 18px 40px rgba(19, 48, 36, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #eef7f0 0%, #f8fbf7 32%, #edf4ef 100%);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero,
.trust-strip,
.doc-grid,
.result-grid {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: start;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.planner,
.card,
.proof-card,
.brief-shell,
.schedule-shell,
.doc-hero,
.site-footer {
  background: var(--panel);
  border: 1px solid rgba(215, 230, 216, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.planner,
.card,
.proof-card,
.brief-shell,
.schedule-shell,
.doc-hero {
  padding: 24px;
}

.eyebrow,
.mini-label,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
}

.eyebrow::before,
.mini-label::before,
.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(2.2rem, 4.3vw, 4rem); }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 14px; }
ul { margin: 0; padding-left: 18px; }
li + li { margin-top: 8px; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 64ch; }
.micro-note { color: var(--muted); font-size: 0.92rem; margin-top: 18px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.hero-points div {
  padding: 16px;
  background: var(--accent-soft);
  border-radius: 18px;
}
.hero-points strong { display: block; margin-bottom: 8px; }
.hero-points p { margin: 0; color: var(--muted); }

.planner-shell,
.result-shell,
.trust-strip,
.doc-page section { margin-top: 24px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

label span { font-size: 0.95rem; }
input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 15px;
  background: #fbfefb;
  color: var(--ink);
}

textarea { resize: vertical; }
.full-width { grid-column: 1 / -1; }

.planner-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

button,
.planner-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 157, 85, 0.22);
}

.planner-actions a,
.result-actions button:last-child {
  background: #edf6ef;
  color: var(--accent-deep);
}

.result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
}

.result-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.result-title { margin-bottom: 10px; }
.result-grid,
.doc-grid,
.trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.accent {
  background: linear-gradient(180deg, #f2fbf5 0%, #ffffff 100%);
  border-color: #cfe9d6;
}
.wide-card { margin-top: 20px; }

.schedule-table {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.2fr 1.2fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fbfefb;
  border: 1px solid #e3efe5;
  border-radius: 18px;
}
.schedule-head {
  background: transparent;
  border: none;
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.table-header p { color: var(--muted); margin: 0; max-width: 36ch; }

#benchbalance-card {
  width: 100%;
  min-height: 250px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f9fcfa;
  padding: 16px;
}

.doc-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.doc-hero { margin-bottom: 22px; }

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.site-footer p { color: var(--muted); margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 980px) {
  .hero,
  .result-header,
  .result-grid,
  .doc-grid,
  .trust-strip,
  .field-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .schedule-row,
  .schedule-head {
    grid-template-columns: 1fr;
  }

  .table-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  body { background: #fff; }
  .hero,
  .planner-shell,
  .trust-strip,
  .site-footer,
  .result-actions,
  .micro-note { display: none !important; }
  main { width: 100%; padding: 0; }
  .brief-shell, .schedule-shell, .card, .proof-card { box-shadow: none; }
}
