/* ============================================================
   TakeBackYourData.com — Main Stylesheet
   Color palette:
     Background:   #ffffff
     Light section: #f8fafc
     Text:         #1a1a2e
     Accent:       #2563eb (blue)
     Accent hover: #1d4ed8
     Border:       #e2e8f0
     Amber (disclosure): #fef3c7 / #92400e
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a2e;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Layout ---------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3rem 0;
}

section.alt-bg {
  background: #f8fafc;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: #2563eb;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #2563eb;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a2e;
  color: #94a3b8;
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-disclosure {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #2563eb;
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---------- Affiliate Disclosure Bar ---------- */
.disclosure-bar {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 60%);
}

.hero p.lead {
  font-size: 1.1rem;
  color: #475569;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* ---------- Two-Path CTA ---------- */
.two-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.path-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.path-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.path-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tag-free {
  background: #dcfce7;
  color: #166534;
}

.tag-paid {
  background: #eff6ff;
  color: #1e40af;
}

.path-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
}

.path-card ul li::before {
  content: "→ ";
  color: #2563eb;
  font-weight: 600;
}

/* ---------- Comparison Table (manual vs service) ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.compare-table th {
  background: #1a1a2e;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.compare-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.compare-table tr:nth-child(even) td {
  background: #f8fafc;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.trust-badge .icon {
  font-size: 1.1rem;
}

/* ---------- Service Review Cards ---------- */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.service-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.service-meta .pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.pros, .cons {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
}

.pros h4 { color: #16a34a; }
.cons h4 { color: #dc2626; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.pros li::before { content: "✓ "; color: #16a34a; }
.cons li::before { content: "✗ "; color: #dc2626; }

.verdict-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.verdict-box strong { color: #1e40af; }

/* ---------- Step List (opt-out guides) ---------- */
.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.step-list li::before {
  content: counter(step-counter);
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-content strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- Alert / Callout ---------- */
.callout {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.callout-info {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}

.callout-warn {
  background: #fef9c3;
  border-left: 4px solid #ca8a04;
  color: #713f12;
}

/* ---------- Verdict / Quick Answer Box ---------- */
.quick-verdict {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.quick-verdict h3 {
  color: #15803d;
  margin-bottom: 0.4rem;
}

/* ---------- Recommendation Table ---------- */
.rec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.rec-table th {
  background: #2563eb;
  color: #ffffff;
  padding: 0.65rem 1rem;
  text-align: left;
}

.rec-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.rec-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: #1a1a2e;
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
  border-radius: 12px;
  margin: 3rem 0;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* ---------- Nav Dropdown ---------- */
.site-nav li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 190px;
  padding: 0.4rem 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}

.site-nav li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.45rem 1rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f8fafc;
  color: #2563eb;
  text-decoration: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .site-header .container--wide {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .site-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .two-path {
    grid-template-columns: 1fr;
  }

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

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.5rem 0.6rem;
  }

  .service-meta {
    gap: 0.5rem;
  }

  .trust-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}

/* ---------- Utility ---------- */
.text-muted { color: #64748b; }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Quick Answer Box — AEO */
.quick-answer {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.quick-answer strong {
  color: #1e40af;
}

/* ===== UX READABILITY POLISH (2026-04-18) ===== */

/* Base readability — bump from 16px/1.65 */
body {
  font-size: 18px;
  line-height: 1.75;
}

/* Comfortable reading width */
article, .content, .page-content, main > .container {
  max-width: 780px;
}

/* Paragraph spacing */
p {
  margin-bottom: 1.25em;
}

p + p {
  margin-top: 0;
}

/* Heading rhythm */
h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Softer links with hover transition */
a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  text-decoration: none;
}

/* Visited links — content only */
main a:visited {
  color: #4f46b0;
}

/* Keep footer/nav links readable */
.site-footer a,
.site-footer a:visited {
  border-bottom-color: transparent;
}
.site-nav a,
.site-nav a:visited {
  color: inherit;
}

/* FAQ sections */
.faq-section, section:has(h2:is([id*="faq"], [id*="FAQ"])) {
  margin-top: 3rem;
}

.faq-item, .faq-section > div {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question, .faq-item h3, .faq-item strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 0.5rem;
  display: block;
}

.faq-answer, .faq-item p {
  color: #4b5563;
  line-height: 1.7;
  margin-top: 0.5rem;
}

h3 + p {
  margin-top: 0.5rem;
}

/* Mobile improvements */
@media (max-width: 768px) {
  body {
    font-size: 17px;
    line-height: 1.7;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .btn, button, a.btn, .cta-btn, .card-link, [class*="btn"] {
    min-height: 48px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  section, .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Refined quick answer box */
.quick-answer {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
