/* =============================================================================
   toolkitlabs.net — folha de estilo única da landing.

   Sem framework e sem JavaScript: a página é estática e o CSP do nginx proíbe
   script e estilo inline. Tudo o que é visual mora aqui.

   Identidade: "bancada de laboratório" — papel quadriculado, tinta escura,
   etiquetas em fonte monoespaçada e um laranja queimado como cor da casa. Cada
   app entra com a própria cor (azul do Omni, verde do Evolus).
   ============================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f4f1ea;
  --surface: #fbfaf6;
  --ink: #15171c;
  --muted: #5a5f68;
  --line: #d8d3c6;
  --grid: rgba(21, 23, 28, 0.055);
  --accent: #cf4a12;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.06), 0 18px 40px -18px rgba(21, 23, 28, 0.28);

  --omni: #2c5aa0;
  --omni-soft: #e3ebf7;
  --evolus: #0d9668;
  --evolus-soft: #dff5ec;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #15181d;
    --ink: #eceae4;
    --muted: #9ba1ab;
    --line: #272b33;
    --grid: rgba(236, 234, 228, 0.045);
    --accent: #ff7a3d;
    --accent-ink: #14110f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 48px -20px rgba(0, 0, 0, 0.75);

    --omni: #7fa8e6;
    --omni-soft: #16223a;
    --evolus: #34d399;
    --evolus-soft: #0f2a22;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 2rem 2rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.5rem;
}
.skip:focus { left: 0.5rem; }

/* ---- etiqueta monoespaçada: a "letra de laboratório" da página ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

/* ---- cabeçalho ----------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 1.9rem; height: 1.9rem; }
.brand .dot { fill: var(--accent); }
.brand small {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }
.nav .lang {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.nav .lang:hover { border-color: var(--ink); }
@media (max-width: 40rem) {
  .nav .nav__opt { display: none; }
}

/* ---- botões -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* dois aparelhos sobrepostos, cada um com o halo da cor do seu app */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1rem 2rem;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  background:
    radial-gradient(42% 46% at 30% 42%, color-mix(in srgb, var(--omni) 38%, transparent), transparent 72%),
    radial-gradient(42% 46% at 72% 60%, color-mix(in srgb, var(--evolus) 36%, transparent), transparent 72%);
  filter: blur(34px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(46%, 15.5rem);
  aspect-ratio: 1080 / 2340;
  border: 0.45rem solid #101216;
  border-radius: 2.1rem;
  background: #101216;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.stage .phone:first-child { transform: rotate(-5deg) translateY(0.5rem); margin-right: -7%; }
.stage .phone:last-child { transform: rotate(4deg) translateY(2.25rem); z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.07s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.21s; }
  .stage .phone:first-child { animation: drop-a 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .stage .phone:last-child { animation: drop-b 0.9s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}
@keyframes drop-a {
  from { opacity: 0; transform: rotate(-11deg) translateY(3.5rem); }
  to { opacity: 1; transform: rotate(-5deg) translateY(0.5rem); }
}
@keyframes drop-b {
  from { opacity: 0; transform: rotate(10deg) translateY(5.5rem); }
  to { opacity: 1; transform: rotate(4deg) translateY(2.25rem); }
}

@media (max-width: 56rem) {
  .hero__in { grid-template-columns: 1fr; }
  .stage { max-width: 30rem; margin-inline: auto; }
}

/* ---- faixa de números ---------------------------------------------------- */
.facts {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.facts__in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1.4rem 0;
}
.fact + .fact { padding-left: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.fact b {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact span { color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
@media (max-width: 40rem) {
  .facts__in { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- seções -------------------------------------------------------------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* ---- cartões dos apps ---------------------------------------------------- */
.apps { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.app {
  --tone: var(--ink);
  --tone-soft: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app--omni { --tone: var(--omni); --tone-soft: var(--omni-soft); }
.app--evolus { --tone: var(--evolus); --tone-soft: var(--evolus-soft); }

.app__body { padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; }
.app__tag { display: flex; align-items: center; gap: 0.7rem; }
.app__tag i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tone);
}
.app__id { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.app__icon {
  width: 4rem;
  height: 4rem;
  flex: none;
  border-radius: 1.05rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.app__icon img { width: 100%; height: 100%; object-fit: cover; }
/* o ícone do Evolus é o "foreground" adaptativo do Android, com margem de
   segurança em volta — ampliar tira o respiro excessivo */
.app__icon--zoom img { transform: scale(1.45); }
.app__id h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.app__id p { color: var(--muted); font-size: 0.98rem; }
.app__text { margin-top: 1.4rem; max-width: 32rem; font-size: 1.1rem; text-wrap: pretty; }
.app__feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line);
}
.app__feats li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.4;
}
.app__feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--tone);
  border-bottom: 2px solid var(--tone);
  transform: rotate(-45deg);
}
.app__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: auto; padding-top: 2rem; }

.app__shots {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  padding: clamp(1.5rem, 4vw, 2.75rem) 6% 0;
  background:
    radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 75%),
    var(--tone-soft);
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.app__shots .phone {
  width: 47%;
  border-bottom: 0;
  border-radius: 1.7rem 1.7rem 0 0;
  aspect-ratio: 1080 / 1900;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.app__shots .phone img { object-position: top; }
.app__shots .phone:first-child { transform: translateY(1.75rem); }
.app:hover .app__shots .phone:first-child { transform: translateY(0.75rem); }
.app:hover .app__shots .phone:last-child { transform: translateY(1rem); }

@media (min-width: 56.01rem) {
  .app--flip .app__body { order: 2; }
  .app--flip .app__shots { border-left: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 56rem) {
  .app { grid-template-columns: 1fr; }
  .app__shots { border-left: 0; border-top: 1px solid var(--line); padding-inline: 12%; }
}
@media (max-width: 30rem) {
  .app__feats { grid-template-columns: 1fr; }
}

/* ---- princípios ---------------------------------------------------------- */
.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}
.rule { padding: 1.6rem 1.5rem 0.5rem 0; }
.rule + .rule { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.rule h3 {
  margin-top: 2.2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.rule p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 56rem) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { padding-bottom: 1.6rem; }
  .rule:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rule:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 34rem) {
  .rules { grid-template-columns: 1fr; }
  .rule + .rule { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .rule h3 { margin-top: 1rem; }
}

/* ---- contato ------------------------------------------------------------- */
.contact {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.contact .label { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.contact h2 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact > div > p { margin-top: 1rem; max-width: 26rem; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.mails { display: grid; gap: 0.75rem; }
.mail {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.mail span { grid-column: 1; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.mail b { grid-column: 1; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.mail svg { grid-column: 2; grid-row: 1 / span 2; width: 1.3rem; height: 1.3rem; }
.mail:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 56rem) {
  .contact { grid-template-columns: 1fr; }
}

/* ---- rodapé -------------------------------------------------------------- */
.foot { padding-block: 2.5rem 3rem; }
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.foot__note { flex-basis: 100%; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---- 404 ----------------------------------------------------------------- */
.lost {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 1.25rem;
}
.lost h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.lost p { color: var(--muted); max-width: 28rem; }

/* ---- produto ainda em desenvolvimento ------------------------------------ */
.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.6rem, 4vw, 2.5rem) clamp(1.6rem, 4vw, 3rem);
  border: 1.5px dashed var(--line);
  border-radius: calc(var(--radius) * 1.4);
}
.soon .app__tag i { background: var(--accent); }
.soon h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.soon div > p:last-child { margin-top: 0.6rem; max-width: 34rem; color: var(--muted); }
.soon__state {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}
