:root {
  --ink: #17202a;
  --muted: #5d6673;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #dbe3e8;
  --blue: #24527a;
  --blue-dark: #193f60;
  --green: #407f68;
  --gold: #d8a23a;
  --soft-blue: #eaf2f8;
  --soft-green: #edf6f2;
  --soft-gold: #fff4dc;
  --danger: #983838;
  --shadow: 0 18px 50px rgba(23, 32, 42, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(219, 227, 232, .9);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--blue);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.hero {
  padding: 68px 0 64px;
  background:
    radial-gradient(circle at 88% 22%, rgba(216, 162, 58, .11), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f7faf8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
  gap: 64px;
  align-items: center;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.65rem, 5.2vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: #33414d;
  font-size: 1.14rem;
}

.hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.chip {
  border: 1px solid #cedbe3;
  border-radius: 999px;
  padding: 7px 12px;
  color: #33414d;
  background: rgba(255, 255, 255, .8);
  font-size: .89rem;
  font-weight: 700;
}

.notebook {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notebook::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--green), var(--gold));
  content: "";
}

.notebook h2 { margin: 0 0 22px; color: var(--green); font-size: 1.65rem; letter-spacing: -.025em; }
.note-line { display: flex; gap: 13px; align-items: flex-start; margin: 20px 0; color: #2f3a45; font-weight: 650; }
.mark { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--soft-gold); }

section { padding: 64px 0; }
.band { background: linear-gradient(180deg, #edf5fa 0%, #f7fafc 100%); }

.section-title {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.section-intro { max-width: 760px; margin: 0 0 30px; color: var(--muted); font-size: 1.06rem; }
.tool-shell { display: block; }

.panel {
  width: min(940px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(210, 220, 227, .95);
  border-radius: 18px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eff3; }
.progress-bar { width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #e6b85b); transition: width .25s ease; }
.progress-text { margin: 12px 0 30px; color: var(--green); font-size: .88rem; font-weight: 800; }
.form-step { padding: 0; }

.step-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--green);
  font-size: 1rem;
  font-weight: 800;
}

.step-heading h3 { margin: 0; color: var(--blue); font-size: 1.48rem; letter-spacing: -.02em; }
.step-heading p { margin: 4px 0 0; color: var(--muted); font-size: .96rem; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label, legend { color: #25323d; font-size: .95rem; font-weight: 750; }
.field-help { margin: 3px 0 14px; color: var(--muted); font-size: .9rem; }

input, select, textarea {
  width: 100%;
  border: 1px solid #c8d4dc;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover, select:hover, textarea:hover { border-color: #9fb3c1; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 82, 122, .12); }
textarea { min-height: 128px; resize: vertical; }
fieldset { margin: 10px 0 26px; padding: 0; border: 0; }
.needs-fieldset { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 26px; }
.goal-fieldset { border-top: 1px solid var(--line); padding-top: 26px; }
.needs-fieldset.is-invalid { border-radius: 12px; box-shadow: 0 0 0 4px rgba(152, 56, 56, .1); }
.needs-fieldset.is-invalid legend { color: var(--danger); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.needs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice {
  display: flex;
  gap: 11px;
  min-height: 52px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: #2f3a45;
  background: var(--white);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.choice:hover { border-color: #96aec0; box-shadow: 0 8px 22px rgba(36, 82, 122, .07); transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--soft-blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue); }
.choice span { display: grid; gap: 2px; }
.choice strong { color: var(--blue-dark); font-size: .94rem; }
.choice small { color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.35; }
.rich-choice { min-height: 88px; }
.goal-grid .choice { align-items: center; font-weight: 700; }
.consent-choice { margin-top: 8px; min-height: 0; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; }
.form-note { margin: 14px 0 10px; color: var(--muted); font-size: .9rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.step-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.demo-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 19px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(23, 32, 42, .12); }
.btn-primary { color: var(--white); background: var(--blue); }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-secondary { color: var(--blue); border-color: #afc1cf; background: var(--white); }
.btn-ghost { color: var(--blue); border-color: transparent; background: var(--soft-blue); }
.btn-light { min-height: 38px; color: var(--blue); border-color: #cbd9e2; background: var(--white); }
.btn-small { padding: 0 13px; font-size: .84rem; }
.nav-home { min-height: 40px; padding-inline: 15px; font-size: .87rem; }
.btn:disabled { opacity: .58; cursor: not-allowed; }
.form-errors { margin: 18px 0 0; border-left: 4px solid var(--danger); border-radius: 8px; padding: 12px 14px; color: #712d2d; background: #fff3f1; }

.result-column { width: min(940px, 100%); margin: 30px auto 0; }
.result-empty, .loading-card { border: 1px solid var(--line); border-radius: 18px; padding: 36px; color: var(--muted); text-align: center; background: var(--white); box-shadow: var(--shadow); }
.result-empty h2, .loading-card h2 { margin: 0 0 10px; color: var(--blue); font-size: 1.9rem; }
.spinner { display: block; width: 42px; height: 42px; margin: 0 auto 17px; border: 4px solid #dbe3e9; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.result:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-header { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding: 34px; background: var(--soft-green); }
.result-header h2 { margin: 0 0 12px; color: var(--green); font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.08; }
.result-header p { max-width: 740px; margin: 0; color: #2f3a45; }
.result-section { padding: 28px 30px; border-bottom: 1px solid var(--line); }
.result-section:nth-of-type(even) { border-left: 1px solid var(--line); }
.result-section h3 { margin: 0 0 14px; color: var(--blue); font-size: 1.08rem; }
.steps-section { grid-column: 1 / -1; border-left: 5px solid var(--gold) !important; background: var(--soft-gold); }
.result-list { display: grid; gap: 9px; margin: 0; padding-left: 20px; }
.result-list li { color: #2f3a45; }
.result-list.numbered { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-left: 24px; }
.private-note { grid-column: 1 / -1; margin: 20px 30px 0; border-left: 5px solid var(--gold); border-radius: 10px; padding: 15px 18px; color: #2f3a45; background: var(--soft-gold); }
.booking { grid-column: 1 / -1; margin-top: 20px; border-top: 1px solid var(--line); padding: 30px; background: var(--soft-blue); }
.booking h3 { margin: 0 0 8px; color: var(--green); font-size: 1.35rem; }
.booking p { max-width: 680px; margin: 0; color: #2f3a45; }
.booking-status { min-height: 1.5em; margin-top: 13px !important; color: var(--green) !important; font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .88rem; background: var(--paper); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

@media print {
  header, .hero, #diagnostic-form, footer, .booking, .result-empty, .loading-card { display: none !important; }
  body { background: #fff; }
  .wrap, .result-column { width: 100%; margin: 0; }
  .result { display: block !important; border: 0; box-shadow: none; }
  .result-section { border-left: 0 !important; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .notebook { max-width: 680px; }
  .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result:not([hidden]) { grid-template-columns: 1fr; }
  .result-header, .steps-section, .private-note, .booking { grid-column: 1; }
  .result-section:nth-of-type(even) { border-left: 0; }
  .result-list.numbered { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 1120px); }
  nav { min-height: 64px; }
  .brand { font-size: 1.03rem; }
  .nav-home { min-height: 36px; padding-inline: 11px; font-size: .75rem; }
  .hero { padding: 44px 0 46px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .lead { font-size: 1rem; }
  .notebook { padding: 27px 24px 27px 29px; }
  section { padding: 48px 0; }
  .panel { border-radius: 14px; padding: 22px 18px; }
  .step-heading { gap: 12px; }
  .step-number { width: 34px; height: 34px; border-radius: 10px; }
  .step-heading h3 { font-size: 1.28rem; }
  .field-inline, .choice-grid, .needs-grid, .goal-grid { grid-template-columns: 1fr; }
  .rich-choice { min-height: 72px; }
  .step-actions .btn { flex: 1; }
  .demo-actions .btn { width: 100%; }
  .result-header, .result-section, .booking { padding: 22px; }
  .private-note { margin: 18px 20px 0; }
  .booking .btn { width: 100%; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}
