@font-face {
  font-family: "DM Sans";
  src: url("/gensan-solar/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f1;
  --surface: #fffdf8;
  --dark: #183a30;
  --ink: #18312a;
  --muted: #4b6057;
  --line: #cad4cb;
  --sun: #ffbe59;
  --sun-hover: #f4ab3c;
  --green-wash: #e9f0e8;
  --error: #9c2331;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #267457; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 2; padding: .65rem .9rem; background: white; }
.skip:focus { top: .6rem; }

.site-header { background: var(--dark); color: #fffdf5; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: 1.33rem; font-weight: 750; line-height: 1.12; letter-spacing: -.045em; }
.brand-mark { flex: 0 0 29px; width: 29px; height: 29px; display: block; border-radius: 50%; background: var(--sun); border: 7px solid var(--sun); box-shadow: inset 0 0 0 2px var(--dark); }
.brand-country { display: block; margin-top: .27rem; color: #d6e5d8; font-size: .62rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.header-inquiry { display: inline-flex; align-items: center; gap: .35rem; padding-block: .5rem; color: #ffdc9c; font-weight: 650; text-decoration: none; }
.header-inquiry:hover { text-decoration: underline; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.25rem, 4vw, 3.75rem) clamp(3rem, 5vw, 4.5rem);
}
.hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero-copy > .button { align-self: flex-start; }
.location { color: #425b4b; font-size: .77rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
h1, h2 { margin: 0; letter-spacing: -.06em; line-height: .98; }
h1 { font-size: clamp(2.8rem, 5.7vw, 5.2rem); font-weight: 750; }
h1 em { font-style: normal; color: #35684f; }
h2 { font-size: clamp(1.8rem, 3.7vw, 2.95rem); font-weight: 750; }
.intro { max-width: 37ch; color: var(--muted); font-size: clamp(1.03rem, 1.7vw, 1.23rem); margin: 1.4rem 0 .9rem; }
.bill-example {
  max-width: 29rem;
  margin: 0 0 1rem;
  padding: .75rem clamp(.75rem, 2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
.bill-heading { margin: 0; font-size: 1rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.3; }
.bill-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .45rem 0; }
.bill-amount { padding: .4rem .5rem; border-radius: .4rem; background: var(--paper); }
.bill-amount dt { color: var(--muted); font-size: .8rem; font-weight: 650; line-height: 1.25; }
.bill-amount dd {
  margin: .18rem 0 0;
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1.07;
  overflow-wrap: anywhere;
}
.bill-after { background: var(--green-wash); }
.bill-after dd { color: #285b43; }
.bill-details { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.bill-details + .bill-details { margin-top: .4rem; }
.bill-details strong { color: var(--ink); }
.bill-details a { text-underline-offset: .16em; }
.hero-photo { position: relative; overflow: hidden; border-radius: 1rem; margin: 0 0 1.25rem; background: #dee7da; min-width: 0; container-type: inline-size; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; object-position: 56% center; }
.hero-photo figcaption {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: grid;
  gap: .16rem;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: .55rem .8rem .65rem;
  border-radius: .55rem;
  background: var(--dark);
  color: #fffdf5;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.25;
}
.hero-photo figcaption strong {
  color: var(--sun);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.05;
}

@container (max-width: 340px) {
  .hero-photo figcaption { max-width: 40%; padding: .45rem .55rem .5rem; }
  .hero-photo figcaption strong { font-size: 1.1rem; }
}

.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; border: 0; border-radius: .55rem; padding: .7rem 1.15rem; text-decoration: none; font: inherit; font-weight: 750; line-height: 1.2; cursor: pointer; }
.primary { background: var(--sun); color: #211a10; }
.primary:hover { background: var(--sun-hover); }
.button:disabled { cursor: progress; opacity: .67; }

.next-steps-section { background: var(--green-wash); padding-block: clamp(45px, 7vw, 86px); }
.next-steps ol { margin: 1.65rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.next-steps li { position: relative; max-width: 42ch; counter-increment: steps; padding: .8rem 0 .8rem 2.6rem; color: var(--muted); }
.next-steps li + li { border-top: 1px solid #bdcdc0; }
.next-steps li::before { content: counter(steps) / ""; position: absolute; left: 0; top: .86rem; display: grid; place-items: center; width: 1.72rem; height: 1.72rem; border-radius: 50%; background: var(--dark); color: #fffaf0; font-size: .78rem; font-weight: 650; }
.next-steps strong { display: block; color: var(--ink); }
.section-intro { margin: 1rem 0 0; max-width: 58ch; color: var(--muted); }
.resource-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.resource-grid article { padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.resource-grid h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.resource-grid p { margin: .5rem 0 0; color: var(--muted); }
.resource-grid a, .guide-main a:not(.button) { text-underline-offset: .16em; }

.guide-main { width: min(760px, calc(100% - 48px)); padding-block: clamp(2.25rem, 6vw, 5rem); }
.guide-main h1 { font-size: clamp(2.15rem, 5.5vw, 4rem); line-height: 1.04; text-wrap: balance; }
.guide-main .guide-intro { margin: 1.2rem 0; color: var(--muted); font-size: 1.13rem; }
.guide-main section { margin-block: 2.25rem; }
.guide-main h2 { font-size: clamp(1.48rem, 3.2vw, 2.1rem); line-height: 1.16; letter-spacing: -.04em; }
.guide-main h3 { line-height: 1.25; }
.guide-main p, .guide-main li { max-width: 69ch; }
.guide-main li + li { margin-top: .45rem; }
.guide-main .button { margin-top: .4rem; }
.inquiry-panel { min-width: 0; scroll-margin-block-start: 1.25rem; padding: clamp(1.15rem, 3.7vw, 2.6rem); border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); }
.inquiry-panel h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
.panel-intro { margin: .76rem 0 1.4rem; color: var(--muted); }
.field { margin: 0 0 1rem; }
label { display: block; margin-bottom: .34rem; font-weight: 700; }
input, textarea, select { display: block; width: 100%; border: 1px solid #a7b7ab; border-radius: .42rem; background: white; color: var(--ink); font: inherit; min-height: 47px; padding: .64rem .76rem; }
input::placeholder { color: #64746a; opacity: 1; }
textarea { resize: vertical; }
.optional { color: var(--muted); font-size: .87rem; font-weight: 450; }
.hint, .consent { color: var(--muted); font-size: .9rem; }
.hint { margin: .3rem 0 0; }
.consent { margin: 1rem 0 .85rem; }
.submit { width: 100%; }
.trap { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.field-error { color: var(--error); margin: .3rem 0 0; font-size: .92rem; font-weight: 650; }
[aria-invalid="true"] { border-color: var(--error); }
.form-feedback { padding: .8rem .9rem; border-radius: .4rem; margin: 1rem 0 0; font-weight: 650; }
.form-feedback[data-status="success"] { background: var(--green-wash); color: var(--dark); }
.form-feedback[data-status="error"] { background: #ffedf0; color: var(--error); }

.site-footer { background: var(--dark); color: #eff6ea; padding-block: 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.footer-company { font-size: .9rem; }
.footer-company p { margin: 0; }
.footer-company > a { display: inline-block; margin-top: .35rem; text-underline-offset: .17em; }
.footer-company address { margin-top: .35rem; font-style: normal; color: #e1ebdf; }
.footer-inner details { max-width: 58ch; }
.footer-inner summary { cursor: pointer; font-weight: 650; }
.footer-inner details p { margin-bottom: 0; color: #e1ebdf; font-size: .89rem; }
.footer-inner details a { overflow-wrap: anywhere; }

.result-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.result-panel, .result-page main { width: min(100%, 38rem); padding: clamp(1.35rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.result-panel h1, .result-page h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.result-panel p, .result-page main p { color: var(--muted); }

@media (min-width: 741px) {
  .hero h1 { font-size: clamp(2.45rem, 4.1vw, 3.65rem); line-height: 1.02; text-wrap: balance; }
  .hero .intro { max-width: none; margin: .85rem 0 1.05rem; }
  .bill-example { max-width: none; }
  .inquiry-panel { padding: clamp(1.25rem, 2.4vw, 2rem); }
  .inquiry-panel .panel-intro { margin-bottom: 1.15rem; }
  .inquiry-panel .field { margin-bottom: .75rem; }
  .inquiry-panel .consent { margin-top: .85rem; }
}

@media (min-width: 1240px) {
  .field-pair { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); column-gap: .875rem; }
  .field-pair > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; }
  .brand { gap: .55rem; font-size: 1.08rem; }
  .header-inquiry { font-size: .84rem; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 40px; }
  .hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 7.4vw, 3.6rem); line-height: 1.02; text-wrap: balance; }
  .hero-photo img { aspect-ratio: 5/3; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-main { width: calc(100% - 36px); }
  .footer-inner { flex-direction: column; gap: .95rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
