/* CanMyPanel — breaker-box precision: slate ink, volt yellow, copper wire */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F4F6F9; --bg-2: #EAEEF4; --surface: #fff; --surface-2: #F9FAFC;
  --line: #DFE4EC; --line-strong: #C7CFDB;
  --ink: #101A2B; --ink-2: #384559; --muted: #566176;
  --brand: #1D4ED8; --brand-700: #1E3A8A; --brand-50: #EAF0FF; --navy: #0B1424;
  --volt: #FACC15; --volt-50: #FEF9C3; --copper: #C2410C;
  --ok: #157F4B; --ok-bg: #E7F6EE; --warn: #8A5300; --warn-bg: #FFF4DB; --bad: #B42318; --bad-bg: #FDECEA;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,26,43,.05), 0 12px 30px -18px rgba(16,26,43,.25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } .num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; } .narrow { max-width: 780px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244,246,249,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-word span { color: var(--brand); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; } .btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-volt { background: var(--volt); color: var(--navy); } .btn-volt:hover { background: #EAB308; color: var(--navy); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); } .btn-ghost:hover { border-color: var(--brand); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; } .nav a { padding: 12px; }
  .header-cta { display: none; }
}
/* hero */
.hero { position: relative; background: radial-gradient(900px 420px at 90% -10%, #DCE6FF 0, transparent 60%), radial-gradient(600px 300px at 0 0, #FFF7D1 0, transparent 70%); padding: 56px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--brand-700); background: var(--brand-50); padding: 6px 10px; border-radius: 999px; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--volt) 62%); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 550; }
.chips a:hover { border-color: var(--brand); color: var(--brand-700); }
/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; padding: 24px 0 48px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.step-n { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--volt); display: inline-grid; place-items: center; font-size: .85rem; font-weight: 800; flex-shrink: 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .legend { font-weight: 650; font-size: .93rem; }
.hint { font-size: .84rem; color: var(--muted); }
input[type=number], input[type=email], input[type=text], input[type=password], select { font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--brand); outline: 3px solid var(--brand-50); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.seg legend { margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; min-width: 52px; min-height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-weight: 650; font-size: .92rem; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-50); }
.loads { display: grid; gap: 8px; }
.load { display: grid; grid-template-columns: auto 1fr 112px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.load.on { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-50); }
.load input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.load .lname { font-size: .93rem; font-weight: 550; }
.load .lname small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.load .va { position: relative; } .load .va input { padding-right: 34px; min-height: 38px; text-align: right; }
.load .va::after { content: "W"; position: absolute; right: 10px; top: 9px; color: var(--muted); font-size: .85rem; }
.load select { min-height: 38px; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 8px 0; }
.toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
details.help { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: #fff; }
details.help summary { cursor: pointer; font-weight: 650; color: var(--brand-700); }
.label-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.label-art figure { margin: 0; } .label-art figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
/* result */
.result { position: sticky; top: 80px; }
.verdict { border-radius: var(--radius); padding: 22px; color: #fff; background: radial-gradient(130% 140% at 0 0, #1E2D4A 0, var(--navy) 60%); box-shadow: var(--shadow); }
.verdict .lbl { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #9FB3D9; font-weight: 750; }
.verdict .big { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; margin: 8px 0 4px; }
.verdict .big small { font-size: 1.1rem; font-weight: 600; color: #C9D6F0; margin-left: 6px; }
.meter { height: 14px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin: 14px 0 8px; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transition: width .35s ease; }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; opacity: .8; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-weight: 750; font-size: .85rem; }
.pill.within { background: var(--ok-bg); color: var(--ok); } .pill.tight { background: var(--warn-bg); color: var(--warn); } .pill.over { background: var(--bad-bg); color: var(--bad); }
.m-within { background: linear-gradient(90deg, #22C55E, #4ADE80); } .m-tight { background: linear-gradient(90deg, #F59E0B, #FACC15); } .m-over { background: linear-gradient(90deg, #EF4444, #F97316); }
.verdict .line { font-size: 1.02rem; color: #E6ECF8; }
.disclaimer { font-size: .84rem; color: var(--ink-2); background: var(--volt-50); border: 1px solid #F3E39A; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .methods { grid-template-columns: 1fr; } }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mcard.best { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); }
.mcard h3 { font-size: .86rem; margin: 0 0 6px; color: var(--ink-2); }
.mcard .a { font: 800 1.6rem var(--display); }
.math { width: 100%; border-collapse: collapse; font-size: .9rem; }
.math td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.math td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.math tr.sub td { font-weight: 700; } .math tr.calc td:first-child { color: var(--brand-700); } .math tr.total td { font-weight: 800; border-top: 2px solid var(--ink); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { font: 600 .88rem var(--font); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.notes { font-size: .86rem; color: var(--ink-2); padding-left: 18px; } .notes li { margin: 4px 0; }
.fix { display: grid; gap: 10px; }
.fix .opt { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.fix .opt h3 { font-size: 1rem; margin-bottom: 4px; }
.cite { font-size: .76rem; font-weight: 700; color: var(--copper); letter-spacing: .02em; }
.warnbox { border: 1px solid #F0D7AE; background: var(--warn-bg); color: #5C3A00; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.order { counter-reset: o; list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.order li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.order li::before { counter-increment: o; content: counter(o); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--volt); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.order li .num { margin-left: auto; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
/* content */
.section { padding: 48px 0; } .section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.gcard { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .15s; }
.gcard:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.gcard h3 { margin-bottom: 6px; } .gcard p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.prose { font-size: 1.04rem; } .prose h2 { margin-top: 1.6em; } .prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg-2); }
.callout { border-left: 4px solid var(--volt); background: #fff; padding: 14px 16px; border-radius: 10px; margin: 1.2em 0; box-shadow: var(--shadow); }
.sources { font-size: .9rem; } .sources li { margin: 4px 0; word-break: break-word; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 20px 0 8px; } .crumbs a { color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } @media (max-width: 960px) { .price-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier.feat { border: 2px solid var(--ink); }
.tier .p { font: 800 2.2rem var(--display); } .tier .p small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.tier ul { padding-left: 18px; font-size: .93rem; flex: 1; } .soon { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--volt-50); color: #713F12; padding: 4px 8px; border-radius: 6px; align-self: flex-start; }
.wait { display: flex; gap: 10px; flex-wrap: wrap; } .wait input[type=email] { flex: 1 1 240px; } .hp { position: absolute; left: -9999px; }
.form-msg { font-size: .92rem; margin-top: 8px; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--bad); }
.site-footer { background: var(--navy); color: #C3CCDB; padding: 44px 0 30px; font-size: .92rem; margin-top: 40px; }
.site-footer a { color: #E4EAF5; } .site-footer .brand { color: #fff; } .site-footer .brand-word span { color: var(--volt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; } @media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; } .site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: 6px 0; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .84rem; }
/* worksheet */
.ws { background: #fff; max-width: 860px; margin: 24px auto; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ws h1 { font-size: 1.6rem; } .ws table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 18px; }
.ws th, .ws td { border: 1px solid #9AA4B2; padding: 6px 8px; text-align: left; } .ws td.r { text-align: right; font-variant-numeric: tabular-nums; }
.ws th { background: #EEF1F5; } .ws .blank { border-bottom: 1px solid #000; display: inline-block; min-width: 220px; height: 1.2em; }
.ws .hdr { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.ws .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; font-size: .9rem; }
.locked { position: relative; } .locked::after { content: "Permit-style PDF · Homeowner $9"; position: absolute; top: 8px; right: 8px; background: var(--volt); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
@media print {
  @page { size: letter; margin: .5in; }
  body { background: #fff; font-size: 11pt; } .site-header, .site-footer, .no-print, .skip-link { display: none !important; }
  .ws { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; } .locked::after { display: none; }
  .ws table { page-break-inside: auto; } .ws tr { page-break-inside: avoid; } a { color: #000; text-decoration: none; }
}
/* Accounts, paid tiers */
.acct { padding-top: 24px; }
.acct-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.acct-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.acct-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.acct-nav a[hidden] { display: none; }
.acct-nav .who { margin-left: auto; font-size: .85rem; color: var(--muted); padding: 0 8px; }
.btn-sm { padding: 6px 12px; font-size: .85rem; min-height: 0; }
.narrow-card { max-width: 480px; margin: 0 auto; }
.plan-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.joblist { list-style: none; padding: 0; margin: 14px 0 0; }
.joblist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.joblist li > a, .joblist li > span:first-child { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.joblist li span span, .joblist li a span { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.joblist .meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.okbox { background: var(--ok-bg); color: var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.locked-card { border: 2px dashed var(--line-strong); }
.job-head h1 { margin: 0 0 4px; }
#job-form { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; } @media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.brand-prev { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.brand-prev b { display: block; font: 800 1.15rem var(--display); } .brand-prev small { color: var(--muted); }
.bp-logo { flex: 0 0 auto; } .bp-logo img { max-width: 120px; max-height: 48px; display: block; }
.bp-logo span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--navy); color: var(--volt); font-weight: 800; border-radius: 8px; }
.share-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
#tpl-ov { display: flex; gap: 10px; align-items: center; } #tpl-ov select { flex: 1; }

.site-footer .fh { color: #fff; font: 750 .95rem var(--display); margin: 0 0 .5em; }
