:root {
  --bg: #f5fbff;
  --surface: #ffffff;
  --surface-soft: #eef8ff;
  --primary: #1e5b8c;
  --primary-strong: #17476e;
  --primary-mid: #3d7ea6;
  --accent: #d9eeff;
  --heading: #102e4a;
  --text: #263b4f;
  --muted: #425a70;
  --border: #d8e8f5;
  --shadow: 0 14px 34px rgba(30, 91, 140, 0.12);
  --radius: 8px;
  --focus: #8a6f1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
}

button, input, select, a {
  -webkit-tap-highlight-color: transparent;
}

button, select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.conversion-header {
  background: var(--bg);
}

.topbar, .hero, .section, .site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-photo.photo-fallback::before {
  content: "GT";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--primary);
  color: #fff;
}

.brand strong, .brand small {
  display: block;
}

.brand small, .social-link {
  color: var(--muted);
}

.social-link {
  font-weight: 700;
}

.hero {
  padding: 44px 0 52px;
}

.conversion-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 82px);
  padding: 34px 0 44px;
}

.hero-text {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--heading);
}

.conversion-hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.9rem);
  max-width: 760px;
}

.hero-authority {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
}

.hero-photo-wrap, .trust-photo-wrap {
  overflow: hidden;
  border-radius: 8px;
}

.hero-photo-wrap {
  align-self: stretch;
  min-height: 420px;
  background: var(--surface-soft);
}

.hero-photo, .trust-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo {
  object-position: center top;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.institutional-line {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 800;
}

.hero-actions, .topic-actions, .generator-actions, .cookie-actions, .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.button.secondary:hover {
  border-color: var(--primary-mid);
}

.button.ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.whatsapp-cta {
  position: relative;
  margin-top: 38px;
  min-height: 98px;
  width: min(100%, 720px);
  background: #1fa855;
  color: #fff;
  border-color: #1fa855;
  border-radius: 16px;
  padding: 24px 38px;
  font-size: clamp(1.35rem, 2.2vw, 1.62rem);
  line-height: 1.18;
  font-weight: 950;
  box-shadow: 0 24px 48px rgba(31, 168, 85, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  isolation: isolate;
  overflow: visible;
  animation: whatsappPulse 2.55s ease-in-out infinite;
}

.whatsapp-cta::before {
  content: none;
}

.whatsapp-cta::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 28px;
  background: rgba(31, 168, 85, 0.2);
  box-shadow: 0 0 34px rgba(31, 168, 85, 0.34);
  opacity: 0.45;
  pointer-events: none;
  transform: scale(0.98);
  animation: whatsappRectPulse 2.8s ease-out infinite;
}

.hero-whatsapp-button::before {
  content: none;
}

.whatsapp-cta:hover {
  background: #168a45;
  border-color: #168a45;
  box-shadow: 0 28px 56px rgba(31, 168, 85, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.whatsapp-cta:hover::before {
  content: none;
}

.whatsapp-cta:hover::after {
  background: rgba(31, 168, 85, 0.24);
  box-shadow: 0 0 42px rgba(31, 168, 85, 0.42);
}

.whatsapp-icon {
  width: 1.45em;
  height: 1.45em;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-cta .whatsapp-icon {
  width: 42px;
  height: 42px;
  margin-right: 14px;
}

.trust-section .whatsapp-cta {
  width: min(100%, 620px);
  min-height: 88px;
  padding: 21px 34px;
  font-size: clamp(1.2rem, 1.9vw, 1.42rem);
}

.trust-section .whatsapp-cta .whatsapp-icon {
  width: 38px;
  height: 38px;
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 24px 48px rgba(31, 168, 85, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 32px 64px rgba(31, 168, 85, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  }
}

@keyframes whatsappRing {
  0%, 100% {
    opacity: 0;
    transform: scale(0.98);
  }
  45% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes whatsappRectPulse {
  0% {
    transform: scale(0.98);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(1.055);
    opacity: 0;
  }
}

.section {
  padding: 46px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2, .info-band h2, .topic-card h2, .generator h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--heading);
}

.section-heading p, .info-band p, .topic-card p, .generator p {
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  min-height: 146px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 6px 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(30, 91, 140, 0.06);
  color: var(--text);
}

.choice-card:hover {
  border-color: var(--primary-mid);
  text-decoration: none;
}

.choice-card span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.choice-card strong {
  line-height: 1.2;
}

.choice-card small {
  color: var(--muted);
}

.topics {
  display: grid;
  gap: 16px;
}

.topic-card, .generator, .info-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow);
}

.topic-card p {
  max-width: 900px;
}

.topic-actions {
  margin-top: 18px;
}

.tools-section {
  padding-top: 30px;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
  gap: 28px;
  align-items: center;
}

.trust-copy {
  max-width: 720px;
}

.trust-copy h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.trust-copy p {
  color: var(--text);
  font-size: 1.08rem;
}

.trust-photo-wrap {
  min-height: 330px;
  background: var(--surface-soft);
}

.trust-photo {
  object-fit: cover;
  object-position: center center;
}

.compact-heading {
  margin-bottom: 16px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pain-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(30, 91, 140, 0.06);
}

.pain-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.12rem;
  line-height: 1.2;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
}

.text-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  margin-top: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #168a45;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-whatsapp:hover {
  color: #0f6f36;
  transform: translateY(-1px);
}

.text-whatsapp .whatsapp-icon {
  width: 24px;
  height: 24px;
  color: #1fa855;
}

.proof-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.proof-list h2 {
  width: 100%;
  margin: 0;
  color: var(--heading);
  font-size: 1.35rem;
}

.proof-list p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 26px 54px rgba(31, 168, 85, 0.5), 0 0 0 10px rgba(31, 168, 85, 0.12);
  cursor: pointer;
  font-size: 2rem;
  animation: whatsappFloatPulse 2.6s ease-in-out infinite;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
}

.floating-whatsapp::before {
  border: 2px solid rgba(130, 255, 181, 0.45);
  animation: floatingOuterRing 2.8s ease-in-out infinite;
}

.floating-whatsapp::after {
  background: radial-gradient(circle, rgba(130, 255, 181, 0.2) 0%, rgba(31, 168, 85, 0.12) 42%, rgba(31, 168, 85, 0) 72%);
  animation: floatingGlowWave 2.8s ease-in-out infinite;
}

.floating-whatsapp:hover {
  background: #168a45;
}

.floating-whatsapp .whatsapp-icon {
  width: 50px;
  height: 50px;
}

@keyframes whatsappFloatPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 26px 54px rgba(31, 168, 85, 0.42), 0 0 0 10px rgba(31, 168, 85, 0.12);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 34px 68px rgba(31, 168, 85, 0.58), 0 0 0 17px rgba(31, 168, 85, 0.16);
  }
}

@keyframes floatingOuterRing {
  0%, 100% {
    opacity: 0.46;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

@keyframes floatingGlowWave {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.16);
  }
}

.generator {
  max-width: 820px;
}

.generator label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.generator select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.generator-actions {
  margin-top: 14px;
}

.checklist-output {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 16px;
  min-height: 72px;
}

.checklist-output:empty::before {
  content: "O checklist aparecerá aqui após a geração.";
  color: var(--muted);
}

.checklist-output h3 {
  margin: 0 0 8px;
  color: var(--heading);
}

.checklist-output ul {
  margin: 0;
  padding-left: 20px;
}

.notice {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.info-band {
  margin-top: 18px;
  margin-bottom: 18px;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--border);
}

.site-footer div, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.site-footer span, .site-footer p {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.footer-button:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  padding: 16px;
  background: rgba(245, 251, 255, 0.9);
  backdrop-filter: blur(10px);
}

.cookie-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.cookie-card h2, .modal-panel h2 {
  margin: 0 0 8px;
  color: var(--heading);
}

.cookie-card p, .modal-panel p {
  margin: 0;
  color: var(--muted);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 48, 68, 0.55);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 50px rgba(24, 48, 68, 0.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.preference-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.preference-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.preference-item.disabled {
  cursor: default;
  background: #f8fbfe;
}

.preference-item input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.preference-item strong, .preference-item small {
  display: block;
}

.preference-item small {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversion-hero, .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    order: -1;
    min-height: 300px;
    max-height: 46svh;
  }

  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 28px;
  }

  .conversion-hero {
    min-height: auto;
    gap: 20px;
    padding-top: 16px;
  }

  .conversion-hero h1 {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }

  .hero-authority {
    font-size: 1.12rem;
  }

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

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

  .hero-photo-wrap {
    min-height: 260px;
  }

  .trust-photo-wrap {
    min-height: 260px;
  }

  .floating-whatsapp {
    width: 82px;
    height: 82px;
    right: 18px;
    bottom: 18px;
  }

  .floating-whatsapp .whatsapp-icon {
    width: 43px;
    height: 43px;
  }

  .whatsapp-cta {
    width: 100%;
    min-height: 84px;
    padding: 19px 22px;
    font-size: 1.2rem;
  }

  .whatsapp-cta .whatsapp-icon {
    width: 36px;
    height: 36px;
  }

  .button, .topic-actions a, .topic-actions button, .generator-actions button, .cookie-actions button, .modal-actions button {
    width: 100%;
  }

  .choice-card {
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-cta,
  .whatsapp-cta::before,
  .whatsapp-cta::after,
  .floating-whatsapp,
  .floating-whatsapp::before,
  .floating-whatsapp::after {
    animation: none;
  }
}
