/* ===================================================================
   How Pramana works (/pramana/how-it-works/us/ and /canada/)
   Components the site stylesheet has no class for. Everything is scoped
   under .hiw and sits on the fixed lotus background: transparent fills,
   thin light borders, solid light text, teal accent.
   =================================================================== */
.hiw {
  --hiw-teal: #3ECFCF;          /* same teal as .kicker */
  --hiw-coral: #FF8F80;         /* drift / flag, well above 4.5:1 on navy */
  --hiw-gold: #E8C468;          /* estimate */
  --hiw-line: rgba(255, 255, 255, 0.22);
  --hiw-line-strong: rgba(255, 255, 255, 0.3);
  --hiw-text: #FFFFFF;
  --hiw-soft: #DCE3EA;
}

/* ---- hero extras ---- */
.hiw-market {
  display: inline-flex;
  gap: 0;
  margin-bottom: 26px;
  border: 1px solid var(--hiw-line-strong);
}
.hiw-market a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hiw-soft);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.hiw-market a + a { border-left: 1px solid var(--hiw-line-strong); }
.hiw-market a:hover { color: var(--hiw-teal); }
.hiw-market a[aria-current="page"] {
  color: var(--hiw-teal);
  box-shadow: inset 0 -2px 0 var(--hiw-teal);
}
.hiw-meaning {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--hiw-soft);
}
.hiw-meaning em {
  font-family: var(--serif);
  font-size: 1.2em;
  font-style: italic;
  color: var(--hiw-text);
}

/* ---- shared ---- */
.hiw section.block { scroll-margin-top: 72px; }
.hiw .hiw-first { padding-top: 24px; }
.hiw .section-head + .prose { margin-top: -12px; }
.hiw .prose { color: var(--hiw-soft); }
.hiw .prose strong { color: var(--hiw-text); font-weight: 600; }
.hiw sup { line-height: 0; }
.hiw sup a {
  color: var(--hiw-teal);
  font-weight: 700;
  font-size: 0.78em;
  padding: 0 0.15em;
}
.hiw sup a:hover { text-decoration: underline; }
.hiw-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hiw-subhead {
  margin: 56px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hiw-teal);
}

/* ---- Try it widget ---- */
.hiw-try {
  border: 1px solid var(--hiw-line-strong);
  padding: 26px 26px 22px;
  background: transparent;
}
.hiw-try-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.hiw-try-head h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.hiw-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border: 1px solid var(--hiw-line-strong);
  color: var(--hiw-soft);
  white-space: nowrap;
}
.hiw-status.blocked { border-color: var(--hiw-coral); color: var(--hiw-coral); }
.hiw-status.locked { border-color: var(--hiw-teal); color: var(--hiw-teal); }
.hiw-rows { list-style: none; display: grid; gap: 8px; }
.hiw-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--hiw-line);
  border-left-width: 3px;
  color: var(--hiw-text);
  transition: border-color 0.35s ease;
}
.hiw-v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.35s ease;
}
.hiw-why {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hiw-soft);
}
.hiw-why:empty { display: none; }
.hiw-rows li.ok { border-color: var(--hiw-teal); }
.hiw-rows li.flag-drift { border-color: var(--hiw-coral); }
.hiw-rows li.flag-drift .hiw-v,
.hiw-rows li.flag-drift .hiw-why { color: var(--hiw-coral); }
.hiw-rows li.flag-vague { border-color: var(--hiw-gold); }
.hiw-rows li.flag-vague .hiw-v,
.hiw-rows li.flag-vague .hiw-why { color: var(--hiw-gold); }
.hiw-est {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px dashed var(--hiw-line-strong);
  color: var(--hiw-text);
}
.hiw-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--hiw-gold);
  color: var(--hiw-gold);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hiw-tag.show { visibility: visible; opacity: 1; }
.hiw-try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hiw-try-actions .btn { height: 40px; padding: 0 16px; }
.hiw .btn-ghost.hiw-btn-accent { border-color: var(--hiw-teal); color: var(--hiw-teal); }
.hiw .btn-ghost.hiw-btn-accent:hover { background: rgba(62, 207, 207, 0.1); }
.hiw .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.hiw .btn[disabled]::after { display: none; }
.hiw-mini {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--hiw-line-strong);
}
.hiw-mini.show { display: block; }
.hiw-mini dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 18px;
  font-size: 14px;
}
.hiw-mini dt { color: var(--hiw-soft); }
.hiw-mini dd { color: var(--hiw-text); font-weight: 600; }
.hiw-try-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--hiw-soft);
}

/* ---- keep list and stats ---- */
.hiw-keep {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 32px;
  max-width: 460px;
}
.hiw-keep li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--hiw-line);
  color: var(--hiw-text);
  font-weight: 500;
}
.hiw-keep li span {
  min-width: 3.4rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hiw-teal);
}
.hiw-keep li.is-add { border-color: var(--hiw-gold); }
.hiw-keep li.is-add span { color: var(--hiw-gold); }
.hiw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--hiw-line);
}
.hiw-stat { padding: 24px 24px 0 0; }
.hiw-stat + .hiw-stat { padding-left: 24px; border-left: 1px solid var(--hiw-line); }
.hiw-stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hiw-text);
  margin-bottom: 10px;
}
.hiw-stat p { font-size: 14px; line-height: 1.6; color: var(--hiw-soft); }

/* ---- path (site .steps with markers) ---- */
.hiw-flow { margin-top: 32px; }
.hiw .step.is-leak .step-num { color: var(--hiw-coral); }
.hiw .step.is-outside .step-num { color: var(--hiw-gold); }
.hiw .step.is-leak { border-left: 2px solid var(--hiw-coral); padding-left: 16px; margin-left: -18px; }
.hiw-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border: 1px solid var(--hiw-coral);
  color: var(--hiw-coral);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.hiw .step p, .hiw .gov p { color: var(--hiw-soft); }

/* ---- diagrams ---- */
.hiw-fig {
  margin: 36px 0 0;
  padding: 18px;
  border: 1px solid var(--hiw-line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hiw-fig svg { display: block; width: 100%; height: auto; min-width: 640px; }
.hiw-fig text { font-family: var(--sans); }
.hiw .n-navy { fill: #0B1C2C; stroke: var(--hiw-teal); stroke-width: 1.5; }
.hiw .n-gold { fill: var(--hiw-gold); }
.hiw .n-teal { fill: var(--hiw-teal); }
.hiw .n-coral { fill: var(--hiw-coral); }
.hiw .ico-w * { stroke: #FFFFFF; fill: none; stroke-width: 2; }
.hiw .t-lab { font-size: 13px; font-weight: 600; fill: #FFFFFF; }
.hiw .t-small { font-size: 11px; font-weight: 500; fill: var(--hiw-soft); }
.hiw .t-val, .hiw .t-v-ok { font-size: 13px; font-weight: 700; fill: #FFFFFF; }
.hiw .t-doc { font-size: 13px; font-weight: 600; fill: #FFFFFF; }
.hiw .t-v-drift { font-size: 13px; font-weight: 700; fill: var(--hiw-coral); }
.hiw .t-v-vague { font-size: 13px; font-weight: 700; fill: var(--hiw-gold); }
.hiw .t-note { font-size: 11px; font-weight: 500; fill: var(--hiw-soft); }
.hiw .t-note.drift { fill: var(--hiw-coral); font-weight: 600; }
.hiw .t-note.vague { fill: var(--hiw-gold); font-weight: 600; }
.hiw .t-rd { font-size: 11px; font-weight: 600; fill: #FFFFFF; }
.hiw .chip-ok { fill: rgba(62, 207, 207, 0.12); stroke: var(--hiw-teal); stroke-width: 1.5; }
.hiw .doc-ok { fill: rgba(5, 7, 10, 0.25); stroke: var(--hiw-teal); stroke-width: 1.2; }
.hiw .doc-drift { fill: rgba(255, 143, 128, 0.08); stroke: var(--hiw-coral); stroke-width: 1.5; }
.hiw .doc-vague { fill: rgba(232, 196, 104, 0.08); stroke: var(--hiw-gold); stroke-width: 1.5; }
.hiw .ln-ok { fill: none; stroke: var(--hiw-teal); stroke-width: 1.6; }
.hiw .ln-drift { fill: none; stroke: var(--hiw-coral); stroke-width: 1.6; }
.hiw .ln-vague { fill: none; stroke: var(--hiw-gold); stroke-width: 1.6; }
.hiw .rule { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.hiw .ar { stroke: var(--hiw-teal); stroke-width: 2; }
.hiw .ar-g { stroke: var(--hiw-gold); stroke-width: 1.6; }
.hiw .ah { fill: var(--hiw-teal); }
.hiw .ahg { fill: var(--hiw-gold); }
.hiw .glow { fill: var(--hiw-teal); opacity: 0.1; }
.hiw .gate { fill: rgba(5, 7, 10, 0.55); stroke: var(--hiw-teal); stroke-width: 1.5; }
.hiw .gate-sub { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.hiw .t-gate { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; fill: #FFFFFF; }
.hiw .t-num { font-size: 15px; font-weight: 800; fill: var(--hiw-gold); }
.hiw .t-sub { font-size: 12px; font-weight: 600; fill: #FFFFFF; }
.hiw .stop { stroke: #05070A; stroke-width: 2; }

/* ---- problem / action pairs ---- */
.hiw-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-top: 40px;
}
.hiw-problem, .hiw-action { padding-left: 18px; border-left: 2px solid var(--hiw-coral); }
.hiw-action { border-left-color: var(--hiw-teal); }
.hiw-action.is-gate { border-left-color: var(--hiw-gold); }
.hiw-two h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--hiw-text);
}
.hiw-two p { font-size: 14.5px; line-height: 1.7; color: var(--hiw-soft); }
.hiw-rules { margin-top: 18px; }
.hiw-gapline { margin-top: 36px; font-size: 17px; }

/* ---- journey + receipt ---- */
.hiw-journey { display: grid; gap: 40px; margin-top: 32px; }
.hiw-jsteps { list-style: none; counter-reset: j; }
.hiw-jsteps li {
  counter-increment: j;
  position: relative;
  padding: 0 0 26px 54px;
}
.hiw-jsteps li::before {
  content: counter(j);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hiw-teal);
  border-radius: 50%;
  color: var(--hiw-teal);
  font-size: 13px;
  font-weight: 600;
}
.hiw-jsteps h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 4px 0 6px;
  color: var(--hiw-text);
}
.hiw-jsteps p { font-size: 14.5px; line-height: 1.7; color: var(--hiw-soft); }
.hiw-receipt-wrap { max-width: 540px; }
.hiw-receipt { border: 1px solid var(--hiw-line-strong); }
.hiw-receipt header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hiw-line);
}
.hiw-dots i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}
.hiw-url {
  flex: 1;
  padding: 4px 12px;
  border: 1px solid var(--hiw-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--hiw-soft);
}
.hiw-receipt dl { padding: 8px 18px 4px; }
.hiw-receipt dt {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hiw-soft);
}
.hiw-receipt dd {
  margin-top: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  color: var(--hiw-text);
}
.hiw-lockline {
  margin: 14px 18px 18px;
  padding: 10px 14px;
  border: 1px solid var(--hiw-teal);
  color: var(--hiw-teal);
  font-weight: 600;
  font-size: 14.5px;
}
.hiw-receipt-cap { margin-top: 10px; font-size: 13px; color: var(--hiw-soft); }

/* ---- value cards ---- */
.hiw-value { display: grid; gap: 20px; margin-top: 32px; }
.hiw-card { padding: 28px; border: 1px solid var(--hiw-line); }
.hiw-card.is-alt { border-color: var(--hiw-line-strong); }
.hiw-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  color: var(--hiw-text);
}
.hiw-bar { margin-bottom: 18px; }
.hiw-bar > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--hiw-text); }
.hiw-bar > span.hiw-bar-val { margin: 6px 0 0; font-weight: 600; }
.hiw-bar-val.is-drift { color: var(--hiw-coral) !important; }
.hiw-bar-val.is-ok { color: var(--hiw-teal) !important; }
.hiw-track { height: 10px; background: rgba(255, 255, 255, 0.12); position: relative; }
.hiw-fill { height: 100%; }
.hiw-saved {
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--hiw-line);
  border-left: 2px solid var(--hiw-gold);
}
.hiw-saved strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--hiw-text);
}
.hiw-saved small { font-size: 14px; color: var(--hiw-soft); }
.hiw-est-tag, .hiw-saved .hiw-est-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--hiw-gold);
  color: var(--hiw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hiw-how { font-size: 14px; line-height: 1.7; color: var(--hiw-soft); }
.hiw-how strong { color: var(--hiw-text); }
.hiw-big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hiw-text);
  margin: 4px 0 8px;
}
.hiw-biglab { font-size: 14.5px; color: var(--hiw-soft); margin-bottom: 20px; }
.hiw-ladder { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.hiw-ladder li {
  padding: 10px 14px;
  border-left: 2px solid var(--hiw-gold);
  font-size: 14px;
  color: var(--hiw-soft);
}
.hiw-ladder b { display: block; margin-top: 2px; font-size: 1rem; color: var(--hiw-gold); }
.hiw-card-note { font-size: 14px; line-height: 1.7; color: var(--hiw-soft); }

/* ---- comparison table ---- */
.hiw-tbl {
  margin-top: 44px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hiw-cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--hiw-text);
}
.hiw-cmp caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--hiw-text);
}
.hiw-cmp th, .hiw-cmp td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hiw-line);
  line-height: 1.55;
}
.hiw-cmp thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hiw-line-strong);
}
.hiw-cmp thead th:nth-child(2) { color: var(--hiw-teal); }
.hiw-cmp thead th:nth-child(3) { color: var(--hiw-gold); }
.hiw-cmp tbody th { width: 24%; font-weight: 600; color: var(--hiw-text); }
.hiw-cmp td { color: var(--hiw-soft); }
.hiw-measure { border-left-color: var(--hiw-gold); margin-top: 32px; }

/* ---- who it helps ---- */
.hiw-aud {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 32px;
  border-top: 1px solid var(--hiw-line);
}
.hiw-aud li { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hiw-aud h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; color: var(--hiw-text); }
.hiw-aud p { font-size: 14.5px; line-height: 1.7; color: var(--hiw-soft); }

/* ---- what it is not ---- */
.hiw-not-list {
  margin: 16px 0 24px 1.15em;
  columns: 2;
  column-gap: 40px;
  color: var(--hiw-text);
  max-width: 40em;
}
.hiw-not-list li { margin-bottom: 8px; break-inside: avoid; }
.hiw-not-list li::marker { color: var(--hiw-coral); }

/* ---- sources ---- */
.hiw-sources ol {
  margin-left: 1.3em;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hiw-soft);
}
.hiw-sources li { margin-bottom: 10px; padding: 2px 6px; scroll-margin-top: 90px; }
.hiw-sources li:target { outline: 1px solid var(--hiw-teal); background: rgba(62, 207, 207, 0.1); }
.hiw-sources a, .hiw-sources-end a { color: var(--hiw-teal); }
.hiw-sources a:hover { text-decoration: underline; }
.hiw-sources-end { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--hiw-soft); max-width: 46em; }

/* ---- small screens ---- */
@media (max-width: 768px) {
  .hiw-try { padding: 20px 16px 18px; }
  .hiw-try-head { flex-direction: column; gap: 10px; }
  .hiw-rows li { padding: 10px 12px; }
  .hiw-stats { grid-template-columns: 1fr; }
  .hiw-stat, .hiw-stat + .hiw-stat { padding: 20px 0; border-left: 0; }
  .hiw-stat + .hiw-stat { border-top: 1px solid var(--hiw-line); }
  .hiw-two, .hiw-aud { grid-template-columns: 1fr; }
  .hiw-not-list { columns: 1; }
  .hiw-card { padding: 22px 18px; }
  .hiw .step.is-leak { margin-left: 0; padding-left: 14px; }
  .hiw-fig { padding: 12px; }
  .hiw-market { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-rows li, .hiw-v, .hiw-tag { transition: none; }
}
