:root {
  --green: #5c970a;
  --green-dark: #0d5d09;
  --green-soft: #cdefad;
  --navy: #0b3954;
  --ink: #212b36;
  --muted: #637381;
  --line: rgba(145, 158, 171, 0.28);
  --surface: #f4f6f8;
  --paper: #ffffff;
  --shadow: 0 12px 32px rgba(11, 57, 84, 0.08);
  --header-height: 4.5rem;
  --max: 72rem;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

p,
ul,
ol {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0.75rem 1.5rem;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--green-dark);
}

.site-nav {
  margin-left: auto;
  flex: 1;
}

.site-nav ul {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
}

.header-cta {
  margin-left: 30px;
  flex-shrink: 0;
  flex: 0 0 auto;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--green);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--green-dark);
  cursor: pointer;
}

.hero,
.band {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3.5rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 0 2.5rem;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.pillars li {
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--surface);
  border-radius: 1rem;
}

.pillar-mark,
.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 0.7rem;
  background: var(--green-soft);
  color: var(--green-dark);
}

.pillar-mark svg,
.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pillars h2,
.card h3,
.sale-row h3,
.panel h3,
.tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.pillars p,
.card p,
.sale-row p,
.tile p,
.section-heading p {
  color: var(--muted);
}

.band {
  padding: 4.5rem 1.5rem;
}

.band-tint {
  background: var(--surface);
}

.section-heading,
.feature-grid,
.sale-row,
.office-grid,
.shot-grid,
.audience-grid,
.video-frame {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.video-frame {
  margin-top: 0;
  margin-bottom: 0;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.video-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.feature-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.wrap > .feature-grid {
  margin-top: 2rem;
}

.card,
.tile,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.card,
.tile {
  padding: 1.4rem 1.35rem 1.5rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.card:hover,
.tile:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

#store,
#inventory,
#insights {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.sale-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sale-row li {
  flex: 1 1 calc((100% - 4rem) / 5);
  max-width: calc((100% - 4rem) / 5);
  padding: 1.15rem 1rem 1.3rem;
  background: var(--paper);
  border-radius: 1rem;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sale-row li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.shot {
  margin: 0;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  padding: 1.6rem 1.5rem 1.75rem;
}

.panel ul {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.panel li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.panel li:hover {
  color: var(--green-dark);
}

/* .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
} */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

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

  .pillars,
  .feature-grid,
  .audience-grid,
  .office-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .sale-row li {
    flex-basis: 100%;
    max-width: none;
  }

  .shot-wide {
    grid-column: auto;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 400px) {
  .wordmark img {
    width: 150px;
    height: auto;
  }
}

.carousel-section {
  margin-top: 20px;
  padding: 0 40px;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .feature-grid,
  .checks,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-row li {
    flex-basis: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

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

  .card,
  .tile,
  .sale-row li,
  .jump a,
  .steps li,
  .btn {
    transition: none;
  }

  .card:hover,
  .tile:hover,
  .sale-row li:hover,
  .jump a:hover,
  .steps li:hover,
  .btn:hover {
    transform: none;
  }
}

/* =========================================
   LOGIN MODAL
========================================= */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.login-modal.active {
  display: flex;
}

/* Dark background */
.login-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(3px);
}

/* Modal box */
.login-modal-content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 500px;

  max-height: calc(100vh - 40px);
  overflow-y: auto;

  background: #fff;
  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  animation: loginModalIn 0.2s ease-out;
}

@keyframes loginModalIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-button {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Close button */
.login-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 36px;
  height: 36px;

  border: none;
  border-radius: 50%;

  background: transparent;

  color: #555;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  z-index: 2;
}

.login-modal-close:hover {
  background: #f1f1f1;
  color: #111;
}

/* =========================================
   LOGIN FORM
========================================= */

.login-container {
  width: 100%;
  padding: 32px;
}

.login-card {
  background: #fff;
}

.login-title {
  margin: 0 40px 8px 0;

  font-size: 28px;
  font-weight: 600;

  color: #222;
}

.login-subtitle {
  margin-bottom: 28px;

  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 500;

  color: #333;
}

.form-input {
  width: 100%;
  height: 46px;

  padding: 0 14px;

  border: 1px solid #d0d0d0;
  border-radius: 6px;

  font-size: 15px;

  outline: none;
}

.form-input:focus {
  border-color: #084706;
}

.form-input.error {
  border-color: #d32f2f;
}

.error-message {
  display: none;

  margin-top: 6px;

  color: #d32f2f;
  font-size: 13px;
}

.error-message.show {
  display: block;
}

/* Shared layout for the home page and /why-switch/ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.lede {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.lede-center {
  margin-right: auto;
  margin-left: auto;
}

.hero:has(.lede) h1 {
  margin-bottom: 1.25rem;
}

.band > .wrap > h2,
.pain h2,
.final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.btn {
  display: inline-block;
  margin: 0.5rem 0.75rem 0.5rem 0;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-ghost {
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--navy);
}

.jump,
.checks {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

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

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

.jump a,
.checks li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.jump a {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.jump a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.jump .n {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.jump strong {
  display: block;
  color: var(--navy);
}

.jump .q {
  color: var(--muted);
  font-size: 0.95rem;
}

.checks li {
  padding: 1.15rem 1.2rem;
}

.tag {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.problem {
  margin: 0 0 1.25rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 4px solid var(--green);
  color: var(--muted);
}

.problem p + p,
.text > p + p {
  margin-top: 0.75rem;
}

.answer-label {
  margin-bottom: 0.4rem;
  color: var(--green-dark);
  font-weight: 700;
}

.text ul,
.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.text li + li,
.card li + li {
  margin-top: 0.35rem;
}

.card li {
  color: var(--muted);
}

.proof {
  text-align: center;
}

.big {
  margin: 0.5rem 0 0.75rem;
  color: var(--green-dark);
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.steps li:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.steps li::before {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  content: counter(step);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

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

.band details {
  margin-bottom: 0.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 160ms ease;
}

.band details:hover {
  border-color: var(--green);
}

.band summary {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.band details p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.offer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  border-radius: 1rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.offer h2,
.final h2 {
  color: #fff;
}

.offer .eyebrow {
  color: var(--green-soft);
}

.offer p {
  color: rgba(255, 255, 255, 0.88);
}

.offer .btn-primary {
  background: #fff;
  color: var(--navy);
}

.offer .btn-primary:hover {
  background: var(--green-soft);
  color: var(--navy);
}

.final {
  padding: 4.5rem 1.5rem;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}

.final p {
  max-width: 40rem;
  margin: 0.75rem auto 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-final1 {
  border: 2px solid transparent;
  background: var(--green);
  color: #fff;
}

.btn-final1:hover {
  background: var(--navy);
  color: #fff;
}

.btn-final2 {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.btn-final2:hover {
  background: #fff;
  color: var(--navy);
}

@media (max-width: 900px) {
  .jump,
  .checks,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero .btn,
  .offer .btn,
  .final .btn {
    display: block;
    margin-right: 0;
    text-align: center;
  }

  .offer,
  .final {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}
