/* A small hand-written stylesheet - no framework, so every rule is visible
   and editable. The palette is PortfolioLab's: deep navy on white, in a
   monochrome navy system like portfoliolabco.com - no third accent color.
   (Green/amber/red below are kept only for the Low/Average/High fee rating,
   where the color IS the meaning.) */

:root {
  --navy: #0F2537;        /* PortfolioLab site background navy */
  --navy-soft: #1C3E5C;   /* the logo's navy - primary interactive color */
  --steel: #2C5A82;       /* lighter navy for hovers/secondary marks */
  --sky: #9FC3E0;         /* pale blue for accents on dark backgrounds */
  --ink: #24313f;
  --muted: #5c6b7a;
  --line: #dde5ec;
  --bg: #f7f9fb;
  --card: #ffffff;
  --good: #1e7d46;
  --warn: #b0790f;
  --bad: #b23a2f;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo { height: 36px; width: auto; display: block;
  /* the SVG is drawn in navy; invert it to white for the dark header */
  filter: brightness(0) invert(1); }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.2px; }
.brand-app { color: var(--sky); font-size: 0.9rem; border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 12px; letter-spacing: 0.4px; }
.site-header nav a { color: #cfe0ee; text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: #fff; }

/* Small uppercase "eyebrow" labels, like the section labels on the
   PortfolioLab site */
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.74rem;
  color: var(--steel); font-weight: 600; margin: 0 0 10px; }

/* Hero + cards */
.hero { text-align: center; padding: 48px 0 8px; }
.hero h1 { font-size: 2rem; color: var(--navy); margin: 0 0 12px; }
.hero p.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.steps { display: flex; gap: 16px; margin: 28px 0; flex-wrap: wrap; }
.step { flex: 1 1 200px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .num { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--navy-soft); color: #fff; font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 4px 0 6px; font-size: 1rem; color: var(--navy); }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Forms */
form.analyze-form label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--navy); }
form.analyze-form .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; margin: 2px 0 0; }
form.analyze-form input[type="text"],
form.analyze-form input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem;
}
/* Drag-and-drop upload boxes. The file input stretches invisibly over the
   whole box, so clicking anywhere or dropping a file both hit it natively -
   no JavaScript needed for the mechanics, only for the visuals. */
.dropzone {
  position: relative; border: 2px dashed #b9c7d4; border-radius: var(--radius);
  background: #fbfdfe; padding: 26px 16px; text-align: center; margin-top: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone .dz-prompt { margin: 0; color: var(--muted); }
.dropzone .dz-prompt strong { color: var(--navy-soft); }
.dropzone .dz-file { margin: 6px 0 0; color: var(--good); font-weight: 600; font-size: 0.92rem; }
.dropzone.dragover { border-color: var(--navy-soft); background: #eaf1f7; }
.dropzone.has-file { border-style: solid; border-color: #9fc0a9; background: #f3faf5; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1 1 240px; }

.btn {
  display: inline-block; background: var(--navy-soft); color: #fff; border: none;
  padding: 12px 26px; border-radius: 6px; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; text-decoration: none; margin-top: 22px;
}
.btn:hover { background: var(--navy); }
.btn[disabled] { background: #8fa5b8; cursor: wait; }
.btn-secondary { background: transparent; color: var(--navy-soft); border: 1px solid var(--navy-soft); }
.btn-secondary:hover { background: #eaf1f7; }

.loading-note { display: none; color: var(--muted); margin-top: 12px; }

/* Email verification page */
.verify-card { max-width: 520px; margin: 48px auto; text-align: center; }
.verify-card h1 { color: var(--navy); margin: 4px 0 10px; }
.verify-card label { display: block; font-weight: 600; color: var(--navy); margin: 18px 0 8px; }
.code-input {
  font-size: 1.9rem; letter-spacing: 0.5em; text-align: center; width: 260px;
  padding: 10px 0 10px 0.5em; border: 1px solid var(--line); border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.linklike { background: none; border: none; padding: 0; color: var(--navy-soft);
  text-decoration: underline; cursor: pointer; font-size: inherit; }
.resend-form { margin-top: 18px; }

/* Admin prospects table */
.prospects-table td { vertical-align: top; }
.email-link { color: var(--navy-soft); }
.stage-form { display: flex; gap: 6px; align-items: center; }
.stage-form select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; margin-top: 0; }
.stage-chip { display: inline-block; background: #eef2f6; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; }

/* "Where do I find these documents?" guide */
.reassure {
  background: #e9f5ef; border: 1px solid #bfe0cd; border-radius: var(--radius);
  padding: 14px 18px; color: #1c5e3c;
}
.doc-guide { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.doc-guide-item { flex: 1 1 300px; }
.doc-guide-item h3 { color: var(--navy); font-size: 1.02rem; margin: 10px 0 6px; }
.doc-guide-item ol { margin: 6px 0; padding-left: 20px; }
.doc-guide-item li { margin: 6px 0; font-size: 0.95rem; }
.doc-guide-item .hint, #find-documents .hint { color: var(--muted); font-size: 0.9rem; }

/* Flash + errors */
.flash-box {
  background: #fdf3e7; border: 1px solid #ecd3ae; border-radius: var(--radius);
  padding: 14px 18px; margin: 20px 0; color: #7a5312;
}
.flash-box p { margin: 4px 0; }

/* Report page */
.report-header { padding: 36px 0 4px; }
/* Only the report page pairs its heading with a booking button; the other
   pages using .report-header keep the plain stacked layout. */
.report-header.has-cta {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: flex-start; justify-content: space-between;
}
.report-header.has-cta .report-header-main { flex: 1 1 360px; }
.btn-top-cta { margin-top: 6px; flex: 0 0 auto; white-space: nowrap; }
.report-header h1 { color: var(--navy); margin: 0 0 4px; font-size: 1.7rem; }
.report-header .meta { color: var(--muted); }

.stat-grid { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stat {
  flex: 1 1 180px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat .label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.stat .value { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin-top: 2px; }
.stat .sub { font-size: 0.85rem; color: var(--muted); }

.rating { font-weight: 700; }
.rating.Low { color: var(--good); }
.rating.Average { color: var(--warn); }
.rating.High { color: var(--bad); }

/* Comparison bars: widths are set inline from the data */
.bars { margin: 10px 0 4px; }
.bar-row { margin: 12px 0; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 4px; }
.bar-track { background: #e9eef3; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }
.bar-fill.you { background: var(--navy-soft); }
.bar-fill.bench { background: var(--steel); }
.bar-fill.lowcost { background: var(--sky); }

/* Tables. Wide ones live inside .table-scroll so THEY scroll sideways on a
   phone instead of pushing the whole page out of the viewport. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll.wide table { min-width: 560px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
td.subrow { color: var(--muted); padding-left: 26px; font-size: 0.9rem; }
.hint-inline { color: var(--muted); font-size: 0.82rem; }

.section-title { color: var(--navy); margin: 30px 0 6px; font-size: 1.2rem; }
.note-list { color: var(--muted); font-size: 0.92rem; padding-left: 20px; }
.cta-box { background: var(--navy); color: #dbe7f1; text-align: center; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box .cta-alt { font-size: 0.88rem; margin: 14px 0 0; color: #b9cbdb; }
.cta-box .cta-alt a { color: #fff; }

/* Consent checkbox + legal pages */
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
  font-weight: 400 !important; font-size: 0.9rem; color: var(--muted); }
.consent-row input { margin-top: 3px; flex-shrink: 0; }
.consent-row a { color: var(--navy-soft); }
.card.legal h2 { color: var(--navy); font-size: 1.15rem; margin: 22px 0 8px; }
.card.legal h2:first-child { margin-top: 0; }
.card.legal p, .card.legal li { font-size: 0.93rem; color: var(--ink); }
.card.legal ul { padding-left: 20px; }
.card.legal a { color: var(--navy-soft); }

/* Footer */
.site-footer { margin-top: 48px; padding: 22px 0 34px; border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: 0.82rem; max-width: 760px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .stat .value { font-size: 1.35rem; }
  .container { padding: 0 14px; }
  .card { padding: 20px 16px; }
  /* Drop the app sub-label so the brand and nav fit one line on a phone. */
  .brand-app { display: none; }
  .btn-top-cta { width: 100%; text-align: center; }
}
