/* ============================================================
   AppTitude Fit — Landing Page
   Token system (frontend-design):
   paper #FFFFFF · mist #F6F7F9 · ink #0F172A · steel #64748B
   pulse #F97316 (CTA) · mint #10B981 (nutri/sucesso)
   Display: Space Grotesk · Body: Inter
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --mist: #F6F7F9;
  --ink: #0F172A;
  --steel: #64748B;
  --line: #E5E8EE;
  --pulse: #F97316;
  --pulse-dark: #EA580C;
  --pulse-soft: #FFF3EA;
  --mint: #10B981;
  --mint-soft: #E9F9F2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 20px 44px -12px rgba(15, 23, 42, .22);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.lp a { color: inherit; text-decoration: none; }
.lp img { max-width: 100%; display: block; }

.lp--container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tipografia ---------- */
.lp h1, .lp h2, .lp h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lp h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.lp h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.lp h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.lp--lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--steel);
  max-width: 34em;
}

/* Eyebrow: codifica o público da seção (estrutura = informação) */
.lp--eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pulse-dark);
  margin-bottom: 16px;
}
.lp--eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--pulse);
  border-radius: 2px;
}
.lp--eyebrow.mint { color: #047857; }
.lp--eyebrow.mint::before { background: var(--mint); }

/* ---------- Botões ---------- */
.lp--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s cubic-bezier(0, 0, .2, 1), box-shadow .2s, background-color .15s;
}
.lp--btn:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .45);
  outline-offset: 2px;
}
.lp--btn-primary {
  background: var(--pulse);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(249, 115, 22, .55);
}
.lp--btn-primary:hover { background: var(--pulse-dark); transform: translateY(-1px); }
.lp--btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.lp--btn-ghost:hover { background: var(--mist); }
.lp--btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }

/* ---------- Navbar ---------- */
.lp--nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp--nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp--logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.lp--logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--pulse);
  flex-shrink: 0;
}
.lp--nav-links {
  display: flex;
  gap: 28px;
  font-size: .95rem;
  color: var(--steel);
}
.lp--nav-links a { transition: color .15s; }
.lp--nav-links a:hover { color: var(--ink); }
.lp--nav-actions { display: flex; align-items: center; gap: 12px; }
.lp--nav-login { font-size: .95rem; font-weight: 500; color: var(--ink); padding: 8px 4px; }

/* ---------- Hero ---------- */
.lp--hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.lp--hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.lp--hero h1 .hl {
  position: relative;
  white-space: nowrap;
}
.lp--hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .28em;
  background: var(--pulse-soft);
  z-index: -1;
  border-radius: 3px;
}
.lp--hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.lp--hero-note {
  margin-top: 16px;
  font-size: .88rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero: ficha de treino viva (signature element) */
.ficha-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: 22px;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}
.ficha-card::before {
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 88px; height: 88px;
  border-radius: 24px;
  background: var(--pulse-soft);
  z-index: -1;
}
.ficha-card--head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.ficha-card--title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.ficha-card--sub { font-size: .8rem; color: var(--steel); margin-top: 2px; }
.ficha-card--badge {
  font-size: .72rem;
  font-weight: 600;
  color: #047857;
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.ficha-ex {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--mist);
}
.ficha-ex:last-of-type { border-bottom: none; }
.ficha-ex--check {
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color .2s cubic-bezier(0,0,.2,1), border-color .2s;
}
.ficha-ex--check svg {
  width: 13px; height: 13px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset .15s cubic-bezier(0,0,.2,1);
}
.ficha-ex.done .ficha-ex--check { background: var(--pulse); border-color: var(--pulse); }
.ficha-ex.done .ficha-ex--check svg { stroke-dashoffset: 0; }
.ficha-ex--name { font-size: .92rem; font-weight: 500; flex: 1; transition: color .2s; }
.ficha-ex.done .ficha-ex--name { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--line); }
.ficha-ex--sets { font-size: .78rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.ficha-card--progress { margin-top: 16px; }
.ficha-card--progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--steel);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.ficha-card--bar {
  height: 8px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}
.ficha-card--bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pulse), var(--pulse-dark));
  border-radius: 999px;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Faixa de fatos ---------- */
.lp--facts {
  border-block: 1px solid var(--line);
  background: var(--mist);
}
.lp--facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}
.lp--fact .n {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp--fact .n span { color: var(--pulse); }
.lp--fact .l { font-size: .85rem; color: var(--steel); margin-top: 2px; }

/* ---------- Seções de público ---------- */
.lp--section { padding: clamp(64px, 9vw, 110px) 0; }
.lp--section.mist { background: var(--mist); }
.lp--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.lp--split.reverse > .lp--split-media { order: -1; }

.lp--features {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.lp--feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lp--feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--pulse-soft);
  color: var(--pulse-dark);
}
.lp--feature-icon.mint { background: var(--mint-soft); color: #047857; }
.lp--feature h3 { font-size: 1rem; margin-bottom: 3px; }
.lp--feature p { font-size: .92rem; color: var(--steel); }

/* Mock: painel do profissional */
.mock-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-panel--head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-panel--body { padding: 18px; display: grid; gap: 12px; }
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.mock-row .who { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mock-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  flex-shrink: 0;
}
.mock-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-tag.ok { background: var(--mint-soft); color: #047857; }
.mock-tag.warn { background: var(--pulse-soft); color: var(--pulse-dark); }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding: 4px 2px 0; }
.mock-bars i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--pulse), var(--pulse-dark));
  opacity: .85;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mock-bars.in i { transform: scaleY(1); }
.mock-bars i:nth-child(1) { height: 38%; transition-delay: 0ms; }
.mock-bars i:nth-child(2) { height: 55%; transition-delay: 50ms; }
.mock-bars i:nth-child(3) { height: 44%; transition-delay: 100ms; }
.mock-bars i:nth-child(4) { height: 70%; transition-delay: 150ms; }
.mock-bars i:nth-child(5) { height: 62%; transition-delay: 200ms; }
.mock-bars i:nth-child(6) { height: 88%; transition-delay: 250ms; }
.mock-bars i:nth-child(7) { height: 76%; transition-delay: 300ms; }
.mock-caption { font-size: .76rem; color: var(--steel); text-align: center; }

/* Mock: plano alimentar */
.mock-meal {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mock-meal--head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--mint-soft);
  font-size: .85rem;
  font-weight: 600;
  color: #065F46;
}
.mock-meal ul { list-style: none; padding: 10px 14px; display: grid; gap: 7px; }
.mock-meal li {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--ink);
}
.mock-meal li span:last-child { color: var(--steel); font-variant-numeric: tabular-nums; }

/* ---------- Preços ---------- */
.lp--pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: transform .2s cubic-bezier(0,0,.2,1), box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.price-card.featured {
  border: 2px solid var(--pulse);
  position: relative;
  box-shadow: var(--shadow-lift);
}
.price-card--flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--pulse);
  color: #fff;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card--name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.price-card--desc { font-size: .85rem; color: var(--steel); margin-top: 4px; min-height: 2.6em; }
.price-card--value {
  margin: 18px 0 4px;
  font-family: var(--font-display);
}
.price-card--value .cur { font-size: 1rem; color: var(--steel); font-weight: 500; }
.price-card--value .num { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.price-card--value .per { font-size: .9rem; color: var(--steel); }
.price-card--save {
  font-size: .8rem;
  color: #047857;
  font-weight: 600;
  margin-bottom: 4px;
  min-height: 1.2em;
}
.price-card ul { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--ink);
}
.price-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--mint); }
.price-card .lp--btn { width: 100%; }

/* ---------- CTA final ---------- */
.lp--final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(64px, 9vw, 104px) 0;
}
.lp--final h2 { color: #fff; }
.lp--final p { color: #A6B0C3; max-width: 32em; margin: 18px auto 34px; font-size: 1.05rem; }
.lp--final .lp--btn-primary { font-size: 1.05rem; padding: 16px 36px; }

/* ---------- Rodapé ---------- */
.lp--footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: .86rem;
  color: var(--steel);
}
.lp--footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lp--footer a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.lp .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s cubic-bezier(0,0,.2,1), transform .45s cubic-bezier(0,0,.2,1);
}
.lp .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .lp--hero-grid, .lp--split { grid-template-columns: 1fr; }
  .lp--split.reverse > .lp--split-media { order: 0; }
  .ficha-card { margin: 0 auto; }
  .lp--facts-grid { grid-template-columns: repeat(2, 1fr); }
  .lp--pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .lp--nav-links { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp .reveal { opacity: 1; transform: none; transition: none; }
  .mock-bars i { transform: scaleY(1); transition: none; }
  .ficha-card--bar-fill { transition: none; }
  .ficha-ex--check svg { transition: none; }
}
