:root {
  --green: #1b8a5a;
  --green-mid: #157a4f;
  --green-deep: #0f5c3a;
  --green-soft: #e6f5ed;
  --saffron: #f57c00;
  --saffron-soft: #fff4e8;
  --ink: #0c1a14;
  --ink-soft: #1a2e24;
  --muted: #4d6b5c;
  --muted-light: #7a9486;
  --paper: #f6faf7;
  --white: #ffffff;
  --line: rgba(15, 92, 58, 0.1);
  --shadow-sm: 0 2px 8px rgba(12, 26, 20, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 92, 58, 0.14);
  --shadow-lg: 0 28px 80px rgba(15, 92, 58, 0.22);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(246, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 92, 58, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-hi {
  font-size: 0.72rem;
  color: var(--muted-light);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--green-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  background: rgba(246, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(245, 124, 0, 0.45);
  outline-offset: 2px;
}

.btn:hover:not(.is-disabled) {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(15, 92, 58, 0.28);
}

.btn-primary:hover:not(.is-disabled) {
  box-shadow: 0 12px 32px rgba(15, 92, 58, 0.34);
}

.btn-ghost {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 1rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(27, 138, 90, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 95% 10%, rgba(245, 124, 0, 0.1), transparent 55%),
    linear-gradient(180deg, #eef7f1 0%, var(--paper) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 3rem);
  padding-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.25);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.text-gradient {
  display: block;
  background: linear-gradient(135deg, var(--green-deep) 20%, var(--green) 55%, var(--saffron) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-light);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--muted-light);
  font-weight: 500;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 138, 90, 0.25), transparent 70%);
  filter: blur(20px);
}

.phone {
  position: relative;
  width: min(300px, 85vw);
  padding: 10px;
  border-radius: 2.5rem;
  background: linear-gradient(155deg, #1a3d2c, var(--green-deep));
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.phone-notch {
  width: 90px;
  height: 22px;
  margin: 0 auto 6px;
  background: #0a2018;
  border-radius: 0 0 14px 14px;
}

.phone-ui {
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #f8fffa 0%, #eef6f0 100%);
  padding: 1.25rem 1.1rem 1.5rem;
  min-height: 380px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phone-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.phone-hero-amount {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.phone-hero-sub {
  font-size: 0.85rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.phone-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phone-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.phone-bar-row .amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green-deep);
}

.phone-bar-row.expense .amt {
  color: #c0392b;
}

.phone-bar-row .bar {
  grid-column: 1 / -1;
  height: 5px;
  background: rgba(15, 92, 58, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.phone-bar-row .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
}

.phone-bar-row.expense .bar i {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.phone-chip {
  margin-top: 1.25rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Trust bar ── */
.trust {
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-logos li {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.trust-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(230, 245, 237, 0.35));
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--saffron);
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-radius: 10px;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Install */
.install-section {
  padding-bottom: 6rem;
}

.install-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--green-deep) 0%, #0a3d28 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.install-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(245, 124, 0, 0.15), transparent 65%);
  pointer-events: none;
}

.install-copy {
  position: relative;
}

.install-copy .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.install-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.install-copy > p {
  margin: 0.75rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}

.install-steps {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.install-steps strong {
  color: var(--white);
}

.install-card .btn-primary {
  background: var(--white);
  color: var(--green-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.install-card .btn-primary:hover:not(.is-disabled) {
  background: var(--saffron-soft);
}

.install-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.install-note a {
  color: var(--white);
}

.install-aside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  text-align: center;
}

.install-badge img {
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.install-badge span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}

.install-badge small {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-light);
  text-align: right;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .pill-dot { animation: none; }
  .btn:hover { transform: none; }
  .feature-card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .install-card {
    grid-template-columns: 1fr;
  }

  .install-aside {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
    text-align: center;
  }

  .hero-lede,
  .hero-meta {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: 260px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .trust-inner {
    flex-direction: column;
    text-align: center;
  }

  .trust-divider {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}
