@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #f1f6f2;
  --surface: #ffffff;
  --ink: #13261c;
  --ink-soft: #46594e;
  --leaf: #0f5132;
  --feather: #23a55a;
  --beak: #f6c445;
  --alert: #c2412d;
  --line: #d6e3da;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}

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

a {
  color: var(--leaf);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--feather);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */

.top {
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--leaf);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 2.25rem;
  height: 2.25rem;
}

/* Hero */

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: 1.5rem 4rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fdf3d2;
  color: #6b4e00;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 14ch;
  color: var(--leaf);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lead {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* Form */

.signup {
  display: grid;
  gap: 0.9rem;
  max-width: 28rem;
  margin-top: 2rem;
  scroll-margin-top: 2rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field input:focus-visible {
  outline: 2px solid var(--feather);
  outline-offset: 1px;
  border-color: var(--feather);
}

.field input:user-invalid {
  border-color: var(--alert);
}

.field .hint {
  display: none;
  margin-top: 0.3rem;
  color: var(--alert);
  font-size: 0.875rem;
}

.field input:user-invalid + .hint {
  display: block;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.consent input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--leaf);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--leaf);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.button:hover {
  background: #0b3f27;
}

.fineprint {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Forecast card: the one memorable element */

.forecast {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.3);
}

.forecast-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.forecast-title strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.chart {
  width: 100%;
  height: auto;
  margin-block: 1rem 0.5rem;
  overflow: visible;
}

.chart text {
  font-family: var(--font);
  font-size: 11px;
  fill: var(--ink-soft);
}

.chart .t-alert {
  fill: var(--alert);
  font-weight: 700;
}

.chart .t-leaf {
  fill: var(--leaf);
  font-weight: 700;
}

.chart .balance {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 0;
  animation: draw 1.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}

/* Visible by default; the draw-in only plays where animations run. */
@keyframes draw {
  from {
    stroke-dashoffset: 520;
  }
}

.chat {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: #e9f5ec;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.chat .who {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--leaf);
  font-weight: 700;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chat-actions span {
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--feather);
  border-radius: 999px;
  color: var(--leaf);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Sections */

.section {
  padding-block: 4rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section > .wrap > p {
  max-width: var(--measure);
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

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

.pains h3,
.steps h3 {
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.pains p,
.steps p {
  max-width: var(--measure);
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--beak);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
}

.quote {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.perks {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  gap: 0.75rem;
  max-width: var(--measure);
}

.perks li::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat,
    var(--feather);
}

/* FAQ */

.faq {
  max-width: 44rem;
  margin-top: 2rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--leaf);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: var(--measure);
  padding-bottom: 1.2rem;
  color: var(--ink-soft);
}

/* Final CTA */

.final {
  padding-block: 4.5rem;
  background: var(--leaf);
  color: #fff;
}

.final h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.final p {
  max-width: var(--measure);
  margin-top: 0.9rem;
  color: #cfe6d7;
}

.final .button {
  margin-top: 1.75rem;
  background: var(--beak);
  color: var(--ink);
}

.final .button:hover {
  background: #ffd45e;
}

.final :focus-visible {
  outline-color: var(--beak);
}

/* Footer */

.foot {
  padding-block: 2rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Simple pages (obrigado, privacidade) */

.page {
  padding-block: 2rem 5rem;
}

.page h1 {
  max-width: 20ch;
  color: var(--leaf);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page .lead {
  margin-top: 1rem;
}

.page .button {
  margin-top: 2rem;
}

.page .fineprint {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

.legal > * {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  font-weight: 750;
}

.legal p,
.legal ul {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal .draft {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #fdf3d2;
  color: #6b4e00;
  font-size: 0.9375rem;
}

/* Wider screens */

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    padding-block: 3rem 6rem;
  }

  .pains {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .section {
    padding-block: 5.5rem;
  }
}

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

  .chart .balance {
    animation: none;
  }

  .faq summary::after {
    transition: none;
  }
}
