/* Formato — verde-água claro, topo com navegação, cartões brancos macios */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2?v=1") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --accent: #0f9c86;
  --accent-ink: #ffffff;
  --btn: #0b3b34;
  --btn-ink: #ffffff;
  --bg1: #eafaf5; --bg2: #f6fffc;
  --screen: #f4fbf9;
  --card: #ffffff;
  --ink: #0f2a26;
  --muted: #5d716c;
  --line: rgba(15, 60, 52, .11);
  --soft: #e6f7f2;
  --ok: #178255;
  --danger: #c0392b;
  --amber: #f2a73b;
  --shadow: 0 1px 2px rgba(10, 60, 50, .05), 0 14px 30px -20px rgba(10, 60, 50, .28);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #3ddbbd; --accent-ink: #06231f;
  --btn: #3ddbbd; --btn-ink: #06231f;
  --bg1: #0c1f1b; --bg2: #08171400;
  --screen: #0f2420; --card: #13302a;
  --ink: #e8f7f3; --muted: #9bb7b0;
  --line: rgba(220, 255, 245, .13); --soft: #19403a;
  --ok: #6fd7a4; --danger: #ff9a8c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #3ddbbd; --accent-ink: #06231f;
    --btn: #3ddbbd; --btn-ink: #06231f;
    --bg1: #0c1f1b; --bg2: #08171400;
    --screen: #0f2420; --card: #13302a;
    --ink: #e8f7f3; --muted: #9bb7b0;
    --line: rgba(220, 255, 245, .13); --soft: #19403a;
    --ok: #6fd7a4; --danger: #ff9a8c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2) 520px), var(--screen);
  font: 16px/1.55 "Figtree", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .3s;
}
a { color: var(--accent); }
[hidden] { display: none !important; }
code { background: var(--soft); padding: 1px 7px; border-radius: 6px; font-size: .92em; }
a:focus-visible, button:focus-visible, .drop:focus-visible, select:focus-visible, input:focus-visible, .theme:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }

/* ---------- topo ---------- */
.topbar { display: flex; align-items: center; gap: 28px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.brand img { width: 46px; height: 46px; display: block; }
.brand .beta { font-size: 11px; font-weight: 700; letter-spacing: 0; background: var(--ink); color: var(--screen); border-radius: 999px; padding: 3px 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a, .nav span {
  padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
  transition: background .2s;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--soft); font-weight: 650; }
.nav .soon { color: var(--muted); cursor: default; }
.nav .soon small { font-size: 11px; font-weight: 700; color: var(--accent); margin-left: 4px; }
.theme {
  position: relative; width: 76px; height: 40px; padding: 0; flex: 0 0 auto; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .3s;
}
.theme:hover { border-color: var(--accent); }
.theme .thumb {
  position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .45s cubic-bezier(.5, 1.5, .4, .95);
}
.theme[data-mode="dark"] .thumb { transform: translateX(36px); }
.theme svg { position: absolute; top: 9px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: color .3s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.theme .sun { left: 9px; }
.theme .moon { left: 45px; }
.theme[data-mode="light"] .sun { color: #fff; transform: rotate(180deg); }
.theme[data-mode="light"] .moon { color: var(--muted); }
.theme[data-mode="dark"] .moon { color: #06231f; transform: rotate(-20deg); }
.theme[data-mode="dark"] .sun { color: var(--muted); }

.footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 20px; }
.footer .brand img { width: 30px; height: 30px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .sp { flex: 1; }

/* ---------- conteúdo ---------- */
.content { padding: 8px 0 8px; min-width: 0; }
.pagehead { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; flex-wrap: wrap; }
.back {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--card); transition: background .2s;
}
.back:hover { background: var(--soft); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pagehead h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.025em; font-weight: 700; line-height: 1.15; }
.pagehead .vsep { width: 1px; height: 22px; background: var(--line); }
.pagehead .note { color: var(--muted); font-size: 14px; }
.col { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.col.wide { max-width: none; gap: 28px; }
.card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: background .3s; }
.herocard { display: flex; gap: 22px; align-items: center; }
.sticker { width: 96px; height: 96px; flex: 0 0 auto; }
.herocard h2 { margin: 0 0 4px; font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.02em; font-weight: 700; line-height: 1.2; }
.herocard p { margin: 0; color: var(--muted); }
.sec { font-size: 15px; margin: 0 0 14px; font-weight: 650; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .bi { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: 0 0 auto; font-size: 20px; }
.benefits strong { display: block; font-size: 15px; }
.benefits span { color: var(--muted); font-size: 14.5px; }

/* ---------- ferramenta ---------- */
.drop {
  display: grid; place-items: center; gap: 4px; padding: 30px 18px; text-align: center; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 20px; background: var(--soft);
  transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--soft)); }
.drop .big { font-size: 34px; line-height: 1; }
.drop strong { font-size: 18px; font-weight: 650; }
.drop small { color: var(--muted); font-size: 14px; }

.files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--screen); }
.file .n { width: 22px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; flex: 0 0 auto; }
.file .thumb {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
  background: var(--soft); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--accent);
}
.file .info { min-width: 0; flex: 1; }
.file .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { color: var(--muted); font-size: 13px; }
.file .meta.err { color: var(--danger); }
.iconbtn {
  width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; font-size: 15px;
}
.iconbtn:hover:not(:disabled) { border-color: var(--accent); }
.iconbtn:disabled { opacity: .3; cursor: default; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.options label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
select, input[type="text"], input[type="number"] {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--screen); color: var(--ink); font: inherit; font-size: 16px;
}
.radios { display: grid; gap: 10px; margin-top: 16px; }
.radios label.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--screen); }
.radios label.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--screen)); }
.radios .opt input[type="radio"] { margin-top: 5px; accent-color: var(--accent); }
.radios .opt > span { flex: 1; min-width: 0; }
.radios .opt .sub { display: block; color: var(--muted); font-size: 14px; }
.radios .opt .field { display: block; margin-top: 8px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.actions.one { grid-template-columns: 1fr; }
.btn {
  height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--btn-ink); font: 600 16px/1 "Figtree", ui-rounded, sans-serif;
  transition: transform .15s, filter .2s;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); filter: none; }

.status { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-size: 15px; }
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }
.result { display: none; margin-top: 14px; padding: 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: var(--soft); }
.result.show { display: block; }
.result p { margin: 0; font-weight: 650; }

.howto h3 { margin: 0 0 10px; font-size: 15px; font-weight: 650; }
.howto ol { margin: 0; padding-left: 20px; color: var(--muted); }
.howto li { margin-bottom: 4px; }
.howto p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- página inicial ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: center; gap: 28px; padding: 14px 0 8px; }
.hero-text { text-align: center; }
.hero-art { width: 100%; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-art .h-head { animation: hbob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.hero-art .h-arrow { animation: hnudge 2.4s ease-in-out infinite; }
.hero-art .h-sun { animation: spark2 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .h-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: blink 4.4s infinite; }
@keyframes hbob { 50% { transform: translateY(-5px); } }
@keyframes hnudge { 50% { transform: translateX(6px); } }
@keyframes spark2 { 50% { transform: translateY(-4px) scale(1.12); } }
.hero h1 { margin: 0 auto; font-size: clamp(38px, 7vw, 68px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 800; }
.hero h1 em { display: block; font-style: normal; color: var(--accent); }
.hero .lead { margin: 18px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero .ctas .btn { min-width: 210px; }
.sechead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.sechead h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button {
  font: 600 14px/1 "Figtree", sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink); transition: background .2s;
}
.pills button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: transform .25s, border-color .2s;
}
.tcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.tcard .sticker { width: 60px; height: 60px; margin-bottom: 8px; }
.tcard h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.tcard p { margin: 0; color: var(--muted); font-size: 14.5px; padding-right: 36px; }
.tcard .go { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.tcard .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tcard.soon { box-shadow: none; background: transparent; outline: 1.6px dashed color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: -1px; border-color: transparent; pointer-events: none; }
.tcard.soon .sticker { opacity: .75; }
.tcard .soontag { position: absolute; top: 14px; right: 14px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.trust div { display: flex; gap: 14px; align-items: flex-start; }
.trust .bi { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; flex: 0 0 auto; font-size: 22px; }
.trust strong { display: block; font-size: 15.5px; }
.trust span { color: var(--muted); font-size: 14px; }

/* personagem da página inicial */
.mascot {
  position: relative; width: 112px; height: 112px; flex: 0 0 auto; cursor: pointer; border-radius: 28px;
  background: linear-gradient(180deg, #3ddbbd, #0c8472); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .3));
  animation: float 3.6s ease-in-out infinite; border: 0; padding: 0; display: block;
}
.mascot::after {
  content: ""; position: absolute; right: 15%; top: 13%; width: 9%; height: 9%; min-width: 7px; min-height: 7px;
  background: #ffc94d; border-radius: 0 50% 50% 50%; transform: rotate(-45deg); animation: spark 3.2s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(1.4deg); } }
@keyframes spark { 0%, 100% { transform: translateY(0) rotate(-45deg) scale(1); } 50% { transform: translateY(-5px) rotate(-45deg) scale(1.18); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.blob {
  position: absolute; left: 50%; top: 54%; width: 52%; height: 52%; margin: -26% 0 0 -26%;
  background: linear-gradient(180deg, #ffffff, #e9fbf7 55%, #b6ebdf); box-shadow: 0 6px 10px rgba(0, 60, 50, .25);
  transition: border-radius .6s cubic-bezier(.5, 1.5, .4, 1), transform .6s cubic-bezier(.5, 1.5, .4, 1);
}
.face { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.5, 1.5, .4, 1); }
.face svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot[data-shape="gota"]     .blob { border-radius: 0 50% 50% 50%; transform: rotate(-45deg) scale(.9); }
.mascot[data-shape="gota"]     .face { transform: rotate(45deg); }
.mascot[data-shape="quadrado"] .blob { border-radius: 24%; transform: rotate(0) scale(1); }
.mascot[data-shape="circulo"]  .blob { border-radius: 50%; transform: rotate(0) scale(1.02); }
.mascot[data-shape="losango"]  .blob { border-radius: 16%; transform: rotate(45deg) scale(.78); }
.mascot[data-shape="losango"]  .face { transform: rotate(-45deg); }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.4s infinite; }
.mascot .eyes-open, .mascot .eyes-happy { transition: opacity .2s; }
.mascot .eyes-happy { opacity: 0; }
.mascot.happy .eyes-open { opacity: 0; }
.mascot.happy .eyes-happy { opacity: 1; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { gap: 12px; padding: 14px 0; }
  .brand { font-size: 24px; }
  .brand img { width: 38px; height: 38px; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav a, .nav span { white-space: nowrap; padding: 8px 14px; }
  .theme { margin-left: auto; }
  .pagehead .vsep, .pagehead .note { display: none; }
  .herocard { flex-direction: column; text-align: center; }
  .actions { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot, .mascot::after, .mascot .eye, .hero-art * { animation: none !important; }
  .blob, .face, .theme .thumb, .theme svg, .tcard, .card { transition: none; }
}

@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-art { width: min(400px, 90%); margin: 0 auto; } }

/* ---------- páginas de ferramenta ---------- */
.col.big { max-width: 1040px; }
.toolhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: 1040px; margin: 14px auto -34px; position: relative; z-index: 0; }
.toolhead .tt { padding-bottom: 46px; min-width: 0; }
.toolhead .tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--soft); margin-bottom: 14px; }
.toolhead .tile .sticker { width: 52px; height: 52px; }
.toolhead h1 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.toolhead p { margin: 6px 0 0; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); }
.toolart { width: 230px; flex: 0 0 auto; margin-right: 4%; }
.toolart svg { width: 100%; display: block; }
.toolart .h-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: blink 4.4s infinite; }
.col.big > .card:first-child { position: relative; z-index: 1; padding: 30px; border-radius: 28px; }
.drop { padding: 38px 18px 30px; gap: 6px; border-radius: 24px; }
.drop .upl { width: 56px; height: 56px; border-radius: 16px; background: var(--card); display: grid; place-items: center; margin-bottom: 8px; border: 1px solid var(--line); }
.drop .upl svg { width: 26px; height: 26px; fill: none; stroke: var(--btn); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .drop .upl svg { stroke: var(--accent); }
.drop strong { font-size: 20px; font-weight: 700; }
.drop .btn.dark { margin-top: 14px; height: 48px; pointer-events: none; }
.drop .foot { font-style: normal; color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.listhead { margin: 22px 0 10px; font-weight: 650; font-size: 15px; }
.files { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
ul.files .file { position: relative; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
ul.files .file .thumb { width: 100%; height: 118px; border-radius: 12px; font-size: 16px; }
ul.files .file .n { position: absolute; top: 18px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; z-index: 1; }
ul.files .file .info { padding-right: 70px; min-height: 40px; }
ul.files .file .iconbtn { position: absolute; width: 28px; height: 28px; font-size: 13px; }
ul.files .file .iconbtn:last-child { top: 18px; right: 18px; background: var(--card); }
ul.files .file .iconbtn:nth-last-child(3) { bottom: 12px; right: 46px; }
ul.files .file .iconbtn:nth-last-child(2) { bottom: 12px; right: 12px; }
.options { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.actions { margin-top: 22px; }
.actions .btn:not(.ghost) { background: var(--btn); }
.howto { max-width: none; }
@media (max-width: 760px) {
  .toolart { display: none; }
  .toolhead { margin-bottom: 14px; } .toolhead .tt { padding-bottom: 0; }
  .col.big > .card:first-child { padding: 18px; }
}
