:root{
  --bg:#0b1220;
  --card:#101a30;
  --text:#e8eefc;
  --muted:#9fb3d9;
  --accent:#69b3ff;
  --accent2:#80ffa7;
  --danger:#ff6b6b;
  --ok:#00c48c;
  --warn:#ffc857;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.4}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1060px;margin:0 auto;padding:24px}
.header{position:sticky;top:0;background:rgba(11,18,32,0.9);backdrop-filter: blur(8px);z-index:10;border-bottom:1px solid #172344}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 24px}
.brand{display:flex;gap:10px;align-items:center}
.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:var(--shadow)}
.site-logo{width:36px;height:36px;border-radius:10px;object-fit:contain;flex:0 0 auto;}

.brand-title{font-weight:700;letter-spacing:.4px;font-size:clamp(16px,1.6vw,20px);}

.menu{display:flex;gap:18px;align-items:center}
.menu a{padding:8px 10px;border-radius:10px}
.menu a:hover{background:#0e1a33}
.cta{background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#0a0f1d;padding:10px 14px;border-radius:12px;font-weight:700;box-shadow:var(--shadow)}
.cta:hover{text-decoration:none;filter:brightness(1.05)}

.hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer}
.hamburger span{display:block;width:24px;height:2px;background:#d6e1ff;border-radius:2px}

.mobile-menu{display:none}

@media (max-width: 860px){
  .menu{display:none}
  .hamburger{display:flex}
  .mobile-menu{display:none;flex-direction:column;padding:8px 24px;gap:6px;border-top:1px solid #172344}
  .mobile-menu a{padding:12px;border-radius:12px}
  .mobile-menu .cta{display:inline-block;text-align:center}
  .menu-open .mobile-menu{display:flex}
}

.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:center;padding:34px 24px}
.hero-card{background:linear-gradient(180deg,#0f1b33 0%, #0b1220 100%);border:1px solid #172344;border-radius:20px;padding:26px;box-shadow:var(--shadow)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.kpi{background:#0f1b33;border:1px solid #172344;padding:14px;border-radius:14px;text-align:center}
.kpi h4{margin:0 0 6px 0}
.hero h1{margin:0 0 10px 0;font-size:clamp(24px,4vw,40px)}
.hero p{color:var(--muted);margin:0 0 16px 0;font-size:clamp(14px,2vw,18px)}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.card{background:linear-gradient(180deg,#0f1b33 0%, #0b1220 100%);border:1px solid #172344;border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 920px){.hero{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr}}

.footer{border-top:1px solid #172344;margin-top:40px;padding:20px 24px;color:#a3b4da;text-align:left}

.form{display:grid;gap:16px}
.input,.select{background:#0f1b33;border:1px solid #223055;color:#e8eefc;padding:12px 14px;border-radius:12px;width:100%}
.label{font-size:14px;color:#c5d2f0;margin-bottom:6px}
.group{display:grid;gap:8px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 700px){.row{grid-template-columns:1fr}}

.progress{height:8px;background:#0f1b33;border-radius:999px;border:1px solid #223055;overflow:hidden}
.progress > span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));width:0%}

/* Multi-step forms (Symptom Check) */
.step{display:none}
.step.active{display:block}
.step-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.step-title .small{opacity:.9}
.nav-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#0f1b33;border:1px solid #223055}
.pill input{margin:0}

.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid #27406e;background:#0f1b33;color:#bcd0f6}

.gauge{height:16px;border-radius:999px;background:linear-gradient(90deg,#00c48c,#ffc857,#ff6b6b);border:1px solid #223055;position:relative;overflow:hidden}
.gauge-ind{position:absolute;top:0;bottom:0;width:3px;background:#fff;box-shadow:0 0 10px rgba(255,255,255,.7)}

.alert{padding:12px 14px;border-radius:12px}
.alert.ok{background:#0f2b22;border:1px solid #174c3c}
.alert.warn{background:#2a230e;border:1px solid #5b4d19}
.alert.danger{background:#2b1212;border:1px solid #5c1d1d}

.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.small{font-size:12px;color:#92a6cf}

/* Urologist one-pager: slightly larger small-text for executive readability */
.urologist .small{font-size:14px;line-height:1.35}
.urologist .pill{font-size:14px}

/* Urologist page: avoid the default two-column hero grid so the message reads cleanly */
.urologist .hero{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.urologist .hero .cta{display:flex;gap:12px;flex-wrap:wrap}
.urologist .hero h1{max-width:42ch}
.urologist .hero .lead{max-width:70ch}

.timer{display:flex;align-items:center;gap:10px;margin-top:8px}
button{cursor:pointer}
.btn{background:#152545;border:1px solid #22355c;color:#dfe8ff;padding:10px 14px;border-radius:12px;font-weight:600}
.btn:hover{filter:brightness(1.05)}
.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#0a0f1d;border:none}
.btn.ghost{background:#0f1b33;border:1px solid #223055}


/* ==== FINAL SECTION UNIFORMITY TWEAK ==== */

/* === Uniform section padding/margins === */
.section { padding-top: 20px !important; padding-bottom: 20px !important; margin-bottom: 20px !important; }
.section .card { width: 100% !important; }
.stack > .card + .card, .card + .card { margin-top: 16px; }

/* Ensure hero/intro blocks are full-width on mobile, matching others */
@media (max-width: 768px){
  .hero, .intro { width: 100% !important; }
  .hero .card, .intro .card { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}


/* ==== EQUAL HEIGHT CARDS FIX ==== */

/* === Equal height cards in rows === */
.section-row, .features, .three-col {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}
.section-row .card, .features .card, .three-col .card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .section-row, .features, .three-col {
    flex-direction: column;
  }
}


/* ==== SCOPED EQUAL-CARDS (home only) ==== */

/* === Scoped equal-height for the 3-card row on home === */
.grid-3.equal-cards {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}
.grid-3.equal-cards .card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .grid-3.equal-cards { flex-direction: column; }
}


/* === equal-height 3-up cards (scoped) === */
#why-cards .cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
#why-cards .card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:20px;
  border-radius:12px;
  background:var(--card);
  color:var(--text);
  min-height:160px;
  border:1px solid rgba(255,255,255,0.06);
}
#why-cards .card h3{margin:0 0 8px 0;font-weight:700}
#why-cards .card p{margin:0;line-height:1.5}
@media (max-width: 900px){
  #why-cards .cards{grid-template-columns:1fr}
}


/* === Equal height cards fix === */
#why-cards .cards {
  display: flex !important;
  gap: 16px !important;
}
#why-cards .card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
@media (max-width: 900px) {
  #why-cards .cards {
    flex-direction: column !important;
  }
}


/* adjust if needed */
  }
}





/* === Final why-cards equal heights & top aligned === */
#why-cards .cards{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
#why-cards .card{
  flex:1 1 0%;
  display:flex;
  flex-direction:column;
  margin:0;
}
#why-cards .card > *:first-child{ margin-top:0; }
#why-cards .card h3{ margin-top:0; }
@media (max-width: 900px){
  #why-cards .cards{flex-direction:column}
}


/* removed global radio label rule */
form label {
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.4;
}


/* === Risk Quiz scoped fixes === */
#risk-quiz label {
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.4;
}

#risk-quiz .btn,
#risk-quiz button,
#risk-quiz input[type="submit"],
#risk-quiz input[type="button"] {
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 6px;
}

#risk-quiz .btn.cancel {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}


/* === Button uniformity fixes === */
/* Risk quiz: normalize all .btn (including anchor Cancel) */
#risk-quiz .btn{
  font-size:0.875rem !important;
  padding:10px 16px !important;
  border-radius:6px !important;
  line-height:1.2 !important;
}

/* Any inline button rows (used on results page and elsewhere) */
.inline .btn{
  font-size:0.875rem;
  padding:10px 16px;
  border-radius:6px;
  line-height:1.2;
}


/* === Mobile: make hero (top two cards) match info-card width === */
@media (max-width: 860px){
  .hero{grid-template-columns:1fr; row-gap:16px;}
  .hero > *{width:100%; margin-left:0; margin-right:0;}
}

/* honeypot */
.honeypot{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;overflow:hidden;}

/* === Voucher: optional CTA class (kept for compatibility) === */
.btn.primary.cta-strong{
  /* Match standard buttons so CTA looks consistent */
  padding:10px 16px;
  font-size:0.875rem;
  font-weight:600;
  border-radius:6px;
  box-shadow:none;
}

/* === Print: force the PSA voucher to print clean, black & white === */
@media print{
  body[data-page="voucher"]{
    background:#fff !important;
    color:#000 !important;
  }
  body[data-page="voucher"] .header,
  body[data-page="voucher"] .footer,
  body[data-page="voucher"] .hamburger,
  body[data-page="voucher"] .mobile-menu{
    display:none !important;
  }
  body[data-page="voucher"] .card{
    background:#fff !important;
    color:#000 !important;
    border:1px solid #000 !important;
    box-shadow:none !important;
  }
  body[data-page="voucher"] .small{color:#000 !important;}
  body[data-page="voucher"] .inline{display:none !important;}
  body[data-page="voucher"] a{color:#000 !important;}
  body[data-page="voucher"] .alert{background:#fff !important;border:1px solid #000 !important;}

  /* Results printout ("Your Risk Results") */
  body[data-page="results"]{
    background:#fff !important;
    color:#000 !important;
  }
  /* Force true black-and-white print */
  body[data-page="results"] *{
    color:#000 !important;
    background:transparent !important;
    box-shadow:none !important;
    text-shadow:none !important;
  }
  body[data-page="results"] a{color:#000 !important; text-decoration:none !important;}

  /* Hide navigation/footer + interactive UI for a clean print */
  body[data-page="results"] .header,
  body[data-page="results"] .footer,
  body[data-page="results"] .hamburger,
  body[data-page="results"] .mobile-menu,
  body[data-page="results"] .timer,
  body[data-page="results"] .inline{
    display:none !important;
  }
  /* Hide the "Share with Family" card (2nd direct card under main) */
  body[data-page="results"] main.container > .card:nth-of-type(2){
    display:none !important;
  }

  /* Ensure cards print cleanly */
  body[data-page="results"] .card{
    background:#fff !important;
    border:1px solid #000 !important;
    box-shadow:none !important;
  }
  body[data-page="results"] .small{color:#000 !important;}
  body[data-page="results"] .badge{
    background:#fff !important;
    border:1px solid #000 !important;
  }
  body[data-page="results"] .gauge{
    background:#fff !important;
    border:1px solid #000 !important;
  }
  body[data-page="results"] .gauge .gauge-ind{
    background:#000 !important;
  }

  /* Print scale: reduce to 65% to match your desired print area */
  body[data-page="results"] main.container{
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    transform:scale(0.65);
    transform-origin:top left;
    /* Counteract scaling so content isn't clipped by the page box */
    width:calc(100% / 0.65) !important;
  }
}
/* =========================================================
   Cardiology-style global header + footer (2026-01-09)
   ========================================================= */

.hr{height:1px;background:rgba(23,35,68,.9);margin:12px 0}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,18,32,.92), rgba(11,18,32,.65));
  border-bottom: 1px solid rgba(23,35,68,.7);
}
.header a{color:inherit;text-decoration:none}
.header a:hover{text-decoration:none;opacity:.92}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 24px;
  max-width:1080px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{width:48px;height:48px;flex:0 0 auto}
.brand .title{font-weight:800; letter-spacing:.2px}
.brand .sub{font-size:12px; color:var(--muted); margin-top:2px}

.navlinks{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:flex-end;
  font-size:14px; color:var(--muted);
}
.navlinks a{
  padding:8px 10px; border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.navlinks a:hover{
  border-color: rgba(23,35,68,.9);
  background: rgba(15,27,51,.45);
  color: var(--text);
}

.navtoggle{
  display:none;
  border:1px solid rgba(23,35,68,.9);
  background: rgba(15,27,51,.35);
  color: var(--text);
  border-radius: 999px;
  padding:10px 12px;
  line-height:0;
}
.navtoggle:focus{outline: 2px solid rgba(105,179,255,.45); outline-offset: 2px;}
.navtoggle .bar{
  display:block;
  width:18px; height:2px;
  background: rgba(226,232,240,.9);
  margin:3px 0;
  border-radius:999px;
}

/* Mobile nav */
@media (max-width:760px){
  .nav{ position:relative; }
  .navtoggle{ display:inline-flex; flex-direction:column; justify-content:center; align-items:center; }
  .navlinks{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px;
    background: rgba(11,18,32,.96);
    border:1px solid rgba(23,35,68,.8);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
  .navlinks.open{ display:flex; }
  .navlinks a{ width:100%; text-align:left; }
}

/* Footer */
.footer{
  /* Match cardiology spacing: keep footer close to last section */
  margin-top:0;
  border-top:none;
  padding:18px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer a{color: var(--text); text-decoration: underline; text-underline-offset: 3px}


/* Footer alignment overrides (match Cardiology style) */
.footer{ text-align:left; }
.footer .footer-copy{ text-align:left !important; width:100% !important; display:block !important; }

/* iPhone Safari: prevent zoom-on-focus by keeping form controls at >=16px */
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Home page spacing tweaks */
.home-main{padding-bottom:0;}

/* Tighten spacing between Share-with-family and footer */
#share-family.section{ margin-bottom:0 !important; padding-bottom:6px !important; }

/* Share with family (QR + copy link) */
.familybox{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}
.qrwrap{display:flex;flex-direction:column;align-items:flex-start}
.scanimg{
  width:150px;
  height:150px;
  background:#ffffff;
  border-radius:18px;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow);
}
.scanimg svg{width:100%;height:100%}
.familycopy{
  flex:1;
  min-width:240px;
  max-width:360px;
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.familycopy .btn{width:100%}
.help{font-size:12px;color:var(--muted);margin-top:10px}
.btn.copied{filter:brightness(1.08)}
.familybox .help{margin-top:8px}
@media (max-width: 700px){
  .familybox{flex-direction:column;align-items:stretch}
  .qrwrap{align-items:center}
  .familycopy{min-width:0}
  .familycopy .btn{width:100%}
  .familybox .help{text-align:center}
}
