/* ============================================================
   SANDRA — Sistema de design da landing
   Base: tinta quente + papel osso. Acento: magenta #ec0b6a.
   Tipografia: Bricolage Grotesque (display) + Schibsted Grotesk (texto)
   ============================================================ */

:root {
  /* ---- Cor ---- */
  --magenta: #ec0b6a;
  --magenta-700: #c2085a;
  --magenta-300: #ff5fa0;
  --magenta-100: #ffe3ee;
  --violet: #6a2bd9;
  --indigo: #2a1b6b;
  --coral: #ff6a3d;

  --ink: #120a14;          /* texto principal, fundos escuros */
  --ink-2: #2c2230;
  --ink-soft: #5a4f60;
  --ink-faint: #8b8090;

  --paper: #ffffff;
  --bone: #faf7f6;         /* off-white quente */
  --bone-2: #f3eef0;
  --line: #ece5e9;
  --line-strong: #ddd2da;

  --on-dark: #f6eef3;
  --on-dark-soft: #b8a8bf;
  --on-dark-faint: #7c6e84;
  --dark-bg: #0d070f;
  --dark-bg-2: #160c1a;
  --dark-line: rgba(255,255,255,.10);

  /* status */
  --ok: #16a36a;
  --warn: #e0a000;
  --crit: #e0263b;
  --info: #3b6fe0;

  /* ---- Tipo ---- */
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Space Mono", ui-monospace, monospace;

  /* ---- Espaço / forma ---- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --shadow-sm: 0 1px 2px rgba(18,10,20,.06), 0 2px 6px rgba(18,10,20,.05);
  --shadow: 0 10px 30px -10px rgba(18,10,20,.18), 0 2px 8px rgba(18,10,20,.06);
  --shadow-lg: 0 40px 80px -28px rgba(18,10,20,.30), 0 12px 30px -12px rgba(18,10,20,.16);
  --shadow-magenta: 0 24px 60px -20px rgba(236,11,106,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--magenta); color: #fff; }

/* tabular numbers for money/KPIs */
.tnum { font-feature-settings: "tnum" 1, "ss01" 1; font-variant-numeric: tabular-nums; }

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--magenta-700);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--magenta);
  display: inline-block; border-radius: 2px;
}
.section--dark .eyebrow { color: var(--magenta-300); }
.section--dark .eyebrow::before { background: var(--magenta-300); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
.h-display { font-size: clamp(40px, 7vw, 86px); line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: clamp(34px, 5vw, 60px); }
.h2 { font-size: clamp(28px, 3.6vw, 46px); }
.h3 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.section--dark .lead { color: var(--on-dark-soft); }

.head { max-width: 760px; }
.head .h2 { margin-top: 16px; }
.head .lead { margin-top: 18px; }

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding-inline: 24px; border-radius: 100px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow-magenta); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -18px rgba(236,11,106,.6); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.section--dark .btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--dark-line); }
.section--dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--sm { height: 42px; padding-inline: 18px; font-size: 15px; }
.btn--lg { height: 58px; padding-inline: 30px; font-size: 17px; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--magenta-700);
  transition: gap .25s var(--ease);
}
.arrowlink:hover { gap: 12px; }
.arrowlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.section--dark .arrowlink { color: var(--magenta-300); }

/* chips / pills */
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 13px;
  border-radius: 100px; font-size: 13px; font-weight: 600; background: var(--bone-2);
  color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 16px var(--gut);
  display: flex; align-items: center; gap: 30px;
  transition: padding .35s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.nav.scrolled .nav__inner { padding-block: 11px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  padding: 9px 14px; border-radius: 100px; font-weight: 500; font-size: 15.5px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--bone-2); color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__login { font-weight: 600; font-size: 15.5px; padding: 9px 14px; border-radius: 100px; }
.nav__login:hover { background: var(--bone-2); }
.nav__burger { display: none; }

/* brand wordmark */
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.03em; color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative; flex: none;
  background: var(--magenta);
  box-shadow: 0 6px 16px -6px rgba(236,11,106,.7);
  overflow: hidden;
}
.brand__mark::before { content:""; position:absolute; inset:0; background:
  radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%); }
.brand__mark::after { content:""; position:absolute; left:50%; top:50%; width:11px; height:11px; transform: translate(-50%,-50%); border-radius:50%; background:#fff; }
.section--dark .brand, .nav--dark .brand { color: #fff; }

.scrollbar { position: fixed; top: 0; left: 0; height: 2.5px; background: linear-gradient(90deg, var(--magenta), var(--coral)); z-index: 101; width: 0; }

@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: inline-flex; align-items:center; justify-content:center; width: 42px; height: 42px; border-radius: 12px; background: var(--bone-2); }
}

/* ============================================================
   Cards genéricos
   ============================================================ */
.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ============================================================
   Mock UI (dashboard / billing / inbox / portal)
   ============================================================ */
.mock {
  background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: 13px;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bone); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock__url { margin-left: 10px; font-size: 12px; color: var(--ink-faint); font-family: var(--mono); }
.mock__body { display: grid; }

/* dashboard mock */
.dash { grid-template-columns: 180px 1fr; min-height: 360px; }
.dash__side { background: var(--bone); border-right: 1px solid var(--line); padding: 16px 12px; }
.dash__navitem { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }
.dash__navitem.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dash__navitem .ic { width: 15px; height: 15px; border-radius: 5px; background: var(--line-strong); flex: none; }
.dash__navitem.active .ic { background: var(--magenta); }
.dash__main { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--paper); }
.kpi__label { font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: .02em; }
.kpi__val { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -.02em; margin-top: 4px; }
.kpi__delta { font-size: 11px; font-weight: 700; margin-top: 5px; display: inline-flex; align-items: center; gap: 3px; }
.kpi__delta.up { color: var(--ok); }
.kpi__delta.down { color: var(--crit); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding-inline: 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; }
.badge.ok { background: #e7f6ee; color: var(--ok); } .badge.ok .d { background: var(--ok); }
.badge.warn { background: #fbf2dc; color: #9a7400; } .badge.warn .d { background: var(--warn); }
.badge.crit { background: #fdeaec; color: var(--crit); } .badge.crit .d { background: var(--crit); }
.badge.info { background: #e8eefc; color: var(--info); } .badge.info .d { background: var(--info); }

/* toast that flies in (hero live) */
.livetoast {
  position: absolute; right: 14px; top: 64px; z-index: 5;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(20px) scale(.96);
}
.livetoast.show { animation: toastIn .6s var(--ease-out) forwards; }
.livetoast .ic { width: 34px; height: 34px; border-radius: 10px; background: #e7f6ee; display: grid; place-items: center; color: var(--ok); }
.livetoast .t { font-weight: 700; font-size: 13px; }
.livetoast .s { font-size: 11.5px; color: var(--ink-faint); }
@keyframes toastIn { 0%{opacity:0; transform: translateX(20px) scale(.96);} 12%{opacity:1; transform: none;} 80%{opacity:1; transform:none;} 100%{opacity:0; transform: translateX(8px) scale(.98);} }

/* mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; padding-top: 8px; }
.bars .b { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--bone-2); position: relative; overflow: hidden; }
.bars .b > span { position: absolute; inset: auto 0 0 0; height: 0; background: linear-gradient(180deg, var(--magenta-300), var(--magenta)); border-radius: inherit; transition: height 1s var(--ease-out); }
.bars.in .b > span { height: var(--h); }

/* ============================================================
   Logos marquee
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row .logo { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink-faint); letter-spacing: -.02em; opacity: .8; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   Stat counters
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat__num { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -.04em; line-height: 1; }
.stat__num .u { color: var(--magenta); }
.stat__label { color: var(--ink-soft); margin-top: 8px; font-size: 15px; max-width: 22ch; }
.section--dark .stat__label { color: var(--on-dark-soft); }

/* ============================================================
   Feature tabs
   ============================================================ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 100px;
  font-weight: 600; font-size: 15px; color: var(--ink-soft); background: var(--bone-2);
  box-shadow: inset 0 0 0 1px transparent; transition: all .25s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; }
.tab .ic { width: 17px; height: 17px; }
.tabpanel { display: none; }
.tabpanel.active { display: grid; animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity:1; transform:none; } }

/* ============================================================
   Hub diagram (dark)
   ============================================================ */
.hub { position: relative; }
.hub svg .flow { stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.hub__node {
  position: absolute; transform: translate(-50%,-50%);
  display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: var(--on-dark);
  font-weight: 600; font-size: 13.5px; backdrop-filter: blur(6px); white-space: nowrap;
}
.hub__node .ic { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.18); flex:none; }
.hub__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--magenta-300), var(--magenta) 55%, var(--magenta-700));
  box-shadow: 0 0 0 10px rgba(236,11,106,.12), 0 0 80px -10px rgba(236,11,106,.7);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.03em;
}
.hub__core::after { content:""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(236,11,106,.35); animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0%{ transform: scale(.85); opacity: .8;} 100%{ transform: scale(1.25); opacity: 0;} }

/* ============================================================
   Pricing
   ============================================================ */
.priceToggle { display: inline-flex; align-items: center; gap: 4px; background: var(--bone-2); padding: 5px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); }
.priceToggle button { padding: 9px 18px; border-radius: 100px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); transition: all .25s var(--ease); }
.priceToggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.priceToggle .save { color: var(--magenta-700); font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan--feature { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; box-shadow: var(--shadow-lg); }
.plan--feature .plan__price small, .plan--feature .plan__name { color: #fff; }
.plan--feature .feat { color: var(--on-dark-soft); }
.plan__tag { position: absolute; top: -12px; left: 26px; background: var(--magenta); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow-magenta); }
.plan__name { font-family: var(--display); font-weight: 600; font-size: 20px; }
.plan__desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; min-height: 40px; }
.plan--feature .plan__desc { color: var(--on-dark-soft); }
.plan__price { font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: -.03em; margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan__price .cur { font-size: 22px; align-self: flex-start; margin-top: 8px; }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 11px; }
.feat { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.feat svg { width: 18px; height: 18px; color: var(--magenta); flex: none; margin-top: 1px; }
.plan--feature .feat svg { color: var(--magenta-300); }
.plan .btn { width: 100%; margin-top: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(18px,2vw,22px); letter-spacing: -.01em; }
.faq__q .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--bone-2); display: grid; place-items: center; flex: none; transition: background .25s, transform .35s var(--ease); position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content:""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq__q .pm::before { width: 13px; height: 2px; }
.faq__q .pm::after { width: 2px; height: 13px; transition: transform .35s var(--ease); }
.faq__item.open .pm { background: var(--magenta); }
.faq__item.open .pm::before, .faq__item.open .pm::after { background: #fff; }
.faq__item.open .pm::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a > div { padding: 0 4px 26px; color: var(--ink-soft); max-width: 70ch; font-size: 16.5px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--dark-bg); color: var(--on-dark-soft); padding-block: 72px 40px; }
.footer a { color: var(--on-dark-soft); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-faint); font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; font-size: 15px; }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-faint); }

/* ============================================================
   Utilities & responsive
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.flex { display: flex; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .wrap-x { flex-wrap: wrap; } .ai-c { align-items: center; }

.section--dark { background: var(--dark-bg); color: var(--on-dark); }
.section--dark .h2, .section--dark .h1, .section--dark .h3 { color: #fff; }
.section--bone { background: var(--bone); }

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
