
    :root {
      --navy: #1a2f45; --navy-mid: #243a52; --navy-light: #344f68;
      --teal: #2a9d8f; --teal-light: #3bbfb0; --teal-pale: rgba(42,157,143,0.08);
      --gold: #e2b84a; --gold-light: #f0cc6a;
      --white: #ffffff; --muted: #90b0c0;
      --border: rgba(226,184,74,0.18); --border-teal: rgba(42,157,143,0.28);
      --red: rgba(220,80,80,0.15); --red-text: #f08080;
      --green: rgba(42,157,143,0.15); --green-text: #3bbfb0;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--navy); color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.7; min-height: 100vh; }
    body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 50% at 85% 10%, rgba(42,157,143,0.07) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 10% 85%, rgba(201,168,76,0.05) 0%, transparent 55%); pointer-events: none; z-index: 0; }

    nav { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
    .nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold); text-decoration: none; }
    .nav-back { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
    .nav-back:hover { color: var(--teal-light); }

    .page-wrap { max-width: 860px; margin: 0 auto; padding: 4rem 2rem 6rem; position: relative; z-index: 1; }

    .page-header { text-align: center; margin-bottom: 3rem; }
    .page-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
    .page-eyebrow::before, .page-eyebrow::after { content: ''; display: block; width: 28px; height: 1px; background: var(--teal); }
    .page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.15; margin-bottom: 0.9rem; }
    .page-header h1 em { font-style: italic; color: var(--teal-light); }
    .page-header p { font-size: 0.95rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.75; }

    .calc-card { background: var(--navy-mid); border: 1px solid var(--border); border-radius: 6px; padding: 2.5rem 3rem; margin-bottom: 1.5rem; }

    .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 0; }
    .input-group { display: flex; flex-direction: column; gap: 0.5rem; }
    .input-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
    .input-label .input-val { font-size: 0.9rem; font-weight: 500; color: var(--gold); letter-spacing: 0; text-transform: none; }
    input[type="range"] { width: 100%; accent-color: var(--teal); cursor: pointer; }

    .divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

    .results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
    .result-card { background: var(--navy-light); border: 1px solid var(--border); border-radius: 4px; padding: 1.1rem 1.25rem; text-align: center; }
    .result-card .rlabel { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
    .result-card .rval { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; line-height: 1; }
    .result-card.red .rval { color: #f08080; }
    .result-card.green .rval { color: var(--teal-light); }
    .result-card.gold .rval { color: var(--gold); }

    .bar-section { margin-bottom: 2rem; }
    .bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
    .bar-lbl { font-size: 0.78rem; color: var(--muted); width: 120px; flex-shrink: 0; }
    .bar-track { flex: 1; height: 32px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
    .bar-fill { height: 100%; border-radius: 3px; display: flex; align-items: center; padding-left: 10px; font-size: 0.82rem; font-weight: 500; transition: width 0.45s cubic-bezier(0.4,0,0.2,1); min-width: 4px; }
    .bar-fill.lost { background: rgba(220,80,80,0.2); color: #f08080; border: 1px solid rgba(220,80,80,0.3); }
    .bar-fill.locum { background: rgba(42,157,143,0.15); color: var(--teal-light); border: 1px solid var(--border-teal); }

    .verdict-card { background: var(--navy-light); border-left: 3px solid var(--teal); border-radius: 0 4px 4px 0; padding: 1.5rem 1.75rem; margin-bottom: 0; }
    .verdict-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--white); }
    .verdict-body { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

    .email-gate { background: var(--navy-mid); border: 1px solid var(--border-teal); border-radius: 6px; padding: 2.5rem 3rem; }
    .email-gate h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; }
    .email-gate p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
    .email-row { display: flex; gap: 0.75rem; }
    .email-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 3px; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.92rem; padding: 0.85rem 1.1rem; outline: none; transition: border-color 0.2s; }
    .email-input:focus { border-color: var(--teal-light); background: var(--teal-pale); }
    .email-input::placeholder { color: var(--muted); }
    .email-btn { background: var(--teal); color: var(--white); border: none; padding: 0.85rem 1.8rem; border-radius: 3px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
    .email-btn:hover { background: var(--teal-light); transform: translateY(-1px); }
    .email-success { display: none; text-align: center; padding: 1rem; }
    .email-success .check { font-size: 2rem; margin-bottom: 0.5rem; }
    .email-success p { color: var(--teal-light); font-size: 0.92rem; }
    .email-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.75rem; }

    footer { border-top: 1px solid var(--border); padding: 2rem 4rem; text-align: center; font-size: 0.8rem; color: var(--muted); position: relative; z-index: 1; }
    footer a { color: var(--teal); text-decoration: none; }

    @media (max-width: 700px) {
      nav { padding: 1rem 1.5rem; }
      .page-wrap { padding: 3rem 1.5rem 4rem; }
      .calc-card, .email-gate { padding: 1.75rem 1.5rem; }
      .input-grid { grid-template-columns: 1fr; gap: 1.25rem; }
      .results-grid { grid-template-columns: 1fr 1fr; }
      .email-row { flex-direction: column; }
      .bar-lbl { width: 80px; font-size: 0.72rem; }
    }
  