/* ==========================================================================
   K2 Renew landowner ad pages — /ad-legacy, /ad-mission, /ad-proof
   --------------------------------------------------------------------------
   The three pages are ONE page with three hero treatments: same trust bar,
   same three steps, same plain-terms table, same FAQ, same form. That is why
   this stylesheet is shared rather than inlined three times — a spacing fix
   made in one page and forgotten in the other two is exactly the drift a
   landing page picks up over a campaign. What differs per page is copy, the
   hero photograph, and the metadata, all of which live in its index.html.

   Everything here is same-origin: no CDN, no hosted fonts, no pixel. See
   public/landing-pages/README.md.

   The tokens are the K2 Renew design system's (colors sampled from the
   sunrise-over-mountains logo, Archivo/Public Sans/IBM Plex Mono), flattened
   into one file and trimmed to what these pages actually use. Component
   classes below keep the design system's own names — .k2-btn, .k2-field,
   .k2-input, .k2-secthead — so markup can move between this and anything else
   built on that system without renaming.
   ========================================================================== */

@import url("/landing-pages/shared/css/fonts.css");

:root {
  /* ---- Sunrise orange: the brand, pulled from the logo's rays ---- */
  --k2-orange-900: #a8401f;
  --k2-orange-800: #be4e27;
  --k2-orange-700: #c75a33;
  --k2-orange-600: #dd6536;
  --k2-orange-500: #e1743c;
  --k2-orange-400: #ed8b4e;
  --k2-orange-300: #f3a468;
  --k2-orange-200: #f9c99f;
  --k2-orange-100: #fbe3d1;
  --k2-orange-50: #fdf1e8;

  /* ---- Mountain grey, warmed so neutrals read earthy not blue ---- */
  --k2-neutral-950: #1c1d1f;
  --k2-neutral-900: #232427;
  --k2-neutral-800: #34363a;
  --k2-neutral-700: #4c4e53;
  --k2-neutral-600: #6b6d72;
  --k2-neutral-500: #8a8c90;
  --k2-neutral-400: #a9abae;
  --k2-neutral-300: #c9cacd;
  --k2-neutral-200: #e3e4e6;
  --k2-neutral-150: #ecedee;
  --k2-neutral-100: #f3f3f2;
  --k2-neutral-50: #f8f8f6;
  --k2-white: #ffffff;

  /* ---- Landscape accents, used sparingly ---- */
  --k2-field-700: #46602f;
  --k2-barn-700: #863c28;
  --k2-barn-600: #9e4a33;
  --k2-barn-100: #f2ded7;

  /* ---- Semantic aliases: reference THESE, not the ramps ---- */
  --color-brand: var(--k2-orange-600);
  --color-brand-hover: var(--k2-orange-700);
  --color-brand-active: var(--k2-orange-800);
  --color-brand-subtle: var(--k2-orange-50);
  --color-brand-subtle-border: var(--k2-orange-200);
  --color-on-brand: var(--k2-white);

  --text-strong: var(--k2-neutral-900);
  --text-body: var(--k2-neutral-800);
  --text-muted: var(--k2-neutral-600);
  --text-subtle: var(--k2-neutral-500);
  --text-brand: var(--k2-orange-700);

  --surface-page: var(--k2-neutral-50);
  --surface-card: var(--k2-white);
  --surface-sunken: var(--k2-neutral-100);

  --border-subtle: var(--k2-neutral-200);
  --border-default: var(--k2-neutral-300);
  --border-strong: var(--k2-neutral-400);

  --focus-ring: var(--k2-orange-500);
  --status-danger: var(--k2-barn-600);
  --status-success: #5e7a3e;

  /* ---- Type ---- */
  --font-display: "Archivo", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.1875rem;

  --leading-tight: 1.08;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.16em;

  /* ---- Space, on a 4px grid ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --container-max: 1120px;
  --container-prose: 68ch;

  /* ---- Controls, radii, warm shadows (sunlight, not cold UI elevation) ---- */
  --control-height-md: 2.625rem;
  --control-height-lg: 3.25rem;
  --radius-control: 10px;
  --radius-card: 14px;
  --border-width-strong: 1.5px;
  --shadow-sm: 0 1px 3px rgba(43, 30, 18, 0.08), 0 1px 2px rgba(43, 30, 18, 0.06);
  --shadow-lg: 0 12px 28px rgba(43, 30, 18, 0.12), 0 4px 8px rgba(43, 30, 18, 0.06);
  --shadow-focus: 0 0 0 3px rgba(225, 116, 60, 0.4);

  --duration-fast: 140ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-colors:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

/* Load-bearing, not tidiness. `hidden` is a UA style of `display: none`, and a
   class rule setting `display: flex` outranks it — which silently broke both
   halves of the form's success state: the thank-you panel rendered on page load
   and the form stayed put underneath it. landing-form.js toggles `.hidden` on
   both, so this is what makes that work. */
[hidden] {
  display: none !important;
}

a {
  color: var(--text-brand);
  text-decoration: none;
}

a:hover {
  color: var(--k2-orange-900);
  text-decoration: underline;
}

::selection {
  background: var(--k2-orange-200);
  color: var(--k2-orange-900);
}

:where(button, a, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* The page is a long scroll to a form, so every CTA is a jump link. Keyboard
   and screen-reader users get the same skip, one tab in. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--k2-neutral-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-control) 0;
  font-weight: var(--weight-bold);
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

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

.section {
  padding-block: 88px;
}

/* ==========================================================================
   Design-system components (names kept from the system)
   ========================================================================== */

.k2-btn {
  --_bg: var(--color-brand);
  --_fg: var(--color-on-brand);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border: var(--border-width-strong) solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition:
    var(--transition-colors),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  height: var(--control-height-lg);
  padding: 0 var(--space-8);
  font-size: var(--text-lg);
}

.k2-btn:hover {
  --_bg: var(--color-brand-hover);
  color: var(--_fg);
  text-decoration: none;
}

.k2-btn:active {
  --_bg: var(--color-brand-active);
  transform: translateY(1px);
}

.k2-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.k2-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.k2-btn--block {
  width: 100%;
}

.k2-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-sans);
}

.k2-field__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}

.k2-field__req {
  color: var(--status-danger);
  margin-left: 0.15em;
}

.k2-field__help {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}

.k2-input,
.k2-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text-strong);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  transition: var(--transition-colors);
  -webkit-appearance: none;
  appearance: none;
}

.k2-input {
  /* Taller than the design system's default control: this form is filled in
     on a phone, one-handed, by people who are not twenty-five. */
  height: var(--control-height-lg);
  padding: 0 var(--space-4);
}

.k2-textarea {
  min-height: 6rem;
  padding: var(--space-3) var(--space-4);
  line-height: var(--leading-normal);
  resize: vertical;
}

.k2-input::placeholder,
.k2-textarea::placeholder {
  color: var(--text-subtle);
}

.k2-input:hover,
.k2-textarea:hover {
  border-color: var(--border-strong);
}

.k2-input:focus,
.k2-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
}

.k2-secthead {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--container-prose);
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.k2-secthead__eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-size: var(--text-sm);
  color: var(--text-brand);
}

.k2-secthead__title {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-strong);
  font-size: clamp(1.75rem, 3.4vw, 2.1875rem);
  margin: 0;
}

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

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

.site-header .wrap {
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header img {
  height: 67px;
  width: auto;
  display: block;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  white-space: nowrap;
}

.header-call:hover {
  color: var(--text-brand);
  text-decoration: none;
}

/* ==========================================================================
   Hero — the one section that differs per page, by photograph and copy only
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--k2-neutral-900);
}

.hero .wrap {
  padding-block: 84px;
}

.hero-inner {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--k2-orange-300);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  font-size: clamp(2.25rem, 5.2vw, 3.875rem);
  color: #fff;
  text-wrap: pretty;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: #f3f3f2;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-1);
}

.cta-aside {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: #e3e4e6;
}

.cta-aside a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-aside a:hover {
  color: #fff;
  text-decoration: none;
}

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

.trustbar {
  background: var(--k2-neutral-900);
  color: #fff;
}

.trustbar .wrap {
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-10);
  text-align: center;
}

.trustbar span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
}

/* ==========================================================================
   Steps, pillars, plain terms
   ========================================================================== */

.stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.grid--roomy {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card h3 {
  font-weight: var(--weight-extrabold);
  font-size: 1.4375rem;
  line-height: 1.2;
}

.card p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-on-brand);
  background: var(--color-brand);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.band--sunken {
  background: var(--k2-neutral-100);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 3px solid var(--color-brand);
  padding-top: var(--space-5);
}

.pillar h3 {
  font-weight: var(--weight-extrabold);
  font-size: 1.3125rem;
}

.pillar p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.terms > div {
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.terms .is {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.terms .isnt {
  background: var(--k2-neutral-100);
  border: 1px solid var(--border-subtle);
}

.terms-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.terms .is .terms-label {
  color: var(--k2-field-700);
}

.terms .isnt .terms-label {
  color: var(--k2-barn-700);
}

.terms p {
  font-size: 1.125rem;
  line-height: 1.55;
}

.terms .is p {
  color: var(--text-body);
}

.terms .isnt p {
  color: var(--text-muted);
}

/* ==========================================================================
   Mid-page CTA band and the mission band
   ========================================================================== */

.ctaband {
  background: var(--k2-orange-50);
  border-top: 1px solid var(--color-brand-subtle-border);
  border-bottom: 1px solid var(--color-brand-subtle-border);
  padding-block: 44px;
}

.ctaband .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-8);
  text-align: center;
}

.ctaband p {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--text-strong);
}

.ctaband .cta-aside {
  font-size: 1.0625rem;
  color: var(--text-strong);
}

.ctaband .cta-aside a {
  color: var(--text-strong);
  border-bottom-color: var(--border-strong);
}

.mission {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(28, 29, 31, 0.9) 0%, rgba(28, 29, 31, 0.78) 100%),
    url("/landing-pages/shared/img/solar-array.webp");
  background-size: cover;
  background-position: center;
  padding-block: 96px;
}

.mission .wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-align: center;
  align-items: center;
}

.mission h2 {
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  font-size: clamp(1.875rem, 4.2vw, 2.875rem);
  color: #fff;
}

.mission p {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: #ecedee;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8) var(--space-10);
}

.faq-grid > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-grid h3 {
  font-weight: var(--weight-extrabold);
  font-size: 1.25rem;
}

.faq-grid p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   The form
   ========================================================================== */

.fit {
  padding-block: 88px;
  background: var(--k2-neutral-100);
  border-top: 1px solid var(--border-subtle);
}

.fit .wrap {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-10);
  align-items: start;
}

.fit-pitch {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fit-pitch h2 {
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.fit-pitch > p {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.call-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
}

.call-card:hover {
  border-color: var(--color-brand);
  color: var(--text-strong);
  text-decoration: none;
}

.call-card span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.call-card .call-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.call-card .call-number {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}

.formcard {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--color-brand);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.formcard form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reqnote {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.consent {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* The honeypot: a real input, positioned where nobody can see or tab to it.
   A bot that fills every field in gets a 201 and writes nothing. */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

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

.site-footer {
  background: var(--k2-neutral-900);
  color: var(--k2-neutral-300);
  padding-block: 56px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px var(--space-12);
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer img {
  height: 72px;
  width: auto;
  align-self: flex-start;
  display: block;
}

.site-footer > .wrap > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-md);
  line-height: 1.6;
}

.site-footer a {
  color: var(--k2-neutral-200);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .muted {
  color: var(--k2-neutral-500);
}

.site-footer .mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Narrow screens — most of this traffic arrives from a phone
   ========================================================================== */

@media (max-width: 640px) {
  .section {
    padding-block: 56px;
  }

  .hero {
    min-height: 0;
  }

  .hero .wrap {
    padding-block: 56px;
  }

  .fit {
    padding-block: 56px;
  }

  .card {
    padding: var(--space-6);
  }

  .formcard {
    padding: var(--space-5);
  }

  .site-header img {
    height: 54px;
  }

  .header-call {
    font-size: var(--text-md);
  }

  /* A full-width thumb target for the primary action. */
  .cta-row .k2-btn {
    width: 100%;
  }

  .trustbar .wrap {
    gap: var(--space-3);
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The panel that replaces the form once a lead is stored (landing-form.js). */
.thanks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
  padding-block: var(--space-6);
}

.thanks:focus {
  outline: none;
}

.thanks h3 {
  font-weight: var(--weight-extrabold);
  font-size: 1.625rem;
}

.thanks p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}
