/* Aatago marketing site — shared styles. No build step, no frameworks. */
:root {
  --green: #0E5C36;
  --green-dark: #0a4527;
  --volt: #C8F542;
  --ink: #0C1210;
  --offwhite: #F4F7F4;
  --muted: #5c6b62;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 244, 0.96);
  border-bottom: 1px solid #dde5de;
  backdrop-filter: blur(6px);
}
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover { background: #e6ede6; }
.nav-links a.active { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid var(--volt);
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #b8e63a; border-color: #b8e63a; color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a2421; border-color: #1a2421; color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .volt { color: var(--volt); }
.hero p.sub { font-size: 1.25rem; color: #c9d4cc; max-width: 640px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: #8fa096; font-size: 0.95rem; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid #e2e9e2;
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ---------- pricing ---------- */
.billing-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; }
.billing-toggle button {
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}
.billing-toggle button.on { background: var(--green); color: #fff; }
.toggle-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.toggle-row .billing-toggle { margin-bottom: 0; }
.tier { display: flex; flex-direction: column; }
.tier.featured {
  border: 2px solid var(--green);
  box-shadow: 0 8px 30px rgba(14, 92, 54, 0.12);
  position: relative;
}
.tier .badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--volt);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier h3 { font-size: 1.3rem; margin: 0; }
.card .badge {
  display: inline-block;
  background: var(--volt);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.tier .price { font-size: 2.4rem; font-weight: 800; margin: 12px 0 0; }
.tier .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tier .per-year { color: var(--muted); font-size: 0.95rem; min-height: 1.6em; }
.tier ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.tier li { padding: 6px 0; border-bottom: 1px solid #eef2ee; }
.tier li:last-child { border-bottom: none; }
.tier li.no { color: #aab5ac; }
.check { color: var(--green); font-weight: 700; margin-right: 8px; }

/* ---------- faq ---------- */
details.faq {
  background: var(--card);
  border: 1px solid #e2e9e2;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; color: var(--green); font-weight: 800; }
details.faq[open] summary::before { content: "– "; }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- forms ---------- */
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #c9d4cc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d4cc;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #c9d4cc; text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid #223029;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #8fa096;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.social-links { display: flex; gap: 14px; }
.social-links a { color: #c9d4cc; display: inline-flex; }
.social-links a:hover { color: var(--volt); }

/* ---------- misc ---------- */
.testimonial { font-style: italic; }
.testimonial .who { font-style: normal; font-weight: 700; margin-top: 12px; }
.placeholder-note {
  background: #fff8e1;
  border: 1px dashed #c9a227;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #7a5c00;
  margin-top: 12px;
}
.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 2rem; }
.cta-band p { color: #d7e4da; max-width: 560px; margin: 0 auto 28px; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eef2ee; }
table.compare th { background: var(--ink); color: #fff; }

/* ---------- mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d8e2d8;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .hero { padding: 60px 0 48px; }
  .nav { position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e3eae3;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20,40,25,.14);
    padding: 8px;
    min-width: 210px;
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-links .btn { text-align: center; margin-top: 4px; }
}

/* Footer region switcher (Canada | U.S.) */
.region-switcher { display: inline-flex; align-items: center; gap: 8px; }
.region-switcher button {
  background: none; border: none; padding: 0;
  color: #8fa098; font: inherit; font-size: 13px; cursor: pointer;
}
.region-switcher button:hover { text-decoration: underline; }
.region-switcher button.on { color: #e8f0ea; font-weight: 600; text-decoration: underline; }
.region-switcher .region-sep { opacity: 0.4; }

/* ---------- redesigned homepage hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-visual img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ---------- guest checkout modal ---------- */
.guest-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 16, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.guest-modal[hidden] { display: none; }
.guest-modal-card {
  position: relative;
  background: #fff; border-radius: 16px;
  max-width: 440px; width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.guest-modal-card h3 { margin: 0 0 6px; font-size: 1.4rem; }
.guest-modal-plan { color: #5b6b62; font-size: 0.95rem; margin: 0 0 18px; }
.guest-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: #8fa098; cursor: pointer;
}
.guest-modal-close:hover { color: var(--ink); }
.guest-modal-card label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.95rem; }
.guest-modal-card input {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; font-size: 1rem;
  border: 2px solid #dfe7e1; border-radius: 10px;
  font-family: inherit;
}
.guest-modal-card input:focus { outline: none; border-color: var(--green); }
.guest-modal-card .btn { width: 100%; margin-top: 6px; }
.guest-modal-card .btn:disabled { opacity: 0.6; cursor: wait; }
.guest-modal-error { color: #b3261e; font-size: 0.9rem; margin: 0 0 10px; }
.guest-modal-note { color: #8fa098; font-size: 0.85rem; text-align: center; margin: 12px 0 0; }
