/*
 * Site do TanoShapp. Uma família (Archivo, variável em largura e peso): títulos em minúsculas, bem largos e pesados,
 * como o wordmark do app; texto corrido na largura normal. Verde da marca; o laranja fica só no foco do teclado.
 * Prints do app em molduras de celular, com parallax leve (site.js).
 */
:root {
  --bg: #F5F7F6;
  --ink: #0F172A;
  --muted: #4E5D59;
  --line: #DCE5E1;
  --emerald: #10B981;
  --deep: #047857;
  --on-deep: #ECFDF5;
  --focus: #FF5722;
  --deco: #DCEDE5;
  --deco-band: #0A8A63;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1311;
    --ink: #E8F0EC;
    --muted: #9AABA5;
    --line: #22302B;
    --deep: #065F46;
    --deco: #12241D;
    --deco-band: #0B7357;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--emerald); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--emerald); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }

/* Topo */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
  position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; font-variation-settings: 'wdth' 100; }
.wordmark span { color: var(--emerald); }
.top nav a { font-weight: 600; text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"], .top nav a:hover { border-bottom-color: var(--emerald); }

/* Abertura: texto à esquerda, três celulares com prints do app à direita (parallax em site.js) */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(24px, 4vw, 64px);
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 112px);
}
.hero-text { position: relative; z-index: 1; }
.hero-title {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 112px); line-height: 0.88; font-weight: 850; letter-spacing: -0.035em;
  text-transform: lowercase;
}
.hero-title span { display: block; font-variation-settings: 'wdth' 125; }
.hero-title span:nth-child(2) { color: var(--emerald); }
/* Ao abrir, as linhas "carregam" de estreitas para largas, como anilhas entrando na barra. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: load 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .hero-title span:nth-child(2) { animation-delay: 120ms; }
  .hero-title span:nth-child(3) { animation-delay: 240ms; }
  @keyframes load {
    from { font-variation-settings: 'wdth' 62; letter-spacing: -0.06em; }
    to { font-variation-settings: 'wdth' 125; letter-spacing: -0.035em; }
  }
}
.hero-lead { max-width: 34ch; margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }
.hero-soon { margin: 16px 0 0; color: var(--muted); font-weight: 600; }

.hero-stage { position: relative; height: clamp(520px, 52vw, 760px); }
.hero-stage .phone { position: absolute; top: 50%; }
.hero-stage .phone-front { left: 50%; width: 46%; margin: -50% 0 0 -23%; z-index: 3; }
.hero-stage .phone-back { width: 36%; z-index: 2; }
.hero-stage .phone-left { left: 0; margin-top: -42%; }
.hero-stage .phone-right { right: 0; margin-top: -26%; }

/* Moldura de celular para os prints */
.phone {
  margin: 0; padding: 7px; border-radius: 40px; background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  will-change: transform;
}
.phone img { width: 100%; height: auto; border-radius: 33px; background: #fff; }
@media (prefers-color-scheme: dark) { .phone { background: #1E293B; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title { font-size: min(12.4vw, 96px); }
  .hero-stage { height: 116vw; max-height: 640px; margin-top: 8px; }
  .phone { padding: 5px; border-radius: 30px; }
  .phone img { border-radius: 25px; }
}

/* O que dá para fazer: cada recurso com os prints da tela */
.show { padding: clamp(48px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--line); }
.show-heading { margin: 0 0 clamp(24px, 4vw, 48px); font-size: 15px; font-weight: 700; color: var(--muted); }
.show-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(32px, 7vw, 112px);
  padding: clamp(24px, 4vw, 48px) 0;
}
.show-row:nth-of-type(even) .show-media { order: -1; }
.show-text h3 {
  margin: 0; font-size: clamp(32px, 4.4vw, 60px); line-height: 0.98; font-weight: 850; letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 122;
}
.show-text p { margin: 16px 0 0; max-width: 44ch; font-size: 18px; color: var(--muted); }
.show-media { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 32px); padding: 24px 0; }
.show-media .phone { width: min(44%, 300px); }
.show-media .phone:only-child { width: min(56%, 320px); }
.show-media .phone-offset { margin-top: 18%; }
.show-more { max-width: 60ch; margin: clamp(24px, 4vw, 48px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) {
  .show-row { grid-template-columns: 1fr; }
  .show-row:nth-of-type(even) .show-media { order: 0; }
  .show-media .phone { width: 46%; }
  .show-media .phone:only-child { width: 62%; }
}

/* Personal trainers */
.trainers { background: var(--deep); color: var(--on-deep); padding: clamp(56px, 9vw, 120px) var(--gutter); }
.trainers h2 { color: var(--on-deep); opacity: 0.8; }
.trainers-inner { max-width: 980px; }
.trainers-big {
  margin: 14px 0 22px; font-size: clamp(34px, 5.6vw, 76px); line-height: 0.98; font-weight: 850; letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 125; text-transform: lowercase;
}
.trainers p:last-child { max-width: 58ch; margin: 0; font-size: 18px; }

/* Páginas de texto: termos, privacidade, suporte, exclusão */
.doc { max-width: 68ch; padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
.doc h1 {
  margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 0.95; font-weight: 850; letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 122; text-transform: lowercase;
}
.doc h2 { margin: 44px 0 10px; font-size: 22px; line-height: 1.2; font-weight: 750; letter-spacing: -0.01em; font-variation-settings: 'wdth' 110; }
.doc p { margin: 0 0 14px; }
.doc-updated, .doc-note { color: var(--muted); }
.doc-updated { margin-top: 14px !important; }
.doc-lead { margin-top: 18px !important; font-size: 20px; line-height: 1.5; }
.doc-toc { margin: 28px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.doc-toc li { break-inside: avoid; padding: 3px 0; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc section { scroll-margin-top: 16px; }
.doc-contact { margin-top: 44px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 560px) { .doc-toc ul { columns: 1; } }

/* Suporte */
.contact { display: grid; gap: 10px; margin: 28px 0 16px; }
.contact-item {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 16px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.contact-item:hover { color: var(--bg); background: var(--deep); }
.contact-kind { font-weight: 700; }
.contact-value { font-size: 20px; font-weight: 600; font-variation-settings: 'wdth' 108; overflow-wrap: anywhere; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--emerald); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Exclusão de conta */
.steps { margin: 28px 0 8px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--emerald); color: #fff; font-weight: 800; font-size: 15px;
}
.plain { padding-left: 20px; margin: 0 0 14px; }
.plain li { padding: 2px 0; }

/* Rodapé */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; }
.home .foot { border-top: 0; }

/* Símbolo da logo cortado pela borda de algumas seções. Aparecem ~60% dele: a haste do T inteira e as anilhas de um lado,
   para continuar reconhecível como a barra da marca. */
.deco { position: absolute; z-index: 0; pointer-events: none; color: var(--deco); --w: clamp(260px, 34vw, 520px); width: var(--w); height: auto; }
main, .show-row { position: relative; overflow-x: clip; }
.trainers { position: relative; overflow: hidden; }
.show-text, .show-media, .trainers-inner, .doc { position: relative; z-index: 1; }
.deco-left { left: calc(var(--w) * -0.36); top: 50%; margin-top: calc(var(--w) * -0.46); }
.deco-right { right: calc(var(--w) * -0.36); top: 50%; margin-top: calc(var(--w) * -0.46); }
/* Na faixa dos personais, a barra sai por baixo: aparece a parte de cima (barra com anilhas e o começo da haste). */
.deco-band { color: var(--deco-band); --w: clamp(300px, 40vw, 620px); right: 6%; bottom: calc(var(--w) * -0.42); }
/* Termos, privacidade, suporte e exclusão: o símbolo fica fixo na borda direita e acompanha a rolagem. */
.deco-page { position: fixed; --w: clamp(240px, 30vw, 440px); right: calc(var(--w) * -0.36); top: 50%; margin-top: calc(var(--w) * -0.46); }
.page .top, .page .foot { position: relative; z-index: 2; }
@media (max-width: 860px) {
  .deco { --w: 58vw; }
  /* No celular a seção vira uma coluna: o símbolo fica na altura do título, não atrás dos prints. */
  .deco-left, .deco-right { top: 0; margin-top: 0; }
  .deco-band { --w: 78vw; right: -8%; }
  .deco-page { --w: 52vw; }
}
