/* =========================================================
   passada.run — shared stylesheet (PT-BR + EN)
   Static site. No framework. Light theme, soft contrast.
   ========================================================= */

:root {
  /* base — warm off-white, soft contrast */
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #efede8;
  --line: #e2dfd8;
  --line-strong: #d2cec3;

  /* ink */
  --ink: #1a1a18;
  --muted: #6b6862;
  --muted-2: #8a877f;

  /* brand accent = pose skeleton color */
  --accent: #ff5a1f;
  --accent-ink: #c8410f; /* darkened for AA text on light bg */
  --accent-soft: #ffe7dc;

  --radius: 14px;
  --maxw: 1120px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

/* `antialiased` thins type nicely on hi-dpi screens, but on 1x displays it
   drops subpixel AA and looks rougher. Force it only on retina; let 1x use
   the crisper subpixel default. */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

strong {
  font-weight: 700;
}

.accent {
  color: var(--accent-ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot-run {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle a {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--muted);
}
.lang-toggle a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.header-actions .btn {
  padding: 9px 16px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .header-actions .btn-cta {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-block: 40px 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}
.badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge .pulse {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 22px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .subline {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}
.hero .cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* hero figure: looping clip framed with the site's corner radius.
   No card/shadow/border — just a clean rounded frame, edges clipped by overflow. */
.hero-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-figure img,
.hero-figure video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
/* two clips stacked; only the active one is shown (hard cut between them) */
.hero-figure video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hero-figure video.is-active {
  opacity: 1;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-figure {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* =========================================================
   HOW IT WORKS (numbered steps + repetition-cycle column)
   ========================================================= */
.steps {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.steps-title {
  font-size: clamp(13px, 3.8vw, 40px);
  letter-spacing: -0.01em;
  white-space: nowrap; /* one line, no break — per spec */
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 60px);
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}

.proc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0; /* allow the steps column to shrink in the .process grid */
}

.proc-step {
  display: grid;
  grid-template-columns: clamp(60px, 9vw, 96px) minmax(0, 1fr);
  column-gap: clamp(14px, 3vw, 34px);
  align-items: center;
  padding-block: clamp(22px, 3.2vw, 34px);
  min-width: 0;
}
.proc-step:first-child {
  padding-top: 0;
}
/* lines separating all steps */
.proc-step:not(:first-child) {
  border-top: 1px solid var(--line-strong);
}

.proc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 66px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.proc-body {
  min-width: 0; /* let the 1fr text column shrink/wrap instead of overflowing */
}
.proc-body h3 {
  font-size: clamp(18px, 2.3vw, 22px);
  letter-spacing: 0;
}
.proc-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
}

/* repetition-cycle column: vertical rail + rotated caption.
   The up-arrow reads "loops back to step 1" → the process repeats. */
.proc-cycle {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding-block: 4px;
}
.cycle-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent-ink);
  white-space: nowrap;
}
/* Loop connector: exits step 4 (dot, bottom-left) → right → curves up →
   up the right side → curves left at the top → arrow into step 1.
   Built from borders so the rounded corners keep a fixed radius while the
   shape stretches to the full height of the steps. */
.cycle-rail {
  position: relative;
  align-self: stretch;
  width: 38px;
  min-height: 140px;
  background: transparent;
  border: 2px solid var(--accent);
  border-left: 0;
  border-radius: 0 22px 22px 0;
}
.cycle-rail::before {
  /* arrowhead at the top-left, pointing left toward step 1 */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-9px, -6px);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid var(--accent);
}
.cycle-rail::after {
  /* start dot at the bottom-left, near step 4 */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 899px) {
  .process {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  /* cycle becomes a track/oval around the label on mobile */
  .proc-cycle {
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 10px 0;
  }
  .cycle-rail {
    position: absolute;
    inset: 0;
    align-self: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 2px solid var(--accent);
    border-radius: 999px;
  }
  .cycle-rail::before {
    /* arrow on the top straight, pointing left */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid var(--accent);
  }
  .cycle-rail::after {
    /* arrow on the bottom straight, pointing right */
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--accent);
  }
  .cycle-label {
    position: relative;
    z-index: 1;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    white-space: normal;
    max-width: 34ch;
    padding: 12px 24px;
  }
}

/* =========================================================
   FOR YOUR BUSINESS (editorial split: lede column + benefit list)
   Asymmetric, mirrors the hero — deliberately NOT the numbered-step rows.
   ========================================================= */
.benefits {
  background: var(--bg);
}
.benefits-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* left: editorial lede */
.bs-lede .eyebrow {
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.bs-lede h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}
/* brighter accent than accent-ink: this is large display type, not AA body */
.bs-lede h2 .accent {
  color: var(--accent);
}
.bs-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 40ch;
}
.bs-cta-btn {
  margin-top: 28px;
}

/* right: compact benefit list */
.bs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bs-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  padding-block: 24px;
  align-items: start;
  min-width: 0;
}
.bs-item:first-child {
  padding-top: 6px;
}
.bs-item:not(:first-child) {
  border-top: 1px solid var(--line-strong);
}
.bs-body {
  min-width: 0; /* let the text column wrap instead of overflowing at 320px */
}
.bs-marker {
  margin-top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bs-item:hover .bs-marker {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.bs-item h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.1;
  letter-spacing: 0;
  transition: color 0.15s ease;
}
.bs-item:hover h3 {
  color: var(--accent-ink);
}
.bs-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .benefits-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bs-sub {
    max-width: 54ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs-marker,
  .bs-item h3 {
    transition: none;
  }
}

/* =========================================================
   METRICS (editorial split: explanatory lede + named list,
   line/space delimited — no cards)
   ========================================================= */
.metrics-band {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.metrics-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.m-lede .eyebrow {
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.m-lede h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.04;
}
.m-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 44ch;
}
.m-list {
  list-style: none;
  margin: 0;
  /* pull up by one item's top padding so the list top still lines up with the
     lede, while every item keeps symmetric padding — that keeps the hover tick
     centered on the text (no underline on the first item) */
  margin-top: -14px;
  padding: 0;
}
.m-item {
  position: relative;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-block: 14px;
  /* staggered reveal — driven by .m-reveal.in */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-item:not(:first-child) {
  border-top: 1px solid var(--line-strong);
}
/* hover: accent tick slides in, label nudges right and warms */
.m-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-label {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}
.m-item:hover .m-label {
  transform: translateX(24px);
  color: var(--accent-ink);
}
.m-item:hover::before {
  transform: translateY(-50%) scaleX(1);
}
.m-more {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: left;
}
/* the wrapper is just the scroll trigger; the items carry the motion */
.metrics-split .m-reveal {
  opacity: 1;
  transform: none;
}
.m-reveal .m-more {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-reveal.in .m-item,
.m-reveal.in .m-more {
  opacity: 1;
  transform: none;
}
.m-reveal.in .m-item:nth-child(1) { transition-delay: 0.05s; }
.m-reveal.in .m-item:nth-child(2) { transition-delay: 0.1s; }
.m-reveal.in .m-item:nth-child(3) { transition-delay: 0.15s; }
.m-reveal.in .m-item:nth-child(4) { transition-delay: 0.2s; }
.m-reveal.in .m-item:nth-child(5) { transition-delay: 0.25s; }
.m-reveal.in .m-item:nth-child(6) { transition-delay: 0.3s; }
.m-reveal.in .m-item:nth-child(7) { transition-delay: 0.35s; }
.m-reveal.in .m-item:nth-child(8) { transition-delay: 0.4s; }
.m-reveal.in .m-more { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .m-item,
  .m-reveal .m-more {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .m-label,
  .m-item::before {
    transition: none;
  }
}
@media (max-width: 900px) {
  .metrics-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .m-sub {
    max-width: 54ch;
  }
}

/* =========================================================
   PRE-REGISTRATION FORM
   ========================================================= */
.signup {
  background: var(--bg);
}
.signup .wrap {
  max-width: 760px;
}
.signup h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.signup .ctx {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}
/* fields sit loose on the page — no card surface/border (house pattern) */
.form-card {
  margin-top: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field .req {
  color: var(--accent-ink);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:invalid {
  color: var(--muted-2);
}

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  font-size: 13px;
  color: var(--accent-ink);
  margin-top: -8px;
  margin-bottom: 12px;
  min-height: 1em;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  font-size: 14px;
  color: var(--muted);
}
.form-success {
  display: none;
  margin-top: 30px;
}
.form-success.show {
  display: block;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
}
.form-success p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 50ch;
}

.privacy-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer .f-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.site-footer .f-brand .dot-run {
  color: var(--accent);
}
.site-footer .f-copy {
  font-size: 13px;
  color: var(--muted);
}
.site-footer .f-legal {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.site-footer .f-legal:hover,
.site-footer .f-legal:focus {
  color: var(--ink);
  text-decoration: underline;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.recaptcha-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}
.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.legal h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}
.legal p, .legal ul {
  font-size: 15px;
  line-height: 1.6;
}
.legal ul {
  padding-left: 20px;
}
.legal-updated {
  color: #666;
  font-size: 13px;
  margin-bottom: 32px;
}
.legal a {
  color: inherit;
  text-decoration: underline;
}
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  color: var(--ink);
  word-break: break-word;
}
