/* UpWisely — styles */
:root {
  --navy: #0B1F3A;
  --navy-2: #14305A;
  --ink: #16233A;
  --muted: #5B6779;
  --line: #E3E8EF;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --green: #1FAF6B;
  --green-d: #138A53;
  --green-l: #E6F7EE;
  --amber: #F2A93B;
  --amber-l: #FFF4E0;
  --red: #D9534F;
  --red-l: #FDECEC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--green-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.light { color: rgba(255,255,255,.78); }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: 10px; padding: .7em 1.2em; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(31,175,107,.28); }
.btn-primary:hover { background: var(--green-d); }
.btn-accent { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-sm { padding: .5em .9em; font-size: .9rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { font-size: 1.35rem; color: var(--navy); font-weight: 500; letter-spacing: -.01em; }
.brand-word b { font-weight: 800; color: var(--green); }
.brand-word.light { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav a:hover { color: var(--green-d); }
@media (max-width: 860px) { .nav { display: none; } #navCta { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 85% -10%, #DDF5E8 0%, rgba(221,245,232,0) 60%), linear-gradient(#fff, var(--bg)); padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-d); background: var(--green-l); padding: .35em .8em; border-radius: 999px; margin-bottom: 16px; }
.eyebrow.light { color: #BFF0D6; background: rgba(255,255,255,.1); }
.hl { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.ticks { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px rgba(11,31,58,.28); transform: rotate(1.2deg); }
.hc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.8); }
.chip { background: rgba(255,255,255,.12); padding: .25em .7em; border-radius: 999px; font-size: .8rem; }
.hc-score { margin: 14px 0 2px; }
.hc-score b { font-size: 4rem; font-weight: 800; letter-spacing: -.03em; }
.hc-score span { color: rgba(255,255,255,.6); font-size: 1.2rem; }
.hc-pct { color: #9FE6C2; font-weight: 600; margin-bottom: 18px; }
.hc-bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin: 10px 0; font-size: .88rem; color: rgba(255,255,255,.8); }
.hc-bars i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.hc-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #3CC284, #7FD6A8); border-radius: 99px; }
.hc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.85); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 8px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-card { transform: none; } .hero { padding: 40px 0 48px; } }

/* Bands */
.band { padding: 72px 0; }
.band-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2 { color: #fff; }
.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title.left { text-align: left; margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-l); color: var(--green-d); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.feat .ico { font-size: 1.6rem; margin-bottom: 8px; }
.feat p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .features { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.price-card { background: #fff; border: 2px solid var(--green); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.price-tag { font-size: 3.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.price-tag span { font-size: 1.6rem; vertical-align: top; margin-right: 2px; }
.list-check { list-style: none; padding: 0; margin: 20px 0 24px; }
.list-check li { padding: 6px 0 6px 28px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

.pros { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.pros p { color: rgba(255,255,255,.8); }
.waitlist { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.waitlist label { font-weight: 700; display: block; margin-bottom: 10px; }
.wl-row { display: flex; gap: 8px; }
.wl-row input { flex: 1; min-width: 0; }
.wl-msg { min-height: 1.4em; margin-top: 8px; font-weight: 600; color: #9FE6C2; }
.wl-msg.err { color: #FFB4B0; }
@media (max-width: 860px) { .pros { grid-template-columns: 1fr; } }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

.footer { background: #08172C; color: rgba(255,255,255,.7); padding: 32px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 4px 0 0; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* Forms */
input, select { font: inherit; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,175,107,.15); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .err-text { color: var(--red); font-size: .84rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field.invalid .err-text { display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* App shell */
.app-pad { padding-top: 40px; padding-bottom: 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.demo-banner { background: var(--amber-l); border: 1px solid #F5D9A6; color: #7A5200; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 18px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.pay-methods label { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; font-weight: 600; font-size: .92rem; }
.pay-methods input { display: none; }
.pay-methods input:checked + span { color: var(--green-d); }
.pay-methods label:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.coupon-row { display: flex; gap: 8px; }
.coupon-msg { font-size: .85rem; margin-top: 6px; min-height: 1.2em; }
.coupon-msg.ok { color: var(--green-d); }
.coupon-msg.bad { color: var(--red); }
.success { text-align: center; padding: 40px 26px; }
.success .big { font-size: 3rem; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }

/* Assessment */
.stepper { display: flex; gap: 6px; margin-bottom: 8px; }
.stepper div { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.stepper div.done { background: var(--green); }
.stepper div.cur { background: linear-gradient(90deg, var(--green) 50%, var(--line) 50%); }
.step-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: #fff; }
.q.missing { border-color: var(--red); background: #FFFAFA; }
.q-title { font-weight: 600; margin-bottom: 12px; }
.q-num { color: var(--green-d); font-weight: 800; margin-right: 6px; }
.opts { display: grid; gap: 8px; }
.opts.cols2 { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: #B9C3D0; }
.opt input { width: auto; accent-color: var(--green); margin: 0; }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 4px; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--muted); }
.scale label b { display: block; font-size: 1.05rem; color: var(--navy); }
.scale input { display: none; }
.scale label:has(input:checked) { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.q-hint { color: var(--muted); font-size: .86rem; margin: -8px 0 12px; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.form-error { color: var(--red); font-weight: 600; margin-top: 12px; min-height: 1.2em; }
@media (max-width: 560px) { .opts.cols2 { grid-template-columns: 1fr; } .scale label { font-size: 0; } .scale label b { font-size: 1.05rem; } }

/* Report */
.rep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.rep-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }
.rep-meta { color: var(--muted); font-size: .9rem; }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rep-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 900px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }
.card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.overall { background: var(--navy); color: #fff; border: none; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.overall h2 { color: #fff; }
.overall .sub { color: rgba(255,255,255,.7); }
.gauge { width: 180px; height: 180px; }
.gauge text { font-family: inherit; }
.overall-copy .pct-line { font-size: 1.25rem; font-weight: 700; color: #9FE6C2; margin: 6px 0 12px; }
.overall-copy p { color: rgba(255,255,255,.82); margin-bottom: 8px; }
.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.high { background: var(--red-l); color: #A7302C; }
.pill.medium { background: var(--amber-l); color: #8A5A00; }
.pill.low, .pill.ok { background: var(--green-l); color: var(--green-d); }
.bench-row { margin-bottom: 20px; }
.bench-top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.bench-top .pc { color: var(--green-d); }
.track { position: relative; height: 12px; background: #EEF2F6; border-radius: 99px; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #3CC284, var(--green)); }
.track .mark { position: absolute; top: -5px; width: 2px; height: 22px; background: var(--navy); }
.track .mark.top { background: var(--amber); }
.bench-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.bench-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }
.mini-bars div { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; margin: 10px 0; font-size: .92rem; }
.mini-bars i { height: 8px; border-radius: 99px; background: #EEF2F6; position: relative; overflow: hidden; display: block; }
.mini-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy-2); border-radius: 99px; }
.mini-bars span:last-child { text-align: right; font-weight: 700; }
.radar { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.code-line { text-align: center; font-weight: 700; margin-top: 6px; }
.code-line b { color: var(--green-d); letter-spacing: .1em; font-size: 1.2rem; }
.code-desc { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.code-desc div { margin: 4px 0; }
.match { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.match.target { border-color: var(--green); background: var(--green-l); }
.match-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.match-top h3 { margin: 0; }
.fit { font-weight: 800; color: var(--green-d); font-size: 1.1rem; white-space: nowrap; }
.match .roles { font-size: .86rem; color: var(--muted); margin: 6px 0 10px; }
.fit-parts { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
table.gap { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.gap th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.gap td { padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lvl { display: inline-flex; gap: 3px; vertical-align: middle; }
.lvl i { width: 14px; height: 8px; border-radius: 2px; background: #E3E8EF; }
.lvl i.on { background: var(--navy-2); }
.lvl.need i.on { background: var(--green); }
.exp-list { list-style: none; padding: 0; margin: 14px 0 0; }
.exp-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.exp-list li:last-child { border: none; }
.exp-list .t { font-weight: 700; }
.exp-list .d { color: var(--muted); font-size: .9rem; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); position: relative; }
.phase .when { font-size: .78rem; font-weight: 700; color: var(--green-d); text-transform: uppercase; letter-spacing: .06em; }
.phase h3 { margin: 4px 0 12px; }
.phase ul { margin: 0; padding: 0; list-style: none; }
.phase li { padding: 8px 0 8px 22px; position: relative; font-size: .92rem; border-top: 1px solid var(--line); }
.phase li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border: 2px solid var(--green); border-radius: 3px; }
.phase li small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; margin-top: 2px; }
.pace { background: var(--green-l); color: var(--green-d); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } .overall { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.strength-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.strength-list span { background: var(--green-l); color: var(--green-d); padding: .4em .8em; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 22px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Print: just the report */
@media print {
  .topbar, .footer, .rep-actions, .toast, .demo-banner { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .overall { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-pad { padding-top: 0; padding-bottom: 0; }
}
