:root {
  --green: #009246;
  --green-dark: #006b34;
  --green-light: #1db954;
  --red: #ce2b37;
  --ink: #121212;
  --muted: #5b6470;
  --cream: #f7f7f5;
  --cream-warm: #fff8f0;
  --white: #fff;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(29, 185, 84, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(206, 43, 55, 0.18), transparent 50%),
    linear-gradient(145deg, var(--green) 0%, var(--green-dark) 55%, #004d26 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 3rem;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-copy {
  animation: rise-in 0.85s ease both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.headline {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 18ch;
}

.sub {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
}

.credit {
  margin: 0.85rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-on-hero {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 10px 28px rgba(0, 40, 20, 0.22);
}

.btn-on-hero:hover {
  filter: none;
  background: var(--cream);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise-in 0.85s ease 0.15s both;
}

.phone {
  position: relative;
  width: min(220px, 58vw);
  aspect-ratio: 9 / 17.5;
  border-radius: 28px;
  background: linear-gradient(165deg, #0a3d22 0%, #062816 100%);
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 48px rgba(0, 30, 15, 0.35);
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.phone-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-top: 0.5rem;
}

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 56px;
}

.eq span {
  display: block;
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--green-light), #fff);
  animation: eq-bounce 1.1s ease-in-out infinite;
  transform-origin: bottom;
}

.eq span:nth-child(1) { height: 28%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 62%; animation-delay: 0.12s; }
.eq span:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.eq span:nth-child(4) { height: 48%; animation-delay: 0.36s; }
.eq span:nth-child(5) { height: 72%; animation-delay: 0.48s; }

.stripe {
  height: 10px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--green), var(--white) 50%, var(--red));
}

/* —— Sections —— */
.section {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
}

.section-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.section-title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

/* How */
.how {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(0, 146, 70, 0.08), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.steps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

@media (min-width: 720px) {
  .step {
    grid-template-columns: 1fr;
  }
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.03em;
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  grid-column: 2;
}

@media (min-width: 720px) {
  .step p {
    grid-column: 1;
  }
}

/* Download */
.download {
  background:
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(206, 43, 55, 0.06), transparent 50%),
    linear-gradient(165deg, #e8f5ee 0%, var(--cream) 40%, var(--cream-warm) 100%);
}

.download-panel {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--white) 0%, #f0faf4 100%);
  border: 1px solid rgba(0, 146, 70, 0.14);
  max-width: 420px;
}

.meta {
  font-size: 0.95rem;
  line-height: 1.55;
}

.meta strong {
  color: var(--green-dark);
}

.err {
  margin: 0.75rem 0 0;
  color: var(--red);
  font-size: 0.9rem;
}

.download-panel .btn {
  width: 100%;
  margin-top: 1.15rem;
}

.hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Footer */
.site-footer {
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid rgba(0, 146, 70, 0.1);
}

.site-footer strong {
  color: var(--green-dark);
  font-weight: 700;
}

.footer-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-by:hover {
  opacity: 0.85;
}

.footer-by-label {
  font-size: 0.8rem;
}

.footer-logo {
  width: min(200px, 70vw);
  height: auto;
  object-fit: contain;
}

.site-footer a.footer-by {
  text-decoration: none;
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual {
    animation: none;
  }

  .eq span {
    animation: none;
  }

  .btn {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
