/* =========================================================
   ROTTINA — Bio web oficial (bio.rottina.com.br)
   Identidade da LP: Sora · creme #EBE3D6 · paper #F7F3ED · ink #041E1A · verde #1CA55D
   Sem JavaScript: a página é interativa assim que o HTML chega.
   ========================================================= */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/sora-500.woff) format('woff'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/sora-600.woff) format('woff'); }

:root {
  --cream: #ebe3d6;
  --paper: #f7f3ed;
  --ink: #041e1a;
  --green: #1ca55d;
  --green-hi: #34d27d;
  --green-text: #138a4e;            /* verde de texto da LP: legível sobre o creme */
  --tx-2: rgba(4, 30, 26, .72);
  --line: rgba(4, 30, 26, .12);
  --line-2: rgba(4, 30, 26, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(22px, 6.4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  font-family: var(--font); color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; isolation: isolate;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
::selection { background: var(--green); color: var(--ink); }

/* Atmosfera da Hero da LP: linhas verticais finas + halo verde suave */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .7;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 15%, transparent 75%);
}
body::after {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  width: 130vmax; height: 130vmax; right: -70vmax; top: -62vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 165, 93, .16) 0%, rgba(28, 165, 93, .05) 34%, transparent 64%);
}

/* ---------- Coluna única ---------- */
.bio {
  width: 100%; max-width: calc(440px + var(--gutter) * 2);
  min-height: min(100vh, 780px); min-height: min(100svh, 780px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 44px;
  padding: clamp(28px, 7vh, 64px) var(--gutter) clamp(28px, 6vh, 56px);
}

/* Topo: ícone, headline e botões no mesmo eixo central */
.bio__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bio__icon { display: block; width: clamp(76px, 22vw, 92px); height: auto; }

.bio__tagline {
  margin-top: clamp(28px, 6vh, 52px);
  font-size: clamp(46px, 14vw, 66px); font-weight: 600; line-height: .96; letter-spacing: -.055em;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line { display: block; }
.line--accent { color: var(--green-text); }

/* ---------- Links ---------- */
.bio__links { display: grid; gap: 12px; }

.link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 22px 16px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; text-decoration: none;
  color: var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 34px -28px rgba(4, 30, 26, .45);
  overflow: hidden; isolation: isolate;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease);
}
.link__label { min-width: 0; }
.link__icon { flex: none; width: 20px; height: 20px; transition: transform .45s var(--ease); }
.link__icon--wa { width: 21px; height: 21px; color: var(--green-text); transition: transform .45s var(--ease), color .35s var(--ease); }

/* Principal: o verde e o brilho diagonal do botão "ver planos" da LP */
.link--primary {
  background: var(--green); color: #02130c;
  box-shadow: 0 0 0 1px rgba(19, 138, 78, .45), 0 18px 40px -16px rgba(19, 138, 78, .55);
}
.link--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}

/* Hover só em dispositivos com mouse (evita "hover preso" no toque) */
@media (hover: hover) and (pointer: fine) {
  .link:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink), 0 22px 40px -26px rgba(4, 30, 26, .6); }
  .link:hover .link__icon--wa { color: var(--green-hi); }
  .link:hover .link__icon { transform: translateX(3px); }
  .link:hover .link__icon--wa { transform: scale(1.06); }
  .link--primary:hover { background: var(--green-hi); color: #02130c; box-shadow: 0 0 0 1px rgba(19, 138, 78, .6), 0 22px 48px -14px rgba(19, 138, 78, .6); }
  .link--primary:hover::after { transform: translateX(120%); }
}

/* Toque: resposta imediata ao pressionar */
.link:active { transform: scale(.985); }
.link--primary:active::after { transform: translateX(120%); transition-duration: .6s; }
/* fundo de "pressionado" claro só em telas de toque (no mouse, o hover já inverteu para tinta) */
@media (hover: none) { .link:not(.link--primary):active { background: #efe9df; } }

.link:focus-visible { outline: 2px solid var(--green-text); outline-offset: 4px; }

/* ---------- Entrada (uma única sequência curta; links tocáveis desde o início) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bio__icon { animation: fade-up .6s var(--ease) backwards; }
  .line { animation: line-up .75s var(--ease) backwards; }
  .line-mask + .line-mask .line { animation-delay: .07s; }
  .link { animation: fade-up .55s var(--ease) backwards; }
  .link:nth-child(1) { animation-delay: .16s; }
  .link:nth-child(2) { animation-delay: .22s; }
  .link:nth-child(3) { animation-delay: .28s; }
  body::after { animation: glow-in 1.2s var(--ease) backwards; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Telas maiores: mesma coluna, centralizada ---------- */
@media (min-width: 720px) {
  .bio { gap: 56px; }
  .bio__icon { width: 96px; }
  .bio__tagline { font-size: 72px; }
  .link { min-height: 66px; font-size: 16.5px; }
}

/* ---------- Telas baixas (ex.: iPhone SE) ---------- */
@media (max-height: 640px) {
  .bio { gap: 32px; }
  .bio__icon { width: 68px; }
  .bio__tagline { margin-top: 22px; font-size: clamp(40px, 12.5vw, 54px); }
  .link { min-height: 58px; }
}

/* ---------- Celulares estreitos (≤ 380px): mantém o rótulo do WhatsApp em uma linha ---------- */
@media (max-width: 380px) {
  .link { gap: 12px; padding: 16px 18px 16px 22px; font-size: 15px; }
}
