:root {
  /* FIT HERO / Pulse Hero brand palette — "light & magical · minimal UI". */
  --perola: #f8f6f0;
  --perola-deep: #f1ece1;
  --surface: #ffffff;
  --ink: #4c5870;
  --ink-soft: #7c8499;
  --hairline: #e9e4da;
  --ceu: #bfe3ff;
  --mint: #c8f3e6;
  --mint-deep: #2f9e83;
  --lavanda: #dcc8ff;
  --pessego: #ffd6c2;
  --rosa: #ffe4ee;
  --ouro: #ffd692;
  --grad-a: #a9c8ff;
  --grad-b: #c3b6ff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(76, 88, 112, 0.12);
  --shadow-soft: 0 10px 30px rgba(76, 88, 112, 0.08);
  --serif: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--perola);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

a {
  color: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: var(--ink);
  background: rgba(248, 246, 240, 0.72);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid rgba(233, 228, 218, 0.7);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(248, 246, 240, 0.92);
  box-shadow: 0 8px 26px rgba(76, 88, 112, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(76, 88, 112, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 140ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--mint-deep);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(720px, 82svh);
  display: grid;
  align-items: end;
  padding: 128px 0 62px;
  overflow: hidden;
  color: var(--ink);
  background: var(--perola);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(248, 246, 240, 0.97) 0%,
      rgba(248, 246, 240, 0.88) 38%,
      rgba(248, 246, 240, 0.28) 72%,
      rgba(248, 246, 240, 0) 100%
    ),
    linear-gradient(
      0deg,
      rgba(248, 246, 240, 0.7) 0%,
      rgba(248, 246, 240, 0) 46%
    );
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-copy {
  width: min(600px, 100%);
  margin: 22px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(169, 200, 255, 0.45);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Availability band ---------- */
.availability-band {
  background: linear-gradient(90deg, #eff6ff, #f3ecff);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 24px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
}

.band-kicker {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--mint-deep);
}

.band-inner p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

/* ---------- Sections ---------- */
.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 100px) 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 44px;
}

.section-heading.compact {
  width: min(640px, 100%);
}

.section-heading h2,
.legal-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Trail (how it works) ---------- */
.trail {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trail-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.step-signal {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--ceu);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.step-signal::after {
  content: counter(step, decimal-leading-zero);
}

.trail-step:nth-child(1) .step-signal {
  background: var(--ceu);
}

.trail-step:nth-child(2) .step-signal {
  background: var(--mint);
}

.trail-step:nth-child(3) .step-signal {
  background: var(--lavanda);
}

.trail-step:nth-child(4) .step-signal {
  background: var(--pessego);
}

.trail-step > h3 {
  grid-column: 2;
  grid-row: 1;
}

.trail-step > p {
  grid-column: 2;
  grid-row: 2;
}

.trail-step h3,
.system-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--ink);
}

.trail-step p,
.system-card p,
.legal-copy p {
  margin: 0;
  color: var(--ink);
  line-height: 1.62;
}

/* ---------- Systems ---------- */
.systems-section {
  border-top: 1px solid var(--hairline);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ceu);
  border: 1px solid rgba(76, 88, 112, 0.06);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.system-card:nth-child(1) {
  background: var(--ceu);
}

.system-card:nth-child(2) {
  background: var(--mint);
}

.system-card:nth-child(3) {
  background: var(--lavanda);
}

.system-card:nth-child(4) {
  background: var(--pessego);
}

.system-card p {
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- Legal preview ---------- */
.legal-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  border-top: 1px solid var(--hairline);
}

.legal-copy p:last-child {
  margin-top: 18px;
}

.legal-actions {
  display: grid;
  gap: 14px;
}

.link-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateX(4px);
  border-color: var(--mint-deep);
  box-shadow: var(--shadow);
}

.link-card span {
  color: var(--mint-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-card strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.24rem;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--perola-deep);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
}

.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 140ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--mint-deep);
}

.fine-print {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: right;
}

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--perola);
}

.legal-shell {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.legal-document {
  padding: clamp(28px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.last-updated {
  margin: 16px 0 38px;
  color: var(--ink-soft);
  font-weight: 700;
}

.legal-document section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--hairline);
}

.legal-document h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}

.legal-document h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-document p,
.legal-document li {
  color: var(--ink);
  line-height: 1.72;
}

.legal-document a {
  color: var(--mint-deep);
  font-weight: 700;
}

.legal-document ul,
.legal-document ol {
  padding-left: 22px;
}

.email-callout {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--grad-b);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 156px;
  }

  .band-inner,
  .legal-preview,
  .footer {
    grid-template-columns: 1fr;
  }

  .trail {
    grid-template-columns: 1fr;
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fine-print {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 78svh;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .hero-actions,
  .footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 0;
  }

  .legal-shell {
    padding-top: 158px;
  }

  .legal-document {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
