/* Socialfy · páginas de produto ainda não escritas ("em breve")
 * Mesma casa da home V5 fable-field: tokens idênticos, nav idêntica, motion na mesma gramática.
 * Compartilhado por produtos/{eco,formflow,mobile,academy}/index.html
 * criado 2026-08-01 17:25 BRT · atualizado 2026-08-24 08:04 BRT
 */

/* ============ Fontes locais (zero CDN) ============ */
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/satoshi-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
}

/* ============ Tokens — cópia fiel da spec-mãe (não aproximar) ============ */
:root {
  --night:       oklch(14% 0.028 262);
  --night-2:     oklch(17.5% 0.034 262);
  --night-3:     oklch(22% 0.04 262);
  --abyss:       oklch(10.5% 0.024 262);
  --ink:         oklch(96% 0.008 262);
  --ink-2:       oklch(81% 0.022 262);
  --ink-3:       oklch(63% 0.03 262);
  --rule:        oklch(33% 0.055 262);
  --rule-soft:   oklch(25% 0.04 262);
  --accent:      oklch(56% 0.215 262);
  --accent-hi:   oklch(72% 0.155 262);
  --accent-dim:  oklch(42% 0.135 262);
  --accent-deep: oklch(27% 0.095 262);
  --focus:       oklch(74% 0.15 262);
  --accent-ink:  oklch(98% 0.006 262);

  --shadow-card:  0 22px 52px -26px oklch(6% 0.02 262 / 0.7);
  --shadow-plate: 0 34px 90px -34px oklch(5% 0.02 262 / 0.85),
                  0 0 0 1px oklch(58% 0.215 262 / 0.12);
  --halo-node:   oklch(58% 0.215 262 / 0.16);
  --edge-hair:   oklch(96% 0.008 262 / 0.08);

  --glow-core: oklch(97% 0.05 250 / 0.8);
  --glow-mid:  oklch(70% 0.2 258 / 0.44);
  --glow-out:  oklch(48% 0.17 262 / 0);

  --font-display: "Satoshi", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Satoshi", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8854rem;
  --text-base: 1.0625rem;
  --text-md:   1.275rem;
  --text-lg:   1.53rem;
  --text-xl:   1.836rem;
  --text-display-s: clamp(1.836rem, 2.4vw + 0.95rem, 3.173rem);
  --text-statement: clamp(2.2rem, 3vw + 0.8rem, 3.807rem);
  --text-display: clamp(2.2rem, 4.2vw + 0.6rem, 4.568rem);

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --hair: 1px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;

  --z-nav:   300;
  --z-mega:  320;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --nav-h: 64px;
}

/* ============ Fundações ============ */
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-gutter: stable; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
button { font: inherit; color: inherit; }
button:active { transform: translateY(1px); }

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

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 999;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translate3d(0, -400%, 0);
  transition: transform var(--dur-short) var(--ease-out);
}
.skip-link:focus-visible { transform: translate3d(0, 0, 0); }

.tech {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ============ Botões ============ */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.74rem 1.2rem;
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}
.btn--primary {
  --btn-bg: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 12px 32px -14px var(--halo-node);
}
.btn--primary:hover { --btn-bg: var(--accent-hi); transform: translateY(-1px); }
.btn--ghost:hover { border-color: var(--accent-dim); background: var(--night-2); }
.btn--big { padding: 0.92rem 1.55rem; font-size: var(--text-base); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============ NAV · idêntica à home (N11) ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: oklch(14% 0.028 262 / 0.7);
  backdrop-filter: blur(14px);
  border-bottom: var(--hair) solid var(--rule-soft);
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.nav.is-open,
.nav.is-solid { background: var(--night); border-color: var(--rule); }
.nav__in {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand b { font-weight: 700; color: var(--accent-hi); }
.brand__mark { width: 31px; height: 31px; flex: none; object-fit: contain; }
.brand__mark .logo-a { fill: var(--ink); }
.brand__mark .logo-b { fill: var(--accent-hi); }

.nav__mid {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  padding: 0.28rem 0.4rem;
  border: var(--hair) solid var(--rule-soft);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.04);
}
.nav__mid > a,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.nav__mid > a:hover,
.nav__trigger:hover,
.nav__trigger[aria-expanded="true"] { color: var(--ink); background: oklch(100% 0 0 / 0.06); }
.nav__trigger svg {
  width: 10px; height: 7px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform var(--dur-short) var(--ease-out);
}
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__end { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.nav__login { font-size: var(--text-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav__login:hover { color: var(--ink); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
}
.nav__burger svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: var(--z-mega);
  background: var(--night-2);
  border-bottom: var(--hair) solid var(--rule);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega[hidden] { display: none; }
.mega.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.mega__in {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-xl) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-xl);
}
.mega__k { margin-bottom: var(--space-sm); color: var(--accent-hi); }
#menu-produtos .mega__in { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.mega__col a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  margin-left: calc(var(--space-sm) * -1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.mega__col a:hover { background: var(--night-3); }
.mega__col b { display: block; font-size: var(--text-sm); font-weight: 600; }
.mega__col span { display: block; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.5; }
.mega__ico { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.mega__col .mega__txt { min-width: 0; font-size: inherit; color: inherit; line-height: inherit; }
/* a página atual no menu: acesa, com o ponto de presença do produto */
.mega__col a.is-here { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.mega__col a.is-here b { color: var(--accent-hi); }
.mega__col a.is-here b::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 3px var(--halo-node);
  vertical-align: 2px;
}
/* etiqueta de página ainda não escrita — some no is-here (a página já é esta) */
.mega__col .mega__soon {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.4rem;
  border: var(--hair) solid var(--rule-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  vertical-align: 1px;
}
.mega--slim .mega__in { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-block: var(--space-lg); }

.sheet {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-md) var(--gutter) var(--space-lg);
  border-top: var(--hair) solid var(--rule-soft);
  background: var(--night-2);
}
.sheet[hidden] { display: none; }
.sheet a {
  padding: 0.7rem 0;
  font-size: var(--text-base);
  text-align: left;
  text-decoration: none;
  border-bottom: var(--hair) solid var(--rule-soft);
}

/* ============ Palco "em breve" ============ */
.soon {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(3.5rem, 11vh, 7rem) 0 var(--space-3xl);
  isolation: isolate;
  overflow: hidden;
}
/* horizonte de luz — a mesma assinatura do hero da home, em versão calada */
.soon__light {
  position: absolute;
  left: 50%; top: 8%;
  width: min(120rem, 190vw);
  aspect-ratio: 3 / 1;
  translate: -50% 0;
  background:
    radial-gradient(60% 52% at 50% 50%, var(--glow-core) 0%, var(--glow-mid) 34%, var(--glow-out) 72%);
  opacity: 0.26;
  filter: blur(22px);
  z-index: -2;
  pointer-events: none;
}
.soon__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(oklch(62% 0.16 262 / 0.5) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(58% 62% at 50% 42%, #000 0%, transparent 78%);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.soon__in {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.soon__ico {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 18px 34px oklch(6% 0.02 262 / 0.6));
}

.soon__kicker { color: var(--accent-hi); }

.soon__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: var(--space-sm) 0 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.soon__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  padding: 0.36rem 0.85rem;
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.03);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.soon__badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 0 var(--halo-node);
  animation: pulse 2.6s var(--ease-in-out) infinite;
}

.soon__lede {
  margin: var(--space-lg) auto 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: var(--text-md);
}
.soon__note {
  margin: var(--space-md) auto 0;
  max-width: 48ch;
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.soon__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* o que já está no ar — trilho de saída, não beco sem saída */
.soon__live {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: var(--hair) solid var(--rule-soft);
}
.soon__live .tech { margin-bottom: var(--space-md); }
.soon__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: var(--space-sm);
  text-align: left;
}
.card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: var(--hair) solid var(--rule-soft);
  border-radius: var(--radius);
  background: var(--night-2);
  text-decoration: none;
  transition: border-color var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out);
}
.card:hover { border-color: var(--accent-dim); background: var(--night-3); transform: translateY(-2px); }
.card img { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.card b { display: block; font-size: var(--text-sm); font-weight: 600; }
.card span { display: block; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.5; }

/* ============ Footer ============ */
.foot { border-top: var(--hair) solid var(--rule-soft); padding: var(--space-2xl) 0 var(--space-xl); }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--space-xl) var(--space-lg);
}
.foot__cols nav { display: grid; gap: var(--space-xs); align-content: start; }
.foot__cols .tech { margin-bottom: var(--space-2xs); }
.foot__cols a {
  justify-self: start;
  padding: 0.15rem 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out);
}
.foot__cols a:hover { color: var(--ink); }
.foot__meta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: var(--hair) solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

/* ============ Coreografia — entrada em cascata, uma linha de cada vez ============ */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--halo-node); }
  50%      { box-shadow: 0 0 0 7px oklch(58% 0.215 262 / 0); }
}
@keyframes dawn {
  from { opacity: 0; }
  to   { opacity: 0.26; }
}
.js [data-rise] {
  opacity: 0;
  animation: rise var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.js .soon__light { animation: dawn 1400ms var(--ease-out) forwards; }

/* ============ Responsivo ============ */
@media (max-width: 60rem) {
  .nav__mid { display: none; }
  .nav__login { display: none; }
  .nav__burger { display: grid; }
  .mega { display: none !important; }
}
@media (max-width: 30rem) {
  .soon__ico { width: 60px; height: 60px; }
  .soon__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; animation: none; }
  .js .soon__light { opacity: 0.26; animation: none; }
  .soon__badge i { animation: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
