:root {
  --ink: #14251e;
  --ink-soft: #44574e;
  --forest: #173f32;
  --forest-deep: #0d2c23;
  --lime: #d9f38d;
  --lime-strong: #bfe35a;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #d9ddd4;
  --muted: #74837b;
  --red: #a9352a;
  --shadow: 0 24px 80px rgba(18, 46, 37, .1);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 3%, rgba(217, 243, 141, .42), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; }
.page-shell { max-width: 1360px; margin: 0 auto; padding: 0 42px; }
.brand-bar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(20, 37, 30, .14); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--forest); color: var(--lime); font-size: 13px; font-weight: 900; letter-spacing: -.02em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.secure span { width: 8px; height: 8px; border-radius: 50%; background: #4c9f70; box-shadow: 0 0 0 5px rgba(76, 159, 112, .12); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: end; padding: 84px 0 64px; }
.eyebrow { margin: 0 0 18px; color: #52705f; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 82px); line-height: .97; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--forest); text-decoration: underline; text-decoration-color: var(--lime-strong); text-decoration-thickness: .13em; text-underline-offset: .06em; font-style: italic; }
.hero-copy { max-width: 770px; margin: 28px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.expectation-card { padding: 28px; border-radius: var(--radius); background: var(--forest); color: white; box-shadow: var(--shadow); }
.expectation-card .card-label { display: block; margin-bottom: 28px; color: var(--lime); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 10px; }
.expectation-card strong { display: block; font-family: Georgia, serif; font-size: 25px; line-height: 1.15; font-weight: 500; }
.expectation-card p { margin: 14px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }

.progress-rail { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(245, 241, 232, .92); backdrop-filter: blur(18px); border-block: 1px solid rgba(20, 37, 30, .13); padding: 15px 0; }
.progress-rail > div { position: relative; display: flex; gap: 12px; align-items: center; padding: 0 18px; border-right: 1px solid var(--line); color: var(--muted); }
.progress-rail > div:first-child { padding-left: 0; }
.progress-rail > div:last-child { border: 0; }
.progress-rail b { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #bdc7c0; border-radius: 50%; font-size: 11px; }
.progress-rail span, .progress-rail small { display: block; }
.progress-rail span { font-size: 12px; font-weight: 800; }
.progress-rail small { margin-top: 1px; font-size: 10px; font-weight: 500; color: #86938c; }
.progress-rail [data-state="current"] { color: var(--forest); }
.progress-rail [data-state="current"] b { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.progress-rail [data-state="complete"] { color: var(--forest); }
.progress-rail [data-state="complete"] b { background: var(--lime); border-color: var(--lime-strong); color: transparent; }
.progress-rail [data-state="complete"] b::after { content: "✓"; color: var(--forest); position: absolute; }

.notice { margin: 32px 0 -12px; padding: 16px 20px; border-radius: 14px; background: #e4f3d1; color: var(--forest-deep); font-weight: 750; }
.notice.error { background: #f8dfda; color: var(--red); }
.step-card { margin: 44px 0; padding: clamp(28px, 5vw, 64px); border: 1px solid rgba(20, 37, 30, .12); border-radius: 30px; background: var(--paper); box-shadow: 0 10px 50px rgba(18, 46, 37, .045); }
.step-heading { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 38px; }
.step-number { padding-top: 6px; color: #718078; font-family: ui-monospace, monospace; font-size: 12px; }
.step-heading p { margin: 0 0 5px; color: #698074; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.step-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.locked-card { opacity: .54; }
.locked-card form, .locked-card .paypal-button, .locked-card .secondary-button { pointer-events: none; }

.agreement-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.agreement-meta span, .agreement-meta a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-decoration: none; }
.agreement-meta a { margin-left: auto; background: white; }
.agreement-text { height: 420px; overflow: auto; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fbfaf6; color: #34483e; font-family: Georgia, serif; font-size: 15px; line-height: 1.75; }
.agreement-text p:first-child { margin-top: 0; }
.signature-form { margin-top: 28px; }
.field-grid { display: grid; gap: 22px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label > span { display: block; margin-bottom: 8px; color: #3f564b; font-size: 12px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid #ccd3cd; border-radius: 13px; background: white; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
input, select { min-height: 48px; padding: 0 14px; }
textarea { min-height: 128px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #6d8f7e; box-shadow: 0 0 0 4px rgba(109, 143, 126, .13); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; padding: 18px; border-radius: 14px; background: #f0f4ec; cursor: pointer; }
.consent input { width: 18px; min-height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--forest); }
.consent span { margin: 0; font-size: 13px; font-weight: 620; line-height: 1.55; }
.consent.final { margin-top: 34px; }
.primary-button, .secondary-button, .paypal-button { display: inline-flex; align-items: center; justify-content: center; gap: 38px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 13px; background: var(--forest); color: white; font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.primary-button:hover, .paypal-button:hover { transform: translateY(-1px); background: var(--forest-deep); }
.primary-button span, .paypal-button span { color: var(--lime); font-size: 19px; }
.primary-button:disabled { opacity: .5; cursor: wait; }
.secondary-button { margin-top: 20px; border: 1px solid var(--forest); background: transparent; color: var(--forest); }

.payment-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 38px; align-items: center; padding: 28px; border-radius: 20px; background: #f2f2ea; }
.payment-panel > div:first-child small, .payment-panel > div:first-child strong { display: block; }
.payment-panel > div:first-child small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.payment-panel > div:first-child strong { margin-top: 5px; font-family: Georgia, serif; font-size: 35px; font-weight: 500; }
.paypal-button { background: #153b6f; }
.payment-panel p { grid-column: 2; margin: -24px 0 0; color: var(--muted); font-size: 12px; }
.completion-banner { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 15px; background: #e5f2d2; }
.completion-banner > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--lime); font-weight: 900; }
.completion-banner strong, .completion-banner small { display: block; }
.completion-banner small { margin-top: 2px; color: var(--ink-soft); }
.completion-banner.pending { background: #eeeae0; }

fieldset { margin: 0; padding: 38px 0; border: 0; border-top: 1px solid var(--line); }
fieldset:first-child { padding-top: 0; border-top: 0; }
legend { padding: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border-radius: 50%; background: var(--lime); font-family: ui-sans-serif, system-ui; font-size: 11px; font-weight: 900; vertical-align: 4px; }
.section-intro { margin: 10px 0 25px; color: var(--muted); font-size: 14px; }
.drive-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: 20px; background: #eef2e8; }
.drive-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--lime); color: var(--forest); font-size: 28px; }
.drive-panel strong { font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.drive-panel p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.work-grid > div { min-height: 210px; padding: 24px; background: white; }
.work-grid span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.work-grid strong { display: block; margin-top: 45px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.work-grid p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.final-card { margin-bottom: 70px; background: var(--forest); color: white; }
.final-card .step-heading p, .final-card .step-number { color: var(--lime); }
.final-card .work-grid { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.13); }
.final-card .work-grid > div { background: rgba(255,255,255,.06); }
.final-card .work-grid p, .final-card .work-grid span { color: rgba(255,255,255,.65); }

footer { display: flex; align-items: center; gap: 22px; padding: 30px 0 45px; border-top: 1px solid rgba(20,37,30,.14); color: var(--muted); font-size: 12px; }
footer strong { color: var(--forest); }
footer a { margin-left: auto; font-weight: 800; }
.expired { max-width: 680px; margin: 15vh auto; padding: 48px; text-align: center; }
.expired .brand-mark { margin: 0 auto 24px; }
.expired h1 { font: 500 52px/1 Georgia, serif; letter-spacing: -.04em; }
.expired > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.expired .primary-button { margin-top: 20px; }

.welcome-shell { max-width: 1360px; min-height: 100vh; margin: 0 auto; padding: 0 42px 54px; }
.welcome-hero { max-width: 1060px; padding: clamp(72px, 11vw, 150px) 0 82px; }
.welcome-hero h1 { margin: 0; font: 500 clamp(58px, 9vw, 120px)/.88 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.welcome-hero h1 em { color: var(--forest); text-decoration: underline; text-decoration-color: var(--lime-strong); text-decoration-thickness: .12em; text-underline-offset: .06em; }
.welcome-hero > p:not(.eyebrow) { max-width: 790px; margin: 34px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.welcome-actions { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; margin-top: 46px; padding: 24px 26px; border: 1px solid rgba(20,37,30,.12); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.welcome-actions strong, .welcome-actions span { display: block; }
.welcome-actions > div > span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.welcome-actions .primary-button span { display: inline; }
.welcome-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.welcome-steps article { min-height: 220px; padding: 25px; background: var(--paper); }
.welcome-steps article > span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.welcome-steps strong { display: block; margin-top: 55px; font: 500 25px/1.05 Georgia, serif; }
.welcome-steps p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }

@media (max-width: 900px) {
  .page-shell { padding: 0 22px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 55px; }
  .expectation-card { max-width: 520px; }
  .progress-rail { overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)); margin-inline: -22px; padding-inline: 22px; }
  .progress-rail > div:first-child { padding-left: 0; }
  .field-grid.two { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .drive-panel { grid-template-columns: auto 1fr; }
  .drive-panel .primary-button { grid-column: 1 / -1; }
  .welcome-shell { padding-inline: 22px; }
  .welcome-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .page-shell { padding: 0 16px; }
  .brand-bar { height: 76px; }
  .secure { font-size: 0; }
  .hero { padding: 46px 0; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 16px; }
  .progress-rail { margin-inline: -16px; padding-inline: 16px; }
  .step-card { margin: 24px 0; padding: 24px 18px; border-radius: 22px; }
  .step-heading { gap: 12px; }
  .step-heading h2 { font-size: 35px; }
  .agreement-meta a { margin-left: 0; }
  .agreement-text { height: 360px; padding: 22px; }
  .payment-panel { grid-template-columns: 1fr; }
  .payment-panel p { grid-column: 1; margin: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > div { min-height: 160px; }
  .work-grid strong { margin-top: 25px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer a { margin-left: 0; }
  .welcome-shell { padding-inline: 16px; }
  .welcome-hero { padding: 64px 0 48px; }
  .welcome-hero h1 { font-size: 58px; }
  .welcome-hero > p:not(.eyebrow) { font-size: 16px; }
  .welcome-actions { grid-template-columns: 1fr; }
  .welcome-actions .primary-button { width: 100%; }
  .welcome-steps { grid-template-columns: 1fr; }
  .welcome-steps article { min-height: 165px; }
  .welcome-steps strong { margin-top: 28px; }
}
