
  :root {
    --navy: #0a1628; --navy-mid: #122040; --navy-light: #1e3460;
    --gold: #c9a84c; --gold-light: #e8c97a; --gold-pale: #f5e9c8;
    --cream: #faf8f3; --white: #ffffff;
    --text: #1a2a3a; --text-mid: #4a5a6a; --text-light: #8a9aaa;
    --border: rgba(201,168,76,0.25); --border-light: rgba(201,168,76,0.12);
    --success: #1a6b3a; --success-bg: #e8f5ed;
    --red: #8b2020; --red-bg: #fdf0f0;
    --shadow: 0 4px 32px rgba(10,22,40,0.12);
    --shadow-gold: 0 2px 16px rgba(201,168,76,0.15);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; line-height: 1.6; }

  /* HEADER */
  .site-header { background: var(--navy); padding: 0; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--gold); }
  .header-inner { max-width: 960px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .header-brand { display: flex; align-items: center; gap: 14px; }
  .brand-mark { width: 40px; height: 40px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
  .brand-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
  .brand-sub { font-size: 11px; color: var(--gold-light); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; }
  .header-po { text-align: right; }
  .po-label { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; }
  .po-number { font-family: 'DM Mono', monospace; font-size: 15px; color: var(--gold-light); font-weight: 500; }

  /* HERO */
  .hero { background: var(--navy-mid); padding: 52px 32px 44px; text-align: center; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%); pointer-events: none; }
  .hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
  .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 10px; }
  .hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto 28px; font-weight: 300; }
  .hero-meta { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.04); flex-wrap: wrap; justify-content: center; }
  .meta-cell { padding: 11px 20px; border-right: 1px solid var(--border); text-align: center; }
  .meta-cell:last-child { border-right: none; }
  .meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); display: block; margin-bottom: 3px; }
  .meta-value { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--gold-light); font-weight: 500; }

  /* STAGE TRACKER */
  .stage-wrap { background: var(--white); border-bottom: 1px solid var(--border-light); padding: 28px 32px; position: sticky; top: 78px; z-index: 90; box-shadow: 0 4px 20px rgba(10,22,40,0.06); }
  .stage-inner { max-width: 960px; margin: 0 auto; }
  .stage-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .stage-title { font-size: 12px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.1em; }
  .stage-current-badge { font-size: 11px; font-family: 'DM Mono', monospace; background: var(--gold-pale); color: #7a5a10; border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-weight: 600; }
  .stage-live-dot { display: inline-block; width: 7px; height: 7px; background: #22c55e; border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
  .stage-track { display: flex; align-items: center; }
  .stage-node { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; flex: 1; }
  .stage-node::after { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: var(--border-light); z-index: 0; }
  .stage-node:last-child::after { display: none; }
  .stage-node.done::after { background: var(--gold); }
  .stage-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-light); z-index: 1; transition: all 0.4s; flex-shrink: 0; }
  .stage-node.done .stage-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
  .stage-node.active .stage-dot { background: var(--navy); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.15); }
  .stage-name { font-size: 10px; color: var(--text-light); text-align: center; white-space: nowrap; display: none; }
  @media(min-width: 560px) { .stage-name { display: block; } }
  .stage-node.done .stage-name { color: var(--gold); font-weight: 600; }
  .stage-node.active .stage-name { color: var(--navy); font-weight: 700; }
  .stage-last-updated { font-size: 10px; color: var(--text-light); text-align: right; margin-top: 10px; font-family: 'DM Mono', monospace; }

  /* MAIN */
  main { max-width: 960px; margin: 0 auto; padding: 36px 32px 100px; }

  /* SECTION HEADER */
  .section-header { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .section-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; color: var(--navy); }
  .section-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
  .badge-required { background: rgba(139,32,32,0.1); color: var(--red); border: 1px solid rgba(139,32,32,0.2); }
  .badge-info { background: rgba(201,168,76,0.1); color: #7a5a10; border: 1px solid var(--border); }
  .badge-done { background: var(--success-bg); color: var(--success); border: 1px solid rgba(26,107,58,0.3); }

  /* PO SUMMARY */
  .po-summary { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 26px 30px; margin-bottom: 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
  .po-summary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
  .po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 18px; margin-bottom: 18px; }
  .po-field-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); font-weight: 600; margin-bottom: 3px; }
  .po-field-value { font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.4; }
  .po-field-value.mono { font-family: 'DM Mono', monospace; color: var(--navy); }
  .po-field-value.amount { font-size: 20px; font-family: 'Playfair Display', serif; color: var(--gold); font-weight: 700; }
  .po-notice { background: rgba(10,22,40,0.04); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 12px; color: var(--text-mid); line-height: 1.6; }
  .po-notice strong { color: var(--text); }

  /* DELIVERABLE CARDS */
  .deliverable-group { margin-bottom: 28px; }
  .deliverable-card { background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; transition: all 0.25s; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(10,22,40,0.05); }
  .deliverable-card:hover { border-color: var(--border); box-shadow: var(--shadow-gold); transform: translateY(-1px); }
  .deliverable-card.checked { border-color: rgba(26,107,58,0.4); background: linear-gradient(to right, rgba(26,107,58,0.03), var(--white)); }
  .card-header { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; cursor: pointer; user-select: none; }
  .card-check { width: 22px; height: 22px; border: 2px solid rgba(0,0,0,0.18); border-radius: 5px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: white; }
  .deliverable-card.checked .card-check { background: var(--success); border-color: var(--success); }
  .checkmark { opacity: 0; transition: opacity 0.15s; color: white; font-size: 13px; line-height: 1; }
  .deliverable-card.checked .checkmark { opacity: 1; }
  .card-main { flex: 1; min-width: 0; }
  .card-title { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .qty-tag { font-size: 10px; font-family: 'DM Mono', monospace; background: var(--navy); color: var(--gold-light); padding: 2px 7px; border-radius: 4px; font-weight: 500; }
  .price-tag { font-size: 10px; font-family: 'DM Mono', monospace; background: rgba(201,168,76,0.15); color: #7a5a10; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); }
  .card-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; }
  .card-expand-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: var(--text-mid); transition: all 0.2s; }
  .card-expand-btn:hover { background: var(--gold-pale); border-color: var(--border); color: var(--navy); }
  .card-expand-btn.open { transform: rotate(180deg); }
  .card-scope { display: none; padding: 0 20px 18px 56px; border-top: 1px solid rgba(0,0,0,0.05); }
  .card-scope.open { display: block; }
  .scope-list { list-style: none; padding: 14px 0 0; display: flex; flex-direction: column; gap: 7px; }
  .scope-list li { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; padding-left: 16px; position: relative; }
  .scope-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
  .scope-list li strong { color: var(--navy); font-weight: 600; }
  .limitation-block { margin-top: 14px; background: rgba(139,32,32,0.05); border: 1px solid rgba(139,32,32,0.15); border-radius: 8px; padding: 12px 14px; }
  .limitation-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); font-weight: 700; margin-bottom: 8px; }
  .limitation-block li { color: rgba(139,32,32,0.75); }
  .limitation-block li::before { color: var(--red); }

  /* ACKNOWLEDGED STATE */
  .deliverables-acknowledged-banner { background: var(--success-bg); border: 1px solid rgba(26,107,58,0.3); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
  .ack-icon { width: 44px; height: 44px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; flex-shrink: 0; }
  .ack-text-title { font-weight: 600; font-size: 14px; color: var(--success); margin-bottom: 2px; }
  .ack-text-sub { font-size: 12px; color: var(--text-mid); }

  /* COMMITMENTS */
  .commitments-block { background: var(--navy); border-radius: 14px; padding: 30px; margin-bottom: 28px; box-shadow: var(--shadow); }
  .commitments-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); margin-bottom: 6px; }
  .commitments-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 22px; line-height: 1.5; }
  .commitment-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .commitment-item:last-child { border-bottom: none; }
  .commit-check { width: 20px; height: 20px; border: 2px solid rgba(201,168,76,0.35); border-radius: 4px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
  .commit-check.checked { background: var(--gold); border-color: var(--gold); }
  .commit-checkmark { opacity: 0; color: var(--navy); font-size: 11px; font-weight: 700; transition: opacity 0.15s; }
  .commit-check.checked .commit-checkmark { opacity: 1; }
  .commitment-text { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.55; cursor: pointer; }
  .commitment-text strong { color: var(--gold-light); }

  /* SIGNATURE */
  .sig-block { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); margin-bottom: 28px; }
  .sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
  @media(max-width: 560px) { .sig-grid { grid-template-columns: 1fr; } }
  .field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); font-weight: 600; margin-bottom: 6px; display: block; }
  .field-input { width: 100%; padding: 10px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text); background: var(--cream); transition: border-color 0.2s; outline: none; }
  .field-input:focus { border-color: var(--gold); background: white; }
  .field-input::placeholder { color: var(--text-light); }
  .sig-canvas-wrap { border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; overflow: hidden; background: var(--cream); position: relative; height: 100px; }
  .sig-canvas-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 12px; color: var(--text-light); pointer-events: none; transition: opacity 0.2s; text-align: center; }
  canvas#sigCanvas { width: 100%; height: 100%; cursor: crosshair; display: block; touch-action: none; }
  .sig-actions { display: flex; gap: 8px; margin-top: 8px; }
  .sig-clear-btn { font-size: 11px; color: var(--text-light); background: none; border: 1px solid rgba(0,0,0,0.1); padding: 4px 12px; border-radius: 6px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
  .sig-clear-btn:hover { color: var(--red); border-color: rgba(139,32,32,0.3); }

  /* SUBMIT */
  .submit-section { text-align: center; }
  .submit-warning { font-size: 12px; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto; }
  .submit-btn { background: var(--gold); color: var(--navy); border: none; padding: 16px 48px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px rgba(201,168,76,0.4); display: inline-flex; align-items: center; gap: 10px; }
  .submit-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,168,76,0.5); }
  .submit-btn:disabled { background: rgba(0,0,0,0.1); color: var(--text-light); cursor: not-allowed; transform: none; box-shadow: none; }
  .submit-status { margin-top: 14px; font-size: 12px; color: var(--text-light); min-height: 18px; }
  .submit-status.error { color: var(--red); }

  /* TRACKER BAR */
  .tracker-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 50; box-shadow: 0 -4px 20px rgba(10,22,40,0.08); }
  .tracker-label { font-size: 12px; color: var(--text-mid); white-space: nowrap; }
  .tracker-label strong { color: var(--navy); }
  .tracker-progress { flex: 1; height: 6px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden; max-width: 300px; }
  .tracker-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width 0.4s ease; }
  .tracker-pct { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--gold); font-weight: 500; }

  /* SUCCESS SCREEN */
  .success-screen { display: none; text-align: center; padding: 60px 32px; max-width: 600px; margin: 0 auto; }
  .success-icon { width: 80px; height: 80px; background: var(--success-bg); border: 3px solid var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 24px; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
  @keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .success-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--navy); margin-bottom: 12px; }
  .success-sub { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 28px; }
  .success-ref { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; font-size: 13px; color: var(--text-mid); text-align: left; line-height: 1.9; }
  .success-ref strong { color: var(--navy); }
  .spacer { height: 80px; }

  @media(max-width: 600px) { main { padding: 24px 16px 100px; } .header-inner { padding: 14px 16px; } .hero { padding: 36px 16px 32px; } .stage-wrap { padding: 20px 16px; } }

  /* LOADING */
  .portal-loading { position: fixed; inset: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; z-index: 999; flex-direction: column; gap: 20px; }
  .loading-logo { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold); }
  .loading-sub { font-size: 13px; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }
  .loading-spinner { width: 40px; height: 40px; border: 3px solid rgba(201,168,76,0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .fade-up { animation: fadeUp 0.5s ease forwards; opacity: 0; }
  .fade-up:nth-child(1) { animation-delay: 0.05s; } .fade-up:nth-child(2) { animation-delay: 0.1s; } .fade-up:nth-child(3) { animation-delay: 0.15s; } .fade-up:nth-child(4) { animation-delay: 0.2s; }
