/* ============================================
   DAO Funnel — Editorial Style CSS
   Clean, fast, magazine-like design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { content-visibility: auto; }

:root {
  --brand: #1a6b4e;
  --brand-light: #e8f5ef;
  --brand-dark: #0f4030;
  --accent: #d4a038;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-warm: #fefbf4;
  --border: #e2e5ea;
  --red: #c0392b;
  --green: #27ae60;
  --accent-dark: #b8882a;
  --dark: #1a1a2e;
  --dark-hover: #2d2d48;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-w: 740px;
  --max-w-wide: 960px;
}

html { font-size: 17px; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }

p { margin-bottom: 1.25rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }

/* --- Header / Nav --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  will-change: transform;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w-wide);
}

.site-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: 1.5rem;
}

/* --- Article Header --- */
.article-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  max-width: 680px;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- Disclosure Banner --- */
.disclosure {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* --- Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  min-width: 640px;
}

.comparison-table th {
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tr:nth-child(even) { background: var(--bg-alt); }

.comparison-table tr.winner {
  background: var(--brand-light);
  font-weight: 600;
}

.comparison-table tr.winner td:first-child {
  position: relative;
}

.badge-winner {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }
.star { color: var(--accent); }

/* --- Product Review Cards --- */
.product-review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.product-review.featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow);
}

.product-review h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.product-rank.other { background: var(--text-muted); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
}

.pros-cons ul { list-style: none; padding: 0; }
.pros-cons li { padding: 0.25rem 0; padding-left: 1.5rem; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: "✗"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* --- CTA Sections --- */
.cta-box {
  background: var(--brand-light);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-box h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover { background: var(--brand-dark); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--lg {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* --- Sticky CTA Bar --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta p {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.sticky-cta .btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }

/* --- Offer Page --- */
.offer-hero {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--bg) 100%);
  padding: 3rem 0;
  text-align: center;
}

.offer-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.offer-hero .subtitle { font-size: 1.1rem; color: var(--text-light); }

/* Pricing Tiers */
.pricing-section { padding: 3rem 0; }

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-toggle button {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--brand);
  background: var(--bg);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.pricing-toggle button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pricing-toggle button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.pricing-toggle button.active {
  background: var(--brand);
  color: #fff;
}

.pricing-toggle .save-badge {
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.pricing-card.popular {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card.popular .card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-card .tier-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.pricing-card .bottles {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
}

.pricing-card .price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.pricing-card .price-per-bottle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.pricing-card .original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pricing-card .save-amount {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: 1.25rem;
}

/* --- Features / Benefits --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  text-align: center;
  padding: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.feature h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.feature p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* --- Trust Signals --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item { display: flex; align-items: center; gap: 0.4rem; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-q {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.95rem;
  color: var(--text-light);
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: 0.75rem;
}

/* --- Waitlist Form --- */
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.waitlist-form h3 {
  text-align: center;
  margin: 0 0 0.25rem;
}

.waitlist-form p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,107,78,0.1);
}

.waitlist-form .btn { width: 100%; margin-top: 0.5rem; }

/* --- Thank You --- */
.thankyou-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.thankyou-card {
  max-width: 520px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.thankyou-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.thankyou-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }

.thankyou-card p { color: var(--text-light); }

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); margin: 0 0.75rem; }

.footer-disclaimer {
  max-width: var(--max-w);
  margin: 1rem auto 0;
  font-size: 0.72rem;
  line-height: 1.6;
}

/* --- Callout Box --- */
.callout {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child { margin-bottom: 0; }

/* --- Responsive --- */
/* --- Related Articles responsive --- */
@media (max-width: 560px) {
  .related-articles-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .article-header h1 { font-size: 1.7rem; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .pricing-card.popular { transform: none; }

  .features { grid-template-columns: 1fr; gap: 0.5rem; }

  .pros-cons { grid-template-columns: 1fr; }

  .trust-bar { flex-direction: column; align-items: center; gap: 0.75rem; }

  .sticky-cta p { display: none; }

  .site-nav a { margin-left: 0.75rem; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .article-header h1 { font-size: 1.45rem; }
  .pricing-card { padding: 1.25rem; }
  .pricing-card .price { font-size: 1.8rem; }
}
