/* Public site for topatreinar.com.br. Same colors and type as the app. */
:root {
  color-scheme: dark;
  --bg: #0f1012;
  --paper: #17191d;
  --raised: #1d2025;
  --line: #2c2f36;
  --ink: #f2f2f0;
  --body: #c9cbcf;
  --muted: #9a9fa8;
  --orange: #ff6535;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --width: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--font); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 14px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--orange); color: #15161a; font-weight: 700; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); background: rgba(15, 16, 18, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(44, 47, 54, .7); }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-header nav a { color: var(--body); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.wordmark { color: var(--ink); font: italic 800 34px/1 var(--display); letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
.wordmark span { margin-left: 4px; color: var(--orange); letter-spacing: -6px; }
.wordmark.small { font-size: 28px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; max-width: var(--width); margin: 0 auto;
  padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 10px 24px; }
.site-footer nav a { color: var(--body); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; flex-direction: column; }
}

/* Shared pieces */
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
h2 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 28px; }
.slash { color: var(--orange); margin-left: .12em; }
h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.lead { color: var(--body); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.button, .store-soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.button { background: var(--orange); color: #15161a; }
.button:hover { background: #ff7a50; }
.store-soon { border: 1px solid #3a3e46; color: var(--ink); background: rgba(23, 25, 29, .7); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Hero */
.hero { position: relative; display: grid; align-items: end; min-height: min(86vh, 760px); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15, 16, 18, .96) 0%, rgba(15, 16, 18, .78) 34%, rgba(15, 16, 18, .1) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(15, 16, 18, 0) 30%); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--width); margin: 0 auto; padding: 120px var(--gutter) clamp(56px, 9vh, 96px); }
.hero-copy > * { max-width: 560px; }
.hero h1 { font-size: clamp(60px, 9vw, 112px); margin-bottom: 22px; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: stretch; }
  .hero-photo { position: relative; height: 62vw; max-height: 420px; object-position: 78% 25%; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 62vw), rgba(15, 16, 18, 0) calc(100% - 62vw + 140px)); }
  .hero-copy { margin-top: -110px; padding-top: 0; padding-bottom: 48px; }
}

/* Sections */
.section { max-width: var(--width); margin: 0 auto; padding: clamp(64px, 10vw, 112px) var(--gutter) 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.features .number { display: block; margin-bottom: 18px; color: var(--orange); font: italic 800 30px/1 var(--display); }
.features p, .points p { color: var(--muted); font-size: 16px; margin: 0; }

.showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
.showcase-video { border-radius: 22px; overflow: hidden; background: #0b0c0d; border: 1px solid var(--line); }
.showcase-video video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.showcase-copy h2 { margin-bottom: 20px; }
.showcase-copy p:last-child { color: var(--muted); }
.exercise-strip { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; margin: 8px 0 0; padding: 0 0 6px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.exercise-strip li { scroll-snap-align: start; padding: 10px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.exercise-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.exercise-strip span { display: block; margin-top: 8px; color: var(--body); font-size: 14px; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); }
.points h3::before { content: '//'; display: block; margin-bottom: 10px; color: var(--orange); font: italic 800 26px/1 var(--display); letter-spacing: -4px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 26px; } }

.closing { max-width: var(--width); margin: clamp(72px, 11vw, 128px) auto clamp(56px, 8vw, 96px); padding: clamp(36px, 6vw, 64px) var(--gutter);
  border-radius: 28px; background: linear-gradient(135deg, #1d2025 0%, #16181b 100%); border: 1px solid var(--line); text-align: center; }
.closing h2 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 14px; }
.closing p { color: var(--muted); font-size: 18px; }
.closing .actions { justify-content: center; margin-top: 22px; }
@media (max-width: 1168px) { .closing { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* Text pages: support, privacy policy, terms */
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(56px, 8vw, 96px); }
.page h1 { font-size: clamp(48px, 8vw, 76px); margin-bottom: 20px; }
.page .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.faq-title { font-size: clamp(30px, 4vw, 40px); margin: 48px 0 18px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--orange); font-size: 24px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: -4px 0 22px; color: var(--body); }
.page .more { margin-top: 32px; color: var(--muted); }
.legal h3 { margin: 36px 0 10px; font-size: 20px; }
.legal ul { margin: 6px 0 16px; padding-left: 22px; }
.legal li { margin: 8px 0; }
.legal strong { color: var(--ink); }
.legal .legal-closing { margin: 40px 0 0; color: var(--ink); font: italic 800 30px/1.05 var(--display); text-transform: uppercase; }
