/* ══════════════════════════════════════════════════════
   The $20 Dollar Agency — Design System
   Color palette: Dark + Green (#1D9E75) accent
   ══════════════════════════════════════════════════════ */

:root {
  --dark: #0D0D0D;
  --dark-2: #161b16;
  --dark-3: #1a1f1a;
  --accent: #1D9E75;
  --accent-hover: #17845f;
  --accent-light: #5DCAA5;
  --accent-glow: rgba(29,158,117,0.15);
  --accent-glow-2: rgba(29,158,117,0.08);
  --gold: #f0c040;
  --gold-hover: #e0b030;
  --white: #ffffff;
  --off-white: #f4f7f5;
  --text: #e6ede8;
  --text-light: #8b9490;
  --text-dark: #1a1a1a;
  --border: #2a3630;
  --red: #e74c3c;
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif; background: var(--dark); color: var(--text); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ── Skip Link ────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--accent); color: var(--dark); padding: .5rem 1rem; border-radius: 4px; z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ── Navigation ───────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 0 2rem; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: -0.5px; }
.nav-logo .symbol { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent-light); }
.nav-links a.btn-amazon { color: #fff; }
.nav-links a.btn-amazon:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* ── Buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }
.btn-amazon { background: #FF9900; color: #fff; font-weight: 800; box-shadow: 0 2px 16px rgba(255,153,0,0.35); letter-spacing: 0.3px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.btn-amazon:hover { background: #e88a00; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 24px rgba(255,153,0,0.5); }
.btn-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-white:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Section Layout ───────────────────────────────── */
.section { padding: 80px 2rem; }
.section-dark { background: var(--dark); }
.section-dark-2 { background: var(--dark-2); }
.section-light { background: var(--off-white); color: var(--text-dark); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 640px; line-height: 1.6; }
.section-light .section-subtitle { color: #555; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 100px 2rem 80px; background: linear-gradient(170deg, var(--dark) 60%, var(--dark-2)); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: var(--accent-glow); color: var(--accent-light); font-size: .8rem; font-weight: 600; padding: .4rem 1rem; border-radius: 20px; border: 1px solid rgba(29,158,117,0.3); margin-bottom: 1.5rem; }
.hero-heading { font-size: 3.2rem; font-weight: 900; line-height: 1.08; margin-bottom: 1rem; color: var(--white); }
.hero-heading .accent { color: var(--accent); }
.hero-tagline { font-size: 1.15rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.75rem; max-width: 520px; }
.hero-price { display: inline-flex; align-items: center; gap: .75rem; background: var(--accent-glow); border: 1px solid rgba(29,158,117,0.25); border-radius: 8px; padding: .6rem 1.25rem; margin-bottom: 2rem; }
.hero-price .old { font-size: 1.5rem; color: var(--red); text-decoration: line-through; font-weight: 700; }
.hero-price .arrow { color: var(--accent); font-size: 1.2rem; }
.hero-price .new { font-size: 1.5rem; color: var(--accent); font-weight: 800; }
.hero-price .per { font-size: .8rem; color: var(--text-light); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cover { flex-shrink: 0; }
.hero-cover img { width: 340px; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow); transform: perspective(800px) rotateY(-4deg); transition: transform .3s; }
.hero-cover img:hover { transform: perspective(800px) rotateY(0deg) scale(1.02); }

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ── Problem Cards ────────────────────────────────── */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.problem-card { background: var(--white); border-radius: 8px; padding: 1.75rem; border-left: 4px solid var(--red); }
.problem-card h3 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: .5rem; }
.problem-card p { font-size: .9rem; color: #555; line-height: 1.6; }

/* ── Who It's For ─────────────────────────────────── */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.audience-item { display: flex; gap: 1rem; align-items: flex-start; }
.audience-num { font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1; flex-shrink: 0; min-width: 40px; }
.audience-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.audience-item p { font-size: .9rem; color: var(--text-light); }

/* ── Content Grid (What's Inside) ─────────────────── */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.content-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: border-color .2s, transform .2s; }
.content-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.content-card .card-label { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.content-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.content-card p { font-size: .85rem; color: var(--text-light); line-height: 1.5; }

/* ── Comparison Table ─────────────────────────────── */
.comparison-wrap { overflow-x: auto; margin-top: 2.5rem; border-radius: 8px; border: 1px solid var(--border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparison-table th, .comparison-table td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--dark-3); color: var(--text-light); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; position: sticky; top: 0; }
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.comparison-table .highlight { background: rgba(29,158,117,0.08); }
.comparison-table .highlight th { background: var(--accent); color: var(--white); }
.check { color: var(--accent); font-weight: 700; }
.cross { color: var(--red); }
.partial { color: var(--gold); }

/* ── FAQ Accordion ────────────────────────────────── */
.faq-list { margin-top: 2.5rem; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; color: var(--text); font-size: 1rem; font-weight: 600; text-align: left; padding: 1.25rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 0 1.25rem; color: var(--text-light); font-size: .95rem; line-height: 1.7; }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial { background: var(--dark-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.testimonial .stars { color: var(--gold); font-size: 1rem; margin-bottom: .75rem; }
.testimonial blockquote { font-size: .95rem; font-style: italic; color: var(--text); line-height: 1.6; margin-bottom: 1rem; }
.testimonial cite { font-size: .8rem; color: var(--text-light); font-style: normal; }

/* ── Companion Books ──────────────────────────────── */
.companion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.companion-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; text-align: center; transition: border-color .2s; }
.companion-card:hover { border-color: var(--accent); }
.companion-card .role { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.companion-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: .5rem; }
.companion-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }

/* ── About Author ─────────────────────────────────── */
.about-block { display: flex; gap: 3rem; align-items: flex-start; margin-top: 2.5rem; }
.about-block .about-text { flex: 1; }
.about-block .about-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }

/* ── CTA Section ──────────────────────────────────── */
.cta-section { text-align: center; padding: 80px 2rem; background: linear-gradient(170deg, var(--dark-2), var(--dark)); }
.cta-section .section-title { max-width: 600px; margin: 0 auto 1rem; }
.cta-section .section-subtitle { margin: 0 auto 2rem; }

/* ── Footer ───────────────────────────────────────── */
.footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 60px 2rem 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-light); font-size: .9rem; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; color: var(--text-light); }
.footer-disclaimer { max-width: 1100px; margin: 1.5rem auto 0; font-size: .75rem; color: var(--text-light); opacity: .6; line-height: 1.5; }

/* ── Blog ─────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.blog-card:hover { border-color: var(--accent); }
.blog-card-body { padding: 1.5rem; }
.blog-card .meta { font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: .5rem; }
.blog-card p { font-size: .9rem; color: var(--text-light); line-height: 1.5; margin-bottom: 1rem; }
.blog-card .read-more { font-size: .85rem; font-weight: 600; color: var(--accent); }

/* ── Post ─────────────────────────────────────────── */
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--white); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.post-content p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--text-light); }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-light); }
.post-content li { margin-bottom: .5rem; line-height: 1.6; }
.post-content a { color: var(--accent-light); text-decoration: underline; }
.post-footer { max-width: 720px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }

/* ── Sticky Buy Bar ───────────────────────────────── */
.buy-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13,13,13,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: .75rem 2rem; z-index: 90; display: none; }
.buy-bar.visible { display: block; }
.buy-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.buy-bar-text { font-size: .9rem; font-weight: 600; color: var(--white); }
.buy-bar-text .accent { color: var(--accent); }

/* ── Floating Button Stack (vertical, top-to-bottom) ── */
.floating-stack { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 80; }
.fab-btn { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: transform .2s, border-color .2s, opacity .2s; }
.fab-btn:hover { transform: scale(1.1); }
.contact-fab { background: var(--accent); color: var(--white); box-shadow: 0 3px 14px rgba(29,158,117,0.35); width: 48px; height: 48px; font-size: 1.2rem; }
.contrast-fab { background: var(--dark-2); border: 1px solid var(--border); color: var(--text-light); }
.contrast-fab:hover { border-color: var(--accent); }
.a11y-fab { background: var(--dark-2); border: 1px solid var(--border); color: var(--text-light); }
.a11y-fab:hover { border-color: var(--accent); }
.scroll-arrow { background: var(--accent); color: var(--white); box-shadow: 0 2px 10px rgba(29,158,117,0.3); display: none; }
.scroll-arrow.visible { display: flex; }
.contact-panel { position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; background: var(--dark-2); border-left: 1px solid var(--border); z-index: 200; transition: right .3s ease; overflow-y: auto; padding: 2rem; }
.contact-panel.open { right: 0; }
.contact-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; display: none; }
.contact-overlay.open { display: block; }
.contact-panel h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 1.5rem; }
.contact-panel label { display: block; font-size: .85rem; color: var(--text-light); margin-bottom: .3rem; }
.contact-panel input, .contact-panel select, .contact-panel textarea { width: 100%; padding: .65rem; background: var(--dark); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit; font-size: .9rem; margin-bottom: 1rem; }
.contact-panel textarea { min-height: 120px; resize: vertical; }
.contact-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }

/* ── Accessibility Panel ──────────────────────────── */
.a11y-panel { position: fixed; top: 0; left: -420px; width: 380px; height: 100vh; background: var(--dark-2); border-right: 1px solid var(--border); z-index: 200; transition: left .3s ease; overflow-y: auto; padding: 2rem; }
.a11y-panel.open { left: 0; }
.a11y-panel h2 { font-size: 1.2rem; color: var(--white); margin-bottom: 1.5rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.a11y-row span { font-size: .9rem; color: var(--text); }
.a11y-btn { background: var(--dark); border: 1px solid var(--border); color: var(--text); padding: .35rem .75rem; border-radius: 4px; cursor: pointer; font-size: .85rem; }
.a11y-btn:hover { border-color: var(--accent); }
.a11y-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }

/* ── High Contrast Mode ───────────────────────────── */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast .nav { background: #000 !important; border-color: #fff !important; }
body.high-contrast a { color: #0ff !important; }
body.high-contrast .btn-amazon { background: #FF9900 !important; color: #fff !important; font-weight: 900 !important; text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important; }
body.high-contrast .section-light { background: #000 !important; color: #fff !important; }
body.high-contrast .problem-card { background: #111 !important; color: #fff !important; }
body.high-contrast .problem-card p { color: #ccc !important; }

/* ── Cookie Consent ───────────────────────────────── */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark-2); border-top: 1px solid var(--border); padding: 1rem 2rem; z-index: 300; display: none; }
.cookie-bar.visible { display: flex; }
.cookie-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-bar p { font-size: .85rem; color: var(--text-light); flex: 1; }
.cookie-bar .btn { padding: .5rem 1.25rem; font-size: .85rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 1.5rem 50px; }
  .hero-inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .hero-heading { font-size: 2.2rem; }
  .hero-tagline { margin: 0 auto 1.5rem; }
  .hero-ctas { justify-content: center; }
  .hero-cover img { width: 240px; margin: 0 auto; }
  .stats-bar { justify-content: center; }
  .section { padding: 56px 1.5rem; }
  .section-title { font-size: 1.7rem; }
  .about-block { flex-direction: column; }
  .buy-bar-text { font-size: .8rem; }
  .buy-bar-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .contact-panel { width: 100%; right: -100%; }
  .a11y-panel { width: 100%; left: -100%; }
  .floating-stack { bottom: 1rem; right: 1rem; gap: .5rem; }
  .fab-btn { width: 40px; height: 40px; font-size: 1rem; }
  .contact-fab { width: 44px; height: 44px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-price { flex-wrap: wrap; justify-content: center; }
  .stats-bar { gap: 1.25rem; }
  .comparison-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .hero-heading { font-size: 1.8rem; }
  .section { padding: 40px 1rem; }
  .section-title { font-size: 1.4rem; }
  .problems-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .companion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .floating-stack { bottom: .75rem; right: .75rem; }
}

/* ── Focus Visible ────────────────────────────────── */
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Link Highlighting Mode ───────────────────────── */
body.highlight-links a { background: rgba(29,158,117,0.2) !important; outline: 2px solid var(--accent) !important; outline-offset: 2px; border-radius: 2px; }
body.highlight-links a:hover { background: rgba(29,158,117,0.35) !important; }

/* ── Lightbox ─────────────────────────────────────── */
.cover-zoomable { cursor: zoom-in; transition: transform .2s; }
.cover-zoomable:hover { transform: scale(1.02); }

/* ── Reduced Motion ───────────────────────────────── */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
