:root {
  color-scheme: light;
  --ink: #12211c;
  --muted: #587069;
  --line: #d8e5df;
  --panel: #ffffff;
  --soft: #f2f7f4;
  --deep: #0e4d3c;
  --deep-2: #06382d;
  --accent: #c7e76f;
  --blue: #d9eff5;
  --shadow: 0 24px 70px rgba(8, 36, 29, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfdfb;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 253, 251, 0.9);
  border-bottom: 1px solid rgba(216, 229, 223, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: white;
  background: var(--deep);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  width: 100%;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--deep);
}

.nav-cta {
  min-width: max-content;
  padding: 10px 16px;
  color: white;
  background: var(--deep);
  border-radius: 8px;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 64px) 64px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 32, 27, 0.84) 0%, rgba(3, 32, 27, 0.68) 38%, rgba(3, 32, 27, 0.18) 72%),
    linear-gradient(0deg, rgba(3, 32, 27, 0.22), rgba(3, 32, 27, 0.22));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

.page-hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.25rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.result-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: #08241d;
  background: var(--accent);
}

.button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.icon-button {
  color: var(--deep);
  border-color: var(--line);
  background: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 48px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats div {
  padding: 18px;
  background: rgba(2, 20, 17, 0.24);
}

.hero-stats dt {
  font-size: 1.35rem;
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.calculator-band,
.source-band,
.content-band,
.comparison-band,
.trust-band,
.split-band,
.faq-band,
.quote-band,
.country-band,
.page-section,
.page-hero {
  padding: 86px clamp(18px, 5vw, 64px);
}

.calculator-band {
  background: var(--soft);
}

.source-band {
  background: #ffffff;
}

.country-band {
  background: var(--soft);
}

.content-band {
  background: white;
}

.comparison-band {
  background: #f7faf8;
}

.trust-band {
  background: #ffffff;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #edf8f9;
}

.faq-band {
  background: #ffffff;
}

.quote-band {
  background: #10251f;
  color: white;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.compact-heading {
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow),
.split-band > div > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.quote-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.quote-band .eyebrow {
  color: var(--accent);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.tool-panel,
.result-panel,
.quote-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-panel,
.result-panel {
  padding: clamp(20px, 4vw, 34px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  color: var(--deep-2);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid #cbd9d3;
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(14, 77, 60, 0.16);
}

textarea {
  resize: vertical;
}

.input-combo {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 0.35fr);
  gap: 10px;
}

.range-wrap {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 14px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--deep);
}

output {
  font-weight: 850;
  color: var(--deep);
}

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--deep);
  color: white;
}

.result-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-number {
  margin: 10px 0;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
}

.result-number span:last-child {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-note {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.market-detail {
  margin-bottom: 24px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.market-detail p {
  margin: 0;
}

.steps,
.term-grid,
.faq-list,
.source-grid,
.country-grid,
.country-facts,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article,
.term-grid article,
.faq-list article,
.source-grid article,
.country-facts article,
.country-card,
.trust-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--deep);
  font-weight: 900;
}

.steps p,
.term-grid p,
.faq-list p,
.source-grid p,
.country-facts p,
.trust-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq-list article {
  min-height: 190px;
  background: var(--soft);
}

.source-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.source-grid article {
  min-height: 180px;
}

.country-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.country-card {
  display: grid;
  align-content: space-between;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease;
}

.country-card:hover {
  transform: translateY(-2px);
  border-color: var(--deep);
}

.country-card span {
  color: var(--deep);
  font-weight: 900;
}

.country-card strong {
  margin-top: 42px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hidden-field {
  display: none;
}

.quote-form {
  max-width: 980px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
}

.quote-band a {
  color: var(--accent);
  font-weight: 850;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #061713;
}

.site-footer p {
  margin: 0;
}

.page-hero {
  padding-top: 148px;
  color: white;
  background:
    linear-gradient(90deg, rgba(4, 42, 34, 0.94), rgba(4, 42, 34, 0.78)),
    var(--page-hero-image, url("assets/hero-energy.png")) center / cover;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.page-section {
  background: white;
}

.page-section.alt {
  background: var(--soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
}

.page-layout p {
  color: var(--muted);
}

.country-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.country-facts article {
  min-height: 180px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article {
  background: var(--soft);
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 850;
}

.link-list a::after {
  content: "Open";
  color: var(--muted);
  font-size: 0.9rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.comparison-table caption {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table thead th {
  color: white;
  background: var(--deep);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.comparison-table tbody th {
  color: var(--deep);
  font-size: 1.1rem;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table td {
  color: var(--muted);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(3, 32, 27, 0.86), rgba(3, 32, 27, 0.5));
  }

  .calculator-layout,
  .split-band,
  .steps,
  .term-grid,
  .faq-list,
  .source-grid,
  .country-grid,
  .page-layout,
  .country-facts,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps article,
  .term-grid article,
  .faq-list article,
  .source-grid article,
  .country-facts article,
  .country-card,
  .trust-grid article {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero-stats,
  .field-grid,
  .input-combo {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 14px;
  }

  .calculator-band,
  .source-band,
  .content-band,
  .comparison-band,
  .trust-band,
  .split-band,
  .faq-band,
  .quote-band,
  .country-band,
  .page-section,
  .page-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-hero {
    padding-top: 92px;
  }
}
