.villager-planner-page {
  --vp-green: #4a9d5f;
  --vp-green-dark: #337a49;
  --vp-green-soft: #eef8f0;
  --vp-border: #dce7df;
  --vp-ink: #203329;
  --vp-muted: #637267;
}

.vp-hero {
  padding: 70px 0 54px;
  background: linear-gradient(135deg, #eef8f0 0%, #ffffff 62%, #f6fbf7 100%);
  border-bottom: 1px solid var(--vp-border);
}

.vp-hero h1,
.vp-content-section h2,
.vp-cta-section h2,
.vp-section-heading h2 {
  color: var(--vp-ink);
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vp-hero h1 {
  max-width: 920px;
  margin: 18px 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.08;
}

.vp-kicker,
.vp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vp-green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vp-kicker {
  padding: 8px 12px;
  background: #e0f2e5;
  border: 1px solid #bfdcc7;
  border-radius: 999px;
}

.vp-lead {
  max-width: 840px;
  margin: 0;
  color: var(--vp-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.vp-hero-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--vp-green-dark);
  font-size: 0.95rem;
}

.vp-tool-section,
.vp-content-section,
.vp-cta-section {
  padding: 58px 0;
}

.vp-tool-section { background: #ffffff; }
.vp-content-section-alt { background: #f7faf8; border-top: 1px solid #edf2ee; border-bottom: 1px solid #edf2ee; }

.vp-section-heading {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.vp-section-heading h2 { margin: 9px 0 10px; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.vp-section-heading p { margin: 0; color: var(--vp-muted); line-height: 1.75; }

.vp-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: start;
}

.vp-input-card,
.vp-result-card,
.vp-info-card,
.vp-related-card {
  background: #ffffff;
  border: 1px solid var(--vp-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(54, 92, 64, 0.08);
}

.vp-input-card,
.vp-result-card { padding: 26px; }

.vp-card-heading,
.vp-result-topline,
.vp-progress-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vp-card-heading h3,
.vp-result-card h3,
.vp-content-section h3 { color: var(--vp-ink); font-weight: 800; }
.vp-card-heading h3 { margin: 0 0 7px; font-size: 1.3rem; }
.vp-card-heading p { margin: 0; color: var(--vp-muted); line-height: 1.6; }
.vp-count-badge { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--vp-green-soft); color: var(--vp-green-dark); font-weight: 800; white-space: nowrap; }

.vp-slot-list { display: grid; gap: 10px; margin: 22px 0; }
.vp-slot-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; }
.vp-slot-number { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #e5f3e8; color: var(--vp-green-dark); font-weight: 800; }
.vp-slot-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(130px, 0.65fr); gap: 8px; min-width: 0; }
.vp-slot-fields input, .vp-slot-fields select { min-width: 0; border-color: #cddbd1; }
.vp-slot-fields input:focus, .vp-slot-fields select:focus { border-color: var(--vp-green); box-shadow: 0 0 0 0.2rem rgba(74, 157, 95, 0.15); }

.vp-input-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vp-input-actions .btn { min-height: 44px; }
.vp-live-note { margin: 14px 0 0; color: var(--vp-muted); font-size: 0.88rem; }
.vp-form-error { margin: 12px 0 0; color: #a32929; font-weight: 700; }

.vp-result-card { position: sticky; top: 20px; }
.vp-result-label { color: var(--vp-muted); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.vp-status-badge { padding: 6px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.vp-status-example { background: #eef1f2; color: #526066; }
.vp-status-success { background: #dff3e4; color: #267340; }
.vp-status-partial { background: #fff1cf; color: #8a5d05; }
.vp-status-error { background: #fde4e4; color: #a32929; }
.vp-result-card h3 { margin: 15px 0 8px; font-size: 1.55rem; }
.vp-result-summary { color: var(--vp-muted); line-height: 1.65; }
.vp-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 20px 0; }
.vp-metric { padding: 13px 9px; border: 1px solid #e2ece5; border-radius: 12px; text-align: center; background: #fbfdfb; }
.vp-metric strong { display: block; color: var(--vp-green-dark); font-size: 1.35rem; }
.vp-metric span { display: block; margin-top: 3px; color: var(--vp-muted); font-size: 0.72rem; line-height: 1.25; }
.vp-progress-label { color: var(--vp-muted); font-size: 0.88rem; }
.vp-progress-label strong { color: var(--vp-ink); }
.vp-progress-wrap .progress { height: 10px; margin-top: 8px; background: #e9f0eb; }
.vp-progress-wrap .progress-bar { background: linear-gradient(90deg, var(--vp-green), #83c88f); }
.vp-result-block { margin-top: 22px; }
.vp-result-block h4 { margin-bottom: 10px; color: var(--vp-ink); font-size: 1rem; font-weight: 800; }
.vp-zone-list, .vp-note-list { padding-left: 0; margin: 0; list-style: none; }
.vp-zone-list li { display: grid; grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf2ee; color: var(--vp-muted); font-size: 0.9rem; line-height: 1.45; }
.vp-zone-list li:last-child { border-bottom: 0; }
.vp-zone-list strong { color: var(--vp-ink); }
.vp-note-list li { position: relative; padding: 5px 0 5px 18px; color: var(--vp-muted); font-size: 0.9rem; line-height: 1.5; }
.vp-note-list li::before { position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--vp-green); content: ""; }
.vp-example-button { padding-left: 0; color: var(--vp-green-dark); font-weight: 800; }

.vp-readable { max-width: 980px; }
.vp-readable > h2 { margin-bottom: 18px; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.vp-readable > p { max-width: 900px; color: var(--vp-muted); line-height: 1.8; }
.vp-step-list { display: grid; gap: 14px; padding: 0; margin: 28px 0 0; list-style: none; }
.vp-step-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--vp-border); border-radius: 14px; background: #ffffff; }
.vp-step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e0f2e5; color: var(--vp-green-dark); font-weight: 800; }
.vp-step-list h3 { margin: 0 0 5px; font-size: 1.05rem; }
.vp-step-list p { margin: 0; color: var(--vp-muted); line-height: 1.65; }

.vp-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.vp-info-card { padding: 20px; box-shadow: none; }
.vp-info-card h3 { margin-top: 0; font-size: 1.08rem; }
.vp-info-card p { margin-bottom: 0; color: var(--vp-muted); line-height: 1.7; }
.vp-table-wrap { margin: 24px 0; border: 1px solid var(--vp-border); border-radius: 14px; overflow-x: auto; background: #ffffff; }
.vp-planning-table { min-width: 680px; margin-bottom: 0; }
.vp-planning-table th { color: var(--vp-ink); background: #eaf5ed; font-weight: 800; }
.vp-planning-table td { color: var(--vp-muted); line-height: 1.6; vertical-align: top; }
.vp-check-list { display: grid; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.vp-check-list li { display: flex; gap: 10px; color: var(--vp-muted); line-height: 1.7; }
.vp-check-list i { flex: 0 0 auto; margin-top: 5px; color: var(--vp-green); }
.vp-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.vp-related-card { display: flex; flex-direction: column; gap: 7px; padding: 18px; color: inherit; text-decoration: none; box-shadow: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.vp-related-card:hover { transform: translateY(-2px); border-color: #9fc6a8; }
.vp-related-card strong { color: var(--vp-green-dark); }
.vp-related-card span { color: var(--vp-muted); line-height: 1.6; }
.vp-faq { padding: 16px 0; border-bottom: 1px solid var(--vp-border); }
.vp-faq summary { cursor: pointer; color: var(--vp-ink); font-weight: 800; }
.vp-faq p { max-width: 900px; margin: 12px 0 0; color: var(--vp-muted); line-height: 1.75; }
.vp-cta-section { background: #eef8f0; border-top: 1px solid #dcefe0; }
.vp-cta-section p { max-width: 720px; margin: 0 auto 20px; color: var(--vp-muted); line-height: 1.75; }

@media (max-width: 991px) {
  .vp-tool-grid { grid-template-columns: 1fr; }
  .vp-result-card { position: static; }
}

@media (max-width: 767px) {
  .vp-hero { padding: 52px 0 38px; }
  .vp-hero h1 { font-size: clamp(1.9rem, 9vw, 2.55rem); overflow-wrap: anywhere; }
  .vp-lead { font-size: 1rem; }
  .vp-tool-section, .vp-content-section, .vp-cta-section { padding: 42px 0; }
  .vp-input-card, .vp-result-card { padding: 19px; border-radius: 14px; }
  .vp-slot-fields { grid-template-columns: 1fr; }
  .vp-metrics, .vp-info-grid, .vp-related-grid { grid-template-columns: 1fr; }
  .vp-zone-list li { grid-template-columns: 1fr; gap: 2px; }
  .vp-card-heading { align-items: flex-start; }
  .vp-readable { width: calc(100% - 2rem); max-width: none; }
}
