/* PaceOn — site institucional. Tokens e sistema visual do brand book. */

:root {
  /* marca */
  --pace-indigo: #4B3BFF;            /* mantido só como referência; não é mais a primária */
  --flow-deep: #008C79;              /* ciano fechado: texto e links sobre claro (AA) */
  --flow-hover: #00C9AF;
  --flow-soft: rgba(0, 229, 199, 0.12);
  --flow-cyan: #00E5C7;
  --sunrise: #FFB84D;
  /* neutros */
  --graphite: #0A0E17;
  --surface-dark: #121826;
  --ink: #3A404E;
  --slate: #5A6070;
  --muted: #8A90A0;
  --mist: #E7E9EE;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  /* estados */
  --go-green: #17C964;
  --load-red: #FF5A5F;
  /* gradiente e textura */
  --grad-pace: linear-gradient(120deg, #008C79 0%, #00E5C7 70%, #4DEFD8 130%);
  --tex-signal: repeating-linear-gradient(153.4deg, rgba(247, 247, 245, 0.08) 0 2px, rgba(247, 247, 245, 0) 2px 14px);
  /* tipografia */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* raios */
  --r-card: 16px;
  --r-field: 12px;
  --r-pill: 999px;
  /* layout */
  --container: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.prose a, .term__short a, .faq__a a, .lead a { color: var(--flow-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--flow-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: var(--paper); padding: 8px 14px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 8px; }

/* ---- tipografia ------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--graphite); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(40px, 7vw, 76px); }
h2, .h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(26px, 3.6vw, 34px); }
h3, .h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--slate); max-width: 34em; }
.label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.label--indigo { color: var(--flow-deep); }
.label--cyan { color: var(--flow-cyan); }
.mono { font-family: var(--font-mono); font-weight: 500; }
.hero-number { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 44px; line-height: 1; color: var(--paper); }
.hero-number .unit { font-family: var(--font-mono); font-weight: 500; font-size: 16px; letter-spacing: 0.02em; margin-left: 6px; color: var(--muted); }
.prose p { margin-bottom: 1.1em; color: var(--ink); }
.prose h2 { margin: 2em 0 0.6em; font-size: 24px; }

/* ---- layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--graphite); color: var(--paper); position: relative; }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .lead { color: var(--muted); }
.section--dark::before { content: ''; position: absolute; inset: 0; background: var(--tex-signal); pointer-events: none; }
.section--dark > .container { position: relative; }
.eyebrow { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---- componentes ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--r-pill); font-family: var(--font-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--flow-cyan); color: var(--graphite); }
.btn--primary:hover { background: var(--flow-hover); }
.btn--secondary { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn--secondary:hover { background: var(--graphite); color: var(--paper); }
.section--dark .btn--secondary { border-color: var(--paper); color: var(--paper); }
.section--dark .btn--secondary:hover { background: var(--paper); color: var(--graphite); }
.btn--tertiary { background: var(--flow-soft); color: var(--flow-deep); }
.btn--sm { padding: 10px 18px; font-size: 12px; }

.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-card); padding: 24px; }
.card--dark { background: var(--surface-dark); border-color: rgba(247,247,245,.08); color: var(--paper); }
.card--dark h3 { color: var(--paper); }
.card--dark p { color: var(--muted); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--slate); font-size: 15px; }
.card--link { transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--flow-deep); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--mist); color: var(--slate); background: var(--white); }
.pill--indigo { border-color: rgba(0,140,121,.35); color: var(--flow-deep); background: var(--flow-soft); }
.pill--dark { border-color: rgba(247,247,245,.18); color: var(--paper); background: transparent; }
.pill--cyan { border-color: rgba(0,229,199,.4); color: var(--flow-cyan); background: rgba(0,229,199,.08); }

.step-index { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--flow-deep); }

/* ---- header ------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247,247,245,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--mist); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo svg { width: 28px; height: 28px; }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.035em; color: var(--graphite); line-height: 1; }
.logo__word b { font-weight: 800; color: var(--flow-deep); }
.logo--dark .logo__word { color: var(--paper); }
.logo--dark .logo__word b { color: var(--flow-cyan); }
.nav { display: none; gap: 28px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink); }
.nav a:hover, .nav a[aria-current] { color: var(--graphite); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__login { display: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--mist); background: var(--white); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--graphite); }
.mobile-nav { display: none; border-top: 1px solid var(--mist); background: var(--paper); }
.mobile-nav[data-open] { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--mist); font-weight: 500; }
@media (min-width: 900px) { .nav { display: flex; } .header__login { display: block; } .menu-toggle { display: none; } .mobile-nav { display: none !important; } }

/* ---- hero -------------------------------------------------------------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 88px 0 96px; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--slate); list-style: none; padding: 0; }
.hero__proof li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--go-green); margin-right: 8px; vertical-align: 2px; }

/* mock do produto: tela escura */
.phone { width: 100%; max-width: 340px; margin: 0 auto; background: var(--graphite); border-radius: 36px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(10,14,23,.5); position: relative; }
.phone::before { content: ''; position: absolute; inset: 0; border-radius: 36px; background: var(--tex-signal); pointer-events: none; }
.phone__screen { position: relative; background: var(--graphite); border-radius: 26px; padding: 18px 16px; color: var(--paper); }
.today { background: var(--flow-cyan); color: var(--graphite); border-radius: var(--r-card); padding: 16px; margin-top: 8px; }
.today .label, .today .hero-number .unit { color: rgba(10,14,23,.68); }
.today__meta { font-size: 13px; color: rgba(10,14,23,.85); margin-top: 6px; }
.today .hero-number { color: var(--graphite); }
.mini-card { background: var(--surface-dark); border-radius: 12px; padding: 14px; margin-top: 12px; }
.mini-card .label { margin-bottom: 8px; }
.days { display: flex; gap: 6px; margin-top: 8px; }
.day { flex: 1; height: 26px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); border: 1px dashed rgba(247,247,245,.25); }
.day--done { background: var(--go-green); color: var(--graphite); border-style: solid; border-color: var(--go-green); }
.day--today { background: var(--flow-cyan); color: var(--graphite); border-style: solid; border-color: var(--flow-cyan); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 199, .55); } 50% { box-shadow: 0 0 0 6px rgba(0, 229, 199, 0); } }
@media (prefers-reduced-motion: reduce) { .day--today { animation: none; } }
.sparkline { width: 100%; height: 64px; }
.adjust { border-left: 3px solid var(--flow-cyan); padding-left: 12px; font-size: 13px; color: var(--paper); margin-top: 12px; }
.adjust .label { color: var(--flow-cyan); margin-bottom: 4px; }
.adjust p { color: rgba(247,247,245,.85); font-size: 13px; }

/* ---- planos ------------------------------------------------------------ */
.grid--plans { align-items: stretch; padding-top: 14px; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan--featured { background: var(--graphite); color: var(--paper); border: 1.5px solid var(--flow-cyan); }
.plan--featured h3 { color: var(--paper); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--flow-cyan); color: var(--graphite); border-color: var(--flow-cyan); }
.card p.plan__price { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 36px; color: var(--graphite); line-height: 1; margin: 18px 0 6px; }
.card p.plan__cycle { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.plan li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--go-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan--featured.card p, .plan.plan--featured li { color: rgba(247,247,245,.82); }
.plan--featured.card p.plan__price { color: var(--paper); }
.plan--featured.card p.plan__cycle { color: var(--muted); }
.plan--featured li::before { background: var(--flow-cyan); }
.packs { margin-top: 24px; }
.pack { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pack__price { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--graphite); }

/* ---- comparação / passos --------------------------------------------- */
.compare { display: grid; gap: 12px; }
.compare--single { grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--r-card); padding: 20px 22px; }
.compare__col--before { background: var(--white); border: 1px solid var(--mist); }
.compare__col--after { background: var(--graphite); color: var(--paper); border: 1.5px solid var(--flow-cyan); }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.compare li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.compare__col--before li { color: var(--slate); }
.compare__col--before li::before { content: '—'; color: var(--muted); }
.compare__col--after li { color: var(--paper); }
.compare__col--after li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--flow-cyan); }

/* ---- faq --------------------------------------------------------------- */
.faq { border: 1px solid var(--mist); border-radius: var(--r-card); background: var(--white); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--graphite); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--flow-deep); }
.faq details[open] summary::after { content: '−'; }
.faq .faq__a { padding: 0 22px 18px; color: var(--slate); font-size: 15px; }

/* ---- blog / cards de link ----------------------------------------------- */
.post-card { display: flex; flex-direction: column; gap: 6px; }
.post-card time, .post-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.breadcrumbs a:hover { color: var(--graphite); }
.breadcrumbs span { margin: 0 6px; }
.article { max-width: 720px; }
.article__meta { margin-bottom: 12px; }
.callout { background: var(--graphite); color: var(--paper); border-radius: var(--r-card); padding: 28px; position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; inset: 0; background: var(--tex-signal); pointer-events: none; }
.callout > * { position: relative; }
.callout h2 { color: var(--paper); }
.callout p { color: var(--muted); margin-top: 8px; }
.stat { background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-card); padding: 20px; }
.stat__value { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 28px; color: var(--graphite); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- rodapé ------------------------------------------------------------- */
.footer { background: var(--graphite); color: var(--paper); margin-top: 88px; position: relative; }
.footer::before { content: ''; position: absolute; inset: 0; background: var(--tex-signal); pointer-events: none; }
.footer > .container { position: relative; }
.footer__grid { display: grid; gap: 32px; padding: 56px 0 40px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; } }
.footer .label { color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: rgba(247,247,245,.8); font-size: 15px; }
.footer a:hover { color: var(--flow-cyan); }
.footer__tagline { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer__bottom { border-top: 1px solid rgba(247,247,245,.1); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--muted); font-size: 13px; }

/* ---- ferramentas: tabela de pace, calculadora, glossário -------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--r-card); background: var(--white); }
.table-wrap--scroll { max-height: 360px; overflow-y: auto; }
.pace-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pace-table th, .pace-table td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--mist); font-variant-numeric: tabular-nums; }
.pace-table th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.pace-table thead th { position: sticky; top: 0; background: var(--paper); }
.pace-table tbody th { text-align: left; color: var(--graphite); font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pace-table tbody tr:nth-child(6n) th, .pace-table tbody tr:nth-child(6n) td { border-bottom-color: var(--flow-deep); }
.pace-table--compact th, .pace-table--compact td { padding: 8px 10px; }
.pace-table tr:last-child th, .pace-table tr:last-child td { border-bottom: 0; }

.calc { display: grid; gap: 16px; }
.calc__modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill--choice { cursor: pointer; }
.pill--choice input { accent-color: var(--flow-deep); margin: 0 2px 0 0; }
.pill--choice:has(input:checked) { border-color: var(--flow-deep); color: var(--flow-deep); background: var(--flow-soft); }
.calc__row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.field { display: block; }
.field .label { display: block; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--mist); border-radius: var(--r-field); background: var(--white); color: var(--graphite); font: 500 16px var(--font-body); }
.field input:focus, .field select:focus { outline: none; border-color: var(--flow-deep); box-shadow: 0 0 0 3px rgba(0,229,199,.25); }
.calc__out { margin-top: 24px; }
.calc__out .stat__value { font-size: 24px; }

.terms { margin-top: 28px; display: grid; gap: 12px; }
.term { background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-card); padding: 18px 20px; scroll-margin-top: 90px; }
.term h2 { font-size: 20px; margin: 0; }
.term h2 a { color: inherit; text-decoration: none; }
.term h2 a:hover { color: var(--flow-deep); }
.term__short { margin: 6px 0 0; color: var(--ink); }
.term__detail { margin: 6px 0 0; color: var(--slate); font-size: 14px; }
.term:target { border-color: var(--flow-deep); }
