/* ============================================================
   FluxFront — Base & shared components
   ============================================================ */

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv01", "ss01";
  overflow-x: hidden;
}
img { 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(--teal); color: var(--ink); }

/* ---- Layout ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 7.5vw, 128px); }
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }
/* Anchor-jump offset: the sticky nav (~68px) must never cover a section title
   when a nav/dropdown link scrolls to it (#f-pay, #pricing, …). */
.feat-block, main > section[id] { scroll-margin-top: 56px; }

/* ---- Type helpers ----------------------------------------- */
.display { font-family: var(--font-display); font-weight: 600; font-size: var(--t-display);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tighter); text-wrap: balance; }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1);
  line-height: var(--lh-snug); letter-spacing: var(--ls-tight); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h2);
  line-height: var(--lh-snug); letter-spacing: var(--ls-tight); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3);
  line-height: 1.25; letter-spacing: var(--ls-tight); }
.lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.muted { color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-mono-lbl); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--teal-600); }
.eyebrow.no-rule::before { display: none; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.6vw, 46px); }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }


/* ---- Badges & chips --------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--hairline-2); border-radius: var(--r-pill);
  background: var(--cream); font-size: var(--t-xs); font-weight: 500; color: var(--ink-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.tag-mono {
  font-family: var(--font-mono); font-size: var(--t-mono-lbl); letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink-2);
}
.soon-badge {
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--teal-wash); color: var(--teal-700);
}

/* trust seals */
.seal { display: inline-flex; align-items: center; gap: 11px; }
.seal-ic {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--cream);
  border: 1px solid var(--hairline-2); color: var(--teal-700);
}
.seal-ic svg { width: 20px; height: 20px; }
.seal-txt b { display: block; font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.01em; }
.seal-txt span { display: block; font-size: var(--t-xs); color: var(--ink-3); }


/* ---- Reveal animations ------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--e-out), transform 0.7s var(--e-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }


/* shared card */
.card { background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-lg); }

/* visually-hidden */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
