/* Ajustes responsivos das paginas publicas do Rastreon.
 * Este arquivo e carregado por ultimo para consolidar regras mobile antigas. */

@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  svg,
  iframe {
    max-width: 100%;
  }

  .home-page .site-header {
    height: 68px;
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
    gap: 8px;
    background: linear-gradient(180deg, #05070af7, #05070ad9 72%, #05070a00);
  }

  .home-page .brand {
    min-width: 0;
  }

  .home-page .brand img {
    width: 94px;
    max-height: 36px;
  }

  .home-page .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .home-page .header-actions .login,
  .home-page .header-actions .button {
    min-height: 38px;
    padding-inline: 11px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-page .hero {
    min-height: 0;
    padding-top: 68px;
    display: block;
  }

  .home-page .hero-copy {
    width: 100%;
    min-height: max(700px, calc(100svh - 68px));
    padding: 36px 20px 26px;
    display: grid;
    grid-template-rows: auto auto minmax(190px, 1fr) auto auto;
    align-content: stretch;
  }

  .home-page .hero-motion::after {
    background:
      linear-gradient(
        180deg,
        #05070aff 0%,
        #05070af7 25%,
        #05070a91 38%,
        #05070a14 51%,
        #05070a24 67%,
        #05070ae8 82%,
        #05070aff 100%
      ),
      linear-gradient(90deg, #05070a99 0%, #05070a21 72%, transparent 100%);
  }

  .home-page .hero h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(36px, 10.8vw, 48px);
    line-height: 1.01;
    letter-spacing: -0.055em;
  }

  .home-page .hero-copy > p {
    max-width: 35rem;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    grid-row: 4;
    width: 100%;
    max-width: 390px;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 9px;
  }

  .home-page .hero-actions .button {
    min-width: 0;
    min-height: 49px;
    padding-inline: 14px;
    gap: 12px;
    font-size: 12px;
  }

  .home-page .hero-benefits {
    grid-row: 5;
    width: 100%;
    max-width: 440px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    gap: 9px 18px;
  }

  .home-page .hero-benefits li {
    padding: 0;
    border-left: 0;
    font-size: 12.5px;
  }

  .home-page .hero-scene {
    display: none;
    min-height: 0;
  }

  .home-page .benefits {
    padding: 44px 16px;
  }

  .home-page .section-head {
    margin-bottom: 24px;
  }

  .home-page .section-head h2 {
    font-size: 24px;
  }

  .home-page .section-head h2 br {
    display: none;
  }

  .home-page .section-head p {
    font-size: 13px;
  }

  .home-page .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .benefits article {
    width: min(100%, 460px);
    margin-inline: auto;
    padding: 20px 18px;
  }

  .home-page .how {
    padding: 44px 16px 40px;
  }

  .home-page .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .steps article {
    width: min(100%, 460px);
    margin-inline: auto;
    padding: 22px 18px 20px;
  }

  .home-page .steps article:not(:last-child):after {
    display: none;
  }

  .home-page .steps h3 {
    font-size: 15px;
  }

  .home-page .steps p {
    font-size: 12px;
  }

  .home-page .how-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }

  .home-page .app-showcase {
    min-height: 0;
    padding: 52px 20px 34px;
  }

  .home-page .app-copy h2,
  .home-page .pricing-heading h2 {
    font-size: clamp(33px, 9vw, 40px);
  }

  .home-page .app-copy p {
    max-width: 430px;
    font-size: 14px;
  }

  .home-page .stores {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Selo com largura própria (não estica como um botão comum). */
  .home-page .store-button {
    width: auto;
    flex: 1 1 150px;
    max-width: 200px;
    min-width: 0;
    height: 54px;
    padding-inline: 12px;
    justify-content: center;
  }

  .home-page .app-visual {
    width: 100%;
    min-height: 405px;
    margin-top: 30px;
  }

  .home-page .app-visual .tilted {
    left: 50%;
    top: 4px;
    width: 182px;
    height: 382px;
    transform: translateX(-50%) rotate(8deg);
  }

  .home-page .app-visual .ignition,
  .home-page .app-visual .updated {
    display: none;
  }

  .home-page .app-visual .speed {
    left: 0;
    top: 68px;
  }

  .home-page .app-visual .battery {
    right: 0;
    top: 245px;
  }

  .home-page .home-pricing {
    padding: 54px 16px;
  }

  .home-page .pricing-grid {
    width: 100%;
  }

  .home-page .price-card {
    min-width: 0;
  }

  .home-page .plans-strip {
    padding: 36px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .home-page .plans-strip h2 {
    font-size: 27px;
  }

  .home-page .plans-strip .button {
    width: 100%;
  }

  .home-page footer {
    padding: 44px 20px 20px;
  }

  .home-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .home-page .footer-about,
  .home-page .footer-contact {
    grid-column: 1 / -1;
  }

  .home-page footer h3 {
    font-size: 14px;
  }

  .home-page footer a,
  .home-page footer p {
    font-size: 14px;
  }

  .home-page .home-help {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .home-page .home-help-panel {
    right: 0;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 96px);
    padding: 18px;
  }

  .login-page,
  .register-page {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .login-page .login-shell,
  .register-page .register-shell {
    width: 100%;
    min-width: 0;
  }

  .login-page .login-intro {
    min-height: 225px;
    padding: max(28px, env(safe-area-inset-top)) 20px 28px;
    background-position: 61% 69%;
  }

  .login-page .login-welcome {
    font-size: 16px;
  }

  .login-page .login-intro h1 {
    margin-block: 5px 12px;
    font-size: 41px;
  }

  .login-page .login-tagline {
    max-width: 310px;
    font-size: 14px;
    line-height: 1.45;
  }

  .login-page .login-form-panel {
    min-height: 0;
    padding: 34px 16px max(46px, env(safe-area-inset-bottom));
  }

  .login-page .login-form h2 {
    font-size: 30px;
  }

  .login-page .login-form header {
    margin-bottom: 23px;
  }

  .login-page .login-input {
    height: 54px;
  }

  .login-page .login-form input,
  .register-page .register-form input,
  .account-recovery-page input,
  .account-recovery-page select {
    font-size: 16px;
  }

  .register-page .register-hero {
    min-height: 300px;
    padding: max(24px, env(safe-area-inset-top)) 18px 28px;
    background-position: center 70% !important;
  }

  .register-page .register-logo {
    width: 140px;
  }

  .register-page .register-hero-copy {
    margin: 38px 0 0;
  }

  .register-page .register-hero h1 {
    margin: 12px 0;
    font-size: clamp(32px, 9.5vw, 39px);
    line-height: 1.03;
    letter-spacing: -0.05em;
  }

  .register-page .register-hero-copy > p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .register-page .register-form-panel {
    padding: 34px 16px max(50px, env(safe-area-inset-bottom));
  }

  .register-page .register-form header {
    margin-bottom: 23px;
  }

  .register-page .register-form h2 {
    font-size: 32px;
  }

  .register-page .selected-plan {
    padding-right: 70px;
  }

  .google-signin,
  .google-signin > div,
  .google-signin iframe,
  #recoveryGoogleButton,
  #recoveryGoogleButton > div,
  #recoveryGoogleButton iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  .account-recovery-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-recovery-card {
    padding: 24px 18px;
  }

  .legal-page .legal-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .legal-page .legal-brand img {
    width: 104px;
  }

  .legal-page .legal-header nav {
    gap: 8px;
  }

  .legal-page .legal-login {
    padding: 8px 12px;
    font-size: 12px;
  }

  .legal-page .legal-hero {
    padding: 46px 18px 44px;
  }

  .legal-page .legal-hero h1 {
    font-size: clamp(35px, 11vw, 48px);
    line-height: 1.02;
  }

  .legal-page .legal-hero p {
    font-size: 15px;
  }

  .legal-page .legal-layout {
    width: calc(100% - 24px);
    padding: 24px 0 54px;
  }

  .legal-page .legal-toc {
    margin-bottom: 30px;
    padding: 22px 18px 22px 31px;
  }

  .legal-page .legal-intro {
    margin-bottom: 34px;
    padding: 18px 16px;
    font-size: 15px;
  }

  .legal-page .legal-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .legal-page .legal-footer {
    padding: 28px 18px;
  }
}

@media (max-width: 390px) {
  .home-page .header-actions .login:first-child {
    display: none;
  }

  .home-page .hero-copy {
    min-height: max(690px, calc(100svh - 68px));
    padding-inline: 16px;
  }

  .home-page .hero h1 {
    font-size: clamp(34px, 10.7vw, 41px);
  }

  .home-page .hero-benefits {
    gap: 8px 14px;
  }

  .home-page .hero-benefits li {
    font-size: 12px;
  }

  .home-page .stores {
    gap: 8px;
  }

  .home-page .store-button {
    padding-inline: 10px;
  }

  .home-page .store-label b {
    font-size: 17px;
  }

  .home-page .app-visual .mini {
    width: 112px;
    min-height: 54px;
    padding: 9px;
  }

  .home-page .app-visual .speed {
    left: -5px;
  }

  .home-page .app-visual .battery {
    right: -5px;
  }

  .login-page .login-intro {
    min-height: 205px;
  }

  .register-page .register-hero {
    min-height: 270px;
  }

  .account-recovery-card h1 {
    font-size: 28px;
  }
}

@media (max-width: 340px) {
  .home-page .brand img {
    width: 82px;
  }

  .home-page .header-actions .login,
  .home-page .header-actions .button {
    padding-inline: 9px;
    font-size: 10px;
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .home-page .hero-copy {
    min-height: 740px;
  }

  .home-page .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-page .footer-about,
  .home-page .footer-contact {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-motion__video {
    display: none;
  }

  .home-page .home-help-toggle {
    animation: none;
  }

  .register-page .register-progress-track span,
  .register-page .register-form > label::after,
  .register-page .register-hint span,
  .register-page .register-submit b {
    transition: none;
  }

  .register-page .register-submit.is-loading b {
    animation: none;
  }
}

/* App showcase ao vivo no celular */
@media (max-width: 700px) {
  .home-page .app-points {
    max-width: 430px;
  }
  .home-page .app-visual {
    min-height: 540px;
    margin-top: 16px;
  }
  .home-page .app-visual .tilted {
    width: 210px;
    height: 440px;
    top: 24px;
    transform: translateX(-50%) rotate(-5deg);
  }
  .home-page .app-visual .speed {
    left: -4px;
    top: 60px;
  }
  .home-page .app-visual .battery {
    right: -4px;
    top: 250px;
  }
}

/* Celular e telas de toque: links de ação com pelo menos 40 px de altura e
   nenhum enfeite passando da largura da tela. */
@media (max-width: 820px), (pointer: coarse) {
  .home-page .visual-glow {
    width: min(380px, 92%);
  }

  .home-page .brand,
  .legal-page .legal-brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .legal-page .legal-login {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .legal-toc a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding-block: 4px;
  }

  .legal-toc a::before {
    top: calc(50% - 5.5px);
  }

  .forgot-password-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-block: 2px 8px;
  }

  .register-switch a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .selected-plan a {
    right: 6px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding-inline: 8px;
  }

  .recovery-back {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}
