/* Easy Condo — Landing Page */

:root {
  --bg-dark: #0b0e14;
  --bg-elevated: #12161f;
  --bg-card: #161b26;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-deep: #0f766e;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;
  --border: rgba(15, 23, 42, 0.1);
  --border-dark: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-teal: 0 12px 40px rgba(20, 184, 166, 0.25);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --max-width: 72rem;
  --header-height: 4.25rem;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::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(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(18rem, 58vw);
}

.brand-logo--footer {
  height: 3.35rem;
  max-width: 20rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text-on-dark);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

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

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--teal);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-teal);
  transition: background 0.2s, transform 0.15s;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-light {
  background: var(--bg-white);
  color: var(--teal-deep);
  box-shadow: var(--shadow-md);
}

.btn-light:hover,
.btn-light:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(15, 118, 110, 0.18), transparent 50%),
    linear-gradient(160deg, #0b0e14 0%, #0f172a 45%, #0b0e14 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--teal);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 28rem;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal);
  line-height: 1.2;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.hero-visual {
  position: relative;
}

.mockup {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-dark);
}

.mockup-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-dot:first-child { background: #f87171; }
.mockup-dot:nth-child(2) { background: #fbbf24; }
.mockup-dot:nth-child(3) { background: #4ade80; }

.mockup-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.mockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.mockup-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
}

.mockup-card strong {
  display: block;
  font-size: 0.7rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.25rem;
}

.mockup-card em {
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
}

.mockup-list {
  display: grid;
  gap: 0.5rem;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

.mockup-item-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mockup-item-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.section-dark .section-label {
  color: var(--teal);
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.25);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-dark);
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.benefits-list {
  display: grid;
  gap: 1.25rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.benefit-check svg {
  width: 0.75rem;
  height: 0.75rem;
}

.benefit-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.benefit-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.benefits-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.benefits-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.benefits-panel ul {
  display: grid;
  gap: 0.65rem;
}

.benefits-panel li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.benefits-panel li::before {
  content: "→";
  color: var(--teal);
  font-weight: 700;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem 4.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Pricing */
.plan-steps {
  margin-bottom: 2.5rem;
}

.pricing-cta {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.pricing-highlight {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.08);
  border: 1px dashed rgba(20, 184, 166, 0.35);
}

.pricing-highlight strong {
  display: block;
  font-size: 1.5rem;
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
}

.pricing-highlight span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

/* Contact form */
.contact-form {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.contact-form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-form-note a {
  color: var(--teal-deep);
  font-weight: 600;
}

.contact-form-note a:hover,
.contact-form-note a:focus-visible {
  color: var(--teal);
}

.contact-feedback {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.contact-feedback--success {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--teal-deep);
}

.contact-feedback--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* FAQ */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

.cta-band .btn-light {
  min-width: 14rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  max-width: 22rem;
  line-height: 1.65;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.footer-links ul {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field-full {
    grid-column: 1 / -1;
  }

  .step-card {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
  }

  .step-card::before {
    position: static;
    margin: 0 auto 1rem;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-toggle-btn {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(11, 14, 20, 0.98);
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-toggle:checked ~ .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-dark);
  }

  .site-nav .header-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 2.5rem;
    max-width: min(15rem, 62vw);
  }

  .brand-logo--footer {
    height: 2.85rem;
    max-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .whatsapp-fab,
  .whatsapp-bubble {
    animation: none !important;
  }
}

/* WhatsApp — atendimento flutuante */
.whatsapp-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.whatsapp-bubble {
  position: relative;
  max-width: 15.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  border-radius: 1rem 1rem 0.35rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation:
    whatsapp-bubble-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both,
    whatsapp-bubble-float 3.5s ease-in-out 1.5s infinite;
}

.whatsapp-bubble-text {
  display: block;
}

.whatsapp-bubble::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  right: 1.1rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

@keyframes whatsapp-bubble-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsapp-bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.whatsapp-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: box-shadow 0.2s ease;
  animation: whatsapp-shake 3.5s ease-in-out infinite;
}

.whatsapp-widget:hover .whatsapp-fab,
.whatsapp-widget:focus-visible .whatsapp-fab {
  animation: none;
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-widget:focus-visible {
  outline: none;
}

@keyframes whatsapp-shake {
  0%,
  78%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  80% {
    transform: translateX(-3px) rotate(-6deg);
  }

  82% {
    transform: translateX(3px) rotate(6deg);
  }

  84% {
    transform: translateX(-3px) rotate(-5deg);
  }

  86% {
    transform: translateX(3px) rotate(5deg);
  }

  88% {
    transform: translateX(-2px) rotate(-3deg);
  }

  90% {
    transform: translateX(2px) rotate(3deg);
  }

  92% {
    transform: translateX(0) rotate(0deg);
  }
}

.whatsapp-fab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (max-width: 767px) {
  .whatsapp-widget {
    bottom: 1rem;
    right: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .whatsapp-bubble {
    max-width: min(15.5rem, calc(100vw - 5.5rem));
    font-size: 0.8125rem;
  }

  .whatsapp-fab {
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-fab svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}
