/* ============================================================
   Prospar Consulting — Shared Theme (v0.1 prototype)
   One stylesheet powers every calculator page.
   Change brand identity here; tools inherit automatically.
   ============================================================ */

:root {
  /* Brand */
  --pc-navy: #14304d;        /* primary brand */
  --pc-navy-deep: #0d2237;
  --pc-gold: #c9a227;        /* accent — rules, highlights, goal lines */
  --pc-gold-ink: #8a6d14;    /* gold darkened for readable text on white */

  /* Surfaces & ink */
  --pc-bg: #f4f6f9;
  --pc-surface: #ffffff;
  --pc-ink: #1c2733;
  --pc-ink-2: #46586a;
  --pc-muted: #74849a;
  --pc-line: #e2e8f0;

  /* Chart series (validated categorical palette — CVD-safe, fixed order) */
  --pc-invested: #2f6bb3;    /* cat 1 — blue (amount invested)   */
  --pc-gains: #0e9d6e;       /* cat 2 — green (growth / gains)   */
  --pc-cat3: #7c58c9;        /* cat 3 — purple                   */
  --pc-cat4: #d97706;        /* cat 4 — orange                   */
  --pc-cat5: #c2417e;        /* cat 5 — rose                     */
  --pc-other: #64748b;       /* neutral for "Other" bucket only  */
  --pc-invested-tint: rgba(47, 107, 179, 0.15);
  --pc-gains-tint: rgba(14, 157, 110, 0.15);
  --pc-target: #c9a227;      /* reference line only, never a series */

  /* Status (reserved — never used for data series) */
  --pc-good: #1e7f3c;
  --pc-warn: #b7791f;
  --pc-bad: #c0392b;

  --pc-radius: 14px;
  --pc-radius-sm: 9px;
  --pc-shadow: 0 1px 2px rgba(13, 34, 55, 0.05), 0 4px 16px rgba(13, 34, 55, 0.06);
  --pc-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--pc-font);
  background: var(--pc-bg);
  color: var(--pc-ink);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.pc-header {
  background: var(--pc-navy);
  color: #fff;
  padding: 0 20px;
  /* stays pinned while the page scrolls, so navigation is always in reach */
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 2px 12px rgba(9, 24, 40, .35);
}
.pc-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}
.pc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.pc-logo__mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pc-gold) 0%, #e6c65a 100%);
  color: var(--pc-navy-deep);
  font-weight: 800;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.pc-logo__img {
  height: 40px;
  width: auto;
  display: block;
}
.pc-logo__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
}
.pc-logo__name small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #c8d4e0;
}
.pc-header__nav {
  margin-left: auto;
  font-size: 14px;
  color: #c8d4e0;
}
.pc-header__nav a {
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .2s ease;
  /* an item never breaks mid-name; the nav wraps only between items */
  white-space: nowrap;
  display: inline-block;
}
.pc-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--pc-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.pc-header__nav a:hover { color: var(--pc-gold); }
.pc-header__nav a:hover::after { transform: scaleX(1); }
.pc-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.pc-header__nav a[aria-current="page"] {
  color: var(--pc-gold);
  font-weight: 700;
  border-bottom: 2px solid var(--pc-gold);
  padding-bottom: 2px;
}
@media (max-width: 620px) {
  .pc-header__inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 0;
    row-gap: 2px;
  }
  .pc-header__nav { font-size: 13px; }
  .pc-header__nav span { margin: 0 6px !important; }
}

/* ---------- Page scaffolding ---------- */
.pc-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}
.pc-crumb {
  font-size: 13px;
  color: var(--pc-muted);
  margin-bottom: 10px;
}
.pc-crumb a { color: var(--pc-ink-2); text-decoration: none; }
.pc-crumb a:hover { text-decoration: underline; }

.pc-title h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--pc-navy);
}
.pc-title p {
  margin: 0 0 22px;
  color: var(--pc-ink-2);
  max-width: 720px;
}

/* ---------- Tool layout: inputs | results ---------- */
.pc-tool {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  grid-template-areas:
    "inputs top"
    "inputs rest";
  gap: 22px;
  align-items: start;
}
.pc-tool__inputs { grid-area: inputs; }
.pc-tool__inputs > .pc-card { position: sticky; top: 20px; }
.pc-tool__top { grid-area: top; min-width: 0; }
.pc-tool__rest { grid-area: rest; min-width: 0; }

.pc-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 20px;
}
.pc-card + .pc-card { margin-top: 18px; }

.pc-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin: 0 0 16px;
}

/* ---------- Segmented mode tabs ---------- */
.pc-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf1f6;
  border-radius: var(--pc-radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}
.pc-modes button {
  border: 0;
  background: transparent;
  padding: 9px 8px;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-ink-2);
  cursor: pointer;
}
.pc-modes button[aria-pressed="true"] {
  background: var(--pc-navy);
  color: #fff;
  box-shadow: 0 1px 3px rgba(13,34,55,.25);
}

/* ---------- Field: label + number input + slider ---------- */
.pc-field { margin-bottom: 20px; }
.pc-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pc-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-ink-2);
}
.pc-field__hint { font-size: 12px; color: var(--pc-muted); }

.pc-numwrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--pc-line);
  border-radius: var(--pc-radius-sm);
  background: #fbfcfe;
  padding: 0 10px;
  transition: border-color .15s;
}
.pc-numwrap:focus-within { border-color: var(--pc-navy); }
.pc-numwrap .affix {
  font-size: 14px;
  color: var(--pc-muted);
  font-weight: 600;
  white-space: nowrap;
}
.pc-numwrap input[type="text"],
.pc-numwrap input[type="number"] {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-ink);
  text-align: right;
  width: 100%;
  padding: 9px 4px;
  -moz-appearance: textfield;
}
.pc-numwrap input::-webkit-outer-spin-button,
.pc-numwrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input[type="range"].pc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
      var(--pc-navy) 0%,
      var(--pc-navy) var(--fill, 50%),
      #dbe3ec var(--fill, 50%),
      #dbe3ec 100%);
  outline: none;
  margin: 12px 0 2px;
}
input[type="range"].pc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pc-navy);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(13,34,55,.3);
}
input[type="range"].pc-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pc-navy);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(13,34,55,.3);
}
.pc-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--pc-muted);
}

/* ---------- Chips (presets / assumptions) ---------- */
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip {
  border: 1.5px solid var(--pc-line);
  background: #fbfcfe;
  color: var(--pc-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: all .12s;
}
.pc-chip:hover { border-color: var(--pc-navy); }
.pc-chip[aria-pressed="true"] {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
}
.pc-chip--static {
  cursor: default;
  background: #f1f4f8;
  font-weight: 500;
}
.pc-chip--static:hover { border-color: var(--pc-line); }

/* ---------- Toggle switch ---------- */
.pc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-ink-2);
}
.pc-toggle input { position: absolute; opacity: 0; }
.pc-toggle .knob {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: #cfd9e4;
  position: relative;
  transition: background .15s;
  flex: 0 0 auto;
}
.pc-toggle .knob::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.pc-toggle input:checked + .knob { background: var(--pc-gains); }
.pc-toggle input:checked + .knob::after { left: 21px; }
.pc-toggle input:focus-visible + .knob { outline: 2px solid var(--pc-navy); outline-offset: 2px; }

/* ---------- Stat cards ---------- */
.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pc-stat {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 16px 18px;
  min-width: 0;
}
.pc-stat__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--pc-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pc-stat__dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.pc-stat__value {
  font-size: 25px;
  font-weight: 800;
  color: var(--pc-ink);
  margin-top: 4px;
  line-height: 1.15;
  white-space: nowrap;
}
.pc-stat__sub { font-size: 12.5px; color: var(--pc-muted); margin-top: 3px; }
.pc-stat--hero {
  background: linear-gradient(135deg, var(--pc-navy) 0%, #1d4568 100%);
  border: 0;
}
.pc-stat--hero .pc-stat__label { color: #b9c8d6; }
.pc-stat--hero .pc-stat__value { color: #fff; }
.pc-stat--hero .pc-stat__sub { color: #b9c8d6; }

/* ---------- Callout ---------- */
.pc-callout {
  border-left: 4px solid var(--pc-gold);
  background: #fdf9ee;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #5c4d16;
  margin-top: 14px;
}
.pc-callout strong { color: #46390d; }

/* ---------- Chart ---------- */
.pc-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pc-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--pc-ink-2);
  flex-wrap: wrap;
}
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-legend i {
  width: 12px; height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.pc-chart-wrap { position: relative; }
.pc-chart-wrap svg { display: block; width: 100%; height: auto; }
.pc-tip {
  position: absolute;
  pointer-events: none;
  background: var(--pc-navy-deep);
  color: #fff;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 8px 11px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(13,34,55,.35);
  opacity: 0;
  transition: opacity .1s;
  z-index: 5;
  min-width: 150px;
}
.pc-tip .t-year { font-weight: 700; margin-bottom: 3px; }
.pc-tip .t-row { display: flex; justify-content: space-between; gap: 14px; }
.pc-tip .t-row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ---------- Table ---------- */
.pc-tablecard summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--pc-navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-tablecard summary::-webkit-details-marker { display: none; }
.pc-tablecard summary .chev { transition: transform .15s; font-size: 12px; }
.pc-tablecard[open] summary .chev { transform: rotate(90deg); }
.pc-tablescroll { overflow-x: auto; margin-top: 14px; }
table.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.pc-table th, .pc-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--pc-line);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pc-table th:first-child, .pc-table td:first-child { text-align: left; }
.pc-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pc-muted);
  border-bottom: 2px solid var(--pc-line);
  position: sticky;
  top: 0;
  background: var(--pc-surface);
}
.pc-table tbody tr:nth-child(even) { background: #f8fafc; }
.pc-table tbody tr:hover { background: #eef3f8; }

/* ---------- Buttons ---------- */
.pc-btn {
  border: 1.5px solid var(--pc-navy);
  background: var(--pc-navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--pc-radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pc-btn:hover {
  background: var(--pc-navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 34, 55, .22);
}
.pc-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(13, 34, 55, .18); }
.pc-btn--ghost {
  background: transparent;
  color: var(--pc-navy);
}
.pc-btn--ghost:hover { background: #eef3f8; }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Assumptions & disclaimer ---------- */
.pc-assume { margin-top: 16px; }
.pc-assume .pc-card__title { margin-bottom: 10px; }
.pc-disclaimer {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--pc-muted);
  border-top: 1px solid var(--pc-line);
  padding-top: 14px;
  max-width: 900px;
}

/* ---------- Tools landing grid ---------- */
.pc-cat { margin: 30px 0 12px; }
.pc-cat h2 {
  font-size: 19px;
  color: var(--pc-navy);
  margin: 0 0 4px;
}
.pc-cat p { margin: 0; color: var(--pc-ink-2); font-size: 14px; }
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.pc-toolcard {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease, border-color .22s ease;
}
a.pc-toolcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 34, 55, .16);
  border-color: var(--pc-navy);
}
.pc-toolcard img { transition: transform .35s ease; }
a.pc-toolcard:hover img { transform: scale(1.02); }
.pc-toolcard h3 { margin: 0; font-size: 15.5px; color: var(--pc-navy); transition: color .2s ease; }
a.pc-toolcard:hover h3 { color: var(--pc-gold-ink); }
.pc-toolcard p { margin: 0; font-size: 13px; color: var(--pc-ink-2); flex: 1; }
.pc-toolcard .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}
.tag--live { background: #e3f4ec; color: var(--pc-good); }
.tag--soon { background: #f1f4f8; color: var(--pc-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  /* results-first on mobile: headline stats above inputs, detail below */
  .pc-tool {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "inputs"
      "rest";
  }
  .pc-tool__inputs > .pc-card { position: static; }
  .pc-stats { grid-template-columns: 1fr 1fr; }
  .pc-stat__value { font-size: 22px; }
  .pc-title h1 { font-size: 23px; }
}
@media (max-width: 480px) {
  .pc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc-stat { padding: 12px 14px; }
  .pc-stat__value { font-size: 19px; }
}

/* ---------- FAQ accordion ---------- */
.pc-faq details {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-sm);
  box-shadow: var(--pc-shadow);
  margin-bottom: 10px;
  padding: 0 18px;
}
.pc-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--pc-navy);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary::before {
  content: "+";
  color: var(--pc-gold-ink);
  font-size: 20px;
  font-weight: 800;
  width: 18px;
  flex: 0 0 auto;
}
.pc-faq details[open] summary::before { content: "−"; }
.pc-faq details[open] summary { border-bottom: 1px dashed var(--pc-line); }
.pc-faq .a { padding: 12px 0 16px 28px; color: var(--pc-ink-2); line-height: 1.6; }
.pc-faq .a p { margin: 0 0 10px; }
.pc-faq .a p:last-child { margin-bottom: 0; }

/* ---------- Process steps ---------- */
.pc-step {
  display: flex;
  gap: 18px;
  margin-bottom: 4px;
}
.pc-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.pc-step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pc-navy);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.pc-step__line { width: 3px; flex: 1; background: var(--pc-line); margin: 6px 0; }
.pc-step:last-child .pc-step__line { display: none; }
.pc-step__body { padding-bottom: 26px; }
.pc-step__body h3 { margin: 8px 0 6px; color: var(--pc-navy); font-size: 19px; }
.pc-step__body p { margin: 0 0 8px; color: var(--pc-ink-2); line-height: 1.6; }
.pc-step--gold .pc-step__num { background: var(--pc-gold); color: var(--pc-navy-deep); }

/* ---------- Site footer ---------- */
.pc-footer {
  background: var(--pc-navy-deep);
  color: #b9c8d6;
  margin-top: 56px;
  padding: 40px 20px 28px;
  font-size: 14px;
}
.pc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 36px;
}
.pc-footer h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7f93a8;
}
.pc-footer a { color: #d7e0e9; text-decoration: none; }
.pc-footer a:hover { color: #fff; text-decoration: underline; }
.pc-footer__links { display: flex; flex-direction: column; gap: 7px; }
.pc-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-footer__brand img { height: 34px; }
.pc-footer__brand .nm { font-weight: 700; color: #fff; font-size: 16px; }
.pc-footer__legal {
  max-width: 1200px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px;
  color: #7f93a8;
}
@media (max-width: 760px) {
  .pc-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Promo slider (desktop only, card inside the hero) ---------- */
.pc-promo { display: none; }
@media (min-width: 921px) {
  .pc-hero__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 46%);
    gap: 56px;
    align-items: center;
  }
  .pc-hero .pc-hero__inner--split h1 { font-size: 40px; }
  .pc-promo {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f2f2;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
  .pc-promo__track { position: relative; aspect-ratio: 16 / 9; }
  .pc-promo__slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .55s ease, transform .55s ease;
    pointer-events: none;
  }
  .pc-promo__slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  .pc-promo__full {
    display: block;
    width: 100%;
    height: 100%;
    /* contain, not cover: slide artwork of any aspect ratio letterboxes onto the
       slide background instead of being cropped */
    object-fit: contain;
  }
  .pc-promo__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(20,48,77,.3);
    background: rgba(255,255,255,.78);
    color: var(--pc-navy); font-size: 19px; line-height: 1;
    cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
  }
  .pc-promo__nav:hover { background: #fff; }
  .pc-promo__nav--prev { left: 10px; }
  .pc-promo__nav--next { right: 10px; }
  .pc-promo__dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px; z-index: 5;
  }
  .pc-promo__dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: 0; padding: 0; cursor: pointer;
    background: rgba(20,48,77,.28);
  }
  .pc-promo__dot.active { background: var(--pc-gold); }
  .pc-promo__cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--pc-gold); color: var(--pc-navy-deep);
    font-size: 14.5px; font-weight: 700; line-height: 1.35;
    padding: 12px 18px; text-align: center; text-decoration: none;
  }
  .pc-promo__cta::after { content: "\2192"; }
  .pc-promo__cta:hover { background: #d9b544; }
}

/* ---------- Home page ---------- */
.pc-hero {
  background: linear-gradient(150deg, var(--pc-navy-deep) 0%, var(--pc-navy) 55%, #1d4568 100%);
  color: #fff;
  padding: 74px 20px 66px;
}
.pc-hero__inner { max-width: 1200px; margin: 0 auto; }
.pc-hero .kicker {
  font-size: 14px; font-weight: 700; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--pc-gold); margin-bottom: 16px;
}
.pc-hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.14;
  max-width: 780px;
  letter-spacing: -0.5px;
}
.pc-hero p { margin: 0 0 30px; font-size: 19px; color: #c8d4e0; max-width: 640px; line-height: 1.55; }
.pc-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pc-btn--gold {
  background: var(--pc-gold);
  border-color: var(--pc-gold);
  color: var(--pc-navy-deep);
}
.pc-btn--gold:hover { background: #d9b544; }
.pc-btn--onnavy { background: transparent; border-color: #6c8199; color: #fff; }
.pc-btn--onnavy:hover { background: rgba(255,255,255,.08); }
.pc-btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.pc-btn--wa:hover { background: #1ebe5a; }
.pc-btn--wa svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* Floating WhatsApp "Consult Now" pill, bottom-right on every page */
.pc-wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 20px 13px 14px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}
.pc-wa-float:hover { background: #1ebe5a; }
.pc-wa-float svg { width: 24px; height: 24px; flex: 0 0 auto; }
@media (max-width: 620px) {
  .pc-wa-float { right: 12px; bottom: 12px; font-size: 14px; padding: 11px 16px 11px 12px; }
}
@media print {
  .pc-wa-float { display: none !important; }
}

.pc-band {
  background: var(--pc-surface);
  border-top: 1px solid var(--pc-line);
  border-bottom: 1px solid var(--pc-line);
  padding: 34px 20px;
}
.pc-band__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.pc-band .num { font-size: 34px; font-weight: 800; color: var(--pc-navy); line-height: 1.1; }
.pc-band .num small { font-size: 15px; font-weight: 600; color: var(--pc-gold-ink); display: block; letter-spacing: .6px; }
.pc-band .cap { font-size: 14px; color: var(--pc-ink-2); margin-top: 6px; line-height: 1.45; }
@media (max-width: 760px) {
  .pc-hero h1 { font-size: 31px; }
  .pc-band__inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Prose pages (about / pms-aif) ---------- */
.pc-prose { max-width: 800px; }
.pc-prose h2 { color: var(--pc-navy); font-size: 24px; margin: 34px 0 10px; }
.pc-prose h3 { color: var(--pc-navy); font-size: 18px; margin: 24px 0 8px; }
.pc-prose p { color: var(--pc-ink-2); line-height: 1.65; margin: 0 0 14px; }
.pc-prose ul { color: var(--pc-ink-2); line-height: 1.6; margin: 0 0 14px; padding-left: 22px; }
.pc-prose li { margin-bottom: 6px; }
.pc-lede {
  font-size: 20px; line-height: 1.6; color: var(--pc-ink);
  border-left: 4px solid var(--pc-gold);
  padding-left: 18px; margin: 6px 0 26px;
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .pc-actions, .pc-crumb, .pc-modes, .pc-header__nav, .pc-footer,
  input[type="range"], .pc-range-ends { display: none !important; }
  /* the branded header prints on every page output — logo stays on
     everything a user saves or shares as PDF */
  .pc-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* faint diagonal brand watermark repeated on every printed page */
  body::after {
    content: "prospar. \00b7 Call 98710 01868";
    position: fixed;
    top: 45%;
    left: 0;
    right: 0;
    text-align: center;
    transform: rotate(-24deg);
    font-size: 68px;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(20, 48, 77, 0.07);
    z-index: 9999;
    pointer-events: none;
  }
  .pc-card, .pc-stat { box-shadow: none; }
  .pc-tool { grid-template-columns: 1fr; }
  .pc-tablecard { display: block; }
  .pc-tablecard summary { display: none; }
  .pc-tablecard .pc-tablescroll { display: block !important; }
}

/* ==========================================================================
   Premium interactions & polish
   Motion is presentation only: every effect degrades gracefully without JS,
   and prefers-reduced-motion switches the whole layer off.
   ========================================================================== */

html { scroll-behavior: smooth; }

::selection { background: var(--pc-navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pc-gold);
  outline-offset: 2px;
}

/* Slim branded scrollbar */
html { scrollbar-color: #3d5a77 #eef1f5; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f5; }
::-webkit-scrollbar-thumb { background: #3d5a77; border-radius: 8px; border: 2px solid #eef1f5; }
::-webkit-scrollbar-thumb:hover { background: var(--pc-navy); }

/* Glass header once backdrop-filter is available; deepens after scroll */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .pc-header {
    background: rgba(20, 48, 77, .9);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.pc-header { transition: box-shadow .3s ease; }
.pc-header.pc-scrolled { box-shadow: 0 6px 26px rgba(9, 24, 40, .5); }

/* Logo micro-interaction */
.pc-logo { transition: opacity .2s ease; }
.pc-logo:hover { opacity: .85; }

/* Hero: slow-drifting gold aurora behind the content */
.pc-hero { position: relative; overflow: hidden; }
.pc-hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  top: -280px; right: -160px;
  background: radial-gradient(circle, rgba(201, 162, 39, .16) 0%, rgba(201, 162, 39, 0) 62%);
  pointer-events: none;
  animation: pc-aurora 16s ease-in-out infinite alternate;
}
.pc-hero__inner { position: relative; z-index: 1; }
@keyframes pc-aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-130px, 90px, 0) scale(1.18); }
}

/* Promo card: lift on hover, caption arrow glides */
@media (min-width: 921px) {
  .pc-promo { transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease; }
  .pc-promo:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); }
  .pc-promo__cta::after { display: inline-block; transition: transform .22s ease; }
  .pc-promo__cta:hover::after { transform: translateX(5px); }
}

/* Footer links: gold slide-in on hover */
.pc-footer__links a { transition: color .18s ease, padding-left .18s ease; }
.pc-footer__links a:hover { color: var(--pc-gold); padding-left: 4px; }

/* FAQ / details: answer fades up as it opens */
details[open] > *:not(summary) { animation: pc-fade-up .32s ease both; }
@keyframes pc-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* WhatsApp pill: soft periodic ring plus hover lift */
.pc-wa-float {
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), background .18s ease, box-shadow .22s ease;
}
.pc-wa-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(0, 0, 0, .34); }
.pc-wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: pc-wa-ring 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pc-wa-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  55%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll-reveal system: prospar-fx.js tags <html> with .pc-fx and elements
   below the fold with .pc-reveal, then flips .pc-in as they enter view.
   Without JS nothing is ever hidden. */
.pc-fx .pc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--pc-d, 0s);
}
.pc-fx .pc-reveal.pc-in { opacity: 1; transform: none; }

/* Accessibility: one switch turns the motion layer off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pc-hero::before, .pc-wa-float::before { animation: none; }
  details[open] > *:not(summary) { animation: none; }
  .pc-fx .pc-reveal { opacity: 1; transform: none; transition: none; }
  .pc-promo__slide { transition: none; }
}

/* Attention button: periodic shine sweep across a gold button */
.pc-btn--shine { position: relative; overflow: hidden; }
.pc-btn--shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  left: -60%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  animation: pc-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pc-shine {
  0%   { left: -60%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-btn--shine::after { animation: none; }
}

/* Calculator card icons: line icons in a soft tile, invert on hover */
.pc-toolcard__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eef3f8; color: var(--pc-navy);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  margin-bottom: 2px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.pc-toolcard__icon svg { width: 22px; height: 22px; display: block; }
.pc-toolcard__icon .g { stroke: var(--pc-gold); }
a.pc-toolcard:hover .pc-toolcard__icon { background: var(--pc-navy); color: #fff; transform: scale(1.06); }

/* 9-item nav: tighten spacing on mid-width screens so it stays on one line */
@media (min-width: 621px) and (max-width: 1120px) {
  .pc-header__nav { font-size: 13px; }
  .pc-header__nav span { margin: 0 6px !important; }
}
