@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --white: #FFFFFF;
  --sky: #EAF4FB;
  --sky-line: #CFE6F3;
  --ink: #10243E;
  --ink-soft: #4A5F78;
  --sun: #FFB100;
  --sun-deep: #E09900;
  --teal: #0E7C9E;
  --teal-deep: #0B617D;
  --red: #D64545;
  --red-bg: #FDECEC;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--teal); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--sky { background: var(--sky); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p { color: #B9CBDE; }
.section--ink h2 { color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.nav__logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo svg { display: block; }
.nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a.active { border-bottom-color: var(--sun); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__signin { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.nav__signin:hover { color: var(--teal-deep); text-decoration: underline; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sun { background: var(--sun); color: #3A2900; }
.btn--sun:hover { background: var(--sun-deep); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 96px;
}
.hero__eyebrow-free { color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Hero illustration: the real story, drawn literally */
.outage-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px -30px rgba(16,36,62,0.35);
}
.outage-card__badge {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(14,124,158,0.6);
}
.outage-card__suns { display: flex; justify-content: space-between; margin-bottom: 6px; }
.outage-card__suns svg { width: 22px; height: 22px; }
.outage-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 8px; }
.outage-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.outage-legend .ln { width: 12px; height: 2px; display: inline-block; }
.outage-legend .sw { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.outage-card__dates { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 18px; }
.outage-card__caption {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--red);
  border-top: 1px solid var(--sky-line);
  padding-top: 16px;
}
.outage-card__sub { font-size: 0.88rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- Cost stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 44px 0 8px;
  padding: 36px 0;
  border-top: 1px solid var(--sky-line);
  border-bottom: 1px solid var(--sky-line);
}
.stat-band__item { text-align: left; }
.stat-band__num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-band__num.red { color: var(--red); }
.stat-band__label { font-size: 0.92rem; color: var(--ink-soft); max-width: 26ch; }
.stat-band__source { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Pull-quote tagline ---------- */
.pull-quote {
  max-width: 780px;
  margin: 8px auto 0;
  padding: 6px 0 4px;
}
.pull-quote p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: none;
}
.pull-quote .now-what {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}
.pull-quote--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Sample dashboard ---------- */
.dash-card {
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  margin-top: 24px;
}
.dash-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dash-pill { font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.dash-pill--ok { background: #E4F5EC; color: #1E7A4C; }
.dash-pill--alert { background: #FBE7E7; color: var(--red); }
.dash-card__meta { font-size: 0.85rem; color: var(--ink-soft); }
.dash-flow { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--sky-line); margin-bottom: 18px; }
.dash-flow__node { text-align: center; }
.dash-flow__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 1.2rem;
  border: 2px solid var(--sky-line);
}
.dash-flow__icon--grid { color: var(--ink-soft); }
.dash-flow__icon--sun { color: var(--sun-deep); border-color: var(--sun); }
.dash-flow__icon--batt { color: #1E7A4C; }
.dash-flow__num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; }
.dash-flow__num span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); }
.dash-flow__num--bad { color: var(--red); }
.dash-flow__label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.dash-flow__center { text-align: center; padding-left: 18px; border-left: 1px solid var(--sky-line); }
.dash-verdict { font-size: 0.92rem; padding: 14px 16px; border-radius: 10px; }
.dash-verdict--ok { background: #F0FAF4; color: #1E7A4C; }
.dash-verdict--alert { background: var(--red-bg, #FDECEC); color: #7A1F1F; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -10px rgba(16,36,62,0.25);
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.96rem; }

/* ---------- Steps (How it Works) ---------- */
.steps { counter-reset: step; margin-top: 40px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--sky-line);
}
.step:last-child { border-bottom: 1px solid var(--sky-line); }
.step__num {
  counter-increment: step;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sun-deep);
}
.step__num::before { content: counter(step, decimal-leading-zero); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.plan {
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.plan--featured {
  background: linear-gradient(180deg, #FFF6E0 0%, var(--white) 55%);
  border: 1.5px solid var(--sun);
  box-shadow: 0 30px 60px -30px rgba(224,153,0,0.35);
  transform: translateY(-8px);
}
.plan__price { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; margin: 14px 0 4px; }
.plan__price span { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.plan__list { list-style: none; padding: 0; margin: 22px 0 28px; }
.plan__list li { padding: 7px 0; font-size: 0.94rem; color: var(--ink-soft); display: flex; gap: 10px; }
.plan__list li svg { flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; }
.plan__tag {
  display: inline-block;
  background: var(--sun);
  color: #3A2900;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--sky-line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--sky);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.contact-info { border-left: 1px solid var(--sky-line); padding-left: 48px; }
.contact-info h3 { margin-top: 0; }
.contact-info a { display: block; font-weight: 600; margin: 4px 0 20px; text-decoration: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--sky-line);
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer small { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; padding: 72px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--sky-line); padding-top: 32px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .step { grid-template-columns: 44px 1fr; }
  .dash-flow { grid-template-columns: 1fr 1fr; }
  .dash-flow__center { border-left: none; border-top: 1px solid var(--sky-line); padding-left: 0; padding-top: 14px; grid-column: 1 / -1; }
}
