:root {
  --ink: #1a2418;
  --muted: #647068;
  --green: #1a6b51;
  --green-dark: #11533e;
  --mint: #dff1e7;
  --mint-soft: #edf7ef;
  --paper: #f8faf7;
  --white: #ffffff;
  --line: #d9e1d9;
  --error: #a4382f;
  --shadow: 0 24px 80px rgba(26, 55, 38, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(26, 107, 81, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 81, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(211, 240, 207, 0.72), transparent 31%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Nunito Sans", sans-serif;
}

button, input, textarea { font: inherit; }

button { cursor: pointer; }

.site-header {
  min-height: 104px;
  padding: 20px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(26, 107, 81, 0.13);
  background: rgba(248, 250, 247, 0.88);
  backdrop-filter: blur(14px);
}

.brand img { display: block; width: min(250px, 52vw); height: auto; }
.header-meta { display: flex; align-items: center; gap: 18px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2e9b74; box-shadow: 0 0 0 5px rgba(46,155,116,.12); }
.time-pill { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: .9rem; }
.eyebrow { margin: 0; color: var(--green); font: 500 .75rem/1.45 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.demo-notice { padding: 9px 24px; display: flex; justify-content: center; gap: 10px; color: #765611; background: #fff4cf; border-bottom: 1px solid #ead58e; font-size: .86rem; }
.demo-notice strong { font-family: "Hanken Grotesk", sans-serif; }

.shell {
  width: min(1320px, calc(100% - 40px));
  margin: 38px auto 70px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.journey {
  position: sticky;
  top: 28px;
  padding: 26px;
  border: 1px solid rgba(26,107,81,.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.76);
  box-shadow: 0 16px 46px rgba(26,55,38,.06);
}

.journey-kicker { margin: 0 0 4px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.journey-count { margin: 0; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; }
.progress-track { height: 6px; margin: 18px 0 22px; overflow: hidden; border-radius: 999px; background: #e5ebe4; }
.progress-value { width: 0; height: 100%; background: var(--green); border-radius: inherit; transition: width .35s ease; }
.journey-steps { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.journey-steps li { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; color: #8b968e; font-size: .92rem; }
.journey-steps li::before { content: attr(data-index); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 500 .68rem "JetBrains Mono", monospace; }
.journey-steps li.active { color: var(--green); font-weight: 700; }
.journey-steps li.active::before { color: #fff; background: var(--green); border-color: var(--green); }
.journey-steps li.complete::before { content: "✓"; color: var(--green); background: var(--mint); border-color: var(--mint); }
.privacy-note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.55; }

.stage {
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(26,107,81,.14);
  border-radius: 34px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

#intake-form { min-height: 650px; display: flex; flex-direction: column; }
#step-root { flex: 1; }
.step { padding: clamp(30px, 5vw, 64px); animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.welcome-step { display: grid; grid-template-columns: 1.1fr .72fr; gap: clamp(36px, 6vw, 86px); align-items: center; min-height: 560px; }
h1, h2, h3 { font-family: "Hanken Grotesk", sans-serif; }
h1 { margin: 22px 0 24px; max-width: 680px; font-size: clamp(3rem, 6.1vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
h1 span, h2 span { color: var(--green); }
.lead { max-width: 700px; color: #506057; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }
.welcome-points { margin-top: 28px; display: grid; gap: 10px; color: #415047; font-size: .98rem; }
.welcome-points span::first-letter { color: var(--green); }

.ai-card { position: relative; min-height: 420px; padding: 42px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-radius: 32px; background: linear-gradient(135deg,#f3fbf4,#cfe8dd); border: 1px solid #d7e6da; }
.ai-card strong { position: relative; z-index: 2; color: var(--green); font: 700 clamp(2.6rem, 4vw, 4.4rem)/.95 "Hanken Grotesk", sans-serif; letter-spacing: -.05em; }
.ai-card small { position: relative; z-index: 2; margin-top: 80px; font: 500 .7rem "JetBrains Mono", monospace; letter-spacing: .14em; color: var(--green); }
.orbit { position: absolute; width: 380px; height: 380px; border: 1px solid rgba(26,107,81,.36); border-radius: 50%; }
.orbit-one { right: -170px; bottom: -40px; }
.orbit-two { right: -105px; bottom: -105px; }
.orbit-dot { position: absolute; width: 10px; height: 10px; border: 2px solid var(--green); border-radius: 50%; background: var(--mint-soft); }
.dot-one { right: 31px; top: 100px; }
.dot-two { right: 61px; bottom: 72px; }

.step-heading { max-width: 780px; margin-bottom: 40px; }
.step-heading h2, .training-banner h2 { margin: 12px 0 12px; font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.step-heading > p:last-child, .training-subtitle { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.form-grid { display: grid; gap: 22px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 9px; margin-bottom: 24px; color: #29362d; font-weight: 700; }
.field > span, legend > span, .consent-row b { color: var(--green); }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  border: 1px solid #ccd7ce;
  border-radius: var(--radius-sm);
  outline: none;
  background: #fbfcfa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 94px; line-height: 1.55; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(26,107,81,.11); }
.field input::placeholder, .field textarea::placeholder { color: #9aa59d; }
.field .invalid, .choice-group.invalid, .consent-row.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(164,56,47,.1); }
.field-error { margin: -14px 0 18px; color: var(--error); font-size: .84rem; }

.choice-group { margin: 12px 0 34px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 14px; font-weight: 700; }
.level-grid, .permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.select-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .2s, transform .2s, background .2s; cursor: pointer; }
.select-card:hover { transform: translateY(-2px); border-color: #91b5a2; }
.select-card:has(input:checked) { border-color: var(--green); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--green); }
.select-card input { position: absolute; opacity: 0; }
.select-card b, .select-card small { display: block; }
.select-card b { padding-right: 22px; font-family: "Hanken Grotesk",sans-serif; }
.select-card small { margin-top: 7px; color: var(--muted); line-height: 1.4; }
.select-card:has(input:checked)::after { content: "✓"; position: absolute; right: 15px; top: 14px; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: .75rem; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #425047; background: #fff; cursor: pointer; transition: .2s; }
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { color: #fff; background: var(--green); border-color: var(--green); }
.conditional-field { display: none; margin-top: 16px; }
.conditional-field.visible { display: grid; }

.training-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.training-card { min-height: 235px; display: flex; flex-direction: column; justify-content: space-between; }
.training-card .card-top { display: flex; align-items: start; justify-content: space-between; }
.training-card .card-number { color: var(--green); font: 500 .78rem "JetBrains Mono",monospace; letter-spacing: .12em; }
.training-card .check-ring { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #bdd0c2; border-radius: 50%; color: transparent; }
.training-card:has(input:checked) .check-ring { color: #fff; background: var(--green); border-color: var(--green); }
.training-card h3 { margin: 38px 0 8px; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.025em; }
.training-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.training-card footer { margin-top: 24px; display: flex; justify-content: space-between; gap: 14px; color: var(--green); font: 500 .69rem "JetBrains Mono",monospace; text-transform: uppercase; }

.training-banner { margin: calc(clamp(30px,5vw,64px) * -1) calc(clamp(30px,5vw,64px) * -1) 42px; padding: clamp(30px,5vw,58px); display: grid; grid-template-columns: 72px 1fr; gap: 26px; background: linear-gradient(125deg, var(--mint-soft), #d9efe2); border-bottom: 1px solid #cfe3d4; }
.training-number { width: 66px; height: 66px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font: 500 1rem "JetBrains Mono",monospace; }
.training-banner h2 { font-size: clamp(2.2rem,4vw,3.7rem); }
.training-banner .training-subtitle { margin: 0; }
.question-block { margin-bottom: 34px; }
.question-block > .field { margin-bottom: 0; }
.helper { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.process-grid { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; gap: 8px; align-items: center; }
.process-arrow { color: var(--green); text-align: center; font-size: 1.35rem; }
.process-grid .field { margin: 0; }
.process-grid textarea { min-height: 120px; }

.consent-row { padding: 18px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fbfcfa; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--green); }
.consent-row span { line-height: 1.45; }

.form-actions { padding: 22px clamp(30px,5vw,64px); display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: rgba(248,250,247,.78); }
.form-actions[hidden] { display: none; }
.button { min-height: 50px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font: 500 .78rem "JetBrains Mono",monospace; letter-spacing: .05em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-primary:disabled { opacity: .6; cursor: wait; }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button-ghost[hidden] { display: none; }

.success-step { max-width: 780px; margin: 0 auto; text-align: center; padding-top: clamp(52px,8vw,100px); }
.success-mark { width: 70px; height: 70px; margin: 0 auto 24px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; box-shadow: 0 0 0 12px var(--mint); }
.success-step h1 { margin: 18px auto 22px; font-size: clamp(3rem,6vw,5rem); }
.success-panel { margin: 32px 0; padding: 24px; border: 1px solid #cfe3d4; border-radius: var(--radius-md); background: var(--mint-soft); }
.success-panel strong { font-family: "Hanken Grotesk",sans-serif; font-size: 1.3rem; }
.success-panel p { margin: 5px 0 0; color: var(--muted); }
.selected-summary { display: grid; gap: 10px; text-align: left; }
.selected-summary div { padding: 14px 18px; display: flex; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.selected-summary small { color: var(--green); font-family: "JetBrains Mono",monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .journey { position: static; padding: 20px; }
  .journey-steps, .privacy-note { display: none; }
  .progress-track { margin-bottom: 0; }
  .welcome-step { grid-template-columns: 1fr; }
  .ai-card { min-height: 290px; }
  .level-grid, .permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .site-header { min-height: 88px; padding: 16px 20px; }
  .header-meta .eyebrow { display: none; }
  .time-pill { font-size: .78rem; }
  .demo-notice { padding-inline: 16px; flex-direction: column; gap: 0; text-align: center; }
  .shell { width: min(100% - 24px, 620px); margin: 16px auto 34px; gap: 14px; }
  .stage { border-radius: 24px; }
  .step { padding: 28px 22px; }
  .welcome-step { min-height: auto; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .two-columns, .training-grid, .level-grid, .permission-grid { grid-template-columns: 1fr; }
  .training-banner { grid-template-columns: 1fr; margin: -28px -22px 30px; padding: 28px 22px; }
  .training-number { width: 50px; height: 50px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-arrow { transform: rotate(90deg); }
  .form-actions { padding: 18px 22px; }
  .button { padding-inline: 18px; }
  .ai-card { min-height: 250px; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
