/*
 * FiguriTrack — landing (home) page styles.
 * Self-contained: does NOT share legal.css. Tokens mirror src/styles/tokens.css
 * (literal values, no var() — the app's @theme is not available here).
 *
 * Design language: warm World-Cup brand reading of the high-end-visual-design
 * principles — macro whitespace, nested "double-bezel" cards, soft diffused
 * shadows, squircle radii, eyebrow tags, spring-curve motion. No external fonts
 * (the privacy policy promises no third-party requests), so Inter + system stack.
 */

:root {
  --bg: #fafaf6; /* cream page base */
  --surface: #ffffff; /* card / panel surface */
  --fg: #0b1220; /* ink */
  --muted: #4d5260; /* warm greige body */
  --border: #e7e3d8; /* warm hairline (cream-tuned, softer than slate) */
  --primary: #0e5c3b; /* Pitch Green */
  --primary-fg: #ffffff;
  --primary-700: #0a4a2f;
  --primary-tint: #e6f0eb;
  --accent: #e11d48; /* Coca-Cola red — sparing accent only */
  --success: #15803d;
  --touch: 44px;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Soft, diffused ambient shadows — never harsh black. */
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04),
    0 12px 32px -12px rgba(11, 18, 32, 0.12);
  --shadow-float: 0 2px 8px rgba(11, 18, 32, 0.06),
    0 24px 60px -24px rgba(11, 18, 32, 0.22);

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --maxw: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Warm radial glows anchored top — green + a whisper of red. */
  background-image:
    radial-gradient(
      60rem 40rem at 85% -10%,
      rgba(225, 29, 72, 0.06),
      transparent 60%
    ),
    radial-gradient(
      70rem 50rem at 8% -20%,
      rgba(14, 92, 59, 0.1),
      transparent 55%
    );
  background-repeat: no-repeat;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── Eyebrow tag ───────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-tint);
  border: 1px solid rgba(14, 92, 59, 0.16);
  color: var(--primary-700);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease-spring),
    background 0.3s var(--ease-spring);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 10px 24px -10px rgba(14, 92, 59, 0.6);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(14, 92, 59, 0.6);
}

/* "Button-in-button" trailing icon. */
.btn .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.4s var(--ease-spring);
}

.btn-primary:hover .ico {
  transform: translate(2px, -1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 92, 59, 0.4);
}

.btn-ghost .ico {
  background: var(--primary-tint);
  color: var(--primary);
}

/* ───────────────────────── Floating nav ───────────────────────── */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(231, 227, 216, 0.9);
  box-shadow: var(--shadow-float);
}

.nav .brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

.nav .brand img {
  height: 22px;
  width: auto;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* :not(.btn) so the primary CTA inside .links keeps its own white text /
 * green background instead of inheriting the muted nav-link color (which
 * sits at a higher specificity than .btn-primary). */
.nav .links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav .links a:not(.btn):hover {
  color: var(--fg);
  background: rgba(14, 92, 59, 0.07);
}

.nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--touch);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
}

.nav .lang:hover {
  background: rgba(14, 92, 59, 0.07);
  color: var(--fg);
}

.flagico {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.12);
}

.nav .btn {
  font-size: 0.95rem;
  padding: 0 8px 0 18px;
}

.nav-cta-text {
  display: inline;
}

/* Hide the heavier desktop links on small screens; keep brand + CTA + lang. */
.nav .links a.nav-anchor {
  display: none;
}

@media (min-width: 860px) {
  .nav .links a.nav-anchor {
    display: inline-flex;
  }
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
  .hero {
    padding: 80px 0 64px;
  }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg);
}

.hero h1 .hl {
  color: var(--primary);
}

.hero .lede {
  margin: 22px 0 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust .tick {
  color: var(--success);
  font-weight: 700;
}

/* ───────────────── Phone mockup (pure CSS/HTML) ───────────────── */

.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

.phone {
  width: 300px;
  max-width: 80vw;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #11151d, #2a2f3a);
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-spring);
}

.phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-screen {
  position: relative;
  border-radius: 33px;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 18px;
  border-radius: 999px;
  background: #11151d;
  z-index: 3;
}

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 38px 14px 14px;
  gap: 12px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-progress {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.app-search .mag {
  color: var(--muted);
}

.app-search .typed {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.app-search .caret {
  width: 2px;
  height: 16px;
  background: var(--primary);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
}

.pill.have {
  background: var(--primary-tint);
  border-color: rgba(14, 92, 59, 0.25);
  color: var(--primary-700);
}

.pill.cc {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
  color: #b01539;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.row .code {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.row .tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
}

.tag.miss {
  color: var(--accent);
  background: rgba(225, 29, 72, 0.1);
}

.tag.trade {
  color: var(--primary);
  background: var(--primary-tint);
}

.row .qty {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row .step {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--muted);
  font-size: 0.9rem;
}

.row .num {
  font-weight: 800;
  font-size: 0.9rem;
  min-width: 14px;
  text-align: center;
}

.app-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 2px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.app-tabbar .on {
  color: var(--primary);
}

/* ───────────────────────── Sections ───────────────────────── */

section {
  position: relative;
}

.section-pad {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section-pad {
    padding: 104px 0;
  }
}

.section-head {
  max-width: 56ch;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* "O que é" purpose panel */
.about {
  text-align: center;
}

.about .panel {
  max-width: 64ch;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

.about .panel p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--fg);
}

.about .panel strong {
  color: var(--primary);
}

/* ───────────────── Features bento (double-bezel) ───────────── */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento .wide {
    grid-column: span 2;
  }
}

.card-shell {
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(14, 92, 59, 0.04);
  border: 1px solid rgba(231, 227, 216, 0.8);
}

.card {
  height: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    var(--shadow-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.5s var(--ease-spring);
}

.card-shell:hover .card {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 2px 8px rgba(11, 18, 32, 0.06),
    0 28px 60px -28px rgba(14, 92, 59, 0.4);
}

.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 1.35rem;
}

.card.accent .glyph {
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent);
}

.card h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card .kbd {
  display: inline-flex;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.card .kbd code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 8px;
  color: var(--fg);
}

/* ───────────────── How it works (3 steps) ───────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.step-card .n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

/* ───────────────── Privacy / trust band ───────────── */

.trust-band .wrap {
  background:
    radial-gradient(40rem 30rem at 100% 0%, rgba(225, 29, 72, 0.1), transparent 60%),
    linear-gradient(160deg, var(--primary), var(--primary-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  box-shadow: var(--shadow-float);
}

.trust-band h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.trust-band .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.trust-band p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 60ch;
}

.trust-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.trust-list .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.trust-band .doclinks {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.trust-band .doclinks a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* ───────────────── Final CTA ───────────── */

.final {
  text-align: center;
}

.final h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 16px 0 0;
}

.final p {
  margin: 16px auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.final .hero-cta {
  justify-content: center;
}

/* ───────────────────────── Footer ───────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 44px 0;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.foot .brand img {
  height: 24px;
}

.foot .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.foot .meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  border-radius: 999px;
}

.foot nav a:hover {
  color: var(--fg);
  background: rgba(14, 92, 59, 0.07);
}

/* ───────────────────────── Scroll reveal ───────────────────────── */

/* Hidden state is scoped to `.js` (set on <html> by an inline head script) so
 * that with JavaScript disabled — or if the reveal script fails — every section
 * stays fully visible instead of permanently blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-spring),
    transform 0.8s var(--ease-spring),
    filter 0.8s var(--ease-spring);
  will-change: transform, opacity;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 520px) {
  .shell {
    padding: 0 18px;
  }
  .about .panel {
    padding: 30px 24px;
  }
  .trust-band .wrap {
    padding: 40px 26px;
  }
  .nav-cta-text {
    display: none;
  }
  .nav .btn {
    padding: 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .phone {
    transform: rotate(-2deg);
  }
}
