:root {
  --green: #33e46f;
  --green-dark: #087e36;
  --ink: #0a0e0a;
  --muted: #667066;
  --paper: #f2f6ef;
  --line: #d4ddd1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #080b08; color: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0; }
a { color: inherit; }
.agreement-nav { align-items: center; background: rgba(3,5,3,.96); border-bottom: 1px solid #273027; display: flex; justify-content: space-between; padding: 18px clamp(18px,5vw,70px); position: sticky; top: 0; z-index: 10; }
.agreement-nav a { font-size: .86rem; font-weight: 800; text-decoration: none; }
.agreement-nav .brand { color: #fff; font-size: 1.15rem; font-weight: 950; }
.agreement-nav > a:last-child { color: var(--green); }
main { min-height: 100vh; }
.agreement-hero { background: radial-gradient(circle at 85% 20%, rgba(51,228,111,.18), transparent 31%), #0d120d; padding: clamp(54px,8vw,100px) clamp(18px,5vw,70px); }
.eyebrow { color: var(--green); font-size: .75rem; font-weight: 950; letter-spacing: .15em; margin: 0 0 14px; text-transform: uppercase; }
h1, h2 { letter-spacing: -.045em; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(2.8rem,7vw,6.4rem); max-width: 950px; }
.agreement-hero > p:not(.eyebrow) { color: #c3cdc2; font-size: 1.08rem; line-height: 1.65; max-width: 760px; }
.term-callout { background: rgba(51,228,111,.1); border: 1px solid rgba(51,228,111,.35); border-radius: 10px; display: flex; flex-direction: column; gap: 5px; margin-top: 24px; max-width: 820px; padding: 18px 20px; }
.term-callout strong { color: #fff; }
.term-callout span { color: #bdebc8; font-size: .9rem; line-height: 1.5; }
.progress { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.progress span { align-items: center; border: 1px solid #374137; border-radius: 999px; color: #8e998d; display: flex; font-size: .82rem; font-weight: 800; gap: 8px; padding: 8px 14px; }
.progress b { align-items: center; border: 1px solid currentColor; border-radius: 50%; display: inline-flex; height: 22px; justify-content: center; width: 22px; }
.progress .active { color: var(--green); }
.agreement-shell { background: var(--paper); color: var(--ink); padding: clamp(30px,6vw,76px) clamp(16px,5vw,70px); }
.document-panel, .signature-panel, .complete-panel { margin: 0 auto; max-width: 1160px; }
.document-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.12); overflow: hidden; }
.panel-heading { align-items: flex-start; display: flex; gap: 24px; justify-content: space-between; padding: 28px; }
.panel-heading h2 { font-size: clamp(1.45rem,3vw,2.4rem); max-width: 760px; }
.panel-heading .eyebrow, .signature-panel .eyebrow, .complete-panel .eyebrow { color: var(--green-dark); }
.panel-heading > a { color: var(--green-dark); flex: 0 0 auto; font-size: .82rem; font-weight: 900; }
iframe { background: #e5ebe2; border: 0; display: block; height: min(78vh,900px); width: 100%; }
.document-note { color: var(--muted); font-size: .82rem; margin: 0; padding: 16px 28px; }
.signature-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.12); margin-top: 28px; padding: clamp(24px,5vw,58px); }
.signature-panel h2, .complete-panel h2 { font-size: clamp(2rem,4vw,3.6rem); }
.form-intro { color: var(--muted); line-height: 1.6; }
.signature-consent { align-items: flex-start; cursor: pointer; display: flex; gap: 12px; line-height: 1.45; }
input[type="checkbox"] { accent-color: var(--green-dark); flex: 0 0 auto; height: 18px; margin-top: 2px; width: 18px; }
.field-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: .82rem; font-weight: 900; }
.field input { background: #f7f9f6; border: 1px solid #bfcabc; border-radius: 8px; color: var(--ink); font: inherit; padding: 13px 14px; width: 100%; }
.field input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(8,126,54,.14); outline: 0; }
#signed-agreement { height: 1px; opacity: 0; pointer-events: none; position: absolute; width: 1px; }
.signature-consent { background: #eef7ed; border: 1px solid #bfd4bd; border-radius: 10px; margin: 26px 0; padding: 16px; }
button, .pay-button { background: var(--green-dark); border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-weight: 950; justify-content: center; padding: 15px 22px; text-decoration: none; }
button:hover, .pay-button:hover { background: #066a2d; }
button:disabled { cursor: wait; opacity: .65; }
.form-status { color: #9a251f; font-size: .86rem; font-weight: 800; min-height: 1.2em; }
.form-status.preview-status { color: #5c675b; }
.privacy-note { color: var(--muted); font-size: .76rem; margin-bottom: 0; }
.complete-panel { background: #0d120d; border-radius: 14px; color: #fff; margin-top: 28px; padding: clamp(28px,5vw,58px); }
.complete-panel > p:not(.eyebrow) { color: #c7d1c6; line-height: 1.6; }
.complete-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.download-link { color: var(--green); font-weight: 900; }
@media (max-width: 700px) {
  .panel-heading { flex-direction: column; }
  iframe { height: 68vh; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  button, .pay-button { width: 100%; }
  .complete-actions { align-items: stretch; flex-direction: column; }
}
