/* Estilos do site (extraídos do index.html do Claude Design) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f5fc; }
::selection { background: #17636f; color: #fff; }
a { color: #17636f; }
a:hover { color: #124e58; }
a:focus-visible, button:focus-visible { outline: 2px solid #17636f; outline-offset: 3px; }

/* hovers (plain CSS — work outside the editor) */
.btn-primary { background: #221d3a; color: #f6f5fc; }
.btn-primary:hover { background: #17636f; }
.btn-teal { background: #17636f; color: #f6f5fc; }
.btn-teal:hover { background: #124e58; }
.row-link { background: #fff; }
.row-link:hover { background: #efeaf8; }

/* motion (respects reduced-motion) */
.draw { stroke-dasharray: 600; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drawA { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
  @keyframes riseUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .draw { animation-name: drawA; animation-duration: .5s; animation-timing-function: ease; animation-fill-mode: both; }
  .rise { animation: riseUp .7s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .packets { display: none; }
}

/* responsive */
@media (max-width: 900px) { .hero-h1 { font-size: 46px; } }
@media (max-width: 640px) {
  .px-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-sheet-pad { padding: 32px 22px 0 !important; }
  .hero-col { min-width: 0 !important; }
  .hero-h1 { font-size: 36px; }
  .sec-h2 { font-size: 26px; }
  .frotix-pad { padding: 36px 24px !important; }
  .frotix-h2 { font-size: 26px; }
  .contact-pad { padding: 40px 24px !important; }
  .contact-h2 { font-size: 32px; }
  .titleblock { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-links { display: none !important; }
  .nav-bar { padding: 0 20px !important; }
}

/* Descricao dos cards de app: altura minima de 5 linhas, para os celulares ficarem alinhados lado a lado */
.app-desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: #4f496b; min-height: calc(1.55em * 5); }
@media (min-width: 1000px) { .app-desc { min-height: calc(1.55em * 4); } }
.app-more { white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #8fc2c9; }

/* Cards de app: dois celulares por linha (um so em telas estreitas) */
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .apps-grid { grid-template-columns: 1fr; } }

/* ---- moldura de celular do card do TrackList ---- */
.tl-phone { display: flex; justify-content: center; margin: 22px 0 0; }
.tl-phone__body {
  position: relative; width: 100%; max-width: 312px; padding: 11px; border-radius: 38px;
  background: #1c1830; box-shadow: 0 0 0 1px #3a3359, 0 18px 40px -18px rgba(34, 29, 58, .55);
}
/* botoes laterais */
.tl-phone__body::before, .tl-phone__body::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #3a3359;
}
.tl-phone__body::before { left: -3px; top: 96px; height: 44px; }
.tl-phone__body::after { right: -3px; top: 128px; height: 64px; }
.tl-phone__screen {
  position: relative; overflow: hidden; border-radius: 28px; background: #0a0a14;
  aspect-ratio: 360 / 740;
}
.tl-phone__screen iframe {
  position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #0a0a14;
}
/* "ilha" da camera sobre o app */
.tl-phone__screen::after {
  content: ""; position: absolute; top: 9px; left: 50%; width: 76px; height: 20px; margin-left: -38px;
  border-radius: 12px; background: #000; z-index: 3; pointer-events: none;
}
/* Capa enquanto o app nao sobe (js/tracklist-phone.js): captura da primeira tela do app + aviso de carregando
   na parte de baixo, que tambem cobre a barra de abas para ninguem tentar tocar antes da hora. */
.tl-phone__cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  color: #eae7f5; cursor: progress;
  background: radial-gradient(120% 80% at 50% 0%, #2a2350 0%, #0a0a14 70%);
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.tl-phone__screen--running .tl-phone__cover { opacity: 0; visibility: hidden; }
.tl-phone__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.tl-phone__status {
  position: relative; padding: 64px 18px 22px; text-align: center;
  background: linear-gradient(to top, rgba(10, 10, 20, .96) 62%, rgba(10, 10, 20, 0));
}
.tl-phone__status strong {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.tl-phone__status > span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.45; color: #b3aad9; }
.tl-phone__spin {
  flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(234, 231, 245, .3); border-top-color: #eae7f5; animation: tl-gira .8s linear infinite;
}
@keyframes tl-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tl-phone__spin { animation-duration: 2.4s; } }

/* Badge discreto de login do dono, canto superior direito (App.razor, só quando não é atendente).
   Por padrão é só o cadeado (cabe na folga ao lado do botão do menu); ao passar o mouse, revela "admin". */
.pf-admin-login {
  position: fixed; top: 72px; right: 10px; z-index: 60;
  display: inline-flex; align-items: center; padding: 5px;
  background: rgba(246, 245, 252, .82); backdrop-filter: blur(10px);
  border: 1px solid #d3cfe6; border-radius: 999px; text-decoration: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em;
  color: #8b83ac; opacity: .6; transition: opacity .15s, color .15s, border-color .15s;
}
.pf-admin-login:hover, .pf-admin-login:focus-visible { opacity: 1; color: #17636f; border-color: #17636f; }
.pf-admin-login svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-admin-login circle { fill: currentColor; stroke: none; }
.pf-admin-login span {
  max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap;
  transition: max-width .2s ease, opacity .2s ease, margin .2s ease;
}
.pf-admin-login:hover span, .pf-admin-login:focus-visible span { max-width: 56px; margin-left: 5px; margin-right: 3px; opacity: 1; }
/* Link de conversas (dono logado): rótulo sempre visível */
.pf-admin-conversas span { max-width: 90px; opacity: 1; margin-left: 5px; margin-right: 3px; }
@media (max-width: 640px) { .pf-admin-login { top: 72px; right: 8px; } }

/* Site no idioma do visitante (js/site-traducao.js): o botão "ver original" no canto (o aviso da troca é o SweetAlert de css/alerta.css) */
.st-chip { --st-navy: #221d3a; --st-teal: #17636f; --st-menta: #7fd4c0; --st-violeta: #6f5fbf; }
.st-globo { width: 20px; height: 20px; flex: 0 0 auto; }
.st-globo .st-duo-2 { fill: var(--st-violeta); opacity: .32; }
.st-globo .st-duo-1 { fill: none; stroke: var(--st-teal); stroke-width: 1.6; stroke-linecap: round; }
.st-chip {
  position: fixed; left: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 8px; border: 1px solid #d3cfe6; border-radius: 999px; cursor: pointer;
  background: rgba(246, 245, 252, .9); backdrop-filter: blur(10px); color: var(--st-navy);
  font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(34, 29, 58, .08); transition: border-color .15s, background .15s;
}
.st-chip:hover { border-color: var(--st-teal); background: #fff; }
.st-chip:hover .st-globo .st-duo-2 { opacity: .55; }
/* Celular: o lançador do chat ocupa o rodapé quase todo — o botão vira só o globo, logo acima dele */
@media (max-width: 640px) {
  .st-chip { left: 16px; bottom: 76px; padding: 7px; }
  .st-chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Spinner da tradução do site (js/site-traducao.js) — mesmo esquema do spinner global do FrotiX: tela cheia escurecida,
   caixa com o globo pulsando, barra animada, "Please wait" e a mensagem */
.st-spin {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 36, .82); backdrop-filter: saturate(120%) blur(2px);
  font-family: 'IBM Plex Sans', system-ui, sans-serif; animation: stSpinEntra .18s ease both;
}
.st-spin--saindo { opacity: 0; transition: opacity .28s ease; }
.st-spin-box {
  min-width: min(300px, calc(100vw - 32px)); padding: 28px 32px; text-align: center; color: #fff; border-radius: 16px;
  background: rgba(34, 29, 58, .55); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.st-spin-box .st-globo { display: block; width: 92px; height: 92px; margin: 0 auto 18px; animation: stSpinPulso 1.5s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(127, 212, 192, .35)); }
.st-spin-box .st-globo .st-duo-2 { fill: #7fd4c0; opacity: .3; }
.st-spin-box .st-globo .st-duo-1 { stroke: #7fd4c0; stroke-width: 1.4; }
.st-spin-barra { width: 120px; height: 4px; margin: 0 auto 16px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.st-spin-barra::after {
  content: ""; display: block; width: 40%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #17636f, #7fd4c0, #17636f); animation: stSpinBarra 1.2s ease-in-out infinite;
}
.st-spin-texto { font: 700 16px 'Space Grotesk', sans-serif; letter-spacing: .2px; margin-bottom: 4px; }
.st-spin-msg { font-size: 13.5px; color: #b9b3d6; }
@keyframes stSpinEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes stSpinPulso { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }
@keyframes stSpinBarra { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .st-spin, .st-spin-box .st-globo, .st-spin-barra::after { animation: none; } }
