/* F&D Assessoria — landing page
   Navy bands carry the logo; light ground carries the reading; one blue accent. */

:root {
  --navy-950: #030a1a;
  --navy-900: #06122b;
  --navy-800: #0a1d45;
  --navy-700: #12295e;
  --blue-700: #1449e0;
  --blue-600: #1d5cff;
  --blue-500: #3a74ff;
  --blue-300: #7aa3ff;
  --blue-100: #e3ebff;
  --silver-100: #eef2f7;
  --silver-300: #c7cfdb;
  --on-navy: #e9eef6;
  --on-navy-muted: #b6c2d6;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --ink: #0b1630;
  --ink-muted: #4a5875;
  --line: #d9e0ec;
  --line-navy: rgba(199, 207, 219, 0.16);
  --wa-green: #1a9e4b; /* darker than the brand green so the white glyph clears 3:1 */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  --step-4: clamp(2.45rem, 1.5rem + 3.9vw, 4.5rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 18, 43, 0.06), 0 2px 6px rgba(6, 18, 43, 0.06);
  --shadow: 0 2px 4px rgba(6, 18, 43, 0.06), 0 12px 32px rgba(6, 18, 43, 0.12);
  --shadow-lg: 0 6px 12px rgba(2, 8, 22, 0.18), 0 28px 60px rgba(2, 8, 22, 0.38);

  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.icon { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 2px 4px rgba(29, 92, 255, 0.25), 0 8px 20px rgba(29, 92, 255, 0.25);
}
.btn--primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(29, 92, 255, 0.3), 0 12px 28px rgba(29, 92, 255, 0.32);
}
.btn:active { transform: scale(0.98); transition-duration: 0.1s; }
.btn--ghost {
  color: var(--on-navy);
  border-color: rgba(199, 207, 219, 0.4);
}
.btn--ghost:hover { border-color: var(--on-navy); background: rgba(233, 238, 246, 0.06); }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--xl { min-height: 60px; padding: 0 2em; font-size: 1.125rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 650;
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link .icon { transition: transform 0.2s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.is-scrolled {
  background: rgba(6, 18, 43, 0.96);
  border-bottom-color: var(--line-navy);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav__list a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 8px;
  transition: color 0.2s;
}
.site-nav__list a:hover { color: #fff; }

.portal-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border: 1px dashed rgba(199, 207, 219, 0.35);
  border-radius: 999px;
  color: rgba(182, 194, 214, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;
  user-select: none;
}
.portal-soon__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(122, 163, 255, 0.16);
  color: var(--blue-300);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(199, 207, 219, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--on-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 3px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* The full nav needs ~1150px on one line; below that it moves into the menu. Keep in sync with main.js. */
@media (max-width: 1160px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-navy);
    box-shadow: 0 24px 40px rgba(2, 8, 22, 0.45);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 14px 2px;
    font-size: 1.0625rem;
    color: var(--on-navy);
    border-bottom: 1px solid var(--line-navy);
  }
  .portal-soon { align-self: flex-start; }
  .site-nav__cta { min-height: 52px; font-size: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-navy);
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
  isolation: isolate;
}
/* The banner's diagonal light beams: feathered, blurred, kept to the edges. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-38deg);
  border-radius: 999px;
  filter: blur(28px);
}
.hero::before {
  width: 980px;
  height: 140px;
  right: -300px;
  bottom: 20px;
  background: linear-gradient(90deg, rgba(29, 92, 255, 0) 0%, rgba(29, 92, 255, 0.34) 55%, rgba(29, 92, 255, 0) 100%);
}
.hero::after {
  width: 640px;
  height: 60px;
  left: -300px;
  top: 300px;
  background: linear-gradient(90deg, rgba(58, 116, 255, 0) 0%, rgba(58, 116, 255, 0.3) 60%, rgba(58, 116, 255, 0) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

.hero__title {
  font-size: clamp(2.35rem, 1.3rem + 3.3vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__title span { display: block; }
/* The offer (strong line) carries the size; the audience line sits smaller beneath it. */
.hero__title-strong {
  font-weight: 820;
  font-variation-settings: "wdth" 112;
  color: #fff;
}
.hero__title-light {
  margin-top: 0.12em;
  font-size: 0.74em;
  font-weight: 340;
  font-variation-settings: "wdth" 96;
  color: var(--silver-300);
}

.hero__lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--on-navy-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--on-navy-muted);
}
.hero__assurance li { display: inline-flex; align-items: center; gap: 8px; }
.hero__assurance .icon { color: var(--blue-300); }

.hero__visual { position: relative; }
.hero__caption {
  margin-top: 18px;
  text-align: right;
  font-size: 0.8125rem;
  color: rgba(182, 194, 214, 0.8);
}

/* ---------- Mock panels (shared) ---------- */

.panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.panel__title {
  font-size: 0.875rem;
  font-weight: 700;
  font-variation-settings: "wdth" 96;
  color: var(--ink);
}
.panel__meta { font-size: 0.8125rem; color: var(--ink-muted); }

.chip {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: #1446c8;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.chip--live { display: inline-flex; align-items: center; gap: 6px; }
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

.bar {
  display: block;
  width: 100%;
  height: calc(var(--v) * 100%);
  border-radius: 3px 3px 0 0;
}
.bar--in { background: var(--blue-600); }
.bar--out { background: #b8c4d9; }

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.legend::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.legend--in::before { background: var(--blue-600); }
.legend--out::before { background: #b8c4d9; }

/* Hero stack */

.mock-stack {
  position: relative;
  padding-bottom: 34px;
}
.panel--cash { box-shadow: var(--shadow-lg); }
/* Bottom padding is the landing strip for the notice; it never covers data. */
.cash { padding: 18px 20px 58px; }
.cash__legend { display: flex; gap: 16px; margin-top: 18px; }
.cash__chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  height: 120px;
  margin-top: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cash__subtitle {
  margin-top: 30px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-muted);
}
.cash__week {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 5px;
}
.cash__week span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.cash__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cash__totals dt { font-size: 0.75rem; color: var(--ink-muted); }
.cash__totals dd {
  font-size: 1.0625rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cash__totals .is-balance dd { color: #1446c8; }

.mini-table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 0.8125rem; }
.mini-table th,
.mini-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-table tr:last-child th,
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table th { text-align: left; font-weight: 500; color: var(--ink); }
.mini-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
.mini-table td i {
  display: inline-block;
  vertical-align: middle;
  margin: -2px 12px 0 0;
  width: calc(var(--v) * 120px);
  height: 6px;
  border-radius: 3px;
  background: var(--blue-600);
}

.toast {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.toast__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: #fff;
}
.toast__body { display: grid; line-height: 1.3; min-width: 0; }
.toast__body strong { font-size: 0.875rem; font-weight: 700; }
.toast__body span { font-size: 0.8125rem; color: var(--ink-muted); }
.toast__time { align-self: flex-start; font-size: 0.75rem; color: var(--ink-muted); }

/* The one authored moment: the automatic notice arrives. */
@media (prefers-reduced-motion: no-preference) {
  /* Lands after the panel has finished computing (see Motion). */
  .toast { animation: notice-in 0.9s var(--ease-out) 1.75s both; }
  .chip--live::before { animation: pulse 2.4s ease-in-out 1.8s 2; }
}
@keyframes notice-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 92, 255, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(29, 92, 255, 0); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-800); color: var(--on-navy); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title {
  font-size: var(--step-3);
  line-height: 1.08;
  font-weight: 780;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead {
  margin-top: 18px;
  max-width: 40em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.section--navy .section__title { color: #fff; }
.section--navy .section__lead { color: var(--on-navy-muted); }

/* Pains */

.pains {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px clamp(40px, 6vw, 96px);
}
.pains__intro {
  grid-row: span 2;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.pains__list { border-top: 1px solid var(--line); }
.pains__list li {
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.pains__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--blue-600);
  background:
    linear-gradient(var(--blue-600), var(--blue-600)) center 4px / 2px 6px no-repeat,
    linear-gradient(var(--blue-600), var(--blue-600)) center 11px / 2px 2px no-repeat;
}
.pains__close {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 36em;
}
.pains__close .text-link { display: flex; width: fit-content; margin-top: 14px; }

/* Features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(36px, 5vw, 64px);
}
.feature + .feature { border-top: 1px solid var(--line); }
/* Flipped rows mirror the widths too, so the demo always gets the wider column. */
.feature--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature--flip .feature__text { order: 2; }
.feature__title {
  font-size: var(--step-2);
  line-height: 1.2;
  font-weight: 760;
  font-variation-settings: "wdth" 106;
  letter-spacing: -0.01em;
}
.feature__text > p {
  margin-top: 14px;
  color: var(--ink-muted);
  max-width: 32em;
}
.feature__demo { min-width: 0; }

.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d5cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.demo-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: right;
}

.feature__demo .panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Sheet */
.sheet { overflow-x: auto; }
.sheet table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.sheet th,
.sheet td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sheet thead th {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-muted);
  background: #f6f8fc;
  font-variation-settings: "wdth" 92;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sheet .num { text-align: right; }
.sheet tbody tr:nth-child(odd) td { background: #fcfdff; }
.sheet tfoot td {
  border-bottom: 0;
  font-weight: 750;
  background: var(--blue-100);
  color: #0f2f8a;
}

/* Flow */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 20px;
}
.flow__chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 190px;
  padding-bottom: 24px;
}
.flow__month { position: relative; display: grid; }
.flow__bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4px;
  height: 100%;
}
.flow__month > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.flow__split-title {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.flow__split li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.flow__split li:last-child { border-bottom: 0; }
.flow__split b { font-weight: 700; font-variant-numeric: tabular-nums; }
.flow__split li i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  width: calc(var(--v) * 100%);
  border-radius: 3px;
  background: var(--blue-600);
}

/* System */
.sys__new {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.status--active { background: var(--blue-600); color: #fff; }
.status--paid { background: var(--blue-100); color: #1446c8; }
.status--ready { background: var(--navy-900); color: #fff; }
.status--done { background: var(--paper); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.sys__rule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.sys__rule strong { display: block; font-size: 0.875rem; color: var(--ink); }
.sys__rule-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
}

/* Log */
.log { padding: 8px 20px 16px; }
.log li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.log li:last-child { border-bottom: 0; }
.log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.log li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 32px;
  bottom: -18px;
  width: 2px;
  background: var(--line);
}
.log li:last-child::after { display: none; }
.log .is-done::before { background: var(--blue-600); }
.log .is-next::before { border: 2px dashed var(--ink-muted); }
.log__step { font-weight: 700; }
.log__msg { color: var(--ink); }
.log .is-next .log__msg,
.log .is-next .log__step { color: var(--ink-muted); }
.log__time { color: var(--ink-muted); font-variant-numeric: tabular-nums; font-size: 0.8125rem; }

/* Also */
.also {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.also__title {
  font-size: var(--step-2);
  font-weight: 760;
  font-variation-settings: "wdth" 106;
}
.also__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
}
.also__list li {
  padding-top: 18px;
  border-top: 2px solid var(--blue-600);
  line-height: 1.5;
  color: var(--ink-muted);
}
.also__list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 720;
  font-variation-settings: "wdth" 104;
  color: var(--ink);
}

/* Segments */

.segments__tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segments__tabs::-webkit-scrollbar { display: none; }
.segments__tabs.has-indicator { position: relative; }
.segments__tabs.has-indicator [role="tab"] { position: relative; z-index: 1; }
.segments__tabs.has-indicator [role="tab"][aria-selected="true"] { background: transparent; }
.segments__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: var(--navy-900);
  pointer-events: none;
}
.segments__tabs[hidden] { display: none; }
/* With JS the tabs render immediately; only the first panel shows until the script takes over. */
.js .segments__tabs[hidden] { display: flex; }
.js .segments:not(.is-ready) .segment + .segment { display: none; }
.segments__tabs [role="tab"] {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segments__tabs [role="tab"]:not([aria-selected="true"]):hover { color: var(--ink); background: var(--paper); }
.segments__tabs [role="tab"][aria-selected="true"] {
  background: var(--navy-900);
  color: #fff;
}

.segment {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.segment + .segment { margin-top: 16px; }
.js .segment + .segment { margin-top: 0; }
.segment__name {
  font-size: var(--step-2);
  font-weight: 760;
  font-variation-settings: "wdth" 106;
}
.segment__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px clamp(32px, 5vw, 72px);
  margin-top: 22px;
}
.segment__label {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.segment__problem { font-size: 1.125rem; line-height: 1.55; }
.segment .checks { margin-top: 0; }


/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  /* stop at the last circle: one column width (minus its circle radius) from the right */
  right: calc((100% - 4 * 28px) / 5 - 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), rgba(122, 163, 255, 0.25));
}
.step { position: relative; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid rgba(122, 163, 255, 0.45);
  color: #fff;
  font-weight: 760;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.step--free .step__num { background: var(--blue-600); border-color: var(--blue-600); }
.step__title {
  margin-top: 22px;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 740;
  font-variation-settings: "wdth" 104;
  color: #fff;
  text-wrap: balance;
}
.step p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-navy-muted);
}
.steps__cta { margin-top: clamp(40px, 5vw, 64px); }

/* Manner */

.manner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.manner blockquote {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--blue-600);
}
.manner blockquote p {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  font-weight: 560;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.manner__sign { margin-top: 18px; color: var(--ink-muted); }
.manner__list > div {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.manner__list > div:first-child { padding-top: 6px; }
.manner__list > div:last-child { border-bottom: 0; }
.manner__list dt {
  font-size: var(--step-1);
  font-weight: 740;
  font-variation-settings: "wdth" 104;
}
.manner__list dd { margin-top: 8px; color: var(--ink-muted); }

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .text-link { margin-top: 22px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d5cff' stroke-width='2.4' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: #1446c8; }
.faq__list details p {
  padding: 0 48px 24px 0;
  color: var(--ink-muted);
  max-width: 40em;
}

/* Final CTA */

.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-navy);
  padding-block: clamp(88px, 11vw, 152px);
  text-align: center;
  isolation: isolate;
}
.cta-final::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% -40% -10%;
  height: 80%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(29, 92, 255, 0.32), rgba(29, 92, 255, 0));
  pointer-events: none;
}
.cta-final__inner { display: grid; justify-items: center; }
.cta-final__title {
  max-width: 14em;
  font-size: var(--step-4);
  line-height: 1.04;
  font-weight: 820;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.cta-final__lead {
  margin-top: 24px;
  max-width: 36em;
  font-size: var(--step-1);
  color: var(--on-navy-muted);
  text-wrap: pretty;
}
.cta-final .btn { margin-top: 40px; }
.cta-final__note { margin-top: 16px; font-size: 0.875rem; color: rgba(182, 194, 214, 0.8); }

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: var(--on-navy-muted);
  padding-block: 56px 40px;
  border-top: 1px solid var(--line-navy);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 36px 48px;
  align-items: start;
}
.site-footer__brand img { width: 190px; }
.site-footer__tagline {
  margin-top: 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.site-footer__nav { display: grid; gap: 0; }
.site-footer__nav a,
.site-footer__contact a { padding-block: 10px; }
.site-footer__nav a,
.site-footer__contact a {
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.site-footer__nav a:hover,
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 0; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact a[hidden] { display: none; }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line-navy);
  font-size: 0.8125rem;
  color: rgba(182, 194, 214, 0.75);
}
.site-footer__company::before { content: " · "; }

/* Floating WhatsApp */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(2, 8, 22, 0.25), 0 12px 28px rgba(2, 8, 22, 0.25);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }
.wa-float.is-hidden:focus-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Motion ----------
   One idea: the demos compute themselves. Bars grow, totals count up, notices go out in
   order, the process line connects its steps. Every pre-animation state lives under
   .motion-ok (motion allowed + JS running; see the head script and main.js), so with
   reduced motion, no JS, or a failed script the page renders in its final state. */

.motion-ok [data-count]:not(.is-counting) { opacity: 0; }

/* Hero: the panel arrives, then computes. */
.mock-stack { --d: 450ms; --d2: 950ms; }
.motion-ok .mock-stack[data-reveal] .panel--cash {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s;
}
.motion-ok .mock-stack[data-reveal].is-in .panel--cash { opacity: 1; transform: none; }

/* Bars grow from their baseline; horizontal bars fill from the left. */
.motion-ok [data-reveal] .bar {
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease-out) calc(var(--d, 0ms) + var(--i, 0) * 70ms);
}
.motion-ok [data-reveal] .mini-table i,
.motion-ok [data-reveal] .flow__split li i {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--ease-out) calc(var(--d2, 450ms) + var(--i, 0) * 90ms);
}
.motion-ok [data-reveal].is-in .bar,
.motion-ok [data-reveal].is-in .mini-table i,
.motion-ok [data-reveal].is-in .flow__split li i { transform: none; }

/* Team sheet: rows are entered one by one, then the total sums itself. */
.motion-ok [data-reveal] .sheet tbody td {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease-out) calc(var(--i, 0) * 110ms), transform 0.5s var(--ease-out) calc(var(--i, 0) * 110ms);
}
.motion-ok [data-reveal].is-in .sheet tbody td { opacity: 1; transform: none; }
.motion-ok [data-reveal].is-in .sheet tfoot td { animation: total-flash 1.4s ease-out 0.55s; }
@keyframes total-flash {
  0%, 100% { background-color: var(--blue-100); }
  25% { background-color: color-mix(in srgb, var(--blue-600) 22%, var(--blue-100)); }
}

/* Notice log: each step goes out after the previous one, the timeline drawing between them. */
.motion-ok [data-reveal] .log li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out) calc(var(--i, 0) * 380ms), transform 0.5s var(--ease-out) calc(var(--i, 0) * 380ms);
}
.motion-ok [data-reveal] .log li::before {
  transform: scale(0);
  transition: transform 0.4s var(--ease-out) calc(var(--i, 0) * 380ms + 120ms);
}
.motion-ok [data-reveal] .log li::after {
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.36s linear calc(var(--i, 0) * 380ms + 260ms);
}
.motion-ok [data-reveal].is-in .log li,
.motion-ok [data-reveal].is-in .log li::before,
.motion-ok [data-reveal].is-in .log li::after { opacity: 1; transform: none; }

/* System: rows are listed, then the automation rule switches on. */
.motion-ok [data-reveal] .sys__rule {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out) 0.6s, transform 0.6s var(--ease-out) 0.6s;
}
.motion-ok [data-reveal].is-in .sys__rule { opacity: 1; transform: none; }

/* Process: the line connects 1 to 5 and each step lights up as it is reached. */
.motion-ok .steps[data-reveal]::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out) 0.1s;
}
.motion-ok .steps[data-reveal] .step__num {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease-out calc(var(--i, 0) * 200ms), transform 0.5s var(--ease-out) calc(var(--i, 0) * 200ms);
}
.motion-ok .steps[data-reveal] .step__title,
.motion-ok .steps[data-reveal] .step p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out) calc(var(--i, 0) * 200ms + 120ms), transform 0.6s var(--ease-out) calc(var(--i, 0) * 200ms + 120ms);
}
.motion-ok .steps[data-reveal] .step::before {
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.5s var(--ease-out) calc(var(--i, 0) * 200ms + 200ms);
}
.motion-ok .steps[data-reveal].is-in::before,
.motion-ok .steps[data-reveal].is-in .step__num,
.motion-ok .steps[data-reveal].is-in .step__title,
.motion-ok .steps[data-reveal].is-in .step p,
.motion-ok .steps[data-reveal].is-in .step::before { opacity: 1; transform: none; }

/* Tabs: the selection pill slides (clip-path only, no layout). */
.motion-ok .segments__indicator.is-ready { transition: clip-path 0.38s var(--ease-out); }

/* Text, corporate register: short distances, no bounce, under a second.
   Hero copy runs on load; everything else enters with its section (main.js adds .rt-*).
   Animations fill backwards only, so once they end the text is back to its plain style
   (no leftover clip-path that could crop accents or descenders). */
/* The H1 and lead are the LCP candidates: they stay painted from the first frame. The title
   only settles into place (transform, no fade or mask); the lead does not move at all. */
.motion-ok .hero__title span { animation: title-settle 0.9s var(--ease-out) 0.05s backwards; }
.motion-ok .hero__title .hero__title-light { animation-delay: 0.15s; }
.motion-ok .hero__actions { animation: copy-rise 0.8s var(--ease-out) 0.42s backwards; }
.motion-ok .hero__assurance { animation: copy-rise 0.8s var(--ease-out) 0.52s backwards; }

/* No clip-path while waiting: Chromium's IntersectionObserver honours the element's own
   clip-path, so a fully clipped heading would never report as visible. The mask lives
   only in the animation's first frame. */
.motion-ok .rt-head:not(.is-in) { opacity: 0; transform: translateY(0.35em); }
.motion-ok .rt-copy:not(.is-in),
.motion-ok .rt-item:not(.is-in) { opacity: 0; transform: translateY(14px); }
.motion-ok .rt-head.is-in { animation: text-rise 0.85s var(--ease-out) backwards; }
.motion-ok .rt-copy.is-in { animation: copy-rise 0.7s var(--ease-out) 0.12s backwards; }
.motion-ok .rt-item.is-in { animation: copy-rise 0.7s var(--ease-out) calc(var(--j, 0) * 70ms) backwards; }

@keyframes text-rise {
  from { opacity: 0; transform: translateY(0.35em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
@keyframes copy-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes title-settle {
  from { transform: translateY(0.25em); }
  to { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* FAQ answers open and close instead of snapping (progressive: Chromium 131+). */
  @supports selector(::details-content) {
    .faq__list { interpolate-size: allow-keywords; }
    .faq__list details::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 0.32s var(--ease-out), content-visibility 0.32s allow-discrete;
    }
    .faq__list details[open]::details-content { block-size: auto; }
  }

  /* Mobile menu drops in from the header. */
  .site-nav.is-open { animation: menu-in 0.26s var(--ease-out); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}

@media print {
  .motion-ok [data-count],
  .motion-ok [data-reveal] *,
  .motion-ok .rt-head,
  .motion-ok .rt-copy,
  .motion-ok .rt-item { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .motion-ok [data-reveal] .log li::before,
  .motion-ok [data-reveal] .log li::after,
  .motion-ok .steps[data-reveal]::before,
  .motion-ok .steps[data-reveal] .step::before { transform: none !important; }
}

/* ---------- Responsive ---------- */

/* The team sheet compacts before it ever needs to scroll sideways. */
@media (max-width: 1100px) {
  .sheet table { min-width: 0; }
  .sheet th,
  .sheet td { padding: 10px 8px; white-space: normal; }
  .sheet th:first-child,
  .sheet td:first-child { padding-left: 14px; }
  .sheet th:last-child,
  .sheet td:last-child { padding-right: 14px; white-space: nowrap; }
  .sheet .num { white-space: nowrap; }
  .sheet .col-days,
  .sheet .col-opt { display: none; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps::before { display: none; }
  .step--free { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .pains,
  .feature,
  .manner,
  .faq,
  .also { grid-template-columns: minmax(0, 1fr); }
  .pains__intro { grid-row: auto; position: static; }
  .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--flip .feature__text { order: 0; }
  .faq__intro { position: static; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__chart { height: 150px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand img { width: 128px; }
  .hero__actions .btn { width: 100%; }
  .hero__assurance { flex-direction: column; }
  .toast { left: 12px; right: 12px; max-width: none; }
  .cash { padding: 14px 16px 62px; }
  .cash__chart { height: 100px; gap: 12px; }
  .cash__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .cash__totals dd { font-size: 1rem; }
  .mini-table td i { width: calc(var(--v) * 64px); }
  .also__list { grid-template-columns: minmax(0, 1fr); }
  .segment__cols { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .step::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 4px;
    width: 2px;
    background: rgba(122, 163, 255, 0.3);
  }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step__num { grid-row: span 2; }
  .step__title { margin-top: 10px; }
  .step--free { grid-column: auto; }
  .steps__cta .btn,
  .cta-final .btn { width: 100%; }
  .log li { grid-template-columns: 1fr auto; }
  .segments__tabs {
    flex-wrap: wrap;
    width: auto;
    border-radius: var(--radius);
  }
  .hero__grid { gap: 36px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__assurance { margin-top: 20px; gap: 6px; }
  .log__msg { grid-column: 1 / -1; grid-row: 2; }
  .faq__list summary { font-size: 1.0625rem; }
  .faq__list details p { padding-right: 0; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
