/* =============================================================
   Good Energy Referral — styles
   ============================================================= */

:root {
  --green-900: #063d24;
  --green-700: #0a6a3a;
  --green-600: #0a8a4a;
  --green-500: #12a259;
  --lime-400: #c9f36b;
  --lime-300: #d9f88f;
  --ink: #10241a;
  --ink-soft: #3d5348;
  --muted: #64786e;
  --paper: #ffffff;
  --cream: #f4faf3;
  --tint: #eaf6ec;
  --line: #dce9e0;
  --amber: #ffce4d;
  --shadow-sm: 0 1px 2px rgba(6, 61, 36, .06), 0 2px 8px rgba(6, 61, 36, .06);
  --shadow-md: 0 10px 30px rgba(6, 61, 36, .10);
  --shadow-lg: 0 24px 60px rgba(6, 61, 36, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-600); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  box-shadow: 0 8px 20px rgba(10, 138, 74, .28);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(10, 138, 74, .38); filter: saturate(1.05); }

.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--tint); }

.btn--outline { background: #fff; color: var(--green-700); border-color: var(--green-600); }
.btn--outline:hover { background: var(--tint); }

.btn--light { background: #fff; color: var(--green-700); box-shadow: var(--shadow-md); }

.btn--sm { padding: 10px 16px; font-size: .95rem; }
.btn--lg { padding: 17px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 14px;
}
.eyebrow--center { justify-content: center; }
.eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(18, 162, 89, .18);
}

/* -------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------- */
.announce {
  background: var(--green-900);
  color: var(--lime-300);
  text-align: center;
  font-size: .92rem;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.announce strong { color: #fff; }
.announce__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-400);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
}
.brand__text em { font-style: normal; color: var(--green-600); }
.brand__mark { display: inline-flex; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green-500);
  transition: width .2s ease;
}
.site-nav a:hover { color: var(--green-700); }
.site-nav a:hover::after { width: 100%; }
.site-header .btn { margin-left: 6px; }

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream), #fff 70%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(201, 243, 107, .35), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(18, 162, 89, .12), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 92px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}
.hero__title .hl {
  display: inline-block;
  color: var(--green-700);
  background: linear-gradient(120deg, transparent 62%, var(--lime-400) 62%);
  padding: 0 .12em;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 30px;
}
.hero__lede strong { color: var(--ink); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--green-600); }

.hero__eligibility {
  margin: 18px 0 0;
  font-size: .86rem;
  color: var(--muted);
  max-width: 46ch;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

/* Offer card */
.hero__card { display: flex; justify-content: center; }
.offer-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.offer-card__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-900);
  color: var(--lime-300);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.offer-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green-700);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.offer-card__pound { font-size: 1.6rem; }
.offer-card__x { font-size: 1.6rem; color: var(--muted); margin: 0 6px; }
.offer-card__caption { color: var(--muted); font-weight: 600; margin: 6px 0 0; }
.offer-card__divider { height: 1px; background: var(--line); margin: 22px 0; }
.offer-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  display: grid;
  gap: 12px;
}
.offer-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .96rem;
}
.tick {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--tint);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 5px; height: 9px;
  border: solid var(--green-600);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.offer-card__fineprint { color: var(--muted); font-size: .78rem; margin: 12px 0 0; }

/* -------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------- */
.trust-strip {
  background: var(--green-900);
  color: #fff;
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 26px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--lime-400);
  line-height: 1;
}
.trust-item span {
  display: block;
  margin-top: 6px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .78);
}

/* -------------------------------------------------------------
   Sections
   ------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.section__sub { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }
.section__cta { text-align: center; margin-top: 44px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin: 16px 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card--accent {
  background: linear-gradient(160deg, var(--green-700), var(--green-600));
  border-color: transparent;
  color: #fff;
}
.card--accent h3 { color: #fff; }
.card--accent p { color: rgba(255, 255, 255, .88); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green-600);
  background: var(--tint);
}
.card__icon--sun { color: #e6a417; background: #fff5df; }
.card__icon--leaf { color: var(--green-600); background: var(--tint); }
.card__icon--wind { color: #2f9bd6; background: #e3f3fb; }
.card--accent .card__icon--gift { color: var(--green-700); background: var(--lime-400); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(10, 138, 74, .3);
}
.step h3 { margin: 0 0 8px; font-size: 1.18rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Compare */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.compare__col {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.compare__col--best {
  border: 2px solid var(--green-500);
  box-shadow: var(--shadow-md);
}
.compare__tag {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--green-600);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.compare__col h3 { margin: 0 0 8px; font-size: 1.25rem; }
.compare__lead { color: var(--ink-soft); margin: 0 0 20px; }
.compare__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.compare__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink-soft);
}
.compare__list li::before {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
.compare__list .yes { color: var(--ink); }
.compare__list .yes::before { content: "✓"; background: var(--tint); color: var(--green-600); }
.compare__list .no { color: var(--muted); }
.compare__list .no::before { content: "✕"; background: #fdecec; color: #d1493f; }

/* Eligibility / terms list */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.terms-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-left: 52px;
}
.terms-list li::before {
  content: "";
  position: absolute;
  left: 20px; top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--tint);
}
.terms-list li::after {
  content: "";
  position: absolute;
  left: 26px; top: 28px;
  width: 5px; height: 9px;
  border: solid var(--green-600);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.terms-list h3 { margin: 0 0 6px; font-size: 1.08rem; }
.terms-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.terms-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

/* Let's be friends */
.friends {
  text-align: center;
  background: linear-gradient(160deg, var(--cream), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  box-shadow: var(--shadow-sm);
}
.friends__icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-600);
  background: var(--tint);
}
.friends__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}
.friends__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 54ch;
  margin: 0 auto 24px;
}

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(201, 243, 107, .22), transparent 55%),
    linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 8px;
  max-width: 20ch;
}
.cta-banner__title span { color: var(--lime-400); font-style: italic; }
.cta-banner__sub { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 18px 34px 18px 0;
  position: relative;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-600);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__body { padding: 0 0 20px; color: var(--ink-soft); }
.faq__body p { margin: 0; }

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 48px 30px;
  flex-wrap: wrap;
}
.site-footer__brand { max-width: 380px; }
.site-footer__brand .brand__text { color: #fff; font-weight: 800; font-size: 1.15rem; }
.site-footer__brand .brand__text em { color: var(--lime-400); font-style: normal; }
.site-footer__brand p { margin: 12px 0 0; font-size: .9rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: #fff; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px 30px;
}
.site-footer__legal p { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .55); }

/* -------------------------------------------------------------
   Sticky mobile CTA
   ------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__text strong { color: var(--green-700); font-size: 1.05rem; }
.sticky-cta__text span { color: var(--muted); font-size: .82rem; }
.sticky-cta .btn { flex: 0 0 auto; }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { justify-content: flex-start; }
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .terms-list { grid-template-columns: 1fr; }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; }
  .site-header .btn { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .hero__lede { max-width: none; }
}
