/* Home page only. Loaded after style.css, uses its design tokens.
   All classes are prefixed hm- so nothing here can touch /audit/,
   /confirmed/ or /privacy/. */

.hm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section themes. Each section sets its own colours through variables so
   every component below works on both dark and light backgrounds.
   --ac is the accent used for TEXT (darker on light so it stays readable);
   --track is the unfilled part of a slider. */
.hm-dark  { --t: #ffffff; --m: #94a3b8; --card: #162030; --bd: #2a3650; --ac: #3aabdc; --track: #2a3650; --leak: #fca5a5; background: var(--primary-dark); color: var(--t); }
.hm-light { --t: #1c2333; --m: #64748b; --card: #ffffff; --bd: #e2e8f0; --ac: #3aabdc; --track: #cbd5e1; --leak: #b91c1c; background: var(--bg-light); color: var(--t); }
.hm-plain { --t: #1c2333; --m: #64748b; --card: #ffffff; --bd: #e2e8f0; --ac: #3aabdc; --track: #cbd5e1; --leak: #b91c1c; background: var(--white); color: var(--t); }

.hm-mono { font-family: "Courier New", Courier, monospace; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ac); }

/* ---------- hero: the /audit/ hero (style.css .hero), plus the pillar path ---------- */
.hm-hero { padding-bottom: 48px; }
.hm-hero-sub { font-size: 34px; font-weight: 800; font-style: italic; color: var(--accent-cyan); line-height: 1.15; margin-bottom: 20px; }
.hm-path { max-width: 860px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid #2a3650;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.hm-path a { padding: 9px 16px; border: 1px solid #2a3650; border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff;
  transition: border-color .15s ease, color .15s ease; }
.hm-path a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.hm-path span { color: #64748b; }
.hm-path .hm-path-calc { border-color: var(--accent-cyan); color: var(--accent-cyan); margin-left: 12px; }
@media (max-width: 700px) {
  .hm-hero-sub { font-size: 24px; }
  .hm-path span { display: none; }
  .hm-path .hm-path-calc { margin-left: 0; }
}

/* ---------- who builds it ---------- */
.hm-about { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .hm-about { grid-template-columns: 1fr; gap: 24px; } }
.hm-about-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--card); }
.hm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -8px 0 22px; max-width: 720px; }
@media (max-width: 600px) { .hm-facts { grid-template-columns: 1fr; } }
.hm-facts div { background: var(--card); border: 1px solid var(--bd); border-radius: 6px; padding: 14px 16px; }
.hm-facts strong { display: block; font-size: 24px; font-weight: 700; color: var(--ac); }
.hm-facts span { font-size: 13px; color: var(--m); }
.hm-link { color: var(--ac); font-weight: 600; font-size: 15px; }
.hm-link:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.hm-faq { margin-top: 8px; }
.hm-faq .accordion-item summary h3 { font-size: 16px; font-weight: 600; margin: 0; color: inherit; line-height: 1.4; }
.hm-faq .accordion-body { font-size: 15px; line-height: 1.6; }

/* ---------- headings ---------- */
/* Section headings stay big, bold and left-aligned: the homepage's own
   voice, on top of the /audit/ page's colours, spacing and cards. */
.hm-h2 { font-size: clamp(36px, 6.5vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--t); margin-bottom: 20px; }
/* Italic accent matches the 800 weight of the words around it. */
.hm-h2 em { font-style: italic; color: var(--ac); font-weight: 800; letter-spacing: -0.015em; }
.hm-sub { color: var(--m); font-size: 17px; max-width: 640px; margin-bottom: 36px; }
.hm-section { padding: 72px 0; }
/* Jump links (pillar chips, "Leak calculator") land below the fixed navbar. */
main [id] { scroll-margin-top: 72px; }

/* ---------- pillars ---------- */
.hm-num { font-size: 15px; font-weight: 800; color: var(--ac); margin-bottom: 6px; display: block; }
.hm-pillar-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .hm-pillar-grid { grid-template-columns: 1fr; gap: 36px; } }
.hm-block-label { display: block; margin: 28px 0 10px; }
.hm-before { border-left: 3px solid #ef4444; padding: 4px 0 4px 18px; color: var(--m); font-size: 17px; font-style: italic; max-width: 560px; }
.hm-after { list-style: none; }
.hm-after li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--t); font-size: 16px; }
.hm-after li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ac); font-weight: 800; }

.hm-card { background: var(--card); border: 1px solid var(--bd); border-radius: 6px; padding: 26px; }
.hm-installed { list-style: none; margin-top: 14px; }
.hm-installed li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--bd); color: var(--t); font-size: 15px; }
.hm-installed li:first-child { border-top: none; }
.hm-letter {
  flex: 0 0 28px; height: 28px; border-radius: 6px; background: rgba(58,171,220,.15); color: var(--ac);
  font: 700 12px "Courier New", monospace; display: grid; place-items: center;
}
.hm-proof { margin-top: 20px; border-left: 4px solid var(--accent-cyan); background: var(--callout-dark); border-radius: 6px; padding: 22px 24px; }
.hm-proof .hm-stat { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; }
.hm-proof p { color: #94a3b8; font-size: 14px; margin: 8px 0 12px; }
.hm-proof p:last-child { margin-bottom: 0; }
.hm-proof a { color: var(--accent-cyan); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-family: "Courier New", monospace; }
.hm-proof a:hover { text-decoration: underline; }
.hm-note { margin-top: 18px; font-size: 13px; color: var(--m); max-width: 560px; }

/* ---------- calculator ---------- */
.hm-calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .hm-calc { grid-template-columns: 1fr; } }
.hm-field { margin-bottom: 26px; }
.hm-field:last-child { margin-bottom: 0; }
.hm-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.hm-field-top label { font-size: 15px; font-weight: 600; color: var(--t); }
.hm-field-top output { font-size: 20px; font-weight: 700; color: var(--ac); white-space: nowrap; }
.hm-field small { display: block; margin-top: 8px; font-size: 12px; color: var(--m); }
.hm-optional { border-top: 1px dashed var(--bd); padding-top: 24px; margin-top: 8px; }

.hm-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline-offset: 6px;
  background: linear-gradient(to right, var(--accent-cyan) var(--pct, 50%), var(--track) var(--pct, 50%)); cursor: pointer; }
.hm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-cyan); cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hm-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-cyan); cursor: grab; }
.hm-range::-moz-range-track { background: transparent; }

.hm-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-tile { background: var(--card); border: 1px solid var(--bd); border-radius: 6px; padding: 18px 20px; }
.hm-tile .hm-mono { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: 1.5px; color: var(--m); }
.hm-tile strong { display: block; font-size: 26px; font-weight: 700; color: var(--t); line-height: 1.1; }
.hm-tile--leak { grid-column: 1 / -1; border-color: #ef4444; background: rgba(239,68,68,.08); }
.hm-tile--leak .hm-mono { color: var(--leak); }
.hm-tile--leak strong { font-size: clamp(40px, 6vw, 56px); }
.hm-tile--after strong { color: var(--ac); }
.hm-results .btn { grid-column: 1 / -1; text-align: center; margin-top: 4px; }
.hm-fineprint { margin-top: 28px; font-size: 13px; color: var(--m); max-width: 760px; }
.hm-calc-flag { margin-top: 12px; font-size: 13px; color: #b45309; min-height: 1.2em; grid-column: 1 / -1; }
.hm-dark .hm-calc-flag { color: #fcd34d; }

/* ---------- calculator, compact: sized so heading, sliders and results
   fit on a 14-inch laptop screen (about 1280-1536 x 650-730) at once,
   with a narrower column so both ends are visible without a full sweep. */
#calculator { padding: 34px 0; }
#calculator .hm-wrap { max-width: 1000px; }
#calculator .hm-h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }
#calculator .hm-calc { text-align: left; }
#calculator .hm-sub { font-size: 15px; margin-bottom: 20px; max-width: none; }
#calculator .hm-calc { grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: stretch; }
#calculator .hm-card { padding: 20px 22px; }
.hm-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
#calculator .hm-field { margin: 0; }
#calculator .hm-field-top { margin-bottom: 8px; }
#calculator .hm-field-top label { font-size: 13.5px; }
#calculator .hm-field-top output { font-size: 16px; }
#calculator .hm-range::-webkit-slider-thumb { width: 18px; height: 18px; border-width: 3px; }
#calculator .hm-optional { grid-column: 1 / -1; margin-top: 0; padding-top: 16px; }
#calculator .hm-optional small { margin-top: 6px; font-size: 11.5px; }
#calculator .hm-results { gap: 10px; height: 100%; align-content: start; }
#calculator .hm-tile { padding: 12px 16px; }
#calculator .hm-tile .hm-mono { font-size: 9.5px; margin-bottom: 4px; }
#calculator .hm-tile strong { font-size: 20px; }
#calculator .hm-tile--leak strong { font-size: clamp(30px, 3.4vw, 42px); }
#calculator .hm-results .btn { padding: 12px 20px; font-size: 14px; }
#calculator .hm-calc-flag { margin: 0; min-height: 0; font-size: 12px; }
#calculator .hm-calc-flag:empty { display: none; }
#calculator .hm-fineprint { margin-top: 14px; font-size: 12px; max-width: none; }
@media (max-width: 900px) { #calculator .hm-calc { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hm-sliders { grid-template-columns: 1fr; } }

/* ---------- compact footer (home page only) ---------- */
.hm-footer { padding: 20px 0; }
.hm-footer .footer-inner { align-items: center; padding-bottom: 14px; gap: 14px 24px; }
.hm-footer .footer-brand { display: flex; align-items: center; gap: 12px; }
.hm-footer .footer-brand img { height: 34px; width: auto; }
.hm-footer .footer-brand strong { margin: 0; font-size: 17px; }
.hm-footer .footer-brand span { font-size: 13px; }
.hm-footer .footer-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; font-size: 13px; }
.hm-footer .footer-copyright { padding-top: 12px; font-size: 12px; }
@media (max-width: 700px) {
  .hm-footer .footer-inner { align-items: flex-start; }
  .hm-footer .footer-contact { justify-content: flex-start; }
}

/* ---------- report mock ---------- */
.hm-report { margin-top: 20px; background: var(--callout-dark); border: 1px solid #2a3650; border-radius: 6px; padding: 22px; color: #fff; }
.hm-report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.hm-report-head .hm-mono { color: #94a3b8; }
.hm-badge { font: 700 10px "Courier New", monospace; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }
.hm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 520px) { .hm-metrics { grid-template-columns: 1fr; } }
.hm-metric { background: rgba(0,0,0,.25); border-radius: 8px; padding: 12px; }
.hm-metric .hm-mono { color: #94a3b8; font-size: 10px; display: block; margin-bottom: 6px; }
.hm-metric b { display: block; font-size: 18px; color: #fff; }
.hm-metric span { font-size: 12px; color: #94a3b8; }
.hm-recs { list-style: none; }
.hm-recs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #2a3650; font-size: 14px; color: #cbd5e1; }
.hm-tag { font: 700 10px "Courier New", monospace; letter-spacing: 1px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.hm-tag--high { background: rgba(239,68,68,.18); color: #fca5a5; }
.hm-tag--med { background: rgba(245,158,11,.18); color: #fcd34d; }
.hm-illustrative { margin-top: 12px; font-size: 12px; color: #94a3b8; }

/* ---------- difference ---------- */
.hm-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .hm-three { grid-template-columns: 1fr; } }
.hm-col { background: var(--card); border: 1px solid var(--bd); border-radius: 6px; padding: 28px; }
.hm-col h3 { font-size: 19px; color: var(--t); margin-bottom: 16px; font-weight: 700; }
.hm-col ul { list-style: none; }
.hm-col li { padding: 10px 0; border-top: 1px solid var(--bd); color: var(--m); font-size: 15px; }
.hm-col li:first-child { border-top: none; }
.hm-col--us { border-color: var(--accent-cyan); background: rgba(58,171,220,.07); }
.hm-col--us h3 { color: var(--ac); }
.hm-col--us li { color: var(--t); }
.hm-col--us li::before { content: "\2713\00a0\00a0"; color: var(--ac); font-weight: 800; }

/* ---------- 14 days ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .hm-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-step { background: var(--card); border: 1px solid var(--bd); border-top: 3px solid var(--accent-cyan); border-radius: 6px; padding: 26px; }
.hm-step h3 { font-size: 19px; font-weight: 700; color: var(--t); margin: 8px 0 10px; }
.hm-step p { color: var(--m); font-size: 15px; }
.hm-step--optional { border-top-style: dashed; background: transparent; }
.hm-month { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-top: 56px; }
@media (max-width: 900px) { .hm-month { grid-template-columns: 1fr; gap: 0; } }
.hm-month h3 { font-size: 24px; font-weight: 700; color: var(--t); margin: 10px 0 12px; }
.hm-month p { color: var(--m); font-size: 16px; }

/* ---------- closing CTA ---------- */
.hm-cta { text-align: center; padding: 72px 0; }
.hm-cta .hm-h2 { margin-bottom: 16px; }
.hm-cta .hm-sub { margin: 0 auto 32px; }
.hm-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hm-section { padding: 56px 0; }
  .hm-hero { padding-bottom: 56px; }
  .hm-tile { padding: 14px 14px; }
  .hm-tile strong { font-size: 22px; }
  .hm-tile--leak strong { font-size: 40px; }
  .hm-card { padding: 20px; }
}

/* Pillar number, label and heading sit above the two columns, so long
   headings stay on one line on desktop. */
.hm-pillar-head { margin-bottom: 32px; }
.hm-pillar-head .hm-h2 { margin-bottom: 0; }

/* FAQ on a dark section: dark cards, not white ones on navy. */
.hm-dark .accordion-item { background: var(--card); border-color: var(--bd); }
.hm-dark .accordion-item summary { color: #fff; }
.hm-dark .accordion-body { color: #94a3b8; }
