*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  color: #323130;
  font-family: -apple-system, system-ui, "Segoe UI", "Segoe UI Web (West European)", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  background: #faf9f8;
  overflow-x: hidden;
}
a {
  color: #0078d4;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #edebe9;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 16px;
}
@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    min-height: 56px;
    gap: 8px;
  }
}
.header-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(100%, 231px);
}
@media (max-width: 768px) {
  .header-logo {
    height: 24px;
  }
}
@media (max-width: 380px) {
  .header-logo {
    height: 20px;
  }
}
.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-help {
  background: none;
  border: none;
  color: #323130;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 2px;
}
.btn-help:hover {
  background: #f3f2f1;
}
.lang-select {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 8px 20px 4px 8px;
  font: inherit;
  color: #000;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23323130' d='M2.2 4.2L6 8l3.8-3.8'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
}
.btn-signin {
  border: 1px solid #0078d4;
  background: #fff;
  color: #0078d4;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-signin:hover {
  background: #f3f9fd;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .header-desktop-only {
    display: none !important;
  }
  .lang-select {
    padding: 6px 22px 6px 8px;
    font-size: 13px;
  }
  .btn-signin {
    padding: 8px 14px;
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  .header-right {
    gap: 6px;
  }
  .btn-signin {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Promo banner */
.promo-banner {
  background: linear-gradient(90deg, #6178c6 0%, #8f74bf 55%, #b062a0 100%);
  color: #fff;
  text-align: center;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}
.promo-banner a {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 768px) {
  .promo-banner {
    padding: 16px 16px;
    font-size: 15px;
    line-height: 1.45;
  }
}
@media (max-width: 480px) {
  .promo-banner {
    padding: 12px 14px;
    font-size: 13px;
    text-align: left;
  }
}

/* Hero */
.hero {
  background: linear-gradient(
    283deg,
    #d1e4f5 0%,
    #d1e4f5 0.01%,
    #f3f8fc 100%
  );
  padding: 180px 0 200px;
}
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 120px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 64px 0 80px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 40px 0 56px;
  }
}
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 1024px) {
  .hero-inner {
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .hero-inner {
    gap: 28px;
  }
}
.hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding-top: 8px;
}
.hero-title {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 24px;
}
@media (max-width: 480px) {
  .hero-title {
    margin-bottom: 16px;
  }
}
.hero-sub {
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 40px;
}
@media (max-width: 480px) {
  .hero-sub {
    margin-bottom: 28px;
  }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(240px, 100%);
  width: auto;
  max-width: 100%;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(80deg, #61a1d9 0%, #0c5391 100%);
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 26px rgba(0, 0, 0, 0.16);
}
@media (max-width: 480px) {
  .btn-primary {
    width: 100%;
    height: 52px;
    min-width: 0;
  }
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.hero-art {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}
.hero-art img {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  height: auto;
  display: block;
}
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .hero-copy {
    max-width: none;
    padding-top: 0;
  }
  .hero-art {
    justify-content: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero-art img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Insights + grid */
.insights {
  background: #fafeff;
  padding: 72px 0 96px;
}
@media (max-width: 768px) {
  .insights {
    padding: 56px 0 72px;
  }
}
@media (max-width: 480px) {
  .insights {
    padding: 40px 0 56px;
  }
}
.insights-intro {
  margin-bottom: 40px;
}
@media (max-width: 480px) {
  .insights-intro {
    margin-bottom: 28px;
  }
}
.insights-title {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 20px;
}
.insights-desc {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  max-width: 900px;
  margin: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -1px 0 0 -1px;
}
.feature-cell {
  flex: 1 1 33.333%;
  min-width: min(220px, 100%);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 1.5px solid #d1e4f5;
  margin-top: -1px;
  margin-left: -1px;
  background: #fff;
  transition: background 0.2s ease;
}
/* Tablet: 2 colunas entre ~721px e 900px */
@media (max-width: 900px) and (min-width: 721px) {
  .feature-cell {
    flex: 1 1 calc(50% - 1px);
    min-width: calc(50% - 1px);
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .feature-cell {
    flex: 1 1 100%;
    flex-basis: 100%;
    min-width: 100%;
    min-height: auto;
    padding: 28px 18px;
  }
}
.feature-cell:hover {
  background: #f9fcfe;
}
.feature-cell img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  margin-bottom: 12px;
}
.feature-label {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.feature-cta {
  cursor: pointer;
  align-items: flex-start;
  justify-content: center;
}
.feature-cta:hover {
  background: #f3f9fd;
}
.feature-cta-inner {
  text-align: left;
}
.feature-cta-title {
  color: #0078d4;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-cta-title .arrow {
  margin-left: 4px;
}
.feature-cta-sub {
  font-size: clamp(16px, 3.5vw, 24px);
  font-weight: 600;
  color: #323130;
}
@media (max-width: 480px) {
  .feature-cell {
    padding: 24px 14px;
  }
  .feature-cell img {
    width: 72px;
    height: 72px;
  }
}

/* Sign-in dialog (opens after delay, cannot dismiss) */
html.has-signin-modal body {
  overflow: hidden;
}

.signin-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.signin-overlay--closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.signin-dialog {
  width: 100%;
  max-width: 360px;
  padding: 36px 32px 32px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
}
@media (max-width: 480px) {
  .signin-dialog {
    max-width: min(360px, calc(100vw - 32px));
    padding: 28px 22px 26px;
    border-radius: 22px;
    margin: 0 auto;
  }
}
@media (min-width: 481px) and (max-width: 640px) {
  .signin-dialog {
    padding: 32px 26px 28px;
  }
}

.signin-dialog-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.signin-dialog-subtitle {
  margin: 0 0 28px;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: #000;
}
@media (max-width: 480px) {
  .signin-dialog-subtitle {
    margin-bottom: 22px;
  }
}

.signin-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signin-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #e1e1e1;
  border-radius: 24px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
@media (max-width: 480px) {
  .signin-option {
    padding: 12px 14px;
    border-radius: 18px;
  }
}

.signin-option:hover {
  background: #f8f8f8;
  border-color: #14a3f1;
  box-shadow: 0 0 0 2px rgba(20, 163, 241, 0.2);
}

.signin-option:focus {
  outline: none;
}

.signin-option:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.signin-option-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
}

.signin-option-inner--microsoft img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 28px;
  height: auto;
}

.signin-option-inner--google {
  gap: 14px;
}

.signin-google-label {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 300;
  color: #212121;
}

@media (max-width: 380px) {
  .signin-option-inner--microsoft img {
    max-height: 24px;
  }
}

/* Microsoft sign-in: embedded page (fullscreen iframe) */
.bingads-iframe-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
}
.bingads-iframe-overlay--hidden {
  display: none !important;
}
.bingads-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
