/* public-pages.css — header/footer publicos, landing, planos, especie, auth */

/* Promo + header publicos */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--promo-h);
  display: flex;
  align-items: center;
  background: var(--brand-teal-deep);
  color: var(--on-dark);
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 14px;
  font-weight: 500;
}
.promo-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--promo-h);
}
.promo-banner a {
  color: var(--brand-green);
  font-weight: 600;
}

.pub-header {
  position: sticky;
  top: var(--promo-h);
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.pub-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: var(--rounded-sm);
  background: var(--brand-green);
  display: grid;
  place-items: center;
  color: var(--on-primary);
}
.brand b { color: var(--brand-green-dark); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brand-green-dark);
  border-radius: 2px;
  transition: right .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; padding: 8px; }
.mobile-menu { display: none; }

/* Full-width section bands */
.section-band {
  padding-block: var(--space-section-lg);
  background: var(--canvas);
}
.section-band.surface { background: var(--surface); }
.section-band.soft { background: var(--surface-soft); }
.section-band.mint { background: var(--brand-green-soft); }
.section-band.tight { padding-block: var(--space-section); }

/* Hero landing */
.hero {
  position: relative;
  min-height: min(720px, calc(100vh - var(--header-h) - var(--promo-h) - 48px));
  display: flex;
  align-items: center;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--brand-teal-deep);
  padding-block: var(--space-hero);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  opacity: .24;
  mix-blend-mode: screen;
  filter: saturate(.85) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 30, 43, .98) 0%, rgba(0, 30, 43, .88) 45%, rgba(0, 104, 74, .46) 100%),
    radial-gradient(circle at 72% 20%, rgba(0, 237, 100, .18), transparent 34%);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}
.hero h1 {
  color: var(--on-dark);
  max-width: 13ch;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.1;
}
.hero p {
  color: var(--on-dark-muted);
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 18px;
}
.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--hairline-dark);
  color: var(--brand-green);
  padding: 7px 15px;
  border-radius: var(--rounded-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
}
.hero-stats .stat strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  color: var(--on-dark);
}
.hero-stats .stat span {
  color: var(--on-dark-muted);
  font-size: 14px;
}
/* Section heading */
.sec-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.sec-head.center { margin-inline: auto; }
.sec-head .eyebrow {
  color: var(--brand-green-dark);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}
.sec-head h2 { margin-top: 10px; }
.sec-head p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.5;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.split > div > img {
  width: 100%;
  height: 420px;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-2);
}
.taxonomy-showcase {
  --taxonomy-x: 0px;
  --taxonomy-y: 0px;
  --taxonomy-scale: 1;
  position: relative;
  aspect-ratio: 2329 / 1800;
  min-height: 420px;
  border-radius: var(--rounded-xxl);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 86%, rgba(0, 237, 100, .18), transparent 28%),
    linear-gradient(135deg, #f8fbfa 0%, #dfe8e3 45%, #c4d3cb 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-3);
  isolation: isolate;
  cursor: grab;
  touch-action: none;
}
.taxonomy-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 30, 43, .12), transparent 18%, transparent 82%, rgba(0, 30, 43, .12)),
    linear-gradient(180deg, rgba(255,255,255,.52), transparent 30%, rgba(0,30,43,.08));
  mix-blend-mode: multiply;
}
.taxonomy-showcase::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid rgba(0, 30, 43, .12);
  border-radius: var(--rounded-xl);
  pointer-events: none;
}
.taxonomy-showcase.is-dragging { cursor: grabbing; }
.taxonomy-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translate3d(var(--taxonomy-x), var(--taxonomy-y), 0) scale(var(--taxonomy-scale));
  transform-origin: center;
  transition: transform .22s ease;
}
.taxonomy-showcase.is-dragging .taxonomy-stage { transition: none; }
.taxonomy-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: contrast(1.05) saturate(1.02);
  user-select: none;
  pointer-events: none;
}
.taxonomy-ring {
  position: absolute;
  inset: auto 24px 22px auto;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 1px solid rgba(0, 104, 74, .2);
  background: radial-gradient(circle, rgba(0,237,100,.2), rgba(0,104,74,.06) 62%, transparent 63%);
  pointer-events: none;
}
.taxonomy-controls {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(0, 30, 43, .12);
  border-radius: var(--rounded-full);
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.taxonomy-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}
.taxonomy-controls button:hover {
  background: var(--brand-green);
  color: var(--on-primary);
}
.highlight-item {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.highlight-item .hi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--rounded-md);
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.highlight-item h4 { font-size: 18px; font-weight: 600; }
.quote-card {
  background: var(--brand-teal-deep);
  color: var(--on-dark);
  padding: 26px;
  border-radius: var(--rounded-lg);
  margin-top: 26px;
  box-shadow: var(--shadow-2);
}
.quote-card p {
  color: var(--on-dark-muted);
  font-style: italic;
}

/* Species cards */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.species-card { overflow: hidden; cursor: pointer; }
.species-card .ph {
  height: 200px;
  position: relative;
  background: var(--surface-soft);
}
.species-card .ph img { width: 100%; height: 100%; }
.species-card .ph .prop {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--brand-green);
  color: var(--on-primary);
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.species-card .body { padding: 18px; }
.species-card h3 { font-size: 18px; font-weight: 600; }
.species-card .sci {
  font-style: italic;
  color: var(--stone);
  font-size: 14px;
  margin-top: 4px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step-card .num {
  font-family: var(--font-mono);
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  color: var(--brand-green-dark);
}
.step-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

/* Personas */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 540px));
  justify-content: center;
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}
.persona-card { padding: 26px; }
.persona-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}
.persona-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.persona-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--slate);
  font-size: 15px;
}
.persona-card li svg { color: var(--brand-green-dark); flex: none; }

/* CTA band */
.cta-band {
  background:
    linear-gradient(135deg, rgba(0, 30, 43, 1), rgba(0, 74, 82, .96));
  color: var(--on-dark);
  border-radius: var(--rounded-xxl);
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-3);
}
.cta-band h2 { color: var(--on-dark); }
.cta-band p {
  color: var(--on-dark-muted);
  max-width: 50ch;
  margin: 14px auto 28px;
}
.cta-band .row { justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Footer */
.pub-footer {
  background: var(--brand-teal-deep);
  color: var(--on-dark);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 56px 32px;
  text-align: center;
}
.pub-footer .brand { color: var(--on-dark); }
.pub-footer p { color: var(--on-dark-muted); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(180px, 240px);
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 36px;
}
.footer-grid > div { text-align: center; }
.footer-grid .brand { justify-content: center; }
.footer-grid p { margin-inline: auto; }
.footer-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--brand-green);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.footer-grid a {
  color: var(--on-dark-muted);
  font-size: 14px;
}
.footer-grid a:hover { color: var(--brand-green); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-dark);
  color: var(--on-dark-muted);
  font-size: 13px;
  text-align: center;
}

/* Planos */
.pricing-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-full);
  background: var(--surface);
  margin-bottom: 36px;
}
.pricing-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: var(--rounded-full);
  color: var(--steel);
  font-size: 14px;
  font-weight: 600;
}
.pricing-tabs .active {
  background: var(--ink);
  color: var(--on-dark);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  padding: var(--space-xxl);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.plan-card.highlight {
  background: var(--surface-feature);
  border: 2px solid var(--brand-green);
  box-shadow: 0 12px 30px rgba(0, 237, 100, .12);
}
.plan-card h3 {
  font-size: 28px;
  font-weight: 500;
}
.plan-card .price {
  margin-top: 20px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
}
.plan-card .price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--stone);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
}
.plan-card li svg { color: var(--brand-green-dark); flex: none; }
.plan-card .btn { margin-top: auto; }
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-teal-deep);
  color: var(--brand-green);
  padding: 4px 10px;
  border-radius: var(--rounded-full);
  font-size: 13px;
  font-weight: 600;
}
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 20px 22px;
  background: var(--canvas);
}
.faq-item h4 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* Auth split */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--canvas);
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form .field { margin-bottom: 16px; }
.password-reminder {
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.password-reminder summary {
  display: flex;
  justify-content: flex-end;
  color: var(--stone);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.password-reminder summary::-webkit-details-marker { display: none; }
.password-reminder summary:hover { color: var(--brand-green-dark); }
.password-reminder form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--surface);
}
.password-reminder .btn { margin-top: 4px; }
.auth-visual {
  background:
    linear-gradient(145deg, rgba(0, 30, 43, 1), rgba(0, 82, 73, .96));
  color: var(--on-dark);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.auth-visual h2 {
  color: var(--on-dark);
  max-width: 14ch;
}
.auth-visual p { color: var(--on-dark-muted); }
.auth-visual .visual-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.auth-visual .vs {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--hairline-dark);
  padding: 16px;
  border-radius: var(--rounded-md);
}
.auth-visual .vs .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--rounded-xs);
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--stone);
  font-size: 13px;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 11px 14px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-bottom: 16px;
}
.demo-creds {
  background: var(--brand-green-soft);
  border: 1px dashed #9fdcbc;
  border-radius: var(--rounded-md);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 18px;
}
.demo-creds b { color: var(--ink); }
.profile-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-opt {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.profile-opt:hover { border-color: var(--brand-green-dark); }
.profile-opt.selected {
  border-color: var(--brand-green);
  background: var(--brand-green-soft);
}

/* Especie detalhe */
.species-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--brand-teal-deep);
}
.species-hero .hero-bg img {
  width: 100%;
  height: 100%;
  opacity: .72;
  mix-blend-mode: normal;
}
.species-hero .hero-bg::after {
  background: linear-gradient(0deg, rgba(0, 30, 43, .96), rgba(0, 30, 43, .22));
}
.species-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 44px;
}
.species-hero h1 { color: var(--on-dark); }
.species-hero .sci {
  font-style: italic;
  color: var(--on-dark-muted);
  font-size: 18px;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.principle-card { padding: 22px; }
.principle-card h3 { font-size: 20px; }
.principle-card .picon {
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-md);
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.principle-card .appl {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  font-size: 14px;
}
.app-card { padding: 24px; }
.app-card h3 { font-size: 20px; }
.app-card ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.app-card li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--slate);
}
.app-card li svg { color: var(--brand-green-dark); flex: none; }

/* Base biomimetica em destaque na home */
.bio-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bio-home-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
}
.bio-home-card h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}
.bio-home-card .sci {
  font-style: italic;
  color: var(--stone);
  font-size: 14px;
}
.bio-home-card p {
  margin-top: 4px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bio-home-card .tag { align-self: flex-start; }
.tag-fauna { background: var(--accent-purple); color: var(--on-dark); border-color: var(--accent-purple); }
.tag-flora { background: var(--accent-orange); color: var(--ink); border-color: var(--accent-orange); }

@media (max-width: 1024px) {
  .hero h1 { max-width: 14ch; }
}

@media (max-width: 880px) {
  .promo-banner { position: static; }
  .pub-header { top: 0; }
  .nav-links,
  .header-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    box-shadow: var(--shadow-2);
  }
  .mobile-menu a,
  .mobile-menu .btn {
    padding: 12px;
    border-radius: var(--rounded-md);
    justify-content: flex-start;
  }
  .hero {
    padding-block: var(--space-section);
    min-height: auto;
  }
  .hero h1 { font-size: 44px; }
  .split,
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .species-grid,
  .steps-grid,
  .personas-grid,
  .plans-grid,
  .principle-grid,
  .bio-home-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 24px; }
  .plan-card { padding: var(--space-xl); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 22px; }
  .taxonomy-showcase {
    min-height: 0;
    aspect-ratio: 2329 / 1800;
  }
  .taxonomy-controls { right: 16px; top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }
  .pricing-tabs span { white-space: nowrap; }
}
