:root {
  --bg: #095201;
  --bg-raised: #0b6602;
  --bg-deep: #063a01;
  --bg-ink: #10130c;
  --bg-ink-raised: #1c2114;
  --accent: #ffdc00;
  --accent-dim: #e0c400;
  --accent-glow: rgba(255, 220, 0, 0.4);
  --text-secondary: #f0f0f0;
  --text-muted: rgba(240, 240, 240, 0.62);
  --border: rgba(255, 220, 0, 0.22);
  --bg-light: #f0f0f0;
  --text-on-light: #095201;
  --text-on-light-muted: rgba(9, 82, 1, 0.68);
  --border-on-light: rgba(9, 82, 1, 0.15);
  --font-display: "Bayon", sans-serif;
  --font-body: "Afacad", sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: normal;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75em;
}

.eyebrow-center {
  text-align: center;
}

.how-it-works .eyebrow,
.pricing .eyebrow,
.faq .eyebrow {
  color: var(--text-muted);
}

.section-inner,
.hero-inner,
.footer-inner,
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus states */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons & links */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

/* <button>, unlike <a>, doesn't inherit font-size/line-height from body and
   can keep native OS chrome unless appearance is reset — normalize so the
   pricing-card submit buttons render identically to the .btn anchor links. */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  font-size: inherit;
  line-height: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.link-secondary {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover {
    transform: none;
  }
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
  transition: padding 0.3s ease;
}

.nav-logo {
  display: block;
}

.nav-logo img {
  height: 105px;
  width: auto;
  transition: height 0.3s ease;
}

/* Sticky nav: fade + shrink once the hero has scrolled past */

.nav.nav-scrolled {
  background: rgba(6, 58, 1, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 220, 0, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-scrolled .nav-inner {
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav-scrolled .nav-logo img {
  height: 84px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

.nav-login {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-login:hover {
  color: var(--text-secondary);
}

.nav-signup {
  padding: 9px 18px;
  font-size: 0.92rem;
  background: transparent;
  color: var(--accent);
}

.nav-signup:hover {
  background: rgba(255, 220, 0, 0.1);
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero */

.hero {
  padding: 64px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% 0%, rgba(11, 102, 2, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-subhead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  box-shadow: 0 10px 28px var(--accent-glow);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 14px 34px var(--accent-glow);
}

.hero-actions .link-secondary {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-actions .link-secondary:hover {
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.due-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
}

/* Screenshot placeholders */

.screenshot-placeholder {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.screenshot-placeholder-chrome {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(240, 240, 240, 0.04);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.screenshot-placeholder-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.16);
}

.screenshot-placeholder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
}

.screenshot-placeholder-body svg {
  opacity: 0.5;
}

.screenshot-placeholder-body span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.screenshot-hero {
  position: relative;
  z-index: 1;
}

/* How it works */

.how-it-works,
.benefits,
.pricing,
.faq {
  scroll-margin-top: 130px;
}

.how-it-works {
  position: relative;
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-ink-raised) 0%, var(--bg-ink) 100%);
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 220, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.how-it-works .section-inner {
  position: relative;
  z-index: 1;
}

.due-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 56px 0 64px;
}

.due-rail-line {
  display: none;
}

.due-rail-stop {
  position: relative;
  text-align: left;
}

.due-rail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.due-rail-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  position: relative;
  transform: scale(0.857);
  transform-origin: center;
  transition: transform 0.3s ease, background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease, border-width 0.3s ease,
    box-shadow 0.3s ease, font-size 0.3s ease;
}

.due-rail-marker-active {
  background: var(--accent);
  color: var(--bg-deep);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 3px var(--accent), 0 10px 22px rgba(0, 0, 0, 0.35);
  transform: scale(1) rotate(-6deg);
  font-size: 1.55rem;
}

.due-rail-marker-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: due-pulse 2s ease-out infinite;
}

@keyframes due-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .due-rail-marker {
    transition: none;
  }

  .due-rail-marker-active::after {
    animation: none;
    display: none;
  }

  .nav,
  .nav-inner,
  .nav-logo img {
    transition: none;
  }
}

.due-rail-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.due-rail-stop-due .due-rail-tag {
  color: var(--accent);
}

.due-rail-stop h3 {
  margin-bottom: 0.35em;
}

.due-rail-stop p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0;
}

.due-rail-loop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 220, 0, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Benefits */

.benefits {
  padding: 96px 0;
  background: linear-gradient(180deg, #f5f5f0 0%, var(--bg-light) 100%);
}

.benefits .eyebrow,
.benefits h2 {
  color: var(--text-on-light);
}

.benefits h2 {
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--border-on-light);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 16px 32px rgba(9, 82, 1, 0.08);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--accent);
  margin-bottom: 16px;
}

.benefit-card h3 {
  color: var(--text-on-light);
  margin-bottom: 0.35em;
}

.benefit-card p {
  color: var(--text-on-light-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.benefit-card-wide {
  grid-column: 1 / -1;
}

.task-examples {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
}

.task-examples li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-light);
  background: rgba(9, 82, 1, 0.06);
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  padding: 6px 14px;
}

.benefits-compare {
  margin-top: 32px;
  background: var(--bg);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(9, 82, 1, 0.12);
}

.benefits-compare-heading {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.4rem;
  text-align: center;
  margin: 0 0 28px;
}

.benefits-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefits-compare-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}

.benefits-compare-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.benefits-compare-label-them {
  color: var(--text-muted);
}

.benefits-compare-label-us {
  color: var(--accent);
}

.benefits-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.benefits-compare-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.benefits-compare-list-them li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.benefits-compare-list-us li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Pricing */

.pricing {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(255, 220, 0, 0.06) 0%, transparent 65%),
    var(--bg-deep);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 680px;
  margin: 56px auto 36px;
}

.pricing-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.price {
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  color: var(--accent);
}

.price-interval {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-guarantee {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FAQ */

.faq {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-ink-raised) 0%, var(--bg-ink) 100%);
}

.faq h2 {
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
  display: grid;
  gap: 20px;
}

.faq-item {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover h3 {
  color: var(--accent-dim);
}

.faq-summary:focus-visible {
  outline-offset: -3px;
}

.faq-item h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0;
}

.faq-chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  padding: 0 28px 26px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}

/* CTA band */

.cta-band {
  padding: 72px 0;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dim) 100%);
}

.cta-band-inner {
  text-align: center;
  max-width: 620px;
}

.cta-band h2 {
  color: var(--bg-deep);
  margin-bottom: 0.3em;
}

.cta-band p {
  color: rgba(9, 82, 1, 0.75);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.75em;
}

.cta-band .btn-primary {
  background: var(--bg-deep);
  color: var(--accent);
  border-color: var(--bg-deep);
}

.cta-band .btn-primary:hover {
  background: #063a01;
  color: var(--accent);
}

/* Footer */

.footer {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #052a01 100%);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */

@media (min-width: 700px) {
  .due-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .due-rail-line {
    display: block;
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 0;
  }

  .due-rail-line::before,
  .due-rail-line::after {
    content: "";
    position: absolute;
    top: 0;
    height: 2px;
    width: calc((100% - 64px) / 3 - 16px);
    background: repeating-linear-gradient(
      to right,
      var(--border) 0,
      var(--border) 8px,
      transparent 8px,
      transparent 16px
    );
  }

  .due-rail-line::before {
    left: 48px;
  }

  .due-rail-line::after {
    left: calc((100% - 64px) / 3 + 80px);
  }

  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

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

  .benefits-compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card-featured {
    transform: translateY(-10px);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-signup {
    text-align: center;
    margin-top: 12px;
  }

  .due-chip {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
