/* Tuca — tuca.pro
   Single stylesheet, mobile-first. No external fonts or assets.
   Palette (app tokens): mata #0B3D2E · mataDeep #062A1F · folha #1F7A4D · bico #F7B52C
   laranja #EE7326 · tinta #10201C · areia #FBF5E6 */

:root {
  --mata: #0b3d2e;
  --mata-deep: #062a1f;
  --folha: #1f7a4d;
  --bico: #f7b52c;
  --laranja: #ee7326;
  --tinta: #10201c;
  --areia: #fbf5e6;
  --areia-2: #f3ead2;
  --branco: #ffffff;
  --muted: #3c4f49; /* 8.9:1 on areia */
  --line: #e2d7bb;
  --link: #17603c; /* 7.1:1 on areia, 7.5:1 on white */
  --focus: #ee7326;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 28, 0.06), 0 8px 24px rgba(16, 32, 28, 0.08);
  --max: 1080px;
  --text-max: 72ch;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--areia);
  color: var(--tinta);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 800;
  color: var(--mata);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--bico);
  color: var(--tinta);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--mata);
  color: var(--areia);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--areia);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  color: var(--areia);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:hover {
  background: rgba(251, 245, 230, 0.12);
}

.site-nav a[aria-current="page"] {
  background: rgba(247, 181, 44, 0.18);
  color: var(--bico);
}

.site-nav .nav-cta {
  background: var(--bico);
  color: var(--tinta);
}

.site-nav .nav-cta:hover {
  background: #ffc94f;
}

/* ---------- Buttons & store badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--bico);
  color: var(--tinta);
}

.btn-primary:hover {
  background: #ffc94f;
}

.btn-secondary {
  background: transparent;
  color: var(--mata);
  border-color: var(--mata);
}

.btn-secondary:hover {
  background: rgba(11, 61, 46, 0.06);
}

.on-dark .btn-secondary {
  color: var(--areia);
  border-color: var(--areia);
}

.on-dark .btn-secondary:hover {
  background: rgba(251, 245, 230, 0.1);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 0.6em;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  min-width: 190px;
  padding: 8px 18px 8px 14px;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  text-decoration: none;
  line-height: 1.15;
}

.store-badge:hover {
  background: #1b1b1b;
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store-badge span {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.store-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(120% 90% at 85% 10%, #145a40 0%, var(--mata) 45%, var(--mata-deep) 100%);
  color: var(--areia);
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero h1 {
  color: var(--areia);
}

.hero h1 .accent {
  color: var(--bico);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 36em;
  color: #f1ead6;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    padding: 72px 0 88px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-art {
  position: relative;
  width: min(320px, 78vw);
  margin: 0 auto;
  aspect-ratio: 1;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 28%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-art .waves {
  position: absolute;
  z-index: 1;
  inset: -22%;
  width: 144%;
  height: 144%;
  pointer-events: none;
}

.hero-art .waves circle {
  fill: none;
  stroke: var(--bico);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 50% 50%;
  animation: wave 3.6s ease-out infinite;
}

.hero-art .waves circle:nth-child(2) {
  animation-delay: 1.2s;
}

.hero-art .waves circle:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes wave {
  0% {
    transform: scale(0.62);
    opacity: 0.55;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 1.2em 0 0;
  list-style: none;
}

.hero-pills li {
  margin: 0;
  background: rgba(251, 245, 230, 0.1);
  border: 1px solid rgba(251, 245, 230, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--branco);
}

.section-dark {
  background: var(--mata);
  color: var(--areia);
}

.section-dark h2,
.section-dark h3 {
  color: var(--areia);
}

.section-dark a {
  color: var(--bico);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--folha);
  margin-bottom: 0.5em;
}

.section-dark .eyebrow {
  color: var(--bico);
}

.section-intro {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-intro {
  color: #e9e1cb;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 620px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--areia);
}

.card h3 {
  margin-top: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mata);
  color: var(--bico);
}

.icon-bubble svg {
  width: 26px;
  height: 26px;
}

.tag-pro {
  display: inline-block;
  background: var(--bico);
  color: var(--tinta);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  margin: 0;
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 76px;
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bico);
  color: var(--tinta);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 0.3em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Pro */

.pro-box {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .pro-box {
    grid-template-columns: 1fr 1fr;
  }
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bico);
  -webkit-mask: none;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.25em + 5px);
  width: 6px;
  height: 10px;
  border: solid var(--tinta);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.pro-card {
  background: rgba(251, 245, 230, 0.08);
  border: 1px solid rgba(251, 245, 230, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.pro-card p {
  color: #e9e1cb;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
}

.section-alt .faq details {
  background: var(--areia);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 800;
  color: var(--mata);
  position: relative;
  min-height: 48px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bico);
  color: var(--tinta);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 18px 16px;
}

.faq .answer p:last-child,
.faq .answer ul:last-child,
.faq .answer ol:last-child {
  margin-bottom: 0;
}

/* Callouts */

.callout {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--branco);
  margin: 1.5em 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-safety {
  background: #fff4e0;
  border: 2px solid var(--bico);
}

.callout-safety h2,
.callout-safety h3 {
  color: var(--tinta);
}

.callout-info {
  background: #eef6f1;
  border-color: #cfe3d7;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.callout-title svg {
  width: 26px;
  height: 26px;
  flex: none;
}

/* ---------- Legal / document pages ---------- */

.page-hero {
  background: var(--mata);
  color: var(--areia);
  padding: 40px 0 36px;
}

.page-hero h1 {
  color: var(--areia);
  margin-bottom: 0.3em;
}

.page-hero p {
  margin: 0;
  color: #e9e1cb;
  max-width: 44em;
}

.doc {
  padding: 40px 0 64px;
}

.doc-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
}

.toc {
  background: var(--branco);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc li + li {
  margin-top: 0.25em;
}

.prose {
  max-width: var(--text-max);
  min-width: 0;
}

.prose h2 {
  margin-top: 1.8em;
  padding-top: 0.2em;
  scroll-margin-top: 90px;
}

.prose h3 {
  margin-top: 1.4em;
  scroll-margin-top: 90px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.summary-box {
  background: var(--branco);
  border: 2px solid var(--mata);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 2em;
}

.summary-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.summary-box ul {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1em 0 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--branco);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--areia-2);
  color: var(--mata);
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.prose table td:first-child {
  font-weight: 700;
}

.placeholder {
  background: #fff1b8;
  color: var(--tinta);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

kbd,
.path {
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  background: var(--areia-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.95em;
  color: var(--mata);
}

.source-list {
  list-style: none;
  padding: 0;
}

.source-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.source-list .lic {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 9px;
  background: var(--areia-2);
  color: var(--mata);
  margin-left: 4px;
}

/* ---------- Invite ---------- */

.invite {
  text-align: center;
  padding: 48px 0 64px;
}

.invite img.mascot {
  width: 132px;
  height: 132px;
  border-radius: 30%;
  box-shadow: var(--shadow);
}

.invite .code-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px 0 8px;
  padding: 16px 28px;
  background: var(--branco);
  border: 2px dashed var(--laranja);
  border-radius: var(--radius);
}

.invite .code-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.invite .code {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--mata);
  word-break: break-all;
}

.invite .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.invite .store-badges {
  justify-content: center;
}

.invite .how {
  text-align: left;
  max-width: 560px;
  margin: 28px auto 0;
}

.status {
  min-height: 1.6em;
  font-weight: 700;
  color: var(--folha);
}

[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--mata-deep);
  color: #e9e1cb;
  padding: 40px 0 28px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--areia);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  color: var(--bico);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

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

.site-footer li + li {
  margin-top: 0.4em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--areia);
  margin-bottom: 0.6em;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-legal {
  border-top: 1px solid rgba(251, 245, 230, 0.15);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-legal p {
  margin: 0;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 64px 0 80px;
}

.not-found img {
  width: 140px;
  height: 140px;
  border-radius: 30%;
  margin-bottom: 16px;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .store-badges {
    display: none;
  }
  body {
    background: #fff;
  }
}

.badges-center .store-badges {
  justify-content: center;
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.prose code {
  font-size: 0.9em;
  background: var(--areia-2);
  border-radius: 4px;
  padding: 0 4px;
}
