/* United Solar — site.css
   Identity: navy #10263F · gold #E8A83A · cloud #F2F4F7 · white
   Dark theme: ground = deep navy, surfaces = navy, text = white/cloud, gold accents
   Type: Public Sans 400 / 600 / 800 */

:root{
  --navy:#10263F; --navy-2:#1B3A5C; --gold:#E8A83A; --gold-2:#D3962B;
  --cloud:#F2F4F7; --white:#fff;
  --bg:#050D18; --surface:#0B1A2C; --surface-2:#10263F;
  --grad-surface:linear-gradient(180deg,var(--bg) 0,#0B1C30 140px,#0B1C30 calc(100% - 140px),var(--bg) 100%);
  --grad-card:linear-gradient(160deg,#142E4B 0%,#10263F 60%,#0E2138 100%); --line:rgba(255,255,255,.14); --muted:rgba(242,244,247,.68); --ink:#F2F4F7;
  --wrap:1120px; --r:8px;
  /* Text is one of two colours and no others: --ink for anything anybody has to read, --muted
     for genuinely secondary lines (captions, straplines, meta). Do not invent a third. */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:'Public Sans',system-ui,-apple-system,Segoe UI,sans-serif;font-size:17px;line-height:1.55;color:var(--muted);background:var(--bg);font-variant-numeric:tabular-nums}
/* Body copy sits at --muted; headings and links keep --ink, which is what gives the page its
   hierarchy now that the running text is quieter. */
h1,h2,h3{color:var(--ink)}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--gold)}
h1,h2,h3,h4{line-height:1.1;margin:0 0 .5em;letter-spacing:-.015em}
h1{font-size:clamp(34px,5.6vw,58px);font-weight:800}
h2{font-size:clamp(24px,3.4vw,34px);font-weight:800}
h3{font-size:21px;font-weight:600}
h4{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:16px;background:var(--gold);padding:8px 12px;z-index:99}

/* wordmark — SOLAR spaced to UNITED's width when stacked; inline in header */
.wordmark{font-weight:800;font-size:22px;letter-spacing:-.025em;color:#fff;font-kerning:none;font-feature-settings:"kern" 0}
.wordmark em{font-style:normal;font-weight:400;color:var(--muted)}

/* buttons */
.btn{display:inline-block;padding:7px 11px;border-radius:var(--r);font-weight:600;text-decoration:none;border:1px solid transparent;line-height:1.2;cursor:pointer;font-family:inherit;font-size:16px}
.btn-gold{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.btn-gold:hover{background:var(--gold-2);border-color:var(--gold-2);color:var(--navy)}
.btn-navy{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.btn-navy:hover{background:#fff;border-color:#fff;color:var(--navy)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-ghost:hover{border-color:#fff;color:#fff}
.btn-lg{padding:8px 14px;font-size:17px}
.btn:disabled{opacity:.6;cursor:wait}

/* header */
.site-head{position:sticky;top:0;z-index:20;background:rgba(5,13,24,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
/* The header is not body copy — it does not need the 1120px reading width, and the nav has
   outgrown it. Give it the window, within reason. */
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;height:54px;max-width:1400px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.site-nav{display:flex;align-items:center;gap:20px}
.site-nav a{text-decoration:none;font-weight:600;font-size:15px;color:var(--ink);white-space:nowrap}
.site-nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--gold)}
.site-nav .btn{padding:5px 8px;font-size:15px}
.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}
.nav-toggle span{display:block;width:24px;height:2px;background:#fff;margin:5px 0}
@media(max-width:1060px){
  .nav-toggle{display:block}
  /* As wide as its own longest item, against the left edge — not a full-width sheet. */
  .site-nav{display:none;position:absolute;left:0;right:auto;top:54px;width:max-content;
    min-width:200px;max-width:min(78vw,300px);background:var(--bg);
    border-right:1px solid var(--line);border-bottom:1px solid var(--line);
    box-shadow:0 12px 40px rgba(2,8,16,.55);border-bottom-right-radius:var(--r);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 20px 18px}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 0;border-bottom:1px solid var(--line);white-space:nowrap}
  .site-nav .btn{margin-top:14px;text-align:center}
}

/* hero */
.hero{background:var(--grad-surface);color:var(--muted);padding:72px 0 80px;position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr;gap:40px;align-items:center}
@media(min-width:880px){.hero-grid{grid-template-columns:1.25fr .75fr}}
.hero h1{color:var(--ink);margin-bottom:18px}
/* photo hero */
.hero-photo{padding:140px 0 150px;min-height:min(82vh,700px);display:flex;align-items:center}
@media(max-width:640px){.hero-photo{padding:72px 0 80px;min-height:0}}
.hero-bg{position:absolute;inset:0;z-index:0}
@media(min-width:880px){.hero-bg{right:-22%}}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:60% 38%}
.hero-photo::before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(5,13,24,0) 0%,rgba(5,13,24,0) 45%,rgba(5,13,24,.5) 72%,rgba(5,13,24,.9) 90%,var(--bg) 100%),
             linear-gradient(90deg,rgba(16,38,63,.72) 0%,rgba(16,38,63,.42) 34%,rgba(16,38,63,.08) 60%,rgba(16,38,63,0) 80%)}
@media(max-width:640px){.hero-bg img{object-position:42% 40%}.hero-photo::before{background:linear-gradient(180deg,rgba(16,38,63,.55) 0%,rgba(16,38,63,.4) 50%,rgba(5,13,24,.7) 85%,var(--bg) 100%)}}
.hero-photo .wrap{position:relative;z-index:2;width:100%}
.hero-photo .hero-grid{grid-template-columns:1fr}
.hero-photo h1,.hero-photo .lead{text-shadow:0 2px 16px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.5)}
.hero-photo .lead{color:var(--muted)}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:22px}
.lead{font-size:clamp(18px,2.2vw,22px);color:var(--muted);max-width:56ch}
.lead-sm{font-size:18px;color:var(--muted);max-width:56ch}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-mark{display:none}
@media(min-width:880px){.hero-mark{display:block;justify-self:end}.hero-mark img{width:300px;height:auto}}

/* sections */
.section{padding:104px 0}
.section-cloud{background:var(--grad-surface)}
.section-title{margin-bottom:32px}
.page-head{background:linear-gradient(180deg,#0C1F35 0%,#0B1C30 50%,var(--bg) 100%);color:var(--muted);padding:80px 0 88px}
.page-head h1{color:var(--ink)}
.page-head .lead{color:var(--muted)}

/* service lines (home) */
.lines{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:2px}
@media(min-width:700px){.lines{grid-template-columns:1fr 1fr}}
@media(min-width:1000px){.lines{grid-template-columns:repeat(4,1fr)}}
.lines li{background:#0B1C30;padding:0 24px 32px;border-top:3px solid var(--gold);display:flex;flex-direction:column;border-radius:var(--r);overflow:hidden}
.lines picture{display:block;margin:0 -24px 20px}
.lines picture .card-ill{width:100%;margin:0}
.lines > li > .card-ill{width:calc(100% + 48px);max-width:none;margin:0 -24px 20px}
.card-ill{height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.lines .num{font-size:13px;font-weight:600;letter-spacing:.12em;color:var(--muted);margin-bottom:14px}
.lines p{color:var(--muted);flex:1}
.lines a{font-weight:600;text-decoration:none}

/* how we work */
.how{display:grid;grid-template-columns:1fr;gap:40px}
@media(min-width:900px){.how{grid-template-columns:.9fr 1.1fr}}
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;display:grid;grid-template-columns:44px 44px 1fr;gap:0 16px;padding:18px 0;border-top:1px solid var(--line);align-items:start}
.steps img{grid-row:1/3;grid-column:2;width:44px;height:44px}
.steps li:last-child{border-bottom:1px solid var(--line)}
.steps li::before{content:counter(s,decimal-leading-zero);font-weight:800;font-size:22px;color:var(--gold);line-height:1.2;grid-row:1/3}
/* Direct children only: a <b> inside a step's text must stay inline, not become its own
   grid row. A descendant selector here was breaking emphasis onto separate lines. */
.steps > li > b,.steps > li > span{grid-column:3}
.steps > li > b{display:block;font-weight:600;font-size:18px;margin-bottom:2px}
.steps > li > span{color:var(--muted);font-size:16px}

/* proof strip */
.proof{background:var(--bg)}
.proof-row{display:grid;grid-template-columns:1fr 1fr;gap:2px}
@media(min-width:800px){.proof-row{grid-template-columns:repeat(4,1fr)}}
.proof-row div{padding:22px 24px;border-left:1px solid var(--line)}
.proof{padding:72px 0}
.proof-row div:first-child{border-left:0}
.proof-row b{display:block;font-weight:800;font-size:19px}
.proof-row span{color:var(--muted);font-size:15px}

/* cta band */
.cta-band{background:var(--grad-surface);color:var(--muted);text-align:center}
.cta-band h2{color:var(--ink)}
.cta-band p{color:var(--muted);max-width:56ch;margin:0 auto 24px}

/* services page */
.service-list{display:grid;gap:56px}
.service{display:grid;grid-template-columns:1fr;gap:16px;padding-top:32px;border-top:1px solid var(--line)}
@media(min-width:820px){.service{grid-template-columns:312px 1fr;gap:40px}}
.service-head .num{display:block;font-size:13px;font-weight:600;letter-spacing:.12em;color:var(--gold);margin-bottom:8px}
.service-fig{margin:20px 0 0}
.service-fig img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r);display:block}
@media(max-width:819px){.service-fig{max-width:432px}}
.service-body p:first-child{font-size:18px}
.ticks{list-style:none;margin:0 0 24px;padding:0}
.ticks li{padding:8px 0 8px 28px;position:relative;border-bottom:1px solid var(--line)}
.ticks li::before{content:"";position:absolute;left:0;top:15px;width:14px;height:8px;border-left:3px solid var(--gold);border-bottom:3px solid var(--gold);transform:rotate(-45deg)}

/* prose (about) */
.prose{max-width:70ch}
.prose h2{margin-top:36px;font-size:24px}
.prose h2:first-child{margin-top:0}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr;gap:48px}
@media(min-width:900px){.contact-grid{grid-template-columns:1.3fr .7fr}}
.contact-side{background:#0B1C30;padding:32px;align-self:start;border-top:3px solid var(--gold);border-radius:var(--r)}
.contact-side h2{font-size:22px}
.contact-side h3{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:22px 0 4px}
.contact-side .big{font-size:28px;font-weight:800}
.contact-side .big a{text-decoration:none}

/* form */
fieldset{border:0;padding:0;margin:0 0 28px}
legend{font-weight:800;font-size:20px;margin-bottom:16px;padding:0}
.field{margin-bottom:18px}
.row-2{display:grid;grid-template-columns:1fr;gap:0 18px}
@media(min-width:640px){.row-2{grid-template-columns:1fr 1fr}}
label,.label{display:block;font-weight:600;font-size:15px;margin-bottom:6px}
.opt{font-weight:400;color:var(--muted)}
input:not([type]),input[type=text],input[type=tel],input[type=email],input[type=password],input[type=search],input[type=number],input[type=date],input[type=month],input[type=url],select,textarea{width:100%;font:inherit;padding:6px 7px;border:1px solid rgba(255,255,255,.18);border-radius:var(--r);background:rgba(255,255,255,.08);color:var(--ink);color-scheme:dark}
/* A <select> is laid out with the browser's own line-height whatever `font: inherit` says, which
   leaves it a few pixels shorter than the inputs beside it and the row looking crooked. Pin the
   line-height on all of them and give the select the height that produces, so a select and an
   input in the same row are the same box. */
input:not([type]),input[type=text],input[type=tel],input[type=email],input[type=password],input[type=search],input[type=number],input[type=date],input[type=month],input[type=url],select,textarea{line-height:1.55}
select{min-height:calc(1.55em + 14px)}
/* A date field carries the browser's own calendar button, which makes it a couple of pixels
   taller than everything else in the row. Hold it to the same box. */
input[type=date],input[type=month],input[type=time],input[type=datetime-local]{height:calc(1.55em + 14px)}
/* A <select> and an <input list=…> each get an arrow from the browser, and they are not the same
   arrow: a thin chevron on one, a heavier filled triangle on the other, at different sizes and
   insets. Side by side in a row that reads as a mistake, so both are drawn here instead. */
select,input[list]{appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.4 1.8 6 6.2 10.6 1.8' fill='none' stroke='%23F2F4F7' stroke-opacity='.62' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;background-size:11px 7px;padding-right:30px}
/* Chrome's own indicator sits on top of ours; it is the triangle we are replacing. */
input[list]::-webkit-calendar-picker-indicator{opacity:0;width:20px;margin:0;cursor:pointer}
select::-ms-expand{display:none}
input::placeholder,textarea::placeholder{color:rgba(242,244,247,.45);opacity:1}
/* background-color, not the shorthand: the shorthand would drop the arrow painted on a select
   or a datalist input the moment it took focus. */
input:focus,select:focus,textarea:focus{outline:0;background-color:rgba(255,255,255,.12);border-color:var(--gold);box-shadow:0 0 0 2px rgba(232,168,58,.35)}
textarea{resize:vertical}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.choices label{margin:0;font-weight:500;cursor:pointer;position:relative}
.choices input{position:absolute;opacity:0;pointer-events:none}
.choices span{display:inline-block;padding:5px 8px;border:1px solid rgba(255,255,255,.18);border-radius:var(--r);background:rgba(255,255,255,.08);color:var(--ink)}
.choices input:checked + span{background:var(--gold);color:var(--navy);border-color:var(--gold);font-weight:600}
.choices label:hover span{background:rgba(255,255,255,.14)}
.choices input:focus-visible + span{box-shadow:0 0 0 3px rgba(232,168,58,.5)}
.consent label{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:15px;color:var(--muted)}
.consent input{margin-top:4px;flex:none}
.hp{position:absolute;left:-9999px;top:-9999px;height:0;overflow:hidden}
.field.error input,.field.error select,.field.error textarea,.field.error .choices span{border-color:#D4775A}
.err{color:#F5C9BC;font-size:14px;margin:6px 0 0}
.form-status{padding:7px 8px;border-radius:var(--r);margin-bottom:20px;font-weight:600}
.form-status.ok{background:rgba(46,139,87,.18);color:#BFE8CC;border-left:4px solid #2E8B57}
.form-status.bad{background:rgba(179,86,58,.18);color:#F5C9BC;border-left:4px solid #D4775A}
.small{font-size:14px;color:var(--muted);margin-top:12px}

/* footer */
.site-foot{background:var(--bg);color:var(--muted);padding:80px 0 32px;margin-top:0}
.foot-grid{display:grid;grid-template-columns:1fr;gap:32px}
/* Five columns once there is room for five; three in between, so nothing is left stranded
   on a row of its own. */
@media(min-width:800px){.foot-grid{grid-template-columns:1.2fr 1fr 1fr}}
@media(min-width:1100px){.foot-grid{grid-template-columns:1.2fr repeat(4,minmax(0,1fr))}}
/* The footer is a list of links; underlining every one of them is noise. Keep the underline
   for hover and keyboard focus, so it is still clear they are links. */
.site-foot a{color:var(--ink);text-decoration:none}
.site-foot a:hover,.site-foot a:focus-visible{text-decoration:underline}
.site-foot p{margin:0 0 6px;font-size:15px}
.foot-brand .wordmark{color:#fff;margin:12px 0 6px}
.foot-brand .wordmark em{color:var(--muted)}
.foot-brand .strap{font-weight:600;color:var(--gold)}
.foot-brand .strap span{font-weight:400;color:var(--muted)}
.foot-legal{border-top:1px solid rgba(255,255,255,.15);margin-top:40px;padding-top:20px}
.foot-legal p{font-size:13px;color:var(--muted)}

/* faq */
.faq-list{max-width:76ch}
.faq-item{border-top:1px solid var(--line);padding:22px 0}
.faq-item:last-child{border-bottom:1px solid var(--line)}
.faq-item h3{margin:0 0 8px;font-size:18px;font-weight:600}
.faq-item p{margin:0;color:var(--muted);max-width:66ch}

/* brand visuals (about) */
.brand-visuals{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:800px){.brand-visuals{grid-template-columns:1fr 1fr}}
.brand-visuals figure{margin:0}
.brand-visuals svg{width:100%;height:auto;display:block;border-radius:var(--r);border:1px solid var(--line)}
.brand-visuals figcaption{font-size:14px;color:var(--muted);margin-top:10px}

/* lightbox */
.zoom{display:block;cursor:zoom-in;text-decoration:none}
.lines picture{margin:0}
.lines > li > .zoom{margin:0 -24px 20px}
.lines > li > .zoom .card-ill{width:100%;max-width:none;margin:0}
.lightbox{cursor:zoom-out;border:0;padding:0;background:transparent;max-width:min(96vw,1400px);max-height:96vh;width:auto;height:auto;overflow:visible}
.lightbox::backdrop{background:rgba(2,7,14,.95)}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.lightbox img{max-width:min(96vw,1400px);max-height:84vh;width:auto;height:auto;border-radius:var(--r);box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox figcaption{color:var(--ink);font-size:15px;text-align:center;max-width:70ch;padding:0 16px}
.lightbox .close{position:fixed;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;font-size:26px;line-height:44px;cursor:pointer;font-family:inherit}
.lightbox .close:hover{background:var(--gold);color:var(--navy)}

/* image hover — subtle zoom + lift on services figures and home cards */
.zoom{overflow:hidden;border-radius:var(--r);transition:transform .35s ease,box-shadow .35s ease}
.zoom img{transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .6s ease;will-change:transform}
@media(hover:hover){
  .zoom:hover,.zoom:focus-visible{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 0 2px var(--gold)}
  .zoom:hover img,.zoom:focus-visible img{transform:scale(1.06);filter:brightness(1.08)}
}
.lines > li > .zoom{border-radius:0}
.lines > li > .zoom img{border-radius:0}
.zoom:focus-visible{outline:0}
@media(prefers-reduced-motion:reduce){.zoom,.zoom img{transition:none}.zoom:hover img{transform:none}.zoom:hover{transform:none}}

/* button motion — small lift + glow on hover, press on click */
.btn{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}
@media(hover:hover){
  .btn:hover{transform:translateY(-2px)}
  .btn-gold:hover{box-shadow:0 6px 18px rgba(232,168,58,.35)}
  .btn-navy:hover,.btn-ghost:hover{box-shadow:0 6px 18px rgba(0,0,0,.35)}
}
.btn:active{transform:translateY(0) scale(.98);box-shadow:none;transition-duration:.08s}
.btn:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(232,168,58,.45)}
@media(prefers-reduced-motion:reduce){.btn{transition:none}.btn:hover,.btn:active{transform:none}}

@media(max-width:640px){.section{padding:72px 0}.page-head{padding:56px 0 64px}.proof{padding:48px 0}.site-foot{padding:56px 0 24px}}

/* header login / user */
.site-nav .nav-user{font-size:14px;font-weight:400;color:var(--muted);display:inline-flex;align-items:center;gap:6px;padding-left:14px;border-left:1px solid var(--line)}
.site-nav .nav-user:hover{color:var(--ink)}
.site-nav .nav-user .dot{width:8px;height:8px;border-radius:50%;background:#2E8B57;box-shadow:0 0 0 3px rgba(46,139,87,.25)}
@media(max-width:1060px){.site-nav .nav-user{border-left:0;padding-left:0;padding:12px 0}}

/* partners page */
.steps-plain li{grid-template-columns:36px 1fr}
.steps-plain li::before{font-size:18px}
.steps-plain > li > b,.steps-plain > li > span{grid-column:2}

/* coming soon */
.soon{position:relative;overflow:hidden;min-height:calc(100vh - 54px);display:flex;align-items:center;color:var(--muted);padding:96px 0}
.soon .hero-bg{position:absolute;inset:0;z-index:0}
.soon .hero-bg img{width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.soon::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(5,13,24,.55) 0%,rgba(5,13,24,.35) 45%,rgba(5,13,24,.92) 100%)}
.soon-inner{position:relative;z-index:2;max-width:760px;text-align:center;margin:0 auto}
.soon-mark{margin:0 auto 28px;width:92px;height:auto}
.soon h1{color:var(--ink);margin-bottom:18px;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.soon .lead{margin:0 auto 28px;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.soon .cta-row{justify-content:center}
.soon-contact{list-style:none;margin:40px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;font-size:15px;color:var(--muted)}
.soon-contact a{color:var(--ink)}
.soon-strap{margin:36px 0 0;font-weight:600;color:var(--gold)}
.soon-strap span{font-weight:400;color:var(--muted);margin-left:8px}

body.bare .soon{min-height:100vh}
.soon-contact{flex-direction:column;align-items:center;gap:8px}
.soon-contact li{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;justify-content:center}
.soon-contact .k{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);min-width:74px;text-align:right}

/* Installer partner programme */
.head-cta{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}
.crumb{margin:0 0 12px}
.crumb a{color:var(--muted);text-decoration:none;font-size:15px}
.crumb a:hover{color:var(--gold)}
.sla-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.sla-card{background:var(--grad-surface);border:1px solid var(--line);border-radius:var(--r);padding:22px 24px}
.sla-card h3{margin:0 0 8px;font-size:18px;color:var(--gold)}
.sla-card p{margin:0;color:var(--muted)}
.two-col{display:grid;grid-template-columns:minmax(0,1fr);gap:48px}
@media(min-width:900px){.two-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:56px}}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.rate-table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
.rate-table th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:0 14px 10px 0;border-bottom:1px solid var(--line)}
.rate-table td{padding:12px 14px 12px 0;border-bottom:1px solid var(--line);vertical-align:top}
.rate-table tr:last-child td{border-bottom:0}
.pri{display:inline-block;font-size:12px;font-weight:600;border-radius:6px;padding:2px 8px;white-space:nowrap}
.pri-critical{background:rgba(217,83,79,.18);color:#E98A86;border:1px solid rgba(217,83,79,.5)}
.pri-high{background:rgba(232,168,58,.14);color:var(--gold);border:1px solid rgba(232,168,58,.45)}
.pri-medium{background:rgba(74,144,224,.14);color:#7FB2EC;border:1px solid rgba(74,144,224,.45)}
.pri-low{background:rgba(255,255,255,.06);color:var(--muted);border:1px solid var(--line)}
.ticks.tight li{padding:6px 0 6px 28px}
.ticks.tight li::before{top:13px}
/* Two shapes share this name: a full-width band (`section.cta-band`, on the home page) and a
   narrow centred block inside a section (`div.wrap.cta-band`, on care and partners). Only the
   narrow one gets capped — unscoped, this was shrinking the band's background to 640px and
   leaving the rest of the row as bare page, which read as a second column. */
.wrap.cta-band{text-align:center;max-width:640px}
.cta-band h2{margin-bottom:12px}
.legend-note{display:block;font-weight:400;font-size:14px;color:var(--muted);margin-top:4px}
.row-3{display:grid;grid-template-columns:minmax(0,1fr);gap:0 16px}
@media(min-width:640px){.row-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Login and portal */
.login-wrap{max-width:460px}
.login-section{padding-top:72px}
.login-form{margin-top:20px}
.dash-portal .stats{margin-top:0}
.dash-portal .card{background:var(--grad-surface);border:1px solid var(--line);border-radius:var(--r);padding:24px;margin-bottom:20px}
.dash-portal .tbl{width:100%;border-collapse:collapse;font-size:15px}
.dash-portal .tbl th{text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0 12px 8px 0;border-bottom:1px solid var(--line)}
.dash-portal .tbl td{padding:10px 12px 10px 0;border-bottom:1px solid var(--line)}
.dash-portal .stat{display:block;background:#0B1C30;border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;text-decoration:none}
.dash-portal .stat b{display:block;font-size:clamp(22px,2.4vw,32px);font-weight:800;line-height:1;white-space:nowrap}
.dash-portal .stat span{color:var(--muted);font-size:14px}
.dash-portal .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0 0 28px}
.dash-portal .actions,.dash-portal .crumbs{display:none}
.page-head.short{padding:40px 0 20px}
.dash-portal .page-title{display:block;margin-bottom:22px}
.dash-portal .page-title h1{font-size:clamp(28px,4vw,40px)}
.dash-portal .help{color:var(--muted);font-size:13px}

/* United Care plan prices */
.care-price{font-size:30px;font-weight:800;color:var(--gold);display:inline-block}
.care-per{color:var(--muted);font-size:15px}
.sla-card .care-price + .care-per{margin-left:4px}

/* Affiliate's own referrals — one row each, opening onto what they may change */
.ref-list{display:grid;gap:10px}
.ref-item{border:1px solid var(--line);border-radius:var(--r);background:rgba(255,255,255,.02)}
.ref-item > summary{display:grid;grid-template-columns:2fr 1.2fr 1fr;gap:12px;align-items:center;
  padding:14px 18px;cursor:pointer;list-style:none}
.ref-item > summary::-webkit-details-marker{display:none}
.ref-item > summary::after{content:'';justify-self:end}
.ref-item[open] > summary{border-bottom:1px solid var(--line)}
.ref-item summary b{display:block}
.ref-item summary small{display:block;color:var(--muted);font-size:14px}
.ref-item.closed > summary{opacity:.75}
.ref-body{padding:16px 18px 20px}
.ref-withdraw{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.ref-withdraw .field{flex:1 1 260px;margin:0}
@media (max-width:640px){ .ref-item > summary{grid-template-columns:1fr 1fr;gap:8px} .ref-fee{grid-column:1 / -1} }
.ref-progress{margin:0 0 16px;padding:10px 14px;border-left:3px solid var(--gold);background:rgba(232,168,58,.07)}
.ref-track{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:0;counter-reset:rt}
.ref-track li{flex:1 1 130px;min-width:120px;padding:8px 10px;border-radius:6px;font-size:14px;
  color:var(--muted);background:rgba(255,255,255,.03);border:1px solid var(--line)}
.ref-track li.done{color:var(--text);border-color:rgba(232,168,58,.35)}
.ref-track li.done::before{content:'✓ ';color:var(--gold)}
.ref-track li.now{color:#0b1c30;background:var(--gold);border-color:var(--gold);font-weight:700}
.ref-progress.was-client{border-left-color:#D4775A;background:rgba(212,119,90,.1)}

/* ---- Bottom tab bar (phones only) -----------------------------------------------------------
   Five things within thumb reach. The nav row handles anything wider, so this only exists where
   reaching the top of the screen is awkward. */
.tabbar{display:none}
@media(max-width:720px){
  .tabbar{
    display:grid;grid-template-columns:repeat(5,1fr);
    position:fixed;left:0;right:0;bottom:0;z-index:40;
    background:rgba(5,13,24,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    padding-bottom:env(safe-area-inset-bottom,0);
  }
  .tabbar a,.tabbar button{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    min-height:56px;padding:7px 2px 8px;text-decoration:none;
    background:none;border:0;font:inherit;cursor:pointer;
    color:var(--muted);font-size:11px;font-weight:600;line-height:1.1;text-align:center;
  }
  .tabbar svg{width:22px;height:22px}
  .tabbar a[aria-current="page"],.tabbar button[aria-expanded="true"]{color:var(--gold)}
  .tabbar a:active,.tabbar button:active{background:rgba(255,255,255,.05)}
  /* so the last thing on the page is not hidden behind the bar */
  body{padding-bottom:calc(56px + env(safe-area-inset-bottom,0))}
  .site-foot{margin-bottom:0}
  /* the drawer has to stop above the bar, not under it */
  .site-nav.open{max-height:calc(100vh - 54px - 56px);overflow-y:auto}
}

/* The browser's own [hidden]{display:none} lives in the user-agent stylesheet, so ANY author rule
   beats it — .btn{display:inline-block} was enough to keep a hidden button on screen. Everything
   that sets the hidden property relies on this. */
[hidden] { display: none !important; }

/* A discounted price on a quote or invoice the client sees. */
.price-was{text-decoration:line-through;opacity:.65}

/* The installer's logo, in their portal and on the client's invoice. */
.logo-box{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 0 28px;padding:16px;border:1px solid var(--line);border-radius:8px}
.logo-box .logo-now{max-width:220px;height:auto;max-height:56px;background:rgba(255,255,255,.06);border-radius:6px;padding:6px}
.logo-box .up-form{display:flex;align-items:center;gap:8px;margin:0}
/* Two panels at the top of a quote or invoice: us, and the installer who will be on the roof.
   Side by side where there is room, stacked on a phone, and never split across a page break. */
.ag-parties.has-partner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch;text-align:left}
.ag-parties.has-partner .ag-letterhead{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:8px}
.ag-parties.has-partner .ag-mark{margin:0 0 10px}
.ag-partner{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:8px}
.ag-partner img{max-width:140px;max-height:48px;height:auto;flex:0 0 auto}
.ag-partner .ap-who{margin:0;font-size:14px;line-height:1.45}
.ag-partner .ap-badge{display:block;font-weight:700;font-size:13px;color:var(--gold);margin:0 0 2px}
@media(max-width:720px){
  .ag-parties.has-partner{grid-template-columns:minmax(0,1fr)}
  .ag-partner{flex-wrap:wrap}
}
@media print{
  .ag-partner,.ag-parties{break-inside:avoid}
  .ag-parties.has-partner .ag-letterhead,.ag-partner{border-color:#999}
}

/* Number fields are typed in, not nudged. The spinners are a 12px target that appears on hover,
   moves the value by a step nobody chose, and swallows a scroll aimed at the page. */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}
