:root {
      color-scheme: light dark;
      --bg: #f2f5f3;
      --paper: #ffffff;
      --paper-2: #e8eeeb;
      --ink: #11251f;
      --muted: #52645e;
      --line: #cbd5d0;
      --line-strong: #9fb0a8;
      --primary: #087a5b;
      --primary-dark: #045640;
      --primary-soft: #d9eee7;
      --accent: #df5c3e;
      --accent-soft: #f9e2dc;
      --warn: #9d6300;
      --warn-soft: #f7edd2;
      --good: #147253;
      --shadow: 0 18px 45px rgba(17, 37, 31, .08);
      --radius: 14px;
      --radius-sm: 8px;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #0d1513;
        --paper: #14201d;
        --paper-2: #1b2a26;
        --ink: #edf6f2;
        --muted: #a5b7b0;
        --line: #2e403a;
        --line-strong: #496158;
        --primary: #4fd1a5;
        --primary-dark: #8de5c6;
        --primary-soft: #183d32;
        --accent: #ff8165;
        --accent-soft: #4a251e;
        --warn: #f0bc55;
        --warn-soft: #3b2e15;
        --good: #65d8ae;
        --shadow: 0 20px 55px rgba(0, 0, 0, .25);
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 0;
      background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        var(--bg);
      background-size: 32px 32px;
      color: var(--ink);
      font-family: "Manrope", sans-serif;
      line-height: 1.5;
    }
    button, textarea, input { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    .shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

    .intro {
      padding: 70px 0 34px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 290px;
      gap: 60px;
      align-items: end;
    }
    .eyebrow {
      margin: 0 0 16px;
      font: 600 12px/1.3 "IBM Plex Mono", monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--primary);
    }
    h1 {
      margin: 0;
      max-width: 760px;
      font-size: clamp(38px, 7vw, 76px);
      line-height: .98;
      letter-spacing: -.055em;
      font-weight: 800;
    }
    .intro-copy {
      margin: 22px 0 0;
      max-width: 650px;
      color: var(--muted);
      font-size: clamp(16px, 2vw, 19px);
    }
    .proof-note {
      border-top: 3px solid var(--primary);
      padding-top: 14px;
      color: var(--muted);
      font-size: 13px;
    }
    .proof-note strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14px; }

    .workspace {
      background: var(--paper);
      border: 1px solid var(--line-strong);
      box-shadow: var(--shadow);
      margin-bottom: 36px;
    }
    .step-rail {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-bottom: 1px solid var(--line);
      background: var(--paper-2);
    }
    .step {
      padding: 15px 18px;
      display: flex;
      gap: 11px;
      align-items: center;
      color: var(--muted);
      font: 600 12px/1.2 "IBM Plex Mono", monospace;
      border-right: 1px solid var(--line);
    }
    .step:last-child { border-right: 0; }
    .step-num {
      width: 24px; height: 24px; border: 1px solid var(--line-strong);
      display: grid; place-items: center; border-radius: 50%; background: var(--paper);
    }
    .step.active { color: var(--ink); }
    .step.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
    .step.done .step-num { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

    .input-panel { padding: 30px; }
    .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
    .field-hint { font: 500 11px/1.3 "IBM Plex Mono", monospace; color: var(--muted); }
    .dropzone {
      position: relative;
      min-height: 124px;
      padding: 20px;
      border: 1.5px dashed var(--line-strong);
      background: var(--bg);
      display: grid;
      place-items: center;
      text-align: center;
      transition: border-color .2s, background .2s;
      cursor: pointer;
    }
    .dropzone.dragging { border-color: var(--primary); background: var(--primary-soft); }
    .dropzone input {
      position: static;
      opacity: 1;
      width: min(100%, 310px);
      margin-top: 13px;
      color: var(--muted);
      font-size: 12px;
      cursor: pointer;
    }
    .dropzone input::file-selector-button {
      border: 1px solid var(--line-strong);
      background: var(--paper);
      color: var(--ink);
      padding: 8px 11px;
      margin-right: 9px;
      font-weight: 700;
      cursor: pointer;
    }
    .dropzone svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 8px; }
    .dropzone strong { display: block; font-size: 14px; }
    .dropzone span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
    .file-status {
      display: none;
      margin-top: 10px;
      padding: 9px 11px;
      background: var(--primary-soft);
      color: var(--primary-dark);
      font-size: 12px;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .file-status.show { display: flex; }
    .file-status button { border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: underline; }
    .or { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: var(--muted); font: 500 10px "IBM Plex Mono", monospace; }
    .or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
    textarea {
      width: 100%;
      resize: vertical;
      min-height: 190px;
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 0;
      background: var(--paper);
      color: var(--ink);
      outline: none;
      font-size: 14px;
      line-height: 1.55;
    }
    textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
    textarea::placeholder { color: var(--muted); opacity: .8; }
    .counter { margin-top: 6px; text-align: right; color: var(--muted); font: 500 10px "IBM Plex Mono", monospace; }
    .privacy {
      display: flex; gap: 9px; align-items: flex-start;
      margin: 22px 0 0; color: var(--muted); font-size: 12px;
    }
    .privacy svg { width: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--primary); }
    .action-row {
      margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
      display: flex; justify-content: space-between; align-items: center; gap: 18px;
    }
    .validation { min-height: 20px; color: var(--accent); font-size: 13px; font-weight: 600; }
    .primary-btn, .secondary-btn {
      min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center; gap: 9px;
      text-decoration: none; font-weight: 800; font-size: 14px;
    }
    .primary-btn { background: var(--ink); color: var(--paper); }
    .primary-btn:hover { background: var(--primary-dark); }
    .primary-btn:disabled { opacity: .5; cursor: not-allowed; }
    .primary-btn svg, .secondary-btn svg { width: 17px; height: 17px; }
    .secondary-btn { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
    .secondary-btn:hover { border-color: var(--primary); color: var(--primary-dark); }

    .loading {
      display: none; padding: 48px 30px; text-align: center;
    }
    .loading.show { display: block; }
    .scanner { width: min(520px, 100%); height: 8px; background: var(--paper-2); margin: 24px auto 15px; overflow: hidden; }
    .scanner::after { content: ""; display: block; height: 100%; width: 38%; background: var(--primary); animation: scan 1.15s ease-in-out infinite alternate; }
    @keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(265%); } }

    #results { display: none; }
    #results.show { display: block; }
    .report-head {
      padding: 30px;
      display: grid;
      grid-template-columns: 180px 1fr auto;
      align-items: center;
      gap: 28px;
      border-bottom: 1px solid var(--line);
    }
    .score-ring { position: relative; width: 164px; height: 164px; }
    .score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
    .score-ring circle { fill: none; stroke-width: 10; }
    .score-bg { stroke: var(--paper-2); }
    .score-value { stroke: var(--primary); stroke-linecap: butt; transition: stroke-dashoffset .8s ease; }
    .score-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
    .score-number { font: 700 46px/1 "IBM Plex Mono", monospace; letter-spacing: -.06em; }
    .score-denom { font: 500 11px "IBM Plex Mono", monospace; color: var(--muted); margin-top: 2px; }
    .verdict-label { display: inline-block; padding: 5px 8px; margin-bottom: 9px; background: var(--primary-soft); color: var(--primary-dark); font: 600 11px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
    .report-summary h2 { font-size: 30px; }
    .report-summary p { color: var(--muted); max-width: 560px; margin: 9px 0 0; }
    .report-actions { display: grid; gap: 9px; }
    .report-actions .secondary-btn { min-width: 150px; }
    .report-limit { margin: 0; color: var(--muted); font: 500 10px/1.45 "IBM Plex Mono", monospace; text-align: center; }

    .metrics {
      display: grid; grid-template-columns: repeat(5, 1fr);
      border-bottom: 1px solid var(--line);
    }
    .metric { padding: 22px; border-right: 1px solid var(--line); }
    .metric:last-child { border-right: 0; }
    .metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
    .metric-name { font-size: 13px; font-weight: 700; }
    .metric-score { font: 600 12px "IBM Plex Mono", monospace; color: var(--muted); }
    .bar { margin-top: 12px; height: 5px; background: var(--paper-2); }
    .bar span { display: block; height: 100%; background: var(--primary); width: 0; transition: width .7s ease; }

    .report-grid { display: grid; grid-template-columns: 1.15fr .85fr; }
    .report-col { padding: 30px; min-width: 0; }
    .report-col:first-child { border-right: 1px solid var(--line); }
    .section-head { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin-bottom: 18px; }
    .section-count { font: 500 11px "IBM Plex Mono", monospace; color: var(--muted); }
    .fix-list, .win-list { list-style: none; margin: 0; padding: 0; }
    .fix-item { padding: 18px 0; border-top: 1px solid var(--line); }
    .fix-item:first-child { border-top: 0; padding-top: 0; }
    .fix-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 6px; }
    .fix-priority { font: 600 10px "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--accent); }
    .fix-item h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
    .fix-item p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
    .win-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
    .win-list li:first-child { border-top: 0; padding-top: 0; }
    .check { color: var(--good); font-weight: 800; }
    .keyword-block { margin-top: 28px; }
    .keyword-block h3 { margin: 0 0 7px; font-size: 16px; }
    .keyword-block p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
    .tags { display: flex; flex-wrap: wrap; gap: 7px; }
    .tag { padding: 7px 9px; background: var(--accent-soft); color: var(--accent); font: 600 11px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
    .tag.good { background: var(--primary-soft); color: var(--primary-dark); }

    .upgrade-panel { padding: 30px; border-top: 1px solid var(--line); background: var(--bg); }
    .upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
    .upgrade-panel h2 { max-width: 580px; font-size: clamp(24px, 4vw, 36px); }
    .upgrade-panel p { margin: 10px 0 0; color: var(--muted); max-width: 650px; }
    .upgrade-list { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); }
    .upgrade-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); font-size: 13px; }
    .upgrade-list li:first-child { border-top: 0; }
    .upgrade-num { font: 600 11px "IBM Plex Mono", monospace; color: var(--primary); }
    .upgrade-action { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 20px; }
    .upgrade-note { color: var(--muted); font-size: 11px; }

    .cta {
      margin: 0 auto 70px;
      background: var(--ink);
      color: var(--paper);
      padding: 34px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 28px;
      align-items: center;
    }
    .cta .eyebrow { color: #80e0bf; margin-bottom: 9px; }
    .cta h2 { font-size: clamp(24px, 4vw, 38px); }
    .cta p { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 9px 0 0; max-width: 680px; }
    .cta .primary-btn { background: #fff; color: #11251f; white-space: nowrap; }
    .cta .primary-btn:hover { background: #d9eee7; }
    .fineprint { padding: 0 0 40px; color: var(--muted); font-size: 11px; max-width: 760px; }

    .toast {
      position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
      background: var(--ink); color: var(--paper); padding: 11px 15px;
      box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; z-index: 10;
      font-size: 13px; font-weight: 700;
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }

    @media (max-width: 820px) {
      .intro { grid-template-columns: 1fr; gap: 24px; padding-top: 46px; }
      .proof-note { max-width: 500px; }
      .input-grid, .report-grid { grid-template-columns: 1fr; }
      .report-col:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
      .report-head { grid-template-columns: 140px 1fr; }
      .score-ring { width: 130px; height: 130px; }
      .score-number { font-size: 38px; }
      .report-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
      .metrics { grid-template-columns: 1fr 1fr; }
      .metric:nth-child(even) { border-right: 0; }
      .metric:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
      .cta { grid-template-columns: 1fr; }
      .cta .primary-btn { justify-self: start; }
    }

    @media (max-width: 560px) {
      .shell { width: min(100% - 20px, 1120px); }
      .intro { padding-top: 34px; }
      h1 { font-size: 42px; }
      .step-rail { grid-template-columns: 1fr; }
      .step { border-right: 0; border-bottom: 1px solid var(--line); }
      .step:last-child { border-bottom: 0; }
      .input-panel, .report-col, .bullet-lab { padding: 20px; }
      .input-grid { gap: 24px; }
      .action-row { align-items: stretch; flex-direction: column; }
      .primary-btn { width: 100%; }
      .report-head { padding: 22px 20px; grid-template-columns: 1fr; text-align: center; }
      .score-ring { margin: auto; }
      .report-summary p { margin-left: auto; margin-right: auto; }
      .report-actions { grid-template-columns: 1fr; width: 100%; }
      .metrics { grid-template-columns: 1fr; }
      .metric { border-right: 0; border-bottom: 1px solid var(--line); }
      .metric:last-child { border-bottom: 0; }
      .upgrade-grid { grid-template-columns: 1fr; }
      .upgrade-panel { padding: 20px; }
      .upgrade-action { align-items: stretch; }
      .upgrade-action .primary-btn { width: 100%; }
      .cta { padding: 25px 20px; margin-bottom: 40px; }
      .cta .primary-btn { width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    }

/* ============ PromptHired Pro additions (nav, paywall, pricing, pro panels) ============ */

.topnav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 16px;
}
.brand small {
  font: 600 10px "IBM Plex Mono", monospace;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 2px 6px;
  margin-left: 2px;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user {
  font: 600 12px "IBM Plex Mono", monospace;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pro-badge {
  font: 600 10px "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  text-transform: uppercase;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* Paywall modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 37, 31, .55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  padding: 34px;
}
.modal h2 { font-size: 26px; margin: 0 0 10px; letter-spacing: -.03em; }
.modal p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal .fine { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

/* Pricing page */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 50px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.price-card.featured { border: 2px solid var(--primary); }
.price-flag {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--primary);
  color: #fff;
  font: 600 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.price-card h2 { font-size: 20px; margin: 0 0 6px; }
.price-amount { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 2px; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.price-card li { font-size: 14px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.price-card li .check { color: var(--primary); font-weight: 800; }
.price-card .primary-btn, .price-card .secondary-btn { width: 100%; }
.faq { margin: 0 0 60px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Pro feature panels */
.pro-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  padding: 30px;
}
.pro-panel.locked { opacity: 1; }
.pro-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.pro-tab {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.pro-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pro-pane { display: none; }
.pro-pane.active { display: block; }
.pro-output {
  margin-top: 18px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
}
.locked-note {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
}
.locked-note p { margin: 0; color: var(--muted); font-size: 14px; }
.usage-line { font: 500 11px "IBM Plex Mono", monospace; color: var(--muted); margin-top: 12px; }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .intro { grid-template-columns: 1fr; gap: 24px; }
}
