/* ATRAY Landing – clean, Apple/Nubank-inspired */

:root {
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-accent: #e11d48;
  --color-accent-hover: #be123c;
  --color-border: #e5e7eb;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --space-section: clamp(3rem, 8vw, 5rem);
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.site-logo {
  height: 32px;
  width: auto;
  background: transparent;
  vertical-align: middle;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav__langs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
}

.site-nav__lang {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-nav__lang:hover {
  color: var(--color-accent);
}

.site-nav__lang--flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.25rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.site-nav__lang--flag:hover {
  background: rgba(225, 29, 72, 0.08);
}

.site-nav__lang--flag.is-active {
  box-shadow: 0 0 0 2px var(--color-accent);
}

.site-nav__flag {
  font-size: 1.35rem;
  line-height: 1;
  display: block;
}

.site-nav .cta-button,
.site-nav .cta-button:hover {
  color: #fff;
}

/* Legal pages (terms/policy): só bandeiras no header */
.site-nav--legal-only {
  flex-shrink: 0;
}

.site-nav--legal-only .site-nav__langs {
  margin-right: 0;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* Sections: full width (backgrounds 100%); content constrained to --max-width */
section {
  width: 100%;
  padding: var(--space-section) 0;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 100%;
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: var(--space-section);
  text-align: center;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-button {
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* Benefits */
.benefits {
  background: #f9fafb;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  padding: 1.5rem 0 0;
  border-top: 3px solid var(--color-accent);
}

.benefit-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.benefit-card__text {
  color: var(--color-text-muted);
  margin: 0;
}

/* Como Funciona: oculto (não removido), pode ser exibido depois via CSS/JS */
.site-section-hidden {
  display: none !important;
}

/* Features — fundo branco para alternar com benefits (cinza) e evitar dois cinzas seguidos */
.features {
  background: #fff;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.features-list__item {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.features-list__item:last-child {
  border-bottom: none;
}

.features-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.features-list__item strong {
  display: inline-block;
  margin-bottom: 0.2rem;
}

/* Pricing */
#pricing .section-intro {
  margin-bottom: 2.5rem;
}

.pricing-highlight {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 100%;
}

/* Garante que elementos marcados como hidden realmente não apareçam */
[hidden] {
  display: none !important;
}

.pricing-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pricing-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text);
}

.pricing-tab:hover,
.pricing-tab[aria-selected="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pricing-tab[aria-selected="true"] {
  background: rgba(225, 29, 72, 0.06);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 48rem;
  }
  /* Três cards em duas colunas: centraliza o da segunda linha */
  .pricing-grid .pricing-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - 1.5rem) / 2));
    justify-self: center;
  }
}

@media (max-width: 500px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
  .pricing-grid .pricing-card:nth-child(3):last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  position: relative;
}

.pricing-card--popular {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
  padding-top: 2rem;
}

/* Adesivo / etiqueta — não interfere no título do plano */
.pricing-card--popular .pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(225, 29, 72, 0.4);
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  display: block;
}

.pricing-card__detail {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.pricing-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
}

.pricing-card__price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-card__discount {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.pricing-card__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  background: var(--color-accent);
  color: #fff;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.pricing-card__cta-main {
  font-size: 1rem;
  font-weight: 700;
}

.pricing-card__cta-pay {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.95;
  max-width: 100%;
}

.pricing-card__cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.pricing-cost-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.pricing-cost-calc-half {
  min-width: 0;
}

@media (max-width: 768px) {
  .pricing-cost-calc-row {
    grid-template-columns: 1fr;
  }
}

.pricing-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.pricing-cost-calc-row .pricing-subtitle:first-child {
  margin-top: 0;
}

.cost-table-wrap {
  overflow-x: auto;
  margin-bottom: 0;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cost-table th,
.cost-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.cost-table th {
  font-weight: 600;
  color: var(--color-text);
  background: #f9fafb;
}

.cost-table td:last-child {
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

.calculator__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.calculator__preset {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
}

.calculator__preset:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.calculator__preset.is-active {
  border-color: var(--color-accent);
  background: rgba(225, 29, 72, 0.08);
  color: var(--color-accent);
}

.calculator {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  background: #f9fafb;
}

.calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calculator__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.calculator__label span {
  color: var(--color-text);
  font-weight: 500;
}

.calculator__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calculator__slider {
  flex: 1;
  min-width: 0;
  height: 6px;
  accent-color: var(--color-accent);
}

.calculator__input {
  width: 4.5rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.calculator__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15);
}

.calculator__result {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.calculator__total {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.calculator__suggestion,
.calculator__price {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0;
}

.calculator__price {
  font-weight: 600;
  color: var(--color-accent);
}

.calculator__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}

.calculator__cta[href="#"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Testimonials */
.testimonials {
  background: #f9fafb;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.testimonial-card__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.testimonial-card__byline {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  line-height: 1.2;
  min-width: 0;
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.2;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.2;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.testimonial-card__avatar-wrap {
  flex-shrink: 0;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-card__social {
  display: inline-block;
  margin-top: 0;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--color-accent);
}

.testimonial-card__social:hover {
  color: var(--color-accent-hover);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f3f4f6;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
}

.contact-links a:hover {
  background: #e5e7eb;
  color: var(--color-accent);
}

/* CTA final (repetição do CTA principal) */
.cta-final {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f9fafb;
}

.cta-final__text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.cta-button--large {
  font-size: 1.0625rem;
  padding: 1rem 2rem;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  border-top: 1px solid var(--color-border);
}

.sticky-cta.is-visible {
  display: block;
}

.sticky-cta__btn {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}

.sticky-cta__btn:hover {
  color: #fff;
  background: var(--color-accent-hover);
}

@media (min-width: 769px) {
  .sticky-cta {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sticky-cta.is-visible {
    display: block;
  }
}

/* WhatsApp flutuante (canto inferior direito) */
.site-whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 110;
  max-width: min(18rem, calc(100vw - 1.5rem));
}

.site-whatsapp-float__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem 0.65rem 0.7rem;
  background: #25d366;
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  font-size: 0.8125rem;
  line-height: 1.35;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-whatsapp-float__link:hover {
  background: #20bd5a;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.site-whatsapp-float__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.site-whatsapp-float__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  color: #fff;
  fill: currentColor;
}

.site-whatsapp-float__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.site-whatsapp-float__line {
  display: block;
  font-weight: 600;
}

.site-whatsapp-float__line--sub {
  font-weight: 500;
  opacity: 0.95;
  font-size: 0.75rem;
}

/* Só na home: barra fixa de CTA no mobile por cima do rodapé da viewport */
@media (max-width: 768px) {
  .site-body--with-sticky-mobile .site-whatsapp-float {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .site-whatsapp-float__text {
    display: none;
  }
  .site-whatsapp-float__link {
    padding: 0.65rem;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-whatsapp-float__link {
    transition: none;
  }
  .site-whatsapp-float__link:hover {
    transform: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  margin-top: var(--space-section);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__legal a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer__legal a:hover {
  color: var(--color-text);
}

.site-footer__credit {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__credit-separator {
  opacity: 0.6;
}

/* Mobile nav */
@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .pricing-tabs {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .pricing-tab {
    flex: 1;
    min-width: 120px;
  }
}
