/* Simplave site: uma página, sem build. Cores e fontes seguem a marca do sistema. */

@font-face {
  font-family: 'Figtree Variable';
  src: url('assets/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand Variable';
  src: url('assets/fonts/quicksand-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #12302a;
  --pine-soft: #1b433a;
  --pine-line: #2c5a4e;
  --accent: #1f6f5c;
  --accent-dark: #17574a;
  --accent-soft: #e2f0eb;
  --gold: #e0a82e;
  --gold-dark: #c9921a;
  --gold-soft: #fbf1d6;
  --cream: #f4f1ea;

  --bg: #ffffff;
  --tint: #f1f5f3;
  --ink: #12251f;
  --muted: #53635d;
  --line: #dce5e0;

  --male: #5b9bd5;
  --male-fill: #e3effa;
  --female: #d97aa6;
  --female-fill: #fae6ef;

  --font-body: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Quicksand Variable', 'Figtree Variable', system-ui, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --topbar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent-dark);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--pine);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-gold {
  background: var(--gold);
  color: var(--pine);
}
.btn-gold:hover {
  background: #ecb73f;
}
.btn-line {
  border-color: rgb(244 241 234 / 0.45);
  color: var(--cream);
  background: transparent;
}
.btn-line:hover {
  border-color: var(--cream);
  background: rgb(244 241 234 / 0.08);
}

/* ---------- Topo ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  border-bottom: 1px solid var(--pine-line);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 16px;
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  height: 38px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu a:not(.btn) {
  color: rgb(244 241 234 / 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 11px;
  border-radius: 8px;
}
.menu a:not(.btn):hover {
  color: #fff;
  background: rgb(244 241 234 / 0.08);
}
.menu .btn {
  margin-left: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded='true'] i:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] i:nth-of-type(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] i:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Abertura: a logo ocupa a primeira tela ---------- */

.intro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  padding: 56px 0 96px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(60% 55% at 50% 42%, rgb(31 111 92 / 0.38), transparent 70%),
    var(--pine);
}
.intro-in {
  display: grid;
  justify-items: center;
}
.intro-logo {
  width: min(780px, 100%);
  margin: 0;
}
.intro-logo img {
  width: 100%;
  height: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 10px 18px;
  border: 1px solid rgb(224 168 46 / 0.55);
  border-radius: 999px;
  background: rgb(224 168 46 / 0.1);
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: left;
}
.status strong {
  color: var(--gold);
}
.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgb(224 168 46 / 0);
    opacity: 0.6;
  }
}
.intro-actions {
  justify-content: center;
  margin-top: 30px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border: 2px solid rgb(244 241 234 / 0.4);
  border-radius: 50%;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -7px 0 0 -5px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
}
.scroll-cue:hover {
  border-color: var(--cream);
}

/* ---------- Início ---------- */

.hero {
  background: var(--pine);
  color: var(--cream);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  max-width: 14em;
}
.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38em;
}
.hero .lead {
  color: rgb(244 241 234 / 0.82);
  margin-top: 22px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-tree {
  margin: 0;
  background: rgb(244 241 234 / 0.05);
  border: 1px solid var(--pine-line);
  border-radius: 20px;
  padding: 22px 22px 14px;
}
.hero-tree figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgb(244 241 234 / 0.6);
}

/* Árvore: linhas se desenham e as caixas aparecem, uma geração por vez */
.tree {
  width: 100%;
  height: auto;
  font-family: var(--font-display);
}
.tree-lines path {
  fill: none;
  stroke: rgb(244 241 234 / 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.9s ease-out 0.5s forwards;
}
.tree-box {
  opacity: 0;
  animation: show 0.5s ease-out forwards;
  animation-delay: calc(var(--d, 0) * 0.45s + 0.15s);
}
.tree-box rect {
  stroke-width: 2;
}
.tree-box text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tree-box.m rect {
  fill: var(--male-fill);
  stroke: var(--male);
}
.tree-box.f rect {
  fill: var(--female-fill);
  stroke: var(--female);
}
.tree-box text {
  fill: var(--pine);
}
.tree-box.main rect {
  stroke-width: 3;
}
.tree-ring {
  opacity: 0;
  animation: show 0.5s ease-out forwards;
  animation-delay: calc(var(--d, 0) * 0.45s + 0.15s);
}
.tree-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
}
.tree-ring text {
  fill: var(--gold);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes show {
  to {
    opacity: 1;
  }
}

/* ---------- Seções ---------- */

.sec {
  padding: 88px 0;
}
.sec-tint {
  background: var(--tint);
}
.sec h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
.narrow {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.split .lead {
  margin-top: 18px;
}

/* Produto */
.pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillars article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pillars h3 {
  font-size: 1.3rem;
  color: var(--accent-dark);
}
.pillars p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 36em;
}

/* Funcionalidades */
.features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 24px;
}
.group:first-child {
  grid-column: 1 / -1;
  background: var(--pine);
  border-color: var(--pine);
  color: var(--cream);
}
.group h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.group:first-child h3 {
  color: #fff;
}
.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.group:first-child ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.group li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.5;
}
.group li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.group:first-child li::before {
  border-color: var(--gold);
}

/* Em desenvolvimento */
.roadmap {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  border-top: 1px solid var(--line);
}
.roadmap li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  align-content: start;
}
.roadmap h3 {
  font-size: 1.15rem;
  grid-column: 1;
}
.roadmap p {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.tag {
  grid-column: 2;
  grid-row: 1;
  display: inline-block;
  background: var(--gold-soft);
  color: #6b4a00;
  border: 1px solid #ecd28a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Contato */
.sec-contact {
  background: var(--accent-soft);
}
.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: grid;
  gap: 2px;
}
.contact-list span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-list a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pine);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 40px -26px rgb(18 37 31 / 0.35);
}
.form label {
  display: grid;
  gap: 6px;
}
.form label span {
  font-size: 0.9rem;
  font-weight: 600;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #c3d1ca;
  border-radius: 12px;
  padding: 11px 14px;
  min-height: 46px;
}
.form textarea {
  resize: vertical;
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(31 111 92 / 0.18);
}
.form .btn-gold {
  justify-self: start;
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Rodapé */
.footer {
  background: var(--pine);
  color: rgb(244 241 234 / 0.8);
  padding: 44px 0;
}
.footer-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 32px;
  align-items: center;
}
.footer-in img {
  grid-row: span 3;
}
.footer p {
  font-size: 0.95rem;
}
.footer .small {
  font-size: 0.85rem;
  color: rgb(244 241 234 / 0.6);
}
.footer a {
  color: var(--gold);
  font-weight: 600;
}
.footer-app {
  grid-column: 3;
  grid-row: 1 / span 3;
}
.footer-dev {
  grid-column: 2;
}

/* ---------- Telas menores ---------- */

@media (max-width: 960px) {
  .menu-btn {
    display: flex;
  }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--pine);
    border-bottom: 1px solid var(--pine-line);
    display: none;
  }
  .menu.open {
    display: flex;
  }
  .menu a:not(.btn) {
    padding: 14px 10px;
    font-size: 1.05rem;
  }
  .menu .btn {
    margin: 10px 0 0;
  }

  .hero {
    padding: 48px 0 56px;
  }
  .hero-in,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .sec {
    padding: 64px 0;
  }
  .features,
  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }
  .group:first-child ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .lead {
    font-size: 1.05rem;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .intro {
    padding: 40px 0 88px;
  }
  .intro-actions {
    width: 100%;
  }
  .status {
    border-radius: 18px;
    font-size: 0.92rem;
  }
  .hero-tree {
    padding: 14px 12px 10px;
  }
  .group {
    padding: 22px 18px 18px;
  }
  .roadmap li {
    grid-template-columns: minmax(0, 1fr);
  }
  .tag {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 4px;
  }
  .form {
    padding: 20px 16px;
  }
  .form .btn-gold {
    justify-self: stretch;
  }
  .footer-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-in img {
    grid-row: auto;
  }
  .footer-app,
  .footer-dev {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tree-lines path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .tree-box,
  .tree-ring {
    animation: none;
    opacity: 1;
  }
  .status-dot {
    animation: none;
  }
  .btn,
  .menu-btn i {
    transition: none;
  }
}
