/* ============================================================
   Rally — shared design system
   Single source of truth for tokens + core components.
   Canonical reference: index.html (do not fork these values).
   Page-specific rules live in each page's own <style> block.
   ============================================================ */

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

:root {
  /* Brand colours — exact spec */
  --green:       #2D6A4F;   /* Forest Green — primary */
  --green-light: #3A8A6B;   /* Light Green */
  --green-dark:  #1E4F3A;   /* Dark Green */
  --amber:       #F4A261;   /* Amber — brand accent */
  --cream:       #FAFDF9;   /* Brand background */
  --green-pale:  #E4F2EB;   /* Soft tint for cards/tags */
  --green-accent:#52B788;   /* Brighter accent for checkmarks etc. */
  /* Typography & UI */
  --text:   #1A1F1D;
  --muted:  #6B7280;
  --border: #E0E8E4;
  --bg:     #FFFFFF;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* Keyboard users can bypass the sticky navigation without losing their place. */
.skip-link {
  position: fixed; left: 16px; top: -56px; z-index: 200;
  padding: 10px 14px; border-radius: 8px;
  background: #fff; color: var(--green-dark); font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-target { display: block; scroll-margin-top: 122px; }
main:focus { outline: none; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  padding: 0 24px;
}
/* Breadcrumbs are semantic nav elements, but are not the site navigation. */
.breadcrumb {
  position: static;
  z-index: auto;
  background: transparent;
  padding: 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo .logo-icon { height: 36px; width: 36px; border-radius: 8px; }
.nav-logo .logo-text { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.85); transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-explore { position: relative; }
.nav-explore summary {
  list-style: none; cursor: pointer; user-select: none;
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.85); transition: color 0.2s;
}
.nav-explore summary::-webkit-details-marker { display: none; }
.nav-explore summary::after { content: "▾"; margin-left: 5px; font-size: 11px; }
.nav-explore summary:hover, .nav-explore[open] summary { color: #fff; }
.nav-explore summary:focus-visible {
  outline: 2px solid #fff; outline-offset: 4px; border-radius: 3px;
}
.nav-explore-menu {
  position: absolute; top: calc(100% + 16px); left: -16px;
  display: grid; min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid rgba(45,106,79,0.12);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(20,50,35,0.18);
}
.nav-explore-menu::before {
  content: ""; position: absolute; top: -6px; left: 30px;
  width: 11px; height: 11px; background: #fff;
  border-left: 1px solid rgba(45,106,79,0.12);
  border-top: 1px solid rgba(45,106,79,0.12); transform: rotate(45deg);
}
.nav-explore-menu a {
  padding: 10px 12px; border-radius: 7px; color: var(--green-dark);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-explore-menu a:hover, .nav-explore-menu a:focus-visible {
  color: var(--green-dark); background: var(--cream); outline: none;
}
.mobile-nav { display: none; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-nav { background: #fff; color: var(--green); }
.btn-nav:hover { background: var(--cream); transform: translateY(-1px); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,106,79,0.3); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-pale); }
/* Light/white variants for use on dark (green) backgrounds */
.btn-light, .btn-white { background: #fff; color: var(--green); }
.btn-light:hover, .btn-white:hover { background: var(--cream); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg  { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-xl  { padding: 16px 36px; font-size: 17px; border-radius: 14px; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, var(--cream) 0%, #EDF5F0 55%, var(--bg) 100%);
  padding: 88px 24px 0;
  text-align: center;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-pale); color: var(--green-dark);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.1px;
  margin-bottom: 28px;
  border: 1px solid rgba(45,106,79,0.15);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px); font-weight: 900; line-height: 1.08;
  color: var(--green-dark); max-width: 840px; margin: 0 auto 22px;
  letter-spacing: -2px;
}
.hero h1 span { color: var(--green); }
.hero > .hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

/* App store badges */
.app-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.app-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff; padding: 10px 20px; border-radius: 12px;
  text-decoration: none; transition: all 0.2s;
}
.app-badge:hover { background: #2a3530; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.app-badge-icon { display: flex; align-items: center; justify-content: center; width: 28px; }
.app-badge-icon svg { width: 26px; height: 26px; fill: currentColor; }
.app-badge-text { text-align: left; }
.app-badge-sub  { font-size: 11px; opacity: 0.7; display: block; }
.app-badge-name { font-size: 15px; font-weight: 700; display: block; }

/* Hero image */
.hero-image-wrap {
  max-width: 900px; margin: 52px auto 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 0 0 rgba(45,106,79,0.08), 0 -24px 80px rgba(30,79,58,0.12);
  position: relative;
}
.hero-image-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,0.35) 100%);
  z-index: 1; pointer-events: none;
}
.hero-image-wrap img {
  width: 100%; display: block;
  max-height: 500px; object-fit: cover; object-position: center top;
}

/* ── SOCIAL PROOF ────────────────────────────────── */
.social-proof {
  padding: 28px 24px 30px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.social-proof-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px;
}
.social-proof p { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 0; }
.trust-pledges { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pledge { font-size: 14.5px; font-weight: 600; color: var(--text); }
.social-divider {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: 88px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--green); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-tag::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--green); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -1px; color: var(--green-dark); margin-bottom: 18px;
  line-height: 1.1;
}
.section-sub { font-size: 18px; color: var(--muted); max-width: 540px; line-height: 1.65; }

/* ── HOW IT WORKS ────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; margin-top: 60px;
}
.step {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step:hover { box-shadow: 0 8px 32px rgba(30,79,58,0.10); transform: translateY(-2px); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.step p  { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ── FEATURES ────────────────────────────────────── */
.features-bg { background: var(--cream); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 60px;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(30,79,58,0.08); transform: translateY(-2px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 32px; height: 32px; }
.ico { display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.feature-card p  { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ── WHO IT'S FOR ────────────────────────────────── */
.personas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px; margin-top: 60px;
}
.persona {
  border: 1.5px solid var(--border); border-radius: 20px; padding: 28px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--cream) 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.persona:hover { border-color: var(--green-light); box-shadow: 0 4px 20px rgba(30,79,58,0.08); }
.persona-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.persona-icon svg { width: 32px; height: 32px; }
.persona h3 { font-size: 19px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.persona p  { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ── PRICING ─────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; margin-top: 60px; max-width: 720px;
}
.pricing-card {
  border: 1.5px solid var(--border); border-radius: 24px; padding: 36px;
  background: var(--bg);
}
.pricing-card.featured {
  border-color: var(--green); background: var(--green-dark); color: #fff;
  box-shadow: 0 12px 40px rgba(30,79,58,0.25);
}
.pricing-card.featured .pricing-sub,
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.72); }
.pricing-card.featured h3 { color: #fff; }
.pricing-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-light); background: rgba(58,138,107,0.18);
  padding: 4px 10px; border-radius: 100px; display: inline-block; margin-bottom: 22px;
}
.pricing-card h3 { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
.pricing-price {
  font-size: 52px; font-weight: 900; color: var(--green-dark);
  line-height: 1; margin-bottom: 6px;
}
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-price span { font-size: 18px; font-weight: 500; opacity: 0.65; }
.pricing-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-feature {
  font-size: 15px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.pricing-feature::before {
  content: '✓'; color: var(--green-accent); font-weight: 700;
  font-size: 15px; flex-shrink: 0;
}
.pricing-card.featured .pricing-feature::before { color: var(--green-accent); }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  padding: 88px 24px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  margin-bottom: 18px; letter-spacing: -0.8px; position: relative;
}
.cta-banner p { font-size: 18px; opacity: 0.82; margin-bottom: 44px; position: relative; }
.cta-banner .app-badge { background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2); }
.cta-banner .app-badge:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand-link { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-icon { height: 36px; width: 36px; border-radius: 8px; }
.footer-text { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.footer-brand p { font-size: 14px; margin-top: 0; line-height: 1.65; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none; transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.65); margin-bottom: 16px;
}
.footer-col a {
  display: flex; align-items: center; min-height: 44px; font-size: 14px;
  color: rgba(255,255,255,0.62); text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 36px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-explore { display: none; }
  nav { padding: 0; }
  .nav-inner { padding: 0 16px; height: 66px; }
  .mobile-nav {
    display: flex; align-items: center; gap: 4px; min-height: 44px;
    padding: 0 12px; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto;
    padding: 0 10px; border-radius: 8px; color: rgba(255,255,255,0.92);
    text-decoration: none; font-size: 14px; font-weight: 600;
  }
  .mobile-nav a:focus-visible, .mobile-nav a:hover { background: rgba(255,255,255,0.16); }
  .hero { padding: 64px 20px 0; }
  .section { padding: 64px 20px; }
  .hero-image-wrap { border-radius: 14px 14px 0 0; margin-top: 40px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── FAQ ACCORDION (no-JS <details>) ──────────────────── */
.faq-accordion { max-width: 760px; margin: 48px auto 0; }
.faq-accordion details {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 0 22px; margin-bottom: 14px; background: var(--bg);
  transition: box-shadow 0.2s;
}
.faq-accordion details[open] { box-shadow: 0 6px 24px rgba(30,79,58,0.08); }
.faq-accordion summary {
  list-style: none; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--green-dark);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: '+'; font-size: 24px; font-weight: 400; color: var(--green);
  line-height: 1; flex-shrink: 0; transition: transform 0.2s;
}
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-accordion .faq-body { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
