/* site/src/assets/css/base.css
   O que todas as páginas usam: fontes, cores (claro e escuro), base, botões, títulos das seções,
   cabeçalho, rodapé e as perguntas (sanfona). Visual da landing page aprovada (Opção B). */

/* =====================================================================
   Fontes (no próprio site: nada é baixado de outro domínio)
   ===================================================================== */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("/fonts/shantell-sans-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/shantell-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("/fonts/shantell-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/shantell-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =====================================================================
   Cores e medidas
   ===================================================================== */
:root {
  --blue: #056dff; --blue-2: #2b5cff; --blue-hover: #0a5fe0;
  --paper: #fffbf5; --paper-2: #f6efe3; --card: #ffffff;
  --ink: #0f1217; --text: #2a3740; --muted: #616b76; --faint: #a3aab3;
  --line: rgba(15, 18, 23, 0.1); --line-2: rgba(15, 18, 23, 0.06);
  --sh-1: 0 1px 2px rgba(15, 18, 23, 0.05), 0 12px 30px -16px rgba(15, 18, 23, 0.25);
  --sh-2: 0 2px 6px rgba(15, 18, 23, 0.04), 0 44px 90px -40px rgba(15, 18, 23, 0.42);
  --purple: #5856d6; --purple-ink: #4644c4;
  --orange: #ff9500; --orange-ink: #a85800;
  /* Azul de texto (links, rótulos): o da marca, um pouco mais escuro para ler bem (contraste AA) */
  --blue-text: #0a5fe0;
  --pink: #ff2d55; --green: #01aa2b; --mint: #4cd964; --yellow: #ffcc00; --sky: #5ac8fa; --violet: #af52de; --rose: #ff30c1;
  --f-sans: "Inter Tight", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Shantell Sans", "Comic Sans MS", cursive;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --back: cubic-bezier(0.3, 1.5, 0.45, 1);
  --wrap: 1200px;
  --nav-h: 70px;
  color-scheme: light;
}
html.dark {
  --paper: #0b0d12; --paper-2: #10141b; --card: #161a23;
  --ink: #f3f5f8; --text: #c4cbd5; --muted: #8d97a5; --faint: #5b6470;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.05);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -16px rgba(0, 0, 0, 0.75);
  --sh-2: 0 44px 90px -40px rgba(0, 0, 0, 0.9);
  --purple-ink: #a6a4ff; --orange-ink: #ffaa33;
  --blue-text: #4d94ff;
  color-scheme: dark;
}

/* =====================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 96px; interpolate-size: allow-keywords; }
body { min-height: 100vh; font-family: var(--f-sans); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--paper); overflow-x: hidden; overflow-x: clip; transition: background-color 0.45s var(--ease), color 0.45s var(--ease); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
ul, ol { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.hand { font-family: var(--f-hand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.6rem 1rem; border-radius: 0.7rem; background: var(--blue); color: #fff; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(5, 109, 255, 0.22); }
.grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.dark .grain { opacity: 0.06; }
.dot { display: inline-block; margin: 0 0.35rem; color: var(--faint); }

/* Botões */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: var(--h); padding: 0 1.35rem; border-radius: 999px; white-space: nowrap;
  font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, translate 0.35s var(--ease);
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(5, 109, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--card) 55%, transparent); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); }
.btn-white:hover { background: #f1f6ff; }
.btn-lg { --h: 56px; padding: 0 1.8rem; font-size: 1.05rem; }
.btn-xl { --h: 64px; padding: 0 2.2rem; font-size: 1.12rem; }
.btn-sm { --h: 40px; padding: 0 1.05rem; font-size: 0.9rem; }

/* Rótulos manuscritos das seções */
.tag-hand {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.1rem;
  font-family: var(--f-hand); font-weight: 650; font-size: 1.05rem; color: var(--blue-text); transform: rotate(-2deg); transform-origin: left center;
}
.tag-hand::before { content: ""; width: 1.7em; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.sec-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .tag-hand { transform: rotate(-2deg); transform-origin: center; }
.sec-head h2 { font-size: clamp(2.3rem, 5.4vw, 4.5rem); letter-spacing: -0.05em; line-height: 0.98; }
.sec-head h2 .dim { color: var(--muted); }
.sec-head p { margin-top: 1.15rem; max-width: 36rem; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }  /* pretty: sem palavra sozinha na última linha */
.sec-head.center p { margin-inline: auto; }

/* Revelação por palavra e por bloco (só com JavaScript: sem ele, tudo aparece normal) */
html.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.05em 0.14em; margin: 0 -0.05em -0.14em; }
html.js [data-split] .si { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 42ms); }
html.js [data-split].in .si { transform: none; }
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
html.js .rv.in { opacity: 1; transform: none; }

/* =====================================================================
   Cabeçalho
   ===================================================================== */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.nav-in {
  pointer-events: auto; width: min(var(--wrap), 100% - 1.5rem); margin-inline: auto; height: 58px;
  display: flex; align-items: center; gap: 1rem; padding: 0 0.5rem 0 1.15rem; border-radius: 999px;
  border: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.scrolled .nav-in {
  background: color-mix(in srgb, var(--paper) 76%, transparent); border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.45);
}
/* Marca: ícone + Todonex (To 500 · done 800 · x 500) */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; color: var(--ink); border-radius: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.wm { padding-right: 0.06em; font-size: 1.45rem; line-height: 1; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.wm i, .foot-mark i { font-style: normal; font-weight: 500; }
.wm i { transition: font-weight 0.5s var(--ease); }
.wm:not(.st-todo) i:nth-child(2), .wm:not(.st-todo) i:nth-child(3), .wm.st-todo i:nth-child(1), .wm.st-todo i:nth-child(2) { font-weight: 800; }
.slogan { font-weight: 500; letter-spacing: -0.01em; }
.slogan b { font-weight: 800; color: var(--blue-text); }
.nav-links { display: flex; gap: 0.2rem; margin-inline: auto; }
.nav-links a { padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.92rem; font-weight: 550; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.theme { position: relative; width: 52px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); transition: background-color 0.3s; flex-shrink: 0; margin-right: 0.35rem; }
.theme .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--orange); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); transition: transform 0.45s var(--back), color 0.3s; }
.theme .i-moon { display: none; }
html.dark .theme { background: var(--blue); }
html.dark .theme .knob { transform: translateX(22px); color: var(--blue); }
html.dark .theme .i-sun { display: none; }
html.dark .theme .i-moon { display: block; }
.nav-login { padding: 0.45rem 0.85rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: background-color 0.2s; }
.nav-login:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lbl-short { display: none; }

/* =====================================================================
   Perguntas (sanfona): página inicial e Suporte
   ===================================================================== */
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); border-radius: 8px; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ic { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--back); }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.35s var(--ease), background-color 0.3s; }
.qa-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa summary:hover .qa-ic { border-color: var(--ink); }
.qa[open] .qa-ic { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.qa[open] .qa-ic::before, .qa[open] .qa-ic::after { background: #fff; }
.qa[open] .qa-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-body { padding: 0 3.2rem 1.5rem 0; font-size: 1.02rem; color: var(--muted); }
.qa-body a { color: var(--blue-text); font-weight: 600; }
.qa-body a:hover { text-decoration: underline; }

/* =====================================================================
   Rodapé
   ===================================================================== */
.foot { position: relative; padding-top: 3rem; overflow: hidden; overflow: clip; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.foot-links a { font-size: 0.95rem; color: var(--text); transition: color 0.2s; }
.foot-links a:hover { color: var(--blue-text); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.6rem; padding: 1.2rem 0; font-size: 0.86rem; color: var(--muted); }
.foot-bottom .dot { margin: 0 0.25rem; }
.foot-lang { display: inline-flex; align-items: center; font-size: 0.9rem; }
.foot-lang a { color: var(--blue-text); font-weight: 600; }
.foot-lang a:hover { text-decoration: underline; }
.foot-lang [aria-current] { color: var(--ink); font-weight: 650; }
.to-top { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); transition: color 0.2s; }
.to-top:hover { color: var(--ink); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.foot-slogan { padding-left: 1.1rem; border-left: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
/* Assinatura: o "to-do" vira "done" dentro do próprio nome */
.foot-mark { margin: 0.5rem 0 -0.06em; text-align: center; font-family: var(--f-sans); font-size: clamp(4.6rem, 25vw, 21rem); line-height: 0.82; letter-spacing: -0.06em; white-space: nowrap; color: color-mix(in srgb, var(--blue) 14%, var(--paper)); user-select: none; pointer-events: none; }
.foot-mark i { transition: font-weight 0.9s var(--ease), color 0.9s var(--ease); }
.foot-mark:not(.st-todo):not(.st-idle) i:nth-child(2), .foot-mark:not(.st-todo):not(.st-idle) i:nth-child(3), .foot-mark.st-todo i:nth-child(1), .foot-mark.st-todo i:nth-child(2) { font-weight: 800; color: var(--blue); }

/* Aviso pequeno (copiar e-mail) */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 150; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.92rem; font-weight: 600; box-shadow: var(--sh-1); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s var(--back), opacity 0.3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-in { gap: 0.5rem; padding-left: 0.95rem; }
  .brand { gap: 0.45rem; }
  .brand-mark { width: 26px; height: 26px; }
  .wm { font-size: 1.28rem; }
  .foot-slogan { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .nav-login { display: none; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .qa-body { padding-right: 0; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* Movimento reduzido: tudo parado, no estado final */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; transform: none; }
  html.js [data-split] .si { transform: none; }
}
