:root {
  --ink: #18211d;
  --muted: #52615a;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --line: #d9dfdb;
  --green: #21634d;
  --green-dark: #164535;
  --coral: #d75b45;
  --yellow: #f0c75e;
  --blue: #356c8c;
  --shadow: 0 18px 50px rgba(24, 33, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 223, 219, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--green); color: var(--green); border-radius: 50%; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.hero {
  min-height: min(600px, calc(82svh - 64px));
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: white;
  background: #1f5747 url('/assets/fabric-worktable.png') center/cover no-repeat;
}

.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 35, 29, .94) 0%, rgba(14, 35, 29, .72) 50%, rgba(14, 35, 29, .12) 100%); }
.hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 42px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); }
h1 { max-width: 800px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 6vw, 5.4rem); line-height: 0.98; letter-spacing: 0; }
.hero-copy { max-width: 650px; margin: 24px 0 30px; font-size: clamp(1rem, 2vw, 1.22rem); color: #edf4f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 46px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; }
.button:hover { filter: brightness(.96); }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.5); color: white; }
.button.ghost { background: white; border-color: var(--line); color: var(--ink); }
.button.danger { background: transparent; border-color: #e6b7ae; color: #8a3021; }

.band { padding: 70px 0; }
.band#planner { padding-top: 36px; }
.band.white { background: var(--surface); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading h2, .content-page h1 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.04; letter-spacing: 0; }
.section-heading p, .lede { margin: 0; color: var(--muted); font-size: 1.04rem; }

.planner-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: start; }
.tool-panel, .result-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.tool-panel { padding: 28px; }
.result-panel { position: sticky; top: 88px; padding: 24px; }
.tool-step + .tool-step { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: .85rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #bac6bf; border-radius: 5px; background: white; color: var(--ink); padding: 11px 12px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(33, 99, 77, .2); border-color: var(--green); }
.candidate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.candidate { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfb; }
.candidate h3 { margin: 0 0 12px; font-size: 1rem; }
.candidate label + label { margin-top: 11px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-actions .button { border: 0; }
.status { min-height: 24px; color: var(--muted); font-size: .9rem; }
.status.error { color: #9f2f1e; }
.result-empty { color: var(--muted); }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score { font-size: 1.3rem; font-weight: 900; color: var(--green); }
.match-list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.callout { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--coral); background: #fff5f2; color: #61392f; }

.proof-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proof, .feature { padding: 22px 0; border-top: 3px solid var(--line); }
.proof strong { display: block; margin-bottom: 6px; font-size: 1.35rem; }
.proof p, .feature p { margin: 0; color: var(--muted); }
.proof:nth-child(1) { border-color: var(--green); }
.proof:nth-child(2) { border-color: var(--coral); }
.proof:nth-child(3) { border-color: var(--blue); }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; }

.faq { max-width: 840px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); }

.content-page { padding: 74px 0 90px; }
.content-page header { max-width: 800px; margin-bottom: 44px; }
.content-page h1 { color: var(--ink); }
.article-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; }
.article h2 { margin: 42px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; letter-spacing: 0; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: #35443d; }
.source-box { align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.source-box h2 { margin: 0 0 10px; font-size: 1rem; }
.source-box ul { margin: 0; padding-left: 18px; }
.source-box li + li { margin-top: 8px; }
.badge { display: inline-block; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: #dceee7; color: var(--green-dark); font-size: .76rem; font-weight: 800; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #16241f; color: #dbe5e0; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.footer-inner p { max-width: 760px; margin: 0; font-size: .87rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: white; }

@media (max-width: 820px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero { min-height: 520px; }
  .hero::after { background: rgba(14, 35, 29, .76); }
  .planner-shell, .article-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .proof-grid, .feature-grid { grid-template-columns: 1fr; }
  .proof, .feature { padding: 18px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand span:last-child { font-size: .9rem; }
  .hero-inner { padding: 46px 0 36px; }
  .band { padding: 52px 0; }
  .tool-panel, .result-panel { padding: 18px; }
  .fields, .candidate-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .button { width: 100%; }
  .footer-links { flex-wrap: wrap; }
}

@media print {
  .site-header, .hero, .tool-actions, .site-footer, .proof-grid, .faq { display: none !important; }
  .band { padding: 0; }
  .planner-shell { display: block; }
  .tool-panel { display: none; }
  .result-panel { box-shadow: none; border: 0; }
}
