/*
Theme Name: AdFlow AI
Theme URI: https://slategrey-goshawk-377688.hostingersite.com
Author: Helium Digital
Author URI: https://heliumdigital.co
Description: Custom landing page theme for AdFlow AI, a Helium Digital brand.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adflow
*/

:root {
  --af-ink: #0F1B2D;
  --af-ink-deep: #0A1320;
  --af-text: #0F1B2D;
  --af-muted: #4A5568;
  --af-soft: #33415C;
  --af-line: #E3E8E6;
  --af-mist: #F5F7F6;
  --af-accent: #0B7A6E;
  --af-accent-hover: #075A51;
  --af-amber: #F2A541;
  --af-on-dark: #C9D3E0;
  --af-on-dark-muted: #9FB0C4;
  --af-display: 'Space Grotesk', system-ui, sans-serif;
  --af-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--af-text); font-family: var(--af-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--af-accent); }
a:hover { color: var(--af-accent-hover); }
h1, h2, h3 { margin: 0; color: inherit; }
p { margin: 0; }

.af-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.af-wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.af-section { padding: 96px 0; }
.af-section.mist { background: var(--af-mist); }
.af-section.dark { background: var(--af-ink); color: #fff; }

.af-kicker { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--af-accent); }
.dark .af-kicker, .af-hero .af-kicker { color: var(--af-amber); }
.af-h2 { font-family: var(--af-display); font-size: 40px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.af-lead { font-size: 18px; line-height: 1.6; color: var(--af-muted); }
.dark .af-lead { color: var(--af-on-dark); }
.af-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.af-head .af-h2 { margin-bottom: 16px; }

/* Buttons */
.af-btn { display: inline-block; padding: 16px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; transition: background .15s ease, border-color .15s ease; }
.af-btn-primary { background: var(--af-accent); color: #fff !important; }
.af-btn-primary:hover { background: var(--af-accent-hover); }
.af-btn-ghost { color: #fff !important; padding: 14px 26px; border: 2px solid rgba(255,255,255,.4); }
.af-btn-ghost:hover { border-color: #fff; }
.af-btn-ink { background: var(--af-ink); color: #fff !important; }
.af-btn-ink:hover { background: #1B2B44; }
.af-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.af-header { background: #fff; border-bottom: 1px solid var(--af-line); position: sticky; top: 0; z-index: 50; }
.af-header .af-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.af-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--af-text); }
.af-logo:hover { color: var(--af-text); }
.af-logo svg { width: 38px; height: 38px; flex: none; }
.af-wordmark { font-family: var(--af-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
.af-wordmark span { font-weight: 500; color: var(--af-accent); }
.af-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.af-nav a { color: var(--af-soft); text-decoration: none; }
.af-nav a:hover { color: var(--af-text); }
.af-nav .af-btn { padding: 12px 20px; font-size: 15px; }

/* Hero */
.af-hero { background: var(--af-ink); color: #fff; }
.af-hero .af-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.af-hero-copy { flex: 1 1 460px; min-width: 0; }
.af-hero h1 { font-family: var(--af-display); font-size: 56px; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin-bottom: 22px; }
.af-hero-lead { font-size: 19px; line-height: 1.6; color: var(--af-on-dark); max-width: 560px; margin-bottom: 32px; }
.af-hero-note { margin-top: 22px; font-size: 14px; color: var(--af-on-dark-muted); }
.af-hero-card-wrap { flex: 1 1 420px; min-width: 0; }
.af-hero-card { background: #fff; color: var(--af-text); border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.af-hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.af-hero-card-top strong { font-family: var(--af-display); font-size: 18px; }
.af-hero-card-top span { font-size: 13px; color: var(--af-muted); }
.af-camp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--af-line); border-radius: 10px; margin-bottom: 10px; }
.af-camp div { display: flex; flex-direction: column; gap: 2px; }
.af-camp strong { font-size: 15px; }
.af-camp small { font-size: 13px; color: var(--af-muted); }
.af-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.af-pill.live { color: #075A51; background: #E3F4F1; }
.af-pill.draft { color: #7A4A06; background: #FDF0DA; }
.af-ai-tip { margin-top: 18px; padding: 14px 16px; background: var(--af-mist); border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--af-soft); }
.af-ai-tip svg { flex: none; }

/* Channels */
.af-channels { background: var(--af-mist); border-bottom: 1px solid var(--af-line); }
.af-channels .af-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding-top: 28px; padding-bottom: 28px; }
.af-channels .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--af-muted); }
.af-channels .ch { font-weight: 600; font-size: 16px; }

/* Grids and cards */
.af-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.af-grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.af-card { border: 1px solid var(--af-line); border-radius: 14px; padding: 28px; background: #fff; }
.af-card h3 { font-size: 19px; margin-bottom: 10px; }
.af-card p { color: var(--af-muted); }
.af-card svg { display: block; margin-bottom: 12px; }

.af-step { display: flex; flex-direction: column; gap: 12px; }
.af-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--af-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--af-display); font-weight: 700; font-size: 20px; }
.af-step h3 { font-size: 20px; margin-top: 4px; }
.af-step p { color: var(--af-muted); }

/* Pricing */
.af-plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 920px; margin: 0 auto; }
.af-plan { background: #fff; color: var(--af-text); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.af-plan.featured { outline: 3px solid var(--af-amber); }
.af-plan h3 { font-family: var(--af-display); font-size: 24px; }
.af-plan .sub { font-size: 15px; color: var(--af-muted); margin-top: 6px; }
.af-plan .price { font-family: var(--af-display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.af-plan .price span { font-size: 16px; font-weight: 500; color: var(--af-muted); }
.af-plan .fee { font-size: 14px; color: var(--af-muted); margin-top: -10px; }
.af-plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.af-plan .af-btn { margin-top: auto; }
.af-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A4A06; background: #FDF0DA; padding: 5px 10px; border-radius: 100px; }

/* Cross-sell */
.af-split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.af-split > div { flex: 1 1 420px; min-width: 0; }
.af-split .af-h2 { margin-bottom: 16px; }
.af-link-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--af-line); border-radius: 14px; text-decoration: none; color: var(--af-text); margin-bottom: 16px; transition: border-color .15s ease; }
.af-link-card:hover { border-color: var(--af-accent); color: var(--af-text); }
.af-link-card strong { font-family: var(--af-display); font-size: 20px; }
.af-link-card span { color: var(--af-muted); }
.af-link-card em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--af-accent); }

/* FAQ */
.af-faq { display: flex; flex-direction: column; gap: 12px; }
.af-faq details { background: #fff; border: 1px solid var(--af-line); border-radius: 12px; padding: 0 24px; }
.af-faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 24px; font-weight: 400; color: var(--af-accent); }
.af-faq details[open] summary::after { content: "\2013"; }
.af-faq details p { padding-bottom: 20px; color: var(--af-muted); }

/* Final CTA */
.af-final { text-align: center; padding: 88px 0; }
.af-final .af-wrap-narrow { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.af-final .af-btns { justify-content: center; margin-top: 8px; }

/* Footer */
.af-footer { background: var(--af-ink-deep); color: var(--af-on-dark-muted); padding: 48px 0; font-size: 14px; }
.af-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.af-footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.af-footer-brand .af-logo { color: #fff; }
.af-footer-brand .af-wordmark span { color: #3CCFB9; }
.af-footer-brand p { max-width: 320px; }
.af-footer-brand a.helium { color: #fff; }
.af-footer-col { display: flex; flex-direction: column; gap: 8px; }
.af-footer-col h4 { margin: 0; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; }
.af-footer-col a { color: var(--af-on-dark-muted); text-decoration: none; }
.af-footer-col a:hover { color: #fff; }
.af-footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid #1E2A3B; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.af-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.af-legal a { color: var(--af-on-dark-muted); text-decoration: none; }
.af-legal a:hover { color: #fff; }
@media (min-width: 761px) {
  .af-footer-bottom { flex-wrap: nowrap; align-items: center; }
  .af-footer-bottom > span, .af-legal a { white-space: nowrap; }
  .af-legal { flex-wrap: nowrap; }
}

/* Basic page fallback */
.af-page { padding: 72px 0; }
.af-page h1 { font-family: var(--af-display); font-size: 40px; margin-bottom: 24px; }
.af-page .entry > * + * { margin-top: 1em; }

/* Mobile */
@media (max-width: 760px) {
  .af-section { padding: 64px 0; }
  .af-hero .af-wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .af-hero h1 { font-size: 38px; }
  .af-hero-lead { font-size: 17px; }
  .af-h2 { font-size: 30px; }
  .af-head { margin-bottom: 40px; }
  .af-nav { gap: 14px 18px; font-size: 14px; }
  .af-nav .hide-sm { display: none; }
  .af-plan { padding: 28px; }
  .af-header { position: static; }
}
