/* Glucotribe — paleta tirada da própria marca sobre fundo rosa */
:root {
  --bg: #f8dce6;
  --bg-soft: #fceaf1;
  --paper: #fffafc;
  --paper-2: #fff3f8;
  --ink: #2b1020;
  --ink-soft: #6d4256;
  --ink-faint: #9a7385;
  --line: rgba(43, 16, 32, 0.12);
  --line-soft: rgba(43, 16, 32, 0.07);

  --magenta: #ee217e;
  --magenta-deep: #c9165f;
  --purple: #7240a3;
  --purple-deep: #582f80;
  --cyan: #4ea4e1;
  --cyan-deep: #2b7cb8;
  --yellow: #f2ee11;
  --leaf: #16855b;
  --leaf-soft: #e2f5ec;
  --danger: #cf2b1f;

  --shadow-sm: 0 2px 8px rgba(120, 30, 70, 0.07);
  --shadow: 0 14px 34px rgba(120, 30, 70, 0.11);
  --shadow-lg: 0 30px 70px rgba(120, 30, 70, 0.17);
  --radius: 22px;
  --radius-sm: 13px;
  --radius-lg: 34px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anton", "Archivo", Impact, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(58rem 32rem at 8% -6%, rgba(255, 255, 255, 0.75), transparent 62%),
    radial-gradient(46rem 30rem at 104% 4%, rgba(78, 164, 225, 0.2), transparent 58%),
    radial-gradient(40rem 28rem at 88% 92%, rgba(238, 33, 126, 0.14), transparent 60%),
    radial-gradient(34rem 24rem at 4% 78%, rgba(114, 64, 163, 0.13), transparent 62%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--purple-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.14rem, 2.3vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }
small { font-size: 0.83rem; }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; top: 0; }

.wrap { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-deep);
  margin: 0 0 0.7rem;
}
.lede {
  font-size: clamp(1.03rem, 1.9vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-head { max-width: 70ch; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 234, 241, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.42rem;
  letter-spacing: 0.015em;
  color: var(--magenta);
  line-height: 1;
  padding-top: 2px;
}
.brand:hover .brand-name { color: var(--magenta-deep); }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav > a,
.nav-tools > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.nav > a:hover,
.nav-tools > summary:hover { background: rgba(238, 33, 126, 0.1); color: var(--magenta-deep); }
.nav > a[aria-current="page"],
.nav-tools > summary.is-active { color: var(--ink); background: rgba(114, 64, 163, 0.12); }

.nav-tools { position: relative; }
.nav-tools > summary { list-style: none; }
.nav-tools > summary::-webkit-details-marker { display: none; }
.nav-tools > summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 264px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  display: grid;
  gap: 2px;
  z-index: 5;
}
.nav-panel a {
  display: block;
  padding: 0.56rem 0.7rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-panel a:hover { background: var(--bg-soft); color: var(--magenta-deep); }
.nav-panel span {
  display: block;
  padding: 0.5rem 0.7rem 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--magenta);
  color: var(--magenta-deep);
}
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.7rem 1rem 1.1rem;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 0.72rem 0.8rem; font-size: 1rem; }
  .nav-tools > summary { padding: 0.72rem 0.8rem; font-size: 1rem; }
  .nav-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-soft);
    min-width: 0;
    margin-top: 4px;
  }
}

/* ---------- Busca ---------- */
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(43, 16, 32, 0.42);
  backdrop-filter: blur(4px);
  padding: 8vh 1rem 1rem;
  display: none;
}
.search-layer.open { display: block; }
.search-box {
  width: min(620px, 100%);
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}
.search-box input[type="search"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.search-box input[type="search"]:focus { border-color: var(--magenta); outline: none; }
.search-hits { margin-top: 0.6rem; max-height: 52vh; overflow-y: auto; }
.search-hits a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.search-hits a:hover { background: var(--bg-soft); }
.search-hits img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.search-hits a > span { min-width: 0; }
.search-hits strong { display: block; font-size: 0.95rem; }
.search-hits em {
  display: block;
  color: var(--ink-faint);
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.4;
}
.search-empty { padding: 0.8rem 0.6rem; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(238, 33, 126, 0.32);
  transition: transform 0.16s, box-shadow 0.16s, background-color 0.16s;
}
.btn:hover {
  background: var(--magenta-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(238, 33, 126, 0.38);
}
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--purple-deep);
  border-color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero h1 .accent {
  font-family: var(--display);
  font-weight: 400;
  color: var(--magenta);
  letter-spacing: 0.01em;
}
.hero-actions { margin-top: 1.6rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--purple);
}
.hero-stats div span { font-size: 0.83rem; color: var(--ink-soft); }

.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -14% -10% -6%;
  background:
    radial-gradient(closest-side, rgba(238, 33, 126, 0.3), transparent 72%),
    radial-gradient(closest-side at 70% 70%, rgba(78, 164, 225, 0.28), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--paper);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute;
  z-index: 2;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  animation: float 7s ease-in-out infinite;
}
.hero-chip img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.hero-chip span { color: var(--ink-faint); font-weight: 500; display: block; font-size: 0.75rem; }
.hero-chip-1 { top: 6%; left: -4%; }
.hero-chip-2 { bottom: 12%; right: -5%; animation-delay: -3.5s; }
.hero-diamond {
  position: absolute;
  z-index: 0;
  width: 74px;
  bottom: -4%;
  left: 8%;
  opacity: 0.85;
  animation: float 9s ease-in-out infinite;
  animation-delay: -1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip, .hero-diamond { animation: none; }
  html { scroll-behavior: auto; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.06fr 0.94fr; }
}
@media (max-width: 620px) {
  .hero-chip-1 { top: 2%; left: -2%; }
  .hero-chip-2 { bottom: 6%; right: -2%; }
  .hero-diamond { width: 52px; }
}

/* ---------- Superfícies ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
}
.panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  padding: clamp(1.3rem, 3vw, 2.4rem);
}
.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); }

/* ---------- Cartões de planta ---------- */
.plant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
}
.plant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.plant-card .shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.plant-card .shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plant-card:hover .shot img { transform: scale(1.06); }
.plant-card .body { padding: 0.95rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.plant-card h3 { margin-bottom: 0.15rem; font-size: 1.1rem; }
.plant-card .sci { font-size: 0.79rem; font-style: italic; color: var(--ink-faint); margin: 0 0 0.6rem; }
.plant-card .meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  font-size: 0.77rem;
  color: var(--ink-soft);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}
.tag-cat { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--paper); z-index: 1; }
.tag-facil { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }
.tag-media { background: #fff4d6; color: #96660a; border-color: transparent; }
.tag-alta { background: #ffe0e6; color: var(--magenta-deep); border-color: transparent; }

/* ---------- Ferramentas ---------- */
.tool-grid { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 760px) { .tool-grid { grid-template-columns: repeat(6, 1fr); } }
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
  grid-column: span 6;
}
.tool::after {
  content: "";
  position: absolute;
  width: 168px; height: 168px;
  right: -60px; top: -60px;
  border-radius: 50%;
  background: var(--glow, rgba(238, 33, 126, 0.16));
  filter: blur(6px);
  transition: transform 0.3s;
}
.tool:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tool:hover::after { transform: scale(1.25); }
.tool .num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--accent, var(--magenta));
  letter-spacing: 0.1em;
}
.tool h3 { margin: 0; position: relative; }
.tool p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); position: relative; }
.tool .go {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent, var(--magenta-deep));
  position: relative;
}
.tool .go::after { content: " →"; transition: margin-left 0.18s; }
.tool:hover .go::after { margin-left: 4px; }
@media (min-width: 760px) {
  .tool-wide { grid-column: span 3; }
  .tool-third { grid-column: span 2; }
}

/* ---------- Controles ---------- */
.control { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.control > span,
.control > label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
select,
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
select:focus,
input:focus,
textarea:focus { border-color: var(--magenta); outline: none; }
textarea { resize: vertical; min-height: 8rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.pill:hover { border-color: var(--magenta); color: var(--magenta-deep); transform: translateY(-1px); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 6px 16px rgba(238, 33, 126, 0.28);
}
.pill:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.count { font-size: 0.86rem; color: var(--ink-faint); }

/* ---------- Resultado das ferramentas ---------- */
.result { margin-top: 1.6rem; }
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.result-head h3 { margin: 0; }
.notice {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border-left: 4px solid var(--purple);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.notice-leaf { border-left-color: var(--leaf); background: var(--leaf-soft); color: #14603f; }
.notice-warn { border-left-color: var(--magenta); background: #ffeef4; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--ink-faint); }

/* ---------- Simulador de crescimento ---------- */
.stage-track {
  display: flex;
  gap: 0.35rem;
  margin: 1.3rem 0 1.5rem;
}
.stage-track button {
  flex: 1;
  height: 8px;
  min-width: 0;
  border: none;
  border-radius: 999px;
  background: rgba(43, 16, 32, 0.12);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}
.stage-track button:hover { background: rgba(238, 33, 126, 0.45); }
.stage-track button[aria-current="true"] { background: var(--magenta); }
.stage-track button.done { background: rgba(238, 33, 126, 0.42); }
.stage-body { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 720px) { .stage-body { grid-template-columns: 0.85fr 1.15fr; } }
.stage-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(closest-side at 50% 32%, rgba(242, 238, 17, 0.28), transparent 70%),
    linear-gradient(175deg, #fff 20%, var(--bg-soft));
}
.stage-visual svg { width: 100%; height: 100%; display: block; }
.stage-day {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 1rem;
}
.stage-day span {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 0.35rem;
}
.stage-ref {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.stage-ref img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.stage-ref strong { display: block; font-size: 0.95rem; }
.stage-ref em { display: block; font-style: normal; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.2rem; }
.stage-ref a { font-size: 0.87rem; font-weight: 700; }

/* ---------- Guia de problemas ---------- */
.symptom-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.symptom {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}
.symptom:hover { border-color: var(--purple); transform: translateY(-2px); }
.symptom input { margin-top: 0.22rem; accent-color: var(--magenta); flex: 0 0 auto; }
.symptom:has(input:checked) { border-color: var(--magenta); background: #fff0f6; }
.symptom em { display: block; font-style: normal; font-weight: 500; font-size: 0.79rem; color: var(--ink-faint); }

.cause { border-top: 1px solid var(--line-soft); padding: 1.05rem 0; }
.cause:first-of-type { border-top: none; padding-top: 0.3rem; }
.cause h4 { margin-bottom: 0.35rem; }
.cause h4::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  margin-right: 0.5rem;
  vertical-align: 0.12em;
}
.cause p { margin-bottom: 0.55rem; font-size: 0.94rem; }
.cause .fix { font-size: 0.92rem; color: #14603f; background: var(--leaf-soft); padding: 0.6rem 0.8rem; border-radius: 10px; margin: 0; }
.cause .fix strong { color: var(--leaf); }

/* ---------- Quiz ---------- */
.quiz-q { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; margin-bottom: 1.2rem; line-height: 1.3; }
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--purple); transform: translateX(3px); }
.quiz-opt .mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.quiz-opt.right { border-color: var(--leaf); background: var(--leaf-soft); }
.quiz-opt.right .mark { background: var(--leaf); color: #fff; }
.quiz-opt.wrong { border-color: var(--danger); background: #ffeceb; }
.quiz-opt.wrong .mark { background: var(--danger); color: #fff; }
.quiz-opt:disabled { cursor: default; }
.quiz-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; }
.quiz-progress { height: 6px; border-radius: 999px; background: rgba(43, 16, 32, 0.1); overflow: hidden; flex: 1; }
.quiz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--purple)); transition: width 0.35s; }
.score {
  font-family: var(--display);
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1;
  color: var(--magenta);
}

/* ---------- Tabela de compatibilidade ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
table.compat { border-collapse: collapse; font-size: 0.84rem; min-width: 640px; width: 100%; }
table.compat th,
table.compat td { border: 1px solid var(--line-soft); padding: 0.4rem; text-align: center; }
table.compat th { background: var(--paper-2); font-weight: 700; font-size: 0.76rem; position: sticky; top: 0; z-index: 1; }
table.compat th.row-head { text-align: left; position: sticky; left: 0; z-index: 2; min-width: 150px; }
table.compat td.self { background: rgba(43, 16, 32, 0.06); }
table.compat td .dot {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}
.dot-ok { background: var(--leaf-soft); color: var(--leaf); }
.dot-no { background: #ffe0e6; color: var(--magenta-deep); }
.dot-mid { background: var(--bg-soft); color: var(--ink-faint); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Planejador ---------- */
.plan-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .plan-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.bed {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(114, 64, 163, 0.07), rgba(78, 164, 225, 0.07)),
    var(--paper-2);
  border: 2px dashed rgba(114, 64, 163, 0.3);
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  min-height: 200px;
  align-content: start;
}
.bed-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes pop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bed-slot img { width: 100%; height: 100%; object-fit: cover; }
.bed-slot b {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(30, 10, 22, 0.88) 45%);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 600;
  padding: 0.9rem 0.28rem 0.22rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bed-slot button {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 6, 14, 0.82);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bed-slot button:hover { background: var(--magenta); }
.bed-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-faint); font-size: 0.9rem; padding: 2.2rem 1rem; }
.gauge { margin: 1rem 0 0.4rem; height: 10px; border-radius: 999px; background: rgba(43, 16, 32, 0.1); overflow: hidden; }
.gauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--cyan)); transition: width 0.35s; }
.gauge.full i { background: linear-gradient(90deg, var(--magenta), var(--purple)); }
.pick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.16s, transform 0.16s;
}
.pick:hover:not(:disabled) { border-color: var(--magenta); transform: translateX(3px); }
.pick:disabled { opacity: 0.45; cursor: not-allowed; }
.pick img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.pick em { display: block; font-style: normal; font-weight: 500; font-size: 0.76rem; color: var(--ink-faint); }
.pick-list {
  display: grid;
  gap: 0.45rem;
  max-height: 26rem;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

/* ---------- Rotina ---------- */
.checklist { display: grid; gap: 0.5rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 0.93rem;
  cursor: pointer;
  transition: background-color 0.16s;
}
.check:hover { background: var(--bg-soft); }
.check input { margin-top: 0.28rem; accent-color: var(--leaf); flex: 0 0 auto; }
.check:has(input:checked) { background: var(--leaf-soft); }
.check:has(input:checked) span { text-decoration: line-through; color: var(--ink-faint); }
.routine-block { margin-bottom: 1.5rem; }
.routine-block h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.79rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}
.routine-block h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Página da planta ---------- */
.plant-hero { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
@media (min-width: 860px) { .plant-hero { grid-template-columns: 0.9fr 1.1fr; } }
.plant-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--paper);
  aspect-ratio: 4 / 5;
}
.plant-shot img { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: 0.73rem; color: var(--ink-faint); margin-top: 0.5rem; }
.credit a { color: var(--ink-faint); }
.breadcrumb { font-size: 0.83rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--magenta-deep); text-decoration: underline; }
.sci-name { font-style: italic; color: var(--ink-faint); margin: -0.3rem 0 1rem; font-size: 1.02rem; }

.facts { display: grid; gap: 0.05rem; margin: 1.5rem 0; }
.fact {
  display: grid;
  grid-template-columns: 8.6rem 1fr;
  gap: 0.6rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.fact dt { font-weight: 700; color: var(--ink-soft); font-size: 0.79rem; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 0.1rem; }
.fact dd { margin: 0; }
@media (max-width: 520px) { .fact { grid-template-columns: 1fr; gap: 0.1rem; } }

.article { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; } }
.article-side { display: grid; gap: 1rem; position: sticky; top: 88px; }
.article-side h3 { font-size: 1.05rem; }
.article-side p { font-size: 0.9rem; color: var(--ink-soft); }
.article-side ul { font-size: 0.9rem; margin-bottom: 0; }
.side-links { display: grid; gap: 0.35rem; }
.side-links a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.16s, transform 0.16s;
}
.side-links a:hover { background: var(--bg-soft); color: var(--magenta-deep); transform: translateX(3px); }
@media (max-width: 999px) { .article-side { position: static; } }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15em; }
.prose li::marker { color: var(--magenta); }

.calendar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; margin: 1.1rem 0; }
@media (min-width: 620px) { .calendar { grid-template-columns: repeat(12, 1fr); } }
.calendar div {
  padding: 0.55rem 0.2rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--ink-faint);
  border: 1px solid var(--line-soft);
}
.calendar div.on { background: var(--magenta); color: #fff; border-color: transparent; }

.side-list { display: grid; gap: 0.5rem; }
.side-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.16s;
}
.side-list a:hover { background: var(--bg-soft); color: var(--magenta-deep); }
.side-list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.side-list em { display: block; font-style: normal; font-weight: 500; font-size: 0.76rem; color: var(--ink-faint); }

/* ---------- Rodapé ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 1.6rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.8rem;
}
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.footer-links a:hover { color: var(--magenta-deep); }
.footer-brand img { width: 168px; margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-soft); max-width: 34ch; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.hidden { display: none !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
