
/* =====================================================
   RedOwl AP Assessment  -  matches redowl.ai exactly
   Light theme: white bg, dark text, red hero + accents
   Font: Inter
   ===================================================== */

:root {
  --red:       #FF0000;
  --red2:      #cc0000;
  --red-dark:  #cc0000;
  --red3:      #ff4444;
  --red-light: rgba(255,0,0,0.06);
  --black:     #111111;
  --body:      #333333;
  --muted:     #666666;
  --subtle:    #999999;
  --tx1:       #111111;
  --tx2:       #333333;
  --tx3:       #666666;
  --green:     #15803d;
  --bg:        #ffffff;
  --bg-soft:   #F5F5ED;
  --s1:        #F5F5ED;
  --s2:        #f0f0ea;
  --s3:        #e8e8e2;
  --b1:        #e8e8e4;
  --b2:        #e0e0d8;
  --b3:        #cccccc;
  --border:    #e8e8e4;
  --border-s:  #f0f0ec;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV  -  white, like redowl.ai */
nav {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo-svg { height: 26px; cursor: pointer; display: block; }
.nav-right    { display: flex; align-items: center; gap: 12px; }
.nav-dots     { display: flex; gap: 5px; align-items: center; }
.ndot         { width: 6px; height: 6px; border-radius: 50%; background: #dddddd; transition: all 0.3s; }
.ndot.done    { background: #22c55e; }
.ndot.active  { background: var(--red); transform: scale(1.2); }

.nav-cta {
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--red-dark); }

/* HERO  -  full red like redowl.ai homepage */
#vHero {
  width: 100%;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.hero-h {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  max-width: 720px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-h em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 4px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.75;
}

.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.hpill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.hpill.hi {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2.5rem;
  background: rgba(0,0,0,0.12);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hstat-v { display: block; font-size: 30px; font-weight: 700; color: #ffffff; letter-spacing: -0.02em; line-height: 1; }
.hstat-l { display: block; font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; font-weight: 500; }

.start-btn {
  background: #ffffff;
  color: var(--red);
  border: none;
  border-radius: 8px;
  padding: 14px 40px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.start-btn:hover { background: #f5f5f5; transform: translateY(-1px); }

.trust-line { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; }

/* QUIZ  -  white background */
#vQuiz {
  display: none;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.prog-wrap { margin-bottom: 2rem; }

.prog-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  align-items: center;
}

.prog-stage { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.prog-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.prog-fill  { height: 100%; background: var(--red); border-radius: 2px; transition: width 0.5s ease; }

.q-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  animation: fadeup 0.3s ease;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-num   { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.q-title { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; color: var(--black); }
.q-hint  { font-size: 13px; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.55; }

.q-helper {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  border: 1px solid var(--border-s);
}

.num-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.num-wrap:focus-within { border-color: var(--red); }

.num-prefix, .num-suffix {
  font-size: 13px;
  color: var(--muted);
  padding: 0 12px;
  background: var(--bg-soft);
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
}
.num-prefix { border-right: 1px solid var(--border); }
.num-suffix { border-left: 1px solid var(--border); }

.num-input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--black);
  outline: none;
}
.num-input::placeholder { color: #cccccc; }

.slider-wrap { padding: 0.25rem 0; }

.slider-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--body);
  margin-bottom: 14px;
  align-items: center;
}

.slider-val { font-size: 22px; font-weight: 700; color: var(--black); letter-spacing: -0.02em; }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--red), 0 2px 6px rgba(255,0,0,0.25);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #ffffff;
}

.slider-range { display: flex; justify-content: space-between; font-size: 11px; color: var(--subtle); margin-top: 6px; }

.benchmark-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  padding: 6px 10px;
  background: var(--bg-soft);
  border-radius: 6px;
  border: 1px solid var(--border-s);
}

.bench-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-s);
}

.btn-back {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-back:hover { color: var(--black); border-color: #aaaaaa; }

.btn-next {
  background: var(--red);
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-next:hover { background: var(--red-dark); }

.q-err { display: none; font-size: 11px; color: #dc2626; margin-top: 6px; font-weight: 500; }

/* RESULTS */
#vResults {
  display: none;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.res-hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }

.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.score-num   { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.score-denom { font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.score-right h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; color: var(--black); }
.score-right p  { font-size: 14px; color: var(--body); line-height: 1.65; }

.mat-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.res-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.rcard {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rcard-title { font-size: 15px; font-weight: 600; margin-bottom: 1rem; color: var(--black); }

.savings-bands { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }

.sband { border-radius: 10px; padding: 1.1rem; text-align: center; border: 1px solid; }
.sband.con { background: #f0fdf4; border-color: #bbf7d0; }
.sband.exp { background: #fff5f5; border-color: #fecaca; }
.sband.agg { background: #fffbeb; border-color: #fed7aa; }

.sband-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.con .sband-lbl { color: #15803d; }
.exp .sband-lbl { color: var(--red); }
.agg .sband-lbl { color: #d97706; }

.sband-val { font-size: 20px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.02em; color: var(--black); }
.sband-sub { font-size: 11px; color: var(--muted); }

.payback-banner {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}

.pb-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.pb-text { font-size: 13px; color: var(--body); line-height: 1.6; }
.pb-text strong { color: var(--black); font-weight: 600; }

.breakdown-rows { display: flex; flex-direction: column; gap: 12px; }

.brow-label {
  font-size: 13px; font-weight: 500; margin-bottom: 5px;
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--black);
}
.brow-label span { font-size: 12px; color: #15803d; font-weight: 600; }
.brow-track { height: 5px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; border: 1px solid var(--border-s); }
.brow-fill  { height: 100%; border-radius: 3px; background: var(--red); transition: width 0.6s ease; }
.brow-range  { display: flex; justify-content: space-between; font-size: 10px; color: var(--subtle); margin-top: 3px; }
.brow-source { font-size: 10px; color: var(--subtle); margin-top: 2px; }

.sc-rows { display: flex; flex-direction: column; gap: 14px; }
.sc-top  { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; align-items: center; }
.sc-name { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--black); }
.sc-dot  { width: 8px; height: 8px; border-radius: 50%; }
.sc-val  { font-weight: 700; font-size: 14px; }
.sc-bar  { height: 6px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; border: 1px solid var(--border-s); }
.sc-fill { height: 100%; border-radius: 3px; transition: width 0.7s ease; }
.sc-bench { font-size: 10px; color: var(--subtle); margin-top: 3px; }

.sc-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 9px; color: var(--muted);
  cursor: help; margin-left: 6px; flex-shrink: 0; position: relative;
}
.sc-info:hover .sc-tooltip { display: block; }
.sc-tooltip {
  display: none; position: absolute; bottom: 120%; left: 50%;
  transform: translateX(-50%);
  background: var(--black); color: #ffffff;
  border-radius: 8px; padding: 8px 10px;
  width: 220px; font-size: 11px; line-height: 1.5;
  z-index: 10; white-space: normal; text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gap-list { display: flex; flex-direction: column; gap: 10px; }

.gap-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-s);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex; gap: 12px;
}

.gap-sev       { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.gap-sev.high  { background: var(--red); }
.gap-sev.med   { background: #f59e0b; }
.gap-sev.low   { background: #22c55e; }

.gap-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; color: var(--black); }
.gap-desc  { font-size: 12px; color: var(--body); line-height: 1.55; }
.gap-fix   { font-size: 11px; color: var(--red); margin-top: 5px; font-weight: 500; }

.bench-rows { display: flex; flex-direction: column; gap: 12px; }
.bench-row  { display: flex; align-items: center; gap: 10px; }
.bench-lbl  { font-size: 12px; color: var(--body); width: 185px; flex-shrink: 0; }
.bench-track { flex: 1; height: 7px; background: var(--bg-soft); border-radius: 4px; position: relative; overflow: visible; border: 1px solid var(--border-s); }
.bench-you { height: 7px; border-radius: 4px; background: var(--red); position: absolute; top: 0; left: 0; transition: width 0.6s ease; }
.bench-med { position: absolute; top: -5px; width: 2px; height: 17px; background: #f59e0b; border-radius: 1px; }
.bench-rval { font-size: 11px; color: var(--muted); width: 130px; text-align: right; flex-shrink: 0; white-space: nowrap; }
.bench-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.bench-legend span { display: flex; align-items: center; gap: 5px; }
.bl-red { width: 10px; height: 4px; background: var(--red); border-radius: 2px; }
.bl-amb { width: 2px; height: 12px; background: #f59e0b; }

.capture-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 14px; }
.capture-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.capture-sub   { font-size: 13px; color: var(--body); margin-bottom: 1.25rem; line-height: 1.6; }
.capture-row   { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-input { flex: 1; min-width: 160px; background: #ffffff; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: var(--font); font-size: 14px; color: var(--black); outline: none; transition: border-color 0.2s; }
.capture-input:focus { border-color: var(--red); }
.capture-input::placeholder { color: #bbbbbb; }
.capture-btn { background: var(--red); border: none; border-radius: 8px; padding: 10px 20px; font-family: var(--font); font-size: 13px; font-weight: 600; color: #ffffff; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.capture-btn:hover { background: var(--red-dark); }
.capture-ok  { display: none; font-size: 12px; color: #15803d; margin-top: 8px; font-weight: 500; }
.capture-err { display: none; font-size: 11px; color: #dc2626; margin-top: 4px; }

.cta-band {
  background: var(--red);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.cta-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #ffffff; letter-spacing: -0.02em; }
.cta-sub   { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; line-height: 1.6; }
.cta-btn   { background: #ffffff; color: var(--red); border: none; border-radius: 8px; padding: 13px 32px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: transform 0.15s; }
.cta-btn:hover { transform: translateY(-1px); }
.cta-note  { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 8px; }

.cta-share { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.share-btn { background: rgba(255,255,255,0.15); color: #ffffff; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; padding: 7px 14px; font-family: var(--font); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.share-btn:hover { background: rgba(255,255,255,0.25); }

.res-footer { font-size: 11px; color: var(--subtle); text-align: center; line-height: 1.7; padding-bottom: 2rem; }
.res-footer a { color: var(--subtle); }

.assump-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 9px 16px; font-family: var(--font); font-size: 13px; color: var(--body); cursor: pointer; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.assump-body { margin-top: 8px; background: var(--bg-soft); border-radius: 8px; padding: 1rem 1.1rem; font-size: 12px; color: var(--muted); line-height: 1.65; border: 1px solid var(--border-s); }
.assump-body table { width: 100%; border-collapse: collapse; font-size: 12px; }
.assump-body td { padding: 6px 8px; border-bottom: 1px solid var(--border-s); }
.assump-body td:first-child { color: var(--muted); }
.assump-body td:last-child  { color: var(--black); text-align: right; font-weight: 500; }

@media(max-width:640px) {
  .res-grid2 { grid-template-columns: 1fr; }
  .res-hero  { grid-template-columns: 1fr; }
  .savings-bands { grid-template-columns: 1fr; }
  .capture-row { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
}


/* PDF render container */
#pdf-render{position:fixed;top:-99999px;left:-99999px;width:794px;background:#161C16;font-family:-apple-system,'Helvetica Neue',Arial,sans-serif;z-index:-1;display:none;padding-bottom:8px;}
