/* SolarPayback — "Golden Hour" warm / optimistic energy aesthetic
   Fraunces (display) + Figtree (body) + IBM Plex Mono (numbers)
   Warm cream paper · amber sun · sky blue · savings green */

:root {
  --paper: #fdf8ee;
  --paper-2: #f7efdf;
  --paper-3: #f0e4cd;
  --ink: #2a2013;
  --ink-soft: #5c4f3c;
  --ink-faint: #938468;
  --sun: #f4a521;
  --sun-deep: #dd8409;
  --sky: #2f93d6;
  --sky-deep: #1f6fa8;
  --leaf: #2ba364;
  --leaf-deep: #1f8350;
  --rule: #e3d4b6;
  --shadow: rgba(80, 55, 15, 0.10);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { color: var(--sun-deep); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.leaf { color: var(--leaf-deep); }

/* ---------- masthead ---------- */
.masthead { background: rgba(253,248,238,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; padding: 13px 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: block; object-fit: contain; }
.brand .brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-dot { color: var(--sun-deep); }

.nav-desktop { display: flex; gap: 26px; align-items: center; }
.nav-desktop a { font-family: 'Figtree', sans-serif; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.nav-desktop a:hover { color: var(--sun-deep); }
.nav-desktop a.nav-cta { color: #4a2f00; background: var(--sun); padding: 9px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 3px 0 var(--sun-deep); }
.nav-desktop a.nav-cta:hover { color: #4a2f00; transform: translateY(1px); box-shadow: 0 2px 0 var(--sun-deep); }

.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; margin-right: -8px; background: none; border: 0; cursor: pointer; padding: 11px; }
  .nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 3px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-mobile { display: block; border-top: 1px solid var(--rule); background: var(--paper); }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile a { display: block; padding: 16px 28px; font-size: 1.06rem; font-weight: 500; color: var(--ink); border-top: 1px solid var(--paper-3); }
  .nav-mobile a.nav-mobile-cta { color: #4a2f00; background: var(--sun); font-weight: 700; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1100px 460px at 78% -8%, rgba(244,165,33,0.30), transparent 60%),
    radial-gradient(700px 360px at 12% 8%, rgba(47,147,214,0.10), transparent 62%),
    var(--paper);
  padding: 66px 0 74px; border-bottom: 1px solid var(--rule); }
.sunburst { position: absolute; top: -90px; right: -60px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,165,33,0.55), rgba(244,165,33,0) 62%); pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun-deep); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.02; margin: 0 0 22px; max-width: 15ch; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--sun-deep); }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 40ch; color: var(--ink-soft); margin: 0 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } .lede { max-width: 52ch; } }

/* ---------- order card ---------- */
.order-card { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 26px 26px 24px; box-shadow: 0 24px 50px -28px var(--shadow); }
.order-card h2 { font-size: 1.35rem; margin: 0 0 4px; }
.order-card .sub { color: var(--ink-faint); font-size: 0.92rem; margin: 0 0 18px; }
.orderform label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 5px; color: var(--ink); }
.orderform label .opt { color: var(--ink-faint); font-weight: 400; }
.orderform input, .orderform select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 11px; font-size: 1rem; font-family: inherit; background: var(--paper); color: var(--ink); }
.orderform input:focus, .orderform select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(244,165,33,0.2); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 0.82rem; color: var(--ink-faint); margin: 5px 0 0; }
.btn { display: inline-block; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; transition: transform .12s, box-shadow .2s; }
.btn.primary { background: var(--sun); color: #4a2f00; box-shadow: 0 4px 0 var(--sun-deep); }
.btn.primary:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--sun-deep); color: #4a2f00; }
.btn.big { padding: 15px 30px; font-size: 1.06rem; }
.btn.leaf { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-deep); }
.btn.leaf:hover { color: #fff; transform: translateY(1px); box-shadow: 0 3px 0 var(--leaf-deep); }
.submit-row { margin-top: 20px; }
.submit-row .btn { width: 100%; text-align: center; }
.subnote { display: block; text-align: center; font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px; }
.order-status { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; background: var(--paper-2); }
.order-status.err { background: #fdecec; color: #a3312a; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- trust chips under hero ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.chip { font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

/* ---------- sections ---------- */
section.band { padding: 70px 0; border-bottom: 1px solid var(--rule); }
section.band.alt { background: var(--paper-2); }
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sun-deep); font-weight: 600; }
.band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0 14px; color: var(--ink); max-width: 20ch; }
.band .intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 30px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.card .num { font-family: 'IBM Plex Mono', monospace; color: var(--sun-deep); font-weight: 600; font-size: 0.82rem; }
.card h3 { font-size: 1.18rem; margin: 8px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .big { font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat .big.green { color: var(--leaf-deep); }
.stat .lab { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* sample report card */
.sample { background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -28px var(--shadow); }
.sample-head { background: linear-gradient(100deg, var(--sun), var(--sun-deep)); color: #3a2500; padding: 18px 24px; display: flex; justify-content: space-between; align-items: baseline; }
.sample-head .t { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; }
.sample-body { padding: 22px 24px; }
.sample-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--paper-3); }
.sample-row:last-child { border-bottom: 0; }
.sample-row .v { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.sample-row.total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 6px; padding-top: 12px; font-weight: 700; }
.sample-row.total .v { color: var(--leaf-deep); font-size: 1.2rem; }

/* article (methodology/about/faq/sources) */
.article { max-width: 720px; }
.article h2 { font-size: 1.6rem; margin: 32px 0 10px; }
.article h3 { font-size: 1.2rem; margin: 24px 0 6px; }
.article p, .article li { color: var(--ink-soft); }
.article ul { padding-left: 1.2rem; }
.article a { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.faq-q { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 26px 0 6px; }

.callout { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--leaf); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: #241a12; color: #cdbfa6; padding: 50px 0 30px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .footer .wrap { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); margin: 0 0 12px; }
.footer a { display: block; color: #cdbfa6; padding: 3px 0; }
.footer a:hover { color: var(--sun); }
.foot-brand { font-family: 'Fraunces', serif; font-size: 1.2rem; color: #fdf8ee; }
.foot-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 18px; font-size: 0.82rem; color: #9c8e75; }
