:root {
  --ink: #14202b;
  --muted: #52616b;
  --paper: #ffffff;
  --wash: #f4f7f2;
  --field: #eef4ea;
  --line: #d8e0d2;
  --green: #276749;
  --green-dark: #174633;
  --gold: #d99a22;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 32, 43, 0.08);
}

.brand {
  font-size: 18px;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-size: 14px;
}

.nav-action {
  color: var(--green);
  font-weight: bold;
}

.purchase-nav-action {
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--green);
  color: white;
}

.purchase-nav-action:hover {
  background: var(--green-dark);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 96px clamp(18px, 6vw, 72px) 72px;
  background:
    linear-gradient(90deg, rgba(8, 16, 24, 0.76) 0%, rgba(8, 16, 24, 0.52) 44%, rgba(8, 16, 24, 0.12) 100%),
    url("assets/rural-route-hero.png") center / cover;
  color: white;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 20px 0 0 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
}

.hero-actions,
.final-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
}

.primary-action {
  background: var(--green);
  color: white;
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.outline-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.outline-action:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.disabled-action {
  pointer-events: none;
  opacity: 0.7;
}

.section {
  padding: 68px clamp(18px, 6vw, 72px);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.feature-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature,
.step,
.price-card,
.check-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.05);
}

.feature,
.step,
.check-panel {
  padding: 18px;
}

.feature h3,
.step h3,
.price-card h3,
.check-panel h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.feature p,
.step p,
.split-layout p,
.pricing-layout p,
.price-card li,
.check-panel li,
.small-note {
  color: var(--muted);
  line-height: 1.5;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compact-template-actions {
  margin-top: 12px;
}

.compact-template-actions .outline-action {
  width: 100%;
}

.split-section,
.install-section,
.demo-section {
  background: var(--field);
}

.split-layout,
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.check-panel ul,
.price-card ul {
  margin: 14px 0 0 0;
  padding-left: 18px;
}

.pricing-section {
  background: white;
}

.price-card {
  padding: 22px;
}

.price-card-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.price {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: var(--green);
}

.price-card .primary-action {
  width: 100%;
  margin-top: 18px;
}

.small-note {
  margin: 10px 0 0 0;
  font-size: 13px;
}

.test-note {
  color: #9a3412;
  font-weight: 700;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
}

.demo-layout .section-heading p {
  color: var(--muted);
  line-height: 1.5;
}

.slideshow-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.slide-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.slide-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.slideshow {
  position: relative;
  min-height: 560px;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(220px, 0.62fr);
  gap: 18px;
  align-items: center;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.phone-shot {
  display: grid;
  gap: 12px;
  min-height: 520px;
  padding: 18px;
  border: 10px solid #111827;
  border-radius: 28px;
  background: #f4f4f4;
  box-shadow: 0 18px 42px rgba(21, 32, 43, 0.18);
}

.shot-header,
.shot-tools,
.shot-card,
.shot-list,
.shot-map,
.shot-map-button,
.shot-note-box {
  border-radius: 8px;
  background: white;
}

.shot-header,
.shot-tools {
  padding: 10px 12px;
  font-weight: 800;
}

.shot-tools {
  color: var(--ink);
}

.shot-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 3px solid #333;
}

.shot-card strong {
  font-size: 24px;
}

.shot-card span,
.shot-list {
  color: var(--muted);
  line-height: 1.45;
}

.shot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shot-actions span {
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  color: white;
}

.shot-actions span:first-child {
  background: var(--blue);
}

.shot-actions span:last-child {
  background: #16a34a;
}

.shot-list {
  padding: 14px;
  border: 3px solid #15803d;
}

.shot-map {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(21, 32, 43, 0.25);
  color: var(--muted);
  font-weight: 800;
}

.warning-text {
  color: #dc2626;
}

.warning-card {
  border-color: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.16);
}

.shot-map-button {
  justify-self: start;
  padding: 12px 16px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.shot-note-box {
  display: block;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
}

.slide-copy {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.06);
}

.slide-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.slide-copy h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.slide-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: bold;
}

.final-cta {
  background: var(--green);
  color: white;
}

.final-cta .eyebrow,
.final-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.final-cta-inner {
  justify-content: space-between;
}

.final-cta-inner > div {
  max-width: 720px;
}

.final-cta .primary-action {
  background: white;
  color: var(--green);
}

footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

footer span {
  color: var(--ink);
  font-weight: bold;
}

.purchase-hero {
  min-height: 72vh;
}

.success-page {
  min-height: 100vh;
  background: var(--field);
}

.success-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-card {
  width: min(620px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(21, 32, 43, 0.14);
}

.success-card h1 {
  margin: 0 0 14px 0;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.05;
}

.success-card > p {
  color: var(--muted);
  line-height: 1.5;
}

.license-result {
  margin-top: 24px;
  padding: 20px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--wash);
}

.license-result span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.license-result strong {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
  font-size: clamp(20px, 5vw, 30px);
  letter-spacing: 0;
}

.license-result .primary-action {
  border: 0;
  cursor: pointer;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.text-action {
  color: var(--green);
  font-weight: 700;
}

.policy-page {
  background: var(--wash);
}

.policy-main {
  min-height: calc(100vh - 130px);
  padding: 110px clamp(18px, 6vw, 72px) 64px;
}

.policy-shell {
  max-width: 860px;
  margin: 0 auto;
}

.policy-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.policy-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
}

.policy-heading p,
.policy-section p,
.policy-section li {
  color: var(--muted);
  line-height: 1.65;
}

.policy-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.policy-section ul {
  padding-left: 22px;
}

.policy-section a,
.policy-heading a {
  color: var(--green);
  font-weight: 700;
}

.recovery-card {
  max-width: 560px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.06);
}

.recovery-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.recovery-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.recovery-card button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .policy-main {
    padding-top: 54px;
  }

  .feature-grid,
  .steps-grid,
  .split-layout,
  .pricing-layout,
  .demo-layout,
  .slide {
    grid-template-columns: 1fr;
  }

  .slideshow {
    min-height: 780px;
  }

  .phone-shot {
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  .site-header,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 38px;
  }
}
