/*
 * Critical, above-the-fold styles for the ChatGPT Ads landing page.
 * Keep this file readable: it is intentionally not minified.
 */

/* ===== Section 1: Above-the-fold font definition ===== */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/oswald-variable-latin.woff2") format("woff2");
}

/* ===== Section 2: Minimal reset and document defaults ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #334155;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

h1,
p {
  margin: 0;
}

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

svg {
  display: block;
  max-width: 100%;
}

/* ===== Section 3: Critical page scope and highlighted heading treatment ===== */
.chatgpt-ads-page {
  --chatgpt-max: 72rem;
  overflow-x: hidden;
}

/* Gradient heading text used by the highlighted words in each H2. */
.chatgpt-ads-page .bg-gradient-to-br.bg-clip-text.text-transparent {
  background-image: linear-gradient(to bottom right, #ef4444, #991b1b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ===== Section 4: Hero structure, artwork overlays, and content positioning ===== */
.chatgpt-ads-page .hero-section-chatgpt {
  position: relative;
  display: flex;
  min-height: min(650px, 100svh);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #210407;
}

.chatgpt-ads-page .hero-section-chatgpt .hero-bg-image,
.chatgpt-ads-page .hero-section-chatgpt .hero-overlay-chatgpt,
.chatgpt-ads-page .hero-section-chatgpt .hero-bottom-fade {
  position: absolute;
  inset: 0;
}

.chatgpt-ads-page .hero-section-chatgpt .hero-bg-image {
  z-index: 0;
  background-position: 72% center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.92) contrast(1.04);
}

.chatgpt-ads-page .hero-section-chatgpt .hero-overlay-chatgpt {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(29, 2, 7, 0.98) 0,
    rgba(38, 3, 9, 0.92) 35%,
    rgba(43, 4, 10, 0.62) 58%,
    rgba(31, 3, 8, 0.18) 100%
  );
}

.chatgpt-ads-page .hero-section-chatgpt .hero-bottom-fade {
  top: auto;
  z-index: 1;
  height: 9rem;
  background: linear-gradient(to top, rgba(30, 2, 7, 0.72), transparent);
}

.chatgpt-ads-page .hero-section-chatgpt .hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--chatgpt-max));
  margin-inline: auto;
  padding: clamp(8.5rem, 7vh, 5rem) 1.5rem clamp(3rem, 6vh, 4.5rem);
}

.chatgpt-ads-page .hero-section-chatgpt .hero-content > div {
  max-width: 43rem;
}

/* ===== Section 5: Hero typography, calls to action, and feature list ===== */
.chatgpt-ads-page .hero-section-chatgpt h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-family: Oswald, sans-serif;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.chatgpt-ads-page .hero-section-chatgpt p.text-lg {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: #fecdd3;
  font-size: 1.125rem;
  line-height: 1.625;
}

.chatgpt-ads-page .hero-section-chatgpt .flex {
  display: flex;
}

.chatgpt-ads-page .hero-section-chatgpt .flex-wrap {
  flex-wrap: wrap;
}

.chatgpt-ads-page .hero-section-chatgpt .items-center {
  align-items: center;
}

.chatgpt-ads-page .hero-section-chatgpt .gap-4 {
  gap: 1rem;
}

.chatgpt-ads-page .hero-section-chatgpt .mb-8 {
  margin-bottom: 2rem;
}

.chatgpt-ads-page .hero-section-chatgpt .btn-ppc {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 0.75rem;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.chatgpt-ads-page .hero-section-chatgpt .btn-ppc svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chatgpt-ads-page .hero-secondary {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid #1ebd5a;
  border-radius: 0.75rem;
  background: #25d366;
  box-shadow: 0 12px 28px -14px rgba(37, 211, 102, 0.85);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.chatgpt-ads-page .hero-secondary:hover {
  background: #1fbd5c;
  box-shadow: 0 14px 30px -14px rgba(37, 211, 102, 0.95);
  transform: translateY(-1px);
}

.chatgpt-ads-page .hero-secondary .whatsapp-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.chatgpt-ads-page .hero-section-chatgpt [role="list"] {
  display: grid;
  max-width: 39rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.chatgpt-ads-page .hero-section-chatgpt [role="listitem"] {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #ffe4e6;
  font-size: 0.78rem;
  line-height: 1.45;
}

.chatgpt-ads-page .hero-section-chatgpt [role="listitem"] svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: #fb7185;
}

/* ===== Section 6: Initial-render performance safeguards ===== */
/* Keep non-critical content out of initial layout and paint work. */
.chatgpt-ads-page main > section:nth-of-type(n + 4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ===== Section 7: Accessibility contrast corrections ===== */
/* Accessible contrast corrections identified by Lighthouse. */
body.chatgpt-ads-page .body-copy,
body.chatgpt-ads-page .performance-proof-intro > p,
body.chatgpt-ads-page .agency-principles p {
  color: #526174;
}

body.chatgpt-ads-page .performance-proof-metric {
  color: #b91c1c;
}

body.chatgpt-ads-page .performance-proof-copy > span {
  color: #64748b;
}

/* ===== Section 8: Progressive-loading fallback for hero visibility ===== */
/* The full stylesheet is progressively loaded, so the hero must never wait on JS. */
.chatgpt-ads-page .hero-section-chatgpt .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* ===== Section 9: Tablet and mobile hero adjustments ===== */
@media (max-width: 1023px) {
  .chatgpt-ads-page .hero-section-chatgpt {
    min-height: min(620px, 100svh);
  }

  .chatgpt-ads-page .hero-section-chatgpt .hero-bg-image {
    background-position: 68% center;
    opacity: 0.38;
  }

  .chatgpt-ads-page .hero-section-chatgpt .hero-overlay-chatgpt {
    background: linear-gradient(
      180deg,
      rgba(31, 3, 8, 0.88),
      rgba(31, 3, 8, 0.96)
    );
  }
}

@media (max-width: 767px) {
  .chatgpt-ads-page .hero-section-chatgpt {
    min-height: auto;
  }

  .chatgpt-ads-page .hero-section-chatgpt .hero-content {
    padding: 4rem 1rem 3.5rem;
  }

  .chatgpt-ads-page .hero-section-chatgpt h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .chatgpt-ads-page
    .hero-section-chatgpt
    .hero-content
    > div
    > div:not([role="list"]) {
    align-items: stretch;
  }

  .chatgpt-ads-page
    .hero-section-chatgpt
    .hero-content
    > div
    > div:not([role="list"])
    > a {
    width: 100%;
  }

  .chatgpt-ads-page .hero-section-chatgpt [role="list"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .chatgpt-ads-page .hero-section-chatgpt .hero-content {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .chatgpt-ads-page .hero-section-chatgpt h1 {
    font-size: 2.35rem;
  }

}
