/* autosolarservice.com: customer site.
   Direction: an Imperial Valley noon printed as a utility rate schedule.
   Bleached sand ground, ink type, one hot accent (the sun), one cool one (canal teal).
   The price list is the centerpiece, so the page is set like a printed tariff:
   serif display, hyperlegible body, mono for every number that is computed. */

:root {
  --sand: #f3ebdd;
  --paper: #fbf7ef;
  --dune: #e8dcc6;
  --ink: #1b1611;
  --ink-2: #574c40;
  --ink-3: #85786a;
  --rule: #d6c7ae;
  --sun: #d8480f;
  --sun-2: #f08a24;
  --canal: #0d5a55;
  --urgent: #b3261e;
  --high: #b86200;
  --std: #0d5a55;
  --low: #6f6557;
  --night: #15120f;
  --night-2: #221d18;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 72rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --bar-h: 3.6rem;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.small { font-size: .9rem; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.narrow { max-width: 46rem; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* ---------------------------------------------------------------- bar -- */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--gut);
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.bar__mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.bar__glyph { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.bar__nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .95rem; }
.bar__nav a { text-decoration: none; color: var(--ink-2); }
.bar__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------------------------------------------------------------- btn -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .7rem 1.25rem;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--sun); border-color: var(--sun); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { min-height: 2.3rem; padding: .35rem 1rem; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(180deg, transparent 0 70%, color-mix(in srgb, var(--dune) 60%, transparent) 100%),
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--rule) 45%, transparent) 27px 28px);
}
.hero__sun {
  position: absolute; right: -14vmax; top: -18vmax;
  width: 52vmax; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--sun-2) 0 28%, transparent 28.4%),
    repeating-radial-gradient(circle, color-mix(in srgb, var(--sun) 26%, transparent) 0 2px, transparent 2px 22px);
  opacity: .75;
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  animation: sun-in 1.6s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes sun-in { from { transform: translate(6vmax, 8vmax) scale(.86); opacity: 0; } }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.eyebrow { font: 600 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--canal); }
.hero__h {
  margin-top: 1rem;
  font: 400 clamp(2.4rem, 6vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__h em { font-style: normal; color: var(--sun); }
.hero__sub { margin-top: 1.4rem; max-width: 36rem; font-size: 1.15rem; color: var(--ink-2); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.rise { animation: rise .8s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* the price ticket: a torn rate stub */
.ticket {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: 8px 8px 0 var(--ink);
}
.ticket::after {
  content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: 3.1rem;
  border-top: 1.5px dashed var(--rule);
}
.ticket__h { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.ticket__h .mono { font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.ticket__price { margin-top: .6rem; font: 400 clamp(4.2rem, 9vw, 6rem)/.95 var(--display); letter-spacing: -.03em; }
.ticket__cur { font-size: .45em; vertical-align: .95em; margin-right: .06em; }
.ticket__c { font-size: .45em; vertical-align: .95em; }
.ticket__per { margin-top: .4rem; color: var(--ink-2); }
.ticket__list { list-style: none; padding: 0; margin: 1rem 0 1.7rem; display: grid; gap: .35rem; }
.ticket__list li { padding-left: 1.4rem; position: relative; }
.ticket__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 22%, transparent); }
.ticket__foot { font-size: .75rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .ticket { max-width: 26rem; }
}

/* -------------------------------------------------------------- night -- */
.night {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(240, 138, 36, .10), transparent 60%),
    var(--night);
  color: #efe6d6;
  padding-block: clamp(3rem, 7vw, 5rem) 1.5rem;
}
.night__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sec__h--light { color: #fbf3e4; }
.night__p { margin-top: 1rem; color: #cbbfae; max-width: 32rem; }
.log { list-style: none; padding: 0; border-left: 1px solid #4a4037; }
.log li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 1rem; padding: .8rem 0 .8rem 1.2rem; position: relative; border-bottom: 1px solid #2e2721; }
.log li::before { content: ""; position: absolute; left: -5px; top: 1.25rem; width: 9px; height: 9px; border-radius: 50%; background: #6b5d4f; }
.log li.is-hot::before { background: var(--sun-2); box-shadow: 0 0 0 5px rgba(240, 138, 36, .2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(240, 138, 36, 0); } }
.log__t { color: var(--sun-2); font-size: .85rem; padding-top: .15rem; }
.log b { display: block; color: #fbf3e4; }
.log span span, .log li > span:last-child { color: #b8ac9b; font-size: .95rem; }
.night__note { margin-top: 1.4rem; font-size: .72rem; color: #7d7163; }
@media (max-width: 860px) { .night__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- sections -- */
.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.sec--sand { background: var(--dune); }
.sec__h { font: 400 clamp(2rem, 4.2vw, 3.1rem)/1.05 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.sec__sub { margin-top: .9rem; max-width: 40rem; color: var(--ink-2); font-size: 1.08rem; }

.cols3 { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.col { padding: 1.4rem 1.4rem 0 0; }
.col + .col { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.col__h { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; display: flex; gap: .7rem; align-items: baseline; }
.num { font: 500 .8rem var(--mono); color: var(--sun); }
.col p + p { margin-top: .8rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: .75rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--canal); border-bottom: 2px solid var(--canal); transform: rotate(-45deg); }
.ticks--plain li::before { width: .55rem; height: 2px; border: 0; background: var(--ink-3); transform: none; top: .8em; }
.ticks b { font-weight: 700; }
.col .small { margin-top: 1rem; }
@media (max-width: 860px) {
  .cols3 { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 1.4rem 0; border-left: 0; }
  .col + .col { border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------------------- prices -- */
.prices__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.formula { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--sand); }
.formula div { text-align: center; }
.formula dt { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.formula dd { margin: 0; font: 500 1rem var(--mono); }
.formula .op { font: 600 1.3rem var(--mono); color: var(--sun); }

.filters { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }
.search input {
  width: min(24rem, 100%); min-height: 2.8rem; padding: .5rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff;
}
.search { flex: 1 1 16rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--rule); background: var(--paper); border-radius: 999px;
  padding: .35rem .8rem; font-size: .88rem; cursor: pointer; min-height: 2.2rem;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font: 500 .75rem var(--mono); opacity: .6; margin-left: .3rem; }

.catalog { margin-top: 1.6rem; border-top: 1.5px solid var(--ink); }
.cat-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.4rem 0 .5rem; border-bottom: 1px solid var(--ink);
  font: 400 1.35rem var(--display);
}
.cat-h .mono { font-size: .75rem; color: var(--ink-3); }
.row { border-bottom: 1px solid var(--rule); }
.row > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 7.5rem 7.5rem;
  gap: 1rem; align-items: center; padding: .85rem .25rem;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary:hover { background: color-mix(in srgb, var(--dune) 45%, transparent); }
.row__t b { display: block; font-weight: 600; }
.row__t span { font-size: .88rem; color: var(--ink-3); }
.row__p { font: 500 1.05rem var(--mono); text-align: right; }
.row__p small { display: none; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.row__p--ah { color: var(--urgent); }
.row__p--na { color: var(--ink-3); font-size: .8rem; }
.row__calc { padding: 0 .25rem 1rem; display: grid; gap: .25rem; font: 400 .85rem var(--mono); color: var(--ink-2); max-width: 36rem; }
.row__calc div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--rule); padding: .2rem 0; }
.row__calc .tot { color: var(--ink); font-weight: 600; border-bottom: 0; }
.row__calc .code { color: var(--ink-3); font-size: .75rem; margin-top: .3rem; border: 0; }
.sev { display: inline-block; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.sev--C { color: var(--urgent); background: color-mix(in srgb, var(--urgent) 8%, transparent); }
.sev--H { color: var(--high); }
.sev--M { color: var(--std); }
.sev--L { color: var(--low); }
.sev--I { color: var(--ink-3); border-style: dashed; }
.row__p--inc { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--canal); }
.row--info .row__t b { font-weight: 400; color: var(--ink-2); }
.more { display: block; width: 100%; margin: .2rem 0 .4rem; padding: .7rem .25rem; text-align: left; background: none; border: 0; border-bottom: 1px dashed var(--rule); cursor: pointer; font: 600 .9rem var(--body); color: var(--sun); }
.more::after { content: " ↓"; }
.more:hover { background: color-mix(in srgb, var(--dune) 45%, transparent); }
.catalog__empty { padding: 1.5rem 0; color: var(--ink-3); }
.legend { margin-top: 1.6rem; display: grid; gap: .6rem; max-width: 50rem; font-size: .95rem; }
.legend .sev { margin-right: .3rem; }

.cols-head { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 7.5rem 7.5rem; gap: 1rem; padding: .6rem .25rem 0; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cols-head span:nth-child(n+3) { text-align: right; }

@media (max-width: 700px) {
  .cols-head { display: none; }
  .row > summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "s p" "s a"; row-gap: .45rem; }
  .row__t { grid-area: t; }
  .row__s { grid-area: s; align-self: start; }
  .row__p--bh { grid-area: p; }
  .row__p--ah, .row__p--na { grid-area: a; }
  .row__p--na { display: none; }
  .row__p small { display: block; }
  .formula { width: 100%; justify-content: space-around; }
}

/* ---------------------------------------------------------------- who -- */
.who { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.who__card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; display: grid; align-content: start; gap: .7rem; transition: transform .25s ease, box-shadow .25s ease; }
.who__card:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px var(--dune); }
.who__tag { font-size: .75rem; color: var(--sun); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.who__card h3 { font: 400 1.45rem/1.15 var(--display); }
.who__card p:last-child { color: var(--ink-2); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- area -- */
.area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.counties { list-style: none; padding: 0; margin: 1.6rem 0 1.2rem; display: grid; gap: .9rem; }
.counties li { display: grid; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--r); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.counties b { display: flex; align-items: center; gap: .6rem; }
.counties b::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 22%, transparent); }
.counties b { font: 400 1.35rem var(--display); }
.counties span { color: var(--ink-2); font-size: .95rem; }
.elsewhere { background: var(--night); color: #efe6d6; border-radius: var(--r); padding: 1.8rem; display: grid; gap: 1rem; justify-items: start; }
.elsewhere .eyebrow { color: var(--sun-2); }
.elsewhere p:not(.eyebrow) { color: #cbbfae; }
.elsewhere .btn--ghost { color: #fbf3e4; border-color: #fbf3e4; }
.elsewhere .btn--ghost:hover { background: var(--sun); border-color: var(--sun); }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- faq -- */
#faq details { border-bottom: 1px solid var(--rule); }
#faq details:first-of-type { margin-top: 1.8rem; border-top: 1.5px solid var(--ink); }
#faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-weight: 600; font-size: 1.08rem; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem; font: 400 1.6rem var(--display); color: var(--sun); transition: transform .2s ease; }
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 40rem; }

/* ------------------------------------------------------------- enroll -- */
.enroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.enroll__intro > p { margin-top: 1rem; color: var(--ink-2); }
.next { margin: 1.4rem 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: .8rem; }
.next li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; }
.next li::before { content: "0" counter(n); font: 500 .85rem var(--mono); color: var(--sun); padding-top: .15rem; }
.form { display: grid; gap: 1rem; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: 8px 8px 0 var(--dune); }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 2.8rem; padding: .55rem .8rem;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 2px solid color-mix(in srgb, var(--sun) 40%, transparent); outline-offset: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { font-weight: 600; font-size: .92rem; margin-bottom: .45rem; padding: 0; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .4rem 1rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--paper); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.form__err { color: var(--urgent); font-weight: 600; }
.sent { background: #fff; border: 1.5px solid var(--canal); border-radius: var(--r); padding: 1.6rem; display: grid; gap: .5rem; }
.sent b { font: 400 1.6rem var(--display); color: var(--canal); }
.sent .small { margin-top: .3rem; }
@media (max-width: 860px) { .enroll { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- footer -- */
.foot { background: var(--night); color: #cbbfae; padding-block: 2.5rem 1.5rem; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.foot__brand { font: 400 1.5rem var(--display); color: #fbf3e4; }
.foot .small { color: #9b8f80; }
.foot__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.foot__links a { color: #efe6d6; text-underline-offset: 4px; }
.foot__fine { margin-top: 2rem; font-size: .72rem; color: #7d7163; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
