/* Clube da Horta — Duolingo-inspired design tokens */
:root {
  --duo-green: #58CC02;
  --duo-green-light: #61E002;
  --duo-green-dark: #46A302;
  --duo-green-shadow: #58A700;
  --ink: #3C3C3C;
  --ink-strong: #4B4B4B;
  --muted: #777777;
  --muted-light: #AFAFAF;
  --canvas: #FFFFFF;
  --wash-blue: #DDF4FF;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --border: #E5E5E5;
  --border-strong: #DADADA;
  --link-blue: #1CB0F6;
  --link-blue-dark: #1B99D6;
  --navy: #042C60;
  --super-navy: #100F3E;
  --warning: #FFC800;
  --streak: #FF9600;
  --footer-soft: #D7FFB8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max: 988px;
  --wide: 1090px;
  --section-pad: 96px;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.41;
  color: var(--muted);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link-blue);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--link-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--duo-green);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

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

.container--wide {
  width: min(100% - 32px, var(--wide));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 2px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--duo-green);
  text-decoration: none;
}

.logo:hover {
  color: var(--duo-green-dark);
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--link-blue);
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: background 0.15s, transform 0.1s, border-bottom-width 0.1s;
}

.header-cta:hover {
  background: var(--wash-blue);
  border-color: var(--link-blue);
  color: var(--link-blue-dark);
}

.header-cta:active {
  transform: translateY(4px);
  border-bottom-width: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
}

.btn--primary {
  color: #fff;
  background: var(--duo-green);
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn--primary:hover {
  background: var(--duo-green-light);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--secondary {
  color: var(--link-blue);
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn--secondary:hover {
  background: var(--wash-blue);
  border-color: var(--link-blue);
  color: var(--link-blue-dark);
}

.btn--secondary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--wide {
  width: 100%;
  max-width: 330px;
}

.btn--lg {
  min-height: 56px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-illustration {
  width: 100%;
  max-width: 424px;
  animation: float 4s ease-in-out infinite;
}

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

.hero__content {
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--duo-green-dark);
  background: #E5F9D4;
  border-radius: var(--radius-pill);
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--duo-green);
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-strong);
}

.hero__desc {
  margin: 0 auto 32px;
  max-width: 473px;
  font-size: 17px;
  line-height: 24px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted-light);
}

/* Benefit rail */
.benefit-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--surface-alt);
  padding: 20px 0;
}

.benefit-rail__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.benefit-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.benefit-chip__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section--wash {
  background: var(--wash-blue);
}

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--duo-green);
}

.section__lead {
  margin: 0 0 40px;
  max-width: 560px;
  font-size: 17px;
  line-height: 24px;
}

.section__lead--center {
  margin-inline: auto;
  text-align: center;
}

/* Feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--reverse .feature__visual {
  order: -1;
}

.feature__visual svg {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.feature__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--duo-green);
}

.feature__text {
  margin: 0 0 24px;
  max-width: 473px;
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}

.benefit-list li:last-child {
  margin-bottom: 0;
}

.benefit-list__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

/* Stats / trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.trust-card {
  padding: 28px 24px;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust-card__value {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--duo-green);
  line-height: 1;
}

.trust-card__label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.trust-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quote-card {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.quote-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--warning);
}

.quote-card__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.quote-card__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: var(--duo-green);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--duo-green-shadow);
}

.step-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
}

.step-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--wash-blue) 0%, #C8EDFF 100%);
  text-align: center;
  overflow: hidden;
}

.final-cta__hills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--duo-green);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.final-cta__inner {
  position: relative;
  z-index: 1;
}

.final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--streak);
  background: #FFF3E0;
  border-radius: var(--radius-pill);
}

.final-cta__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.final-cta__desc {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink);
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  color: #fff;
  padding: 48px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.site-footer__tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--footer-soft);
  max-width: 320px;
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 10px;
}

.site-footer__links a {
  color: var(--footer-soft);
  font-size: 15px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: var(--footer-soft);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .feature,
  .trust-grid,
  .trust-quotes,
  .steps,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__visual {
    order: 0;
  }

  .hero__visual {
    order: -1;
  }

  .hero__content {
    text-align: center;
  }

  .feature__text,
  .section__lead {
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .benefit-rail__inner {
    flex-direction: column;
    align-items: center;
  }

  .header-cta span {
    display: none;
  }

  .header-cta::after {
    content: "GO";
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-illustration {
    animation: none;
  }

  .btn,
  .header-cta {
    transition: none;
  }
}
