/* ==========================================================================
   Solar Judge — homepage
   Palette from the mockup:
   navy #0B2545 / #133E7C · gold #FFD214 → #FFBC00 · green #22C55E
   amber #F59E0B · red #EF4444 · cyan #06B6D4 · purple #8B5CF6 · pink #EC4899
   ========================================================================== */

:root {
  --navy-900: #0B2545;
  --navy-800: #12305C;
  --navy-700: #133E7C;
  --gold: #FFD214;
  --gold-deep: #FFBC00;
  --ink: #0A2540;
  --body: #4A5568;
  --sky: #F0F6FC;
  --sky-deep: #E3EEF9;
  --line: #D8E4F0;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;
  --cyan: #06B6D4;
  --purple: #8B5CF6;
  --pink: #EC4899;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-gold: 0 8px 24px rgba(255, 188, 0, 0.35);

  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 68px; /* room for the sticky bar */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 188, 0, 0.5);
}

.btn--gold:active { transform: translateY(0); }

.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--md { padding: 13px 24px; font-size: 15px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ===================== Header ===================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.header__logo-img { height: 52px; width: auto; }

.nav { margin-inline: auto; }

.nav__list {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav__link:hover { color: var(--navy-700); background: var(--sky); }

.nav__link--active,
.nav__link.nav__link:hover { color: var(--navy-700); }

.nav__link--active::after,
.nav__link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== Hero ===================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* navy scrim so the left-side copy stays readable over the bright photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(11, 37, 69, 0.78) 0%,
    rgba(11, 37, 69, 0.55) 30%,
    rgba(11, 37, 69, 0.18) 52%,
    rgba(11, 37, 69, 0) 66%);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: absolute;
  inset: 0;
  width: auto;
  margin-inline: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  pointer-events: auto;
  width: min(680px, 35vw);
  margin-left: clamp(24px, 4.5vw, 84px);
  color: #fff;
}

.hero__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 37, 69, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__cta {
  padding: 20px 44px;
  font-size: clamp(17px, 0.85vw + 5px, 23px);
}

.hero__kicker .dot { color: var(--gold); margin-inline: 6px; }

.hero__title {
  font-size: clamp(42px, 3vw + 10px, 80px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(11, 37, 69, 0.35);
  margin-bottom: 18px;
}

.hero__title-accent { color: var(--gold); }

.hero__body {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(11, 37, 69, 0.4);
  margin-bottom: 26px;
  max-width: 50ch;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  list-style: none;
  margin-top: 24px;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(11, 37, 69, 0.45);
}

.hero__trust-div {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

/* ===================== Section head ===================== */

.section { padding: clamp(64px, 8vw, 104px) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
}

.section-head__kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.section-head__kicker--light { color: var(--gold); }

.section-head__title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head__title--light { color: #fff; }

.section-head__desc {
  font-size: 17px;
  color: var(--body);
}

/* ===================== How it works ===================== */

.how { background: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 16px 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--step-color) 14%, white);
  color: var(--step-color);
  margin-bottom: 14px;
}

.step__icon svg { width: 26px; height: 26px; }

.step__num {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--step-color);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}

.step__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--body);
}

.step__list {
  list-style: none;
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.step__list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--body);
}

.step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--step-color, var(--navy-700));
}

/* ===================== What Solar Judge examines ===================== */

.examines { background: var(--sky); }

.examines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.xcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.xcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.xcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--xcolor) 14%, white);
  color: var(--xcolor);
  margin-bottom: 18px;
}

.xcard__icon svg { width: 28px; height: 28px; }

.xcard__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.xcard__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
}

.xcard__list {
  list-style: none;
  display: grid;
  gap: 7px;
}

.xcard__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.xcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xcolor, var(--navy-700));
}

/* ===================== Experience ===================== */

.experience {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(19, 62, 124, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.experience__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.experience__mascot img { width: 100%; max-width: 300px; margin-inline: auto; }

/* ---- Experience list: card grid ---- */

.exp-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exp-list li {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px 24px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.exp-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 20, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.exp-list li:last-child { grid-column: 1 / -1; }

.exp-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 20, 0.7);
  color: var(--gold);
  margin-bottom: 14px;
}

.exp-list__icon svg { width: 20px; height: 20px; }

.exp-list h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.exp-list__sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.exp-list p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.exp-list p + p { margin-top: 8px; }

/* ===================== Founder's letter ===================== */

.letter {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(19, 62, 124, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.letter__inner { max-width: 880px; }

.letter__inner p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; }
.letter__inner p strong { color: #fff; }

.letter__heading {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.25;
  margin: 26px 0 10px;
}

.letter__sign { margin-top: 26px; }

.letter__sign-off {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2px;
}

.letter__sign-img {
  display: block;
  height: clamp(56px, 5.5vw, 84px);
  width: auto;
  margin: 2px 0 6px;
}

.letter__sign-name { font-size: 17px; font-weight: 700; color: #fff; }
.letter__sign-role { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ===================== Verdict CTA ===================== */

.verdict {
  position: relative;
  background:
    linear-gradient(rgba(11, 37, 69, 0.94), rgba(11, 37, 69, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    var(--navy-900);
  padding: clamp(56px, 7vw, 96px) 0;
  overflow: hidden;
}

.verdict__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.verdict__mascot img { width: clamp(140px, 16vw, 230px); }

.verdict__content { flex: 1; }

.verdict__title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.verdict__body {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 52ch;
}

.verdict__script {
  font-family: var(--font-script);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  transform: rotate(-3deg);
  text-align: center;
  flex: none;
  padding-right: 8px;
}

/* ===================== Trust bar ===================== */

.trustbar {
  background: var(--sky-deep);
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.trustbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.trustbar__logo { height: 72px; width: auto; flex: none; }

.trustbar__items {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.titem { display: flex; gap: 13px; align-items: flex-start; }

.titem__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tcolor) 15%, white);
  color: var(--tcolor);
}

.titem__icon svg { width: 21px; height: 21px; }

.titem strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.titem span:not(.titem__icon) {
  font-size: 12.5px;
  color: var(--body);
}

/* ===================== Footer ===================== */

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__logo { height: 56px; width: auto; }

.footer__brand p {
  font-size: 13.5px;
  max-width: 30ch;
}

.footer__nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer__nav a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================== Sticky bottom bar ===================== */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px min(4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
}

.stickybar__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
}

.stickybar__text strong { color: var(--gold); }

/* ===================== Responsive ===================== */

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .examines__grid { grid-template-columns: repeat(2, 1fr); }
  .experience__grid { grid-template-columns: 1fr; }
  .experience__mascot img { max-width: 220px; }
  .verdict__script { display: none; }
}

/* wide screens: hero copy sits halfway in, larger headline */
@media (min-width: 1600px) {
  .hero__content { margin-left: 15vw; width: min(820px, 32vw); }
  .hero__title { font-size: clamp(56px, 3.7vw, 96px); }
}

/* tighter hero on small desktops so the copy fits the hero height */
@media (min-width: 901px) and (max-width: 1250px) {
  .hero__title { font-size: clamp(36px, 2.8vw + 6px, 60px); margin-bottom: 12px; }
  .hero__kicker { margin-bottom: 14px; }
  .hero__body { font-size: 15px; margin-bottom: 18px; }
}

@media (max-width: 900px) {
  .header__inner { flex-wrap: wrap; row-gap: 0; padding-block: 12px; min-height: 0; gap: 12px; }
  .header__logo-img { height: 44px; }
  .header__cta { margin-left: auto; font-size: 12px; padding: 9px 13px; }
  .nav-toggle { display: flex; order: 3; flex: none; }
  .nav { display: none; }
  .nav.nav--open { display: block; flex-basis: 100%; order: 4; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding-block: 6px; }
  .nav__link { display: block; padding: 10px 14px; }
  .nav__link::after { display: none; }

  /* hero stacks: image first, text below on navy */
  .hero { background: var(--navy-900); }
  .hero::before { display: none; }
  .hero__media { position: relative; aspect-ratio: 1983 / 793; }
  .hero__media img { position: absolute; inset: 0; }
  .hero__inner { position: relative; inset: auto; }
  .hero__content {
    width: 100%;
    margin-left: 0;
    padding: 30px 0 44px;
    color: #fff;
  }
  .hero__kicker {
    background: rgba(255, 255, 255, 0.1);
  }
  .hero__title { text-shadow: none; }
  .hero__body { text-shadow: none; color: rgba(255, 255, 255, 0.85); }
  .hero__trust li { text-shadow: none; }

  .exp-list { grid-template-columns: 1fr; }
  .exp-list li:last-child { grid-column: auto; }

  .trustbar__inner { flex-direction: column; align-items: flex-start; }
  .trustbar__items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .examines__grid { grid-template-columns: 1fr; }
  .experience__mascot img { max-width: 210px; }
  .exp-list li:last-child { grid-column: auto; }
  .verdict__inner { flex-direction: column; text-align: center; }
  .verdict__mascot img { margin-inline: auto; }
  .verdict__body { margin-inline: auto; }
  .trustbar__items { grid-template-columns: 1fr; }
  .stickybar { padding-block: 10px; }
  .stickybar__text { font-size: 13px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

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


/* Pricing section additions */
.pricing { background: var(--sky); }
.pricing__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; max-width:980px; margin:0 auto; align-items:stretch; }
.price-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow-card); display:flex; flex-direction:column; }
.price-card--featured { border:2px solid var(--gold-deep); box-shadow:var(--shadow-gold); }
.price-card__label { color:var(--navy-700); font-weight:800; letter-spacing:.12em; font-size:.78rem; margin-bottom:12px; }
.price-card h3 { color:var(--navy-900); font-size:2rem; margin-bottom:12px; }
.price-card h3 span { font-size:1rem; }
.price-card p:not(.price-card__label) { color:var(--body); line-height:1.7; margin-bottom:18px; }
.price-card ul { padding-left:20px; margin:0 0 26px; color:var(--body); line-height:1.9; flex:1; }
.price-card .btn { align-self:flex-start; }
@media(max-width:700px) { .pricing__grid { grid-template-columns:1fr; } .price-card { padding:26px 22px; } }
