/* =====================================================================
   MFP PRO TOOLS — shared brand + layout
   Internal deep-research tools. Premium, calm, editorial — deliberately
   NOT the free /tools funnel look (no countdown, no upsell, no gate cards).
   Inherits the MFP palette (navy + green) but heavier, quieter, "operator
   console" feel. One engine styles all six tools.
   ===================================================================== */

:root {
  --navy:        #000066;
  --navy-2:      #0a0a4a;
  --navy-soft:   rgba(0,0,102,.08);
  --green:       #006900;
  --green-dark:  #004d00;
  --ink:         #1a1a2e;
  --body:        #3d4152;
  --slate:       #6b7280;
  --line:        #e4e6ee;
  --line-2:      #eef0f6;
  --cream:       #f6f7fb;
  --white:       #ffffff;
  --gold:        #b8860b;

  --sev-crit:    #b3261e;
  --sev-high:    #c77700;
  --sev-med:     #7a6a00;
  --sev-ok:      #006900;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SFMono-Regular', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --shadow-sm: 0 2px 10px rgba(0,0,102,.06);
  --shadow:    0 12px 40px rgba(0,0,102,.10);
  --shadow-lg: 0 24px 70px rgba(0,0,102,.16);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      980px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(0,0,102,.05), transparent 70%),
    var(--cream);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--navy); }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.18; margin: 0 0 .4em; text-wrap: balance; }
p { margin: 0 0 1em; }

/* ---------- top bar ---------- */
.pt-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.pt-top-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 14px;
}
.pt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pt-brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 11px; letter-spacing: -0.3px; flex: none;
}
.pt-brand-txt { font-family: var(--font-display); font-weight: 800; color: var(--navy); letter-spacing: .01em; font-size: 15px; }
.pt-brand-txt small { display: block; font-weight: 600; color: var(--slate); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.pt-badge {
  margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark);
  background: rgba(0,105,0,.10); border: 1px solid rgba(0,105,0,.25);
  padding: 5px 11px; border-radius: 999px;
}
.pt-badge.internal { color: var(--navy); background: var(--navy-soft); border-color: rgba(0,0,102,.22); }

/* ---------- shell ---------- */
.pt-wrap { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 80px; }
.pt-narrow { max-width: 760px; }

/* ---------- hero ---------- */
.pt-hero { text-align: center; padding: 20px 0 8px; }
.pt-eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green-dark);
  background: rgba(0,105,0,.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.pt-hero h1 { font-size: clamp(28px, 4.6vw, 44px); color: var(--navy); margin-bottom: .35em; }
.pt-hero .lede { font-size: clamp(16px, 2vw, 19px); color: var(--body); max-width: 640px; margin: 0 auto 6px; }
.pt-hero .promise {
  font-family: var(--font-display); font-style: italic; color: var(--slate);
  font-size: 15px; max-width: 620px; margin: 14px auto 0;
}
.pt-meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 8px;
}
.pt-chip {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; box-shadow: var(--shadow-sm);
}
.pt-chip b { color: var(--green-dark); }

/* ---------- card / form ---------- */
.pt-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin: 26px 0;
}
.pt-card > h2 { font-size: 21px; color: var(--navy); }
.pt-card .section-hint { color: var(--slate); font-size: 14px; margin: -2px 0 22px; }

.pt-fieldset { border: none; margin: 0 0 8px; padding: 0; }
.pt-fieldset + .pt-fieldset { border-top: 1px solid var(--line-2); padding-top: 24px; margin-top: 8px; }
.pt-legend {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.pt-legend .n {
  width: 20px; height: 20px; border-radius: 6px; background: var(--navy-soft); color: var(--navy);
  display: grid; place-items: center; font-size: 11px; flex: none;
}

.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pt-grid.one { grid-template-columns: 1fr; }
.pt-field.full { grid-column: 1 / -1; }
.pt-field { display: flex; flex-direction: column; gap: 6px; }
.pt-field label { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.pt-field label .req { color: var(--sev-crit); margin-left: 2px; }
.pt-field .hint { font-size: 12px; color: var(--slate); margin-top: -2px; }
.pt-input, .pt-textarea, .pt-select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pt-textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.pt-input:focus, .pt-textarea:focus, .pt-select:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px rgba(0,105,0,.10);
}
.pt-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ---------- password gate ---------- */
.pt-gate {
  background: linear-gradient(180deg, #fff, #fbfbfe);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin: 26px 0; text-align: center;
}
.pt-gate .lock { font-size: 26px; }
.pt-gate h2 { font-size: 19px; color: var(--navy); margin-top: 8px; }
.pt-gate p { color: var(--slate); font-size: 14px; max-width: 440px; margin: 0 auto 16px; }
.pt-gate .row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.pt-gate .pt-input { text-align: center; letter-spacing: .1em; }
.pt-gate .err { color: var(--sev-crit); font-size: 13px; margin-top: 12px; min-height: 18px; font-weight: 600; }

/* ---------- buttons ---------- */
.pt-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; border-radius: var(--radius-sm); padding: 13px 24px; transition: transform .1s, box-shadow .2s, filter .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
}
.pt-btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 10px 26px rgba(0,105,0,.30); }
.pt-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pt-btn-primary:disabled { filter: grayscale(.4) brightness(.9); cursor: not-allowed; transform: none; box-shadow: none; opacity: .7; }
.pt-btn-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.pt-btn-ghost:hover { border-color: var(--navy); }
.pt-btn-xl { font-size: 16.5px; padding: 16px 34px; width: 100%; }
.pt-submit-row { margin-top: 26px; }
.pt-submit-note { text-align: center; color: var(--slate); font-size: 12.5px; margin-top: 12px; }

/* ---------- progress (the 20 agents) ---------- */
.pt-run { margin: 26px 0; }
.pt-run-head { text-align: center; margin-bottom: 24px; }
.pt-run-head h2 { color: var(--navy); font-size: 23px; }
.pt-run-head p { color: var(--slate); }
.pt-progress-bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; max-width: 520px; margin: 18px auto 8px; }
.pt-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--navy)); border-radius: 999px; transition: width .6s ease; }
.pt-progress-count { text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 14px; }
.pt-progress-count b { color: var(--green-dark); }
.pt-eta { text-align: center; color: var(--slate); font-size: 12.5px; margin-top: 4px; }

.pt-agents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.pt-agent {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: border-color .2s, opacity .2s;
}
.pt-agent .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; margin-top: 1px; }
.pt-agent .dot.wait  { background: var(--line-2); color: var(--slate); }
.pt-agent .dot.run   { background: rgba(0,0,102,.12); color: var(--navy); animation: pt-pulse 1.1s ease-in-out infinite; }
.pt-agent .dot.done  { background: rgba(0,105,0,.14); color: var(--green-dark); }
.pt-agent .dot.fail  { background: rgba(179,38,30,.12); color: var(--sev-crit); }
.pt-agent .a-body .a-title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pt-agent .a-body .a-focus { font-size: 12px; color: var(--slate); }
.pt-agent .a-mod { font-size: 10.5px; color: var(--navy); background: var(--navy-soft); border-radius: 6px; padding: 1px 6px; margin-top: 4px; display: inline-block; }
.pt-agent.is-wait { opacity: .6; }
@keyframes pt-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- report ---------- */
.pt-report { margin: 20px 0; }
.pt-report-cover {
  background: linear-gradient(150deg, var(--navy), var(--navy-2) 70%, #0d0d3a);
  color: #fff; border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.pt-report-cover::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,105,0,.35), transparent 70%); pointer-events: none;
}
.pt-report-cover .eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8fe08f; margin-bottom: 12px; }
.pt-report-cover h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.pt-report-cover .for { color: #c8c8ee; font-size: 15px; margin-top: 8px; }
.pt-report-cover .for b { color: #fff; }
.pt-report-cover .headline { color: #eef; font-size: 17px; line-height: 1.55; margin-top: 20px; max-width: 640px; }

.pt-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.pt-metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.pt-metric .v { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--navy); }
.pt-metric .v.green { color: var(--green-dark); }
.pt-metric .v.warn { color: var(--sev-high); }
.pt-metric .l { font-size: 11.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.pt-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; margin: 16px 0; }
.pt-section > h2 { font-size: 20px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.pt-section > h2 .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-soft); display: grid; place-items: center; font-size: 15px; flex: none; }
.pt-section .sec-sub { color: var(--slate); font-size: 14px; margin: -4px 0 18px; }
.pt-section .body { color: var(--body); }
.pt-section .body p:last-child { margin-bottom: 0; }

.pt-findings { display: flex; flex-direction: column; gap: 12px; }
.pt-finding { border: 1px solid var(--line); border-left: 4px solid var(--slate); border-radius: var(--radius-sm); padding: 15px 17px; background: #fff; }
.pt-finding.crit { border-left-color: var(--sev-crit); }
.pt-finding.high { border-left-color: var(--sev-high); }
.pt-finding.med  { border-left-color: var(--sev-med); }
.pt-finding.ok   { border-left-color: var(--sev-ok); }
.pt-finding .f-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.pt-finding .f-area { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.pt-sev { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pt-sev.crit { color: var(--sev-crit); background: rgba(179,38,30,.10); }
.pt-sev.high { color: var(--sev-high); background: rgba(199,119,0,.12); }
.pt-sev.med  { color: var(--sev-med);  background: rgba(122,106,0,.12); }
.pt-sev.ok   { color: var(--sev-ok);   background: rgba(0,105,0,.10); }
.pt-finding .f-body { font-size: 14.5px; color: var(--body); }
.pt-finding .f-fix { font-size: 14px; color: var(--ink); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pt-finding .f-fix b { color: var(--green-dark); }
.pt-finding .f-src { font-size: 11px; color: var(--slate); margin-top: 6px; }

.pt-list { margin: 0; padding: 0; list-style: none; counter-reset: pt; }
.pt-list li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line-2); }
.pt-list li:last-child { border-bottom: none; }
.pt-list li::before { counter-increment: pt; content: counter(pt); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 8px; background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.pt-list li .li-t { font-weight: 700; color: var(--ink); }
.pt-list li .li-d { font-size: 14px; color: var(--body); }

.pt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0; }
.pt-table th { text-align: left; font-family: var(--font-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid var(--line); padding: 9px 10px; }
.pt-table td { border-bottom: 1px solid var(--line-2); padding: 9px 10px; color: var(--body); vertical-align: top; }
.pt-table tr:hover td { background: var(--cream); }
.pt-table td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; color: var(--ink); }

.pt-report-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 10px; }
.pt-delivered { text-align: center; color: var(--green-dark); font-weight: 600; font-size: 13.5px; background: rgba(0,105,0,.07); border: 1px solid rgba(0,105,0,.2); border-radius: var(--radius-sm); padding: 12px; margin: 16px auto; max-width: 520px; }

/* ---------- hub ---------- */
.pt-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.pt-tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.pt-tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,105,0,.4); }
.pt-tool-card .tc-ico { font-size: 26px; }
.pt-tool-card h3 { font-size: 18px; color: var(--navy); margin: 0; }
.pt-tool-card .tc-promise { font-size: 14px; color: var(--body); margin: 0; }
.pt-tool-card .tc-go { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--green-dark); }

/* ---------- misc ---------- */
.pt-note { background: rgba(0,0,102,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--slate); margin: 18px 0; }
.pt-foot { text-align: center; color: var(--slate); font-size: 12px; padding: 40px 0 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .pt-grid, .pt-agents, .pt-metrics, .pt-tools-grid { grid-template-columns: 1fr; }
  .pt-metrics { grid-template-columns: 1fr 1fr; }
  .pt-card { padding: 22px 18px; }
  .pt-wrap { padding: 24px 16px 60px; }
  .pt-input, .pt-textarea, .pt-select { font-size: 16px; } /* no iOS zoom */
  .pt-report-cover { padding: 28px 22px; }
}
