:root {
  /* Palette */
  --bg: #0e1311;
  --card: #111a17;
  --muted: #a8b7b1;
  --text: #eef6f3;

  /* Brand */
  --primary: #387578; /* emerald */
  --primary-contrast: #062a1f;
  --ring: #68a4a7;

  /* Layout */
  --maxw: 1100px;
  --radius: 14px;

  /* Tokens used in rules */
  --border: #1c2c24;
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 15% -10%,
      #143328 0,
      transparent 60%
    ),
    radial-gradient(900px 500px at 85% -10%, #133025 0, transparent 60%),
    var(--bg);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Expand features grid to full width with gutters */
.features .container.grid-2 {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

/* Center the last (odd) feature card */
.grid-2 > .feature:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--primary);
  color: #00110c;
}
.btn-ghost {
  background: transparent;
  border-color: #203d33;
  color: var(--text);
}
.btn:hover {
  filter: brightness(1.05);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 9999;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(12, 19, 16, 0.6);
  border-bottom: 1px solid #062a1f;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  position: relative; /* for mobile menu anchoring */
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}
.nav a:hover,
.footer-nav a:hover {
  background: #062a1f;
}

/* Hero */
.hero {
  padding: clamp(2rem, 6vw, 6rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 950px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0 0 0.75rem;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin: 0 0 1rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero art card */
.hero-art {
  display: flex;
  justify-content: center;
}
.card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, #0f1915, #0c1512);
  border: 1px solid #1c2c24;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.card-row {
  display: grid;
  grid-template-columns: 20px 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dashed #1c2c24;
}
.card-row:last-child {
  border-bottom: 0;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #68a4a7;
}
.line {
  height: 10px;
  background: #062a1f;
  border-radius: 6px;
  display: block;
}
.line-60 {
  width: 60%;
}
.line-50 {
  width: 50%;
}
.line-40 {
  width: 40%;
}
.line-30 {
  width: 30%;
}
.line-20 {
  width: 20%;
}
.line-10 {
  width: 10%;
}
.amount {
  font-variant-numeric: tabular-nums;
}
.amount.positive {
  color: #5cc683;
}
.amount.negative {
  color: #e86464;
}

/* Features */
.features {
  padding: 0;
}

.feature {
  width: 100%;
  background: #0f1915;
  border: 1px solid #1c2c24;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) 0;
  height: 100%;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #fff;
  text-align: center;
}
.feature p {
  line-height: normal;
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 20rem;
  text-align: center;
}

/* Screenshot presentation */
.feature-img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 420px;
  height: clamp(300px, 45vw, 520px);
  object-fit: cover;
  object-position: top center; /* crop bottom a bit */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Mobile niceties */
@media (max-width: 480px) {
  .feature-img {
    max-width: 90vw;
    max-height: 65vh;
  }
}

/* How it works */
.how {
  padding: 2.5rem 0;
}
.steps {
  margin: 0.5rem 0 0 1rem;
}

/* CTA (UAT sign-up) */
.cta-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: #0f1915;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-wrap {
  text-align: center;
  max-width: 800px;
}
.cta-lead {
  margin: 0.5rem auto 1rem;
  color: var(--muted);
  max-width: 60ch;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.inline-form input {
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 420px;
  background: #0c1512;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 0.75rem 1rem;
}
.inline-form input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.cta-status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-size: 0.95rem;
}
.cta-status.success {
  color: #86efac;
}
.cta-status.error {
  color: #fca5a5;
}

/* Honeypot (hidden) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid #1c2c24;
  background: rgba(12, 19, 16, 0.6);
}
.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Mobile polish --- */
@media (max-width: 700px) {
  .hero-inner {
    gap: 1rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    text-align: center;
  }
  .hero-copy p {
    text-align: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .feature-img {
    height: clamp(240px, 55vw, 420px);
  }
  .how .container h2 {
    text-align: center;
  }
}

/* --- Disable hover effects on non-hover devices --- */
@media (hover: none) {
  .nav a:hover,
  .footer-nav a:hover {
    background: transparent;
  }
}

/* ===================== Mobile nav (right-aligned, slide-down) ===================== */

.nav-toggle {
  display: none; /* shown via media query */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 19, 16, 0.6);
  color: var(--text);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Burger icon */
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .burger::before {
  top: -6px;
}
.nav-toggle .burger::after {
  top: 6px;
}

/* "X" state */
.nav-toggle[aria-expanded="true"] .burger {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger::before {
  transform: rotate(-90deg) translateX(-6px);
}
.nav-toggle[aria-expanded="true"] .burger::after {
  opacity: 0;
}

/* Dropdown panel anchored to the right inside header container */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: min(90vw, 280px);
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 12px 12px;

  /* slide+fade closed state */
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 0 0.75rem;
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.24s ease;
}

/* Open state (JS toggles .open) */
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  max-height: 320px;
  pointer-events: auto;
  padding: 0.5rem 0.75rem 1rem;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: right; /* right-align text to match right-anchored panel */
}
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1915;
}
.mobile-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Show burger / hide desktop nav under 700px */
@media (max-width: 700px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

.quick-overview {
  background: #0f1915;
  border: 1px solid #1c2c24;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.quick-overview h2 {
  margin-top: 0;
}
.quick-overview ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
}
.quick-overview li {
  margin-bottom: 0.5rem;
}
/* Legal page links (privacy, terms, email links, etc.) */
.legal a {
  color: var(--primary); /* use your emerald brand color */
  text-decoration: underline;
}

.legal a:visited {
  color: var(--primary); /* prevent purple visited links */
}

.legal a:hover {
  color: #5cc683; /* optional: brighter green on hover */
}
