/*
 * Full stylesheet for the ChatGPT Ads landing page.
 * Rules are grouped by responsibility to make component maintenance easier.
 */

/* ===== Section 1: Local font definitions ===== */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
}
@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: Browser reset and element defaults ===== */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, sans-serif; color: #334155; background: #fff; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { margin: 0; font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* ===== Section 3: Reusable layout, spacing, sizing, and color utilities ===== */
.flex { display: flex; }
.grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-8 { padding-top: 2rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[320px\] { max-width: 320px; }
.max-w-\[360px\] { max-width: 360px; }
.max-w-\[380px\] { max-width: 380px; }
.max-w-\[400px\] { max-width: 400px; }
.max-w-\[420px\] { max-width: 420px; }
.max-h-\[360px\] { max-height: 360px; }
.max-h-\[400px\] { max-height: 400px; }
.max-h-\[500px\] { max-height: 500px; }
.max-h-\[540px\] { max-height: 540px; }
.object-contain { object-fit: contain; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: .875rem; }
.leading-relaxed { line-height: 1.625; }
.text-slate-600 { color: #475569; }
.border-t { border-top: 1px solid #e2e8f0; }
.space-y-3 > * + * { margin-top: .75rem; }
.bg-white { background: #fff; }
.section-alt { background: #faf7f8; }

/* ===== Section 4: Page design tokens, accessibility, and shared typography ===== */
.chatgpt-ads-page {
  --red: #dc2626;
  --dark-red: #991b1b;
  --ink: #1f0a0d;
  --muted: #526174;
  --border: #e7dfe1;
  --max: 72rem;
  overflow-x: hidden;
}
.chatgpt-ads-page :where(a, button, input, textarea):focus-visible {
  outline: 3px solid rgba(220, 38, 38, .3);
  outline-offset: 3px;
}
.heading-display {
  color: var(--ink);
  font: 600 clamp(2.25rem, 4.6vw, 4rem)/1.02 Oswald, sans-serif;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.body-copy { margin-bottom: 1rem; color: var(--muted); line-height: 1.75; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: #a6121c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-eyebrow::before { width: 2rem; height: 2px; background: currentColor; content: ""; }
.text-link { display: inline-flex; align-items: center; margin-top: 1rem; color: #b91c1c; font-size: .86rem; font-weight: 700; }
.text-link svg { width: 1rem; height: 1rem; margin-left: .5rem; }
.reveal-on-scroll { opacity: 1; transform: none; }

/* ===== Section 5: Shared content-section spacing and trust badges ===== */
main > section:not(.hero-section-chatgpt) { padding: clamp(3.75rem, 5.5vw, 5.25rem) 1.5rem; }
main > section:not(.hero-section-chatgpt) > div { width: min(100%, var(--max)); }
.trust-section { padding-block: 3rem !important; }
.trust-intro { max-width: 58rem; margin: 0 auto 2.5rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.trust-intro a { color: var(--red); font-weight: 700; }
.trust-logo-badge {
  display: inline-flex;
  width: auto;
  height: 82px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.1rem;
  border: 1px solid #ece7e8;
  border-radius: .875rem;
  background: #fff;
}
.trust-logo-badge img { width: auto; max-width: 180px; height: 100%; object-fit: contain; }
.trust-logo-badge--featured { height: 104px; padding: 1.05rem 1.4rem; }
.trust-logo-badge--featured img { max-width: 220px; }

/* ===== Section 6: Managed-service marquee strip ===== */
.ppc-marquee-section { padding: .95rem 1rem; overflow: hidden; background: linear-gradient(90deg, #450a0a, #7f1d1d, #450a0a); }
.ppc-marquee-track { display: flex; width: 100%; justify-content: center; }
.ppc-marquee-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .625rem;
  padding: .25rem clamp(1rem, 3vw, 2.25rem);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ppc-marquee-item + .ppc-marquee-item { border-left: 1px solid rgba(255, 255, 255, .3); }

/* ===== Section 7: Embedded ad demo and reusable information cards ===== */
.chatgpt-ads-mock-embed { min-width: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 1.5rem; background: #f5f5f5; box-shadow: 0 24px 60px -35px rgba(31, 10, 13, .5); }
.chatgpt-ads-mock-frame { width: 100%; height: 620px; border: 0; }
.mini-card, .objective-card, .service-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
}
.mini-card > span { display: block; margin-bottom: .75rem; color: var(--red); font-size: .72rem; font-weight: 800; }
:is(.mini-card, .objective-card, .service-card) h3 { margin-bottom: .5rem; color: #0f172a; font-size: 1.05rem; font-weight: 800; }
:is(.mini-card, .objective-card, .service-card) p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.service-card > svg { width: 2.25rem; height: 2.25rem; margin-bottom: 1.1rem; padding: .45rem; border-radius: .6rem; background: #fff1f2; color: var(--red); }
.objective-card > span { display: inline-flex; margin-bottom: 1rem; padding: .35rem .6rem; border-radius: .45rem; background: #fee2e2; color: #b91c1c; font-size: .72rem; font-weight: 800; }

/* ===== Section 8: Performance proof cards (retained for reusable page content) ===== */
.performance-proof-section { background: #faf7f8; }
.performance-proof-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: 2.5rem; }
.performance-proof-intro .heading-display { max-width: 12ch; }
.performance-proof-intro > p { max-width: 39rem; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.performance-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.performance-proof-card { overflow: hidden; border: 1px solid var(--border); border-radius: 1.1rem; background: #fff; box-shadow: 0 12px 30px rgba(31, 4, 9, .06); }
.performance-proof-image { display: grid; height: 13.5rem; padding: .8rem; place-items: center; border-bottom: 1px solid #e8edf3; background: #f7f9fc; }
.performance-proof-image img { width: 100%; height: 100%; object-fit: contain; }
.performance-proof-copy { padding: 1.35rem 1.5rem 1.5rem; border-top: 3px solid #fecaca; }
.performance-proof-metric { margin-bottom: .8rem; padding: .4rem .55rem; border-left: 3px solid var(--red); border-radius: .25rem; background: #fff1f2; color: #b91c1c; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.performance-proof-copy h3 { margin-bottom: .75rem; color: var(--ink); font-size: 1.08rem; font-weight: 800; }
.performance-proof-copy > p:not(.performance-proof-metric) { color: var(--muted); font-size: .8rem; line-height: 1.68; }
.performance-proof-copy > span { display: block; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #e8edf3; color: #64748b; font-size: .7rem; font-style: italic; }

/* ===== Section 9: Regional availability map, status, legend, and tooltip ===== */
.regional-availability-compact { background: #fff1f2; }
.regional-availability-layout { display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.regional-availability-copy, .availability-layout, .chatgpt-map-card, .chatgpt-map-shell { min-width: 0; }
.regional-availability-copy .heading-display { margin-bottom: 1.25rem; font-size: clamp(2rem, 3.7vw, 3.25rem); }
.regional-availability-copy .body-copy { font-size: .84rem; line-height: 1.65; }
.availability-layout { display: grid; grid-template-columns: 1fr; }
.chatgpt-map-card { width: 100%; max-width: 52rem; margin-inline: auto; padding: .8rem; border: 1px solid var(--border); border-radius: 1rem; background: #fff; }
.chatgpt-map-shell { position: relative; overflow: hidden; min-height: 240px; aspect-ratio: 1100/590; border: 1px solid #d8dde2; border-radius: 14px; background: #dfeaf2; }
#world-map { width: 100%; height: 100%; min-height: 240px; }
#world-map .country { fill: #e5e7eb; stroke: #fff; stroke-width: .55; }
#world-map .country.highlighted { fill: var(--red); stroke-width: .8; }
.chatgpt-map-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; background: rgba(223, 234, 242, .92); color: #475569; font-size: .8rem; text-align: center; }
.chatgpt-map-loading[hidden] { display: none; }
.chatgpt-map-loading.is-error { color: #991b1b; }
.chatgpt-map-legend { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: .85rem; color: #64748b; font-size: .72rem; }
.chatgpt-map-legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.chatgpt-map-swatch { width: .75rem; height: .75rem; border: 1px solid #cbd5e1; border-radius: .2rem; background: #e5e7eb; }
.chatgpt-map-swatch.is-approved { border-color: #b91c1c; background: var(--red); }
.chatgpt-map-tooltip { position: fixed; z-index: 100; display: none; pointer-events: none; padding: .45rem .6rem; border-radius: .45rem; background: rgba(20, 24, 28, .94); color: #fff; font-size: .72rem; font-weight: 600; }
.chatgpt-map-tooltip.is-visible { display: block; }

/* ===== Section 10: Agency value proposition and credential panel ===== */
.agency-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .55fr); gap: clamp(2.5rem, 5vw, 5rem); }
.agency-content { padding: .75rem 0; }
.agency-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin-top: 2.5rem; }
.agency-principles article { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: 1.4rem 0 1.55rem; border-top: 1px solid var(--border); }
.agency-principles article > span { color: var(--red); font-size: .7rem; font-weight: 800; }
.agency-principles h3 { margin-bottom: .55rem; color: var(--ink); font-size: .98rem; font-weight: 800; }
.agency-principles p { color: var(--muted); font-size: .8rem; line-height: 1.65; }
.agency-proof-panel { position: relative; min-height: 37rem; overflow: hidden; padding: 2rem; border-radius: 1.4rem; isolation: isolate; background: #210407; color: #fff; }
.agency-proof-panel::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(24, 3, 7, .76), rgba(24, 3, 7, .08) 38%, rgba(24, 3, 7, .98)); content: ""; }
.agency-mascot-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.agency-proof-top > span { display: block; max-width: 10rem; color: #fda4af; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.agency-proof-top strong { display: block; font: 700 clamp(3.2rem, 5vw, 4.8rem)/.9 Oswald, sans-serif; text-transform: uppercase; }
.agency-proof-bottom { position: absolute; right: 2rem; bottom: 2rem; left: 2rem; }
.agency-proof-bottom p { color: #fecdd3; font-size: .76rem; font-weight: 700; }
.agency-proof-bottom span { display: block; padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .78rem; font-weight: 700; }

/* ===== Section 11: Closing opportunity call to action ===== */
.opportunity-section { position: relative; overflow: hidden; background: #210407; }
.opportunity-layout { display: block; }
.opportunity-copy { max-width: 48rem; }
.opportunity-copy .section-eyebrow { color: #fda4af; }
.opportunity-copy .heading-display { color: #fff; }
.opportunity-copy > p:not(.section-eyebrow) { margin-bottom: 1.1rem; color: #fecdd3; font-size: .98rem; line-height: 1.8; }
.opportunity-copy > p:last-child { margin-bottom: 0; }
.agency-kicker { display: block; margin-bottom: .45rem; color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.opportunity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.35rem; }
.opportunity-actions .opportunity-cta { margin-top: 0; }
.opportunity-cta { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .55rem; margin-top: 1.35rem; padding: .85rem 1.3rem; border-radius: .75rem; background: var(--red); color: #fff; font-size: .82rem; font-weight: 800; }
.opportunity-cta svg { width: 1rem; height: 1rem; }

/* ===== Section 12: White-label agency offer strip ===== */
.white-label-section { padding-block: 1.35rem !important; border-block: 1px solid #fecaca; background: #fff7f7; }
.white-label-strip { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 4rem); }
.white-label-strip-copy { max-width: 45rem; }
.white-label-strip h2 { margin-bottom: .35rem; color: var(--ink); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 800; }
.white-label-strip-copy > p:not(.agency-kicker) { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.white-label-strip-cta { display: inline-flex; min-height: 3.1rem; flex: 0 0 auto; align-items: center; gap: .55rem; padding: .8rem 1.15rem; border-radius: .75rem; background: var(--red); color: #fff; font-size: .78rem; font-weight: 800; }
.white-label-strip-cta svg { width: 1rem; height: 1rem; }

/* ===== Section 13: Clutch review widget and loading fallback ===== */
.chatgpt-ads-page .clutch-reviews-section { padding: 2rem 0 4rem; background: #f8fafc; }
.chatgpt-ads-page .clutch-reviews-container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.clutch-reviews-header { margin-bottom: 2.5rem; text-align: center; }
.clutch-review-badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding: .25rem .75rem; border: 1px solid #fecaca; border-radius: 9999px; background: #fef2f2; }
.clutch-review-badge svg { width: .875rem; height: .875rem; flex: 0 0 auto; color: var(--red); }
.clutch-review-badge span { color: #b91c1c; font-size: .75rem; font-weight: 500; letter-spacing: .05em; line-height: 1rem; text-transform: uppercase; }
.clutch-reviews-header .heading-display { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: .01em; line-height: 1.05; }
.heading-gradient { background: linear-gradient(to bottom right, #ef4444, var(--dark-red)); background-clip: text; color: transparent; -webkit-background-clip: text; }
.clutch-widget-wrap { position: relative; width: 100%; min-height: 300px; }
.clutch-widget-fallback { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: .75rem; background: #fff; color: #b91c1c; font-size: .84rem; font-weight: 700; text-align: center; }
.clutch-widget-fallback[hidden] { display: none; }
.clutch-widget { position: relative; z-index: 1; min-height: 300px; }

/* ===== Section 14: FAQ accordion ===== */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .75rem; }
.faq-item { overflow: hidden; border: 1px solid var(--border); border-radius: .75rem; background: #fff; }
.faq-question { display: flex; width: 100%; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; color: #1e293b; font-size: .86rem; font-weight: 700; text-align: left; }
.faq-question svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: #94a3b8; transition: transform .2s; }
.faq-question[aria-expanded="true"] { background: #fff7f7; }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding-inline: 1.25rem; color: #64748b; font-size: .9rem; line-height: 1.7; transition: max-height .25s, padding .25s; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 16rem; padding-bottom: 1.2rem; }

/* ===== Section 15: Responsive layout and reduced-motion adjustments ===== */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .faq-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-\[320px_minmax\(0\,1fr\)\] { grid-template-columns: 320px minmax(0, 1fr); }
  .lg\:grid-cols-\[360px_minmax\(0\,1fr\)\] { grid-template-columns: 360px minmax(0, 1fr); }
  .lg\:grid-cols-\[420px_minmax\(0\,1fr\)\] { grid-template-columns: 420px minmax(0, 1fr); }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_380px\] { grid-template-columns: minmax(0, 1fr) 380px; }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_400px\] { grid-template-columns: minmax(0, 1fr) 400px; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:justify-end { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .agency-layout, .performance-proof-intro { grid-template-columns: 1fr; }
  .regional-availability-layout { grid-template-columns: minmax(0, 1fr); }
  .agency-proof-panel { min-height: 28rem; }
  .performance-proof-grid { grid-template-columns: 1fr; }
  .performance-proof-card { display: grid; grid-template-columns: minmax(14rem, .8fr) 1.2fr; }
  .white-label-strip { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
  main > section:not(.hero-section-chatgpt) { padding: 3.5rem 1rem; }
  .chatgpt-map-shell { height: clamp(10rem, 55vw, 13.75rem); min-height: 0; aspect-ratio: auto; }
  #world-map { height: 100%; min-height: 0; }
  .chatgpt-ads-page .clutch-reviews-section { padding: 1.75rem 0 3rem; }
  .chatgpt-ads-page .clutch-reviews-container { padding: 0 1rem; }
  .clutch-reviews-header { margin-bottom: 2rem; }
  .heading-display { font-size: clamp(2.15rem, 10vw, 3.2rem); }
  .chatgpt-ads-mock-frame { height: 560px; }
  .ppc-marquee-track { justify-content: flex-start; overflow-x: auto; }
  .hero-secondary { text-align: center; }
  .trust-logo-badge { width: calc(50% - .65rem); height: 72px; }
  .trust-logo-badge--featured { height: 88px; }
}
@media (max-width: 700px) {
  .agency-principles { grid-template-columns: 1fr; }
  .agency-proof-panel { min-height: 25rem; padding: 1.5rem; }
  .performance-proof-card { display: block; }
  .performance-proof-image { height: 13rem; }
  .opportunity-actions > a, .white-label-strip-cta { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .trust-logo-badge { width: 100%; }
  .chatgpt-map-legend { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
