/* ==========================================================================
   KL AI Solutions — ChatGPT Ads landing page
   Black & white editorial styling. Mobile-first.
   ========================================================================== */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-light: #f4f3f1;
  --gray-border: #dedad4;
  --gray-text: #5a5a58;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1220px;
  --pad: 20px;

  --section-pad: 36px;
  --section-pad-compact: 26px;
}

@media (min-width: 641px) {
  :root {
    --pad: 36px;
    --section-pad: 48px;
    --section-pad-compact: 34px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad: 64px;
    --section-pad: 72px;
    --section-pad-compact: 44px;
  }
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.section-dark a:focus-visible,
.section-dark button:focus-visible {
  outline-color: var(--white);
}

/* ---- Layout helpers ---- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: var(--section-pad) 0;
}
.section-compact {
  padding: var(--section-pad-compact) 0;
}
.center { text-align: center; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0 0 16px;
}
.eyebrow.center { text-align: center; }
.eyebrow.on-dark { color: #b5b3ae; }

.hero-heading,
.section-heading {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-heading {
  font-size: clamp(52px, 5vw, 76px);
  line-height: 1.02;
  margin: 0 auto 15px;
  max-width: 1120px;
}
.section-heading {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.hero-heading .accent,
.section-heading .accent {
  display: block;
  font-style: italic;
  font-weight: 500;
}
.hero-heading .accent {
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.0;
}
.section-heading .accent {
  font-size: clamp(22px, 3.4vw, 34px);
}
.section-heading.center,
.eyebrow.center { max-width: 780px; margin-left: auto; margin-right: auto; }
.section-heading.center { text-align: center; }

.section-dark .section-heading,
.section-dark .eyebrow { color: var(--white); }

.section-compact .eyebrow { margin-bottom: 12px; }
.section-compact .section-heading { margin-bottom: 14px; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #2b2b2b; }

.btn-small {
  padding: 10px 18px;
  font-size: 12px;
}
.btn-large {
  padding: 18px 32px;
  font-size: 13px;
}
.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-on-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-on-dark:hover { background: #e6e6e6; }

.btn-outline-on-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-on-dark:hover { background: var(--white); color: var(--black); }

/* ---- Anchor offset for sticky header ---- */
#top, #why-now, #how-it-works, #pricing, #who-its-for, #faq, #get-started {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-mark { width: 78px; height: 78px; object-fit: contain; }
.site-nav ul {
  display: flex;
  gap: 32px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--black); }

.nav-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--gray-border);
}
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--black);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--gray-border);
  transition: max-height 0.25s ease;
}
.mobile-nav.open {
  max-height: 400px;
  border-top-width: 1px;
}
.mobile-nav ul {
  padding: 16px var(--pad) 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a { font-size: 15px; font-weight: 500; }
.mobile-nav .btn { margin-top: 8px; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
}
@media (max-width: 899px) {
  .site-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 64px);
  text-align: center;
}
.hero-inner {
  max-width: 1180px;
}
.hero-copy {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 17px;
  color: var(--gray-text);
  text-align: left;
}
.hero-copy p:not(:last-child) { margin-bottom: 10px; }
.hero .eyebrow { text-align: center; }

@media (max-width: 640px) {
  .hero-heading {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.1;
    margin-bottom: 24px;
  }
  .hero-heading .accent {
    font-size: clamp(26px, 7vw, 34px);
  }
}

.support-line {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gray-text);
}

/* ==========================================================================
   Visual explainer
   ========================================================================== */
.visual-explainer-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--gray-text);
  font-size: 18px;
  text-align: center;
}
.visual-explainer-image {
  display: block;
  width: 100%;
  max-width: 1160px;
  height: auto;
  margin: clamp(40px, 6vw, 72px) auto 0;
}

/* ==========================================================================
   Split sections (Why Now / Why KL / 90-day)
   ========================================================================== */
.split-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.split-body {
  color: var(--gray-text);
  font-size: 17px;
}
.split-body .btn { margin-top: 10px; color: var(--black); }
.section-compact .split-body p { margin-bottom: 10px; }

@media (min-width: 900px) {
  .split-inner {
    grid-template-columns: 48% 1fr;
    gap: 44px;
    align-items: start;
  }
  .split-head { position: sticky; top: 96px; }
  .split-inner.split-tight {
    grid-template-columns: 42% 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how-it-works .how-copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--gray-text);
  font-size: 18px;
}
.how-it-works .how-copy p { margin-bottom: 6px; }

/* ==========================================================================
   Need a Website (secondary service)
   ========================================================================== */
.website-copy {
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--gray-text);
  font-size: 18px;
}
.website-copy p { margin-bottom: 6px; }

/* ==========================================================================
   Pricing (dark)
   ========================================================================== */
.section-dark {
  background: var(--black);
  color: var(--white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 820px;
  margin: 48px auto 0;
}
.pricing-col { text-align: center; }
.price {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  margin: 0 0 6px;
}
.price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5b3ae;
  margin: 0 0 16px;
}
.price-desc {
  color: #d4d3cf;
  font-size: 16px;
  max-width: 340px;
  margin: 0 auto;
}
.price-note {
  margin-top: 10px;
  font-size: 14px;
  color: #9a9894;
}
.pricing-divider {
  display: none;
}

.pricing-footnote {
  max-width: 600px;
  margin: 56px auto 0;
  text-align: center;
  border-top: 1px solid #333331;
  padding-top: 40px;
}
.pricing-footnote-heading {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.pricing-footnote p { color: #d4d3cf; }
.pricing-footnote .btn { margin-top: 20px; }

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 48px;
  }
  .pricing-divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background: #333331;
  }
}

/* ==========================================================================
   Gray sections
   ========================================================================== */
.section-gray { background: var(--gray-light); }

/* ==========================================================================
   Audience grid
   ========================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
  margin: 0 auto 36px;
  max-width: 940px;
}
.audience-item {
  background: var(--white);
  padding: 32px;
}
.audience-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
}
.audience-item p { color: var(--gray-text); font-size: 16px; }

@media (min-width: 700px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Get Started / Form
   ========================================================================== */
.form-inner { max-width: 760px; }
.form-intro {
  text-align: center;
  color: var(--gray-text);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 17px;
}
.tally-embed-wrap {
  width: 100%;
}
.tally-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

.disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-inner { max-width: 820px; }
.faq-list {
  border-top: 1px solid var(--gray-border);
}
.faq-item {
  border-bottom: 1px solid var(--gray-border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-answer {
  padding: 0 4px 24px;
  color: var(--gray-text);
  font-size: 16px;
  max-width: 680px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta .section-heading { max-width: 820px; margin-left: auto; margin-right: auto; }
.final-cta-copy {
  max-width: 480px;
  margin: 0 auto 40px;
  color: #d4d3cf;
}
.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
@media (min-width: 560px) {
  .final-cta-buttons { flex-direction: row; justify-content: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--gray-border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
}
.footer-tagline {
  font-size: 13px;
  color: var(--gray-text);
  margin: 2px 0 0;
}
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 820px;
  margin: 0;
}

/* ==========================================================================
   Utility: prevent horizontal overflow
   ========================================================================== */
html, body { overflow-x: hidden; }
