/* ============================================================
   MowAutonomous.com — Wire-Free Robot Mower Authority
   Stylesheet (single file, minimal, dark/light mode)
   ============================================================ */

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

:root {
  /* Light mode (default) */
  --bg: #ffffff;
  --bg-soft: #f7faf8;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --content-width: 760px;
  --header-h: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1410;
    --bg-soft: #131c17;
    --bg-elev: #161f1a;
    --text: #e5e7eb;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --border: #1f2a23;
    --border-strong: #2c3a31;
    --accent: #22c55e;
    --accent-hover: #4ade80;
    --accent-soft: #14361f;
    --warn: #fbbf24;
    --warn-soft: #2a200a;
    --danger: #f87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

/* Manual dark mode via data-theme attribute */
[data-theme="dark"] {
  --bg: #0c1410;
  --bg-soft: #131c17;
  --bg-elev: #161f1a;
  --text: #e5e7eb;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --border: #1f2a23;
  --border-strong: #2c3a31;
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --accent-soft: #14361f;
  --warn: #fbbf24;
  --warn-soft: #2a200a;
  --danger: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- 2. Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-tight { padding: 24px 0; }

.bg-soft { background: var(--bg-soft); }
.bg-accent-soft { background: var(--accent-soft); }

/* ---------- 3. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.main-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-sun { display: block; }
  .theme-toggle .icon-moon { display: none; }
  [data-theme="light"] .theme-toggle .icon-sun { display: none; }
  [data-theme="light"] .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: 8px; color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 16px;
    border-top: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 12px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 5. Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: 1.18rem; color: var(--text-muted); max-width: 640px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; color: var(--text-subtle); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- 6. Typography (article content) ---------- */
.article { font-size: 1.0625rem; }
.article h1, .article h2, .article h3, .article h4 { color: var(--text); line-height: 1.3; letter-spacing: -0.01em; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 16px; font-weight: 800; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 16px; padding-top: 12px; font-weight: 700; }
.article h3 { font-size: 1.35rem; margin: 32px 0 12px; font-weight: 700; }
.article h4 { font-size: 1.1rem; margin: 24px 0 8px; font-weight: 600; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article blockquote {
  margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-muted);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article img { border-radius: var(--radius-md); margin: 24px 0; box-shadow: var(--shadow-sm); }
.article strong { color: var(--text); font-weight: 700; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- 7. Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-meta { font-size: 0.85rem; color: var(--text-subtle); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.card-excerpt { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.card-cta { margin-top: 16px; }
.card-tag {
  display: inline-block; padding: 3px 10px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- 8. Comparison Table ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 600px; }
table.cmp thead { background: var(--bg-soft); }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp th { font-weight: 700; color: var(--text); white-space: nowrap; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: var(--bg-soft); }
table.cmp .row-label { font-weight: 600; background: var(--bg-soft); }
table.cmp .product-name { font-weight: 700; color: var(--text); }
table.cmp .price { font-weight: 700; color: var(--accent); }
table.cmp .rating { color: var(--warn); font-weight: 600; }
table.cmp .yes { color: var(--accent); font-weight: 600; }
table.cmp .no { color: var(--danger); font-weight: 600; }

/* ---------- 9. CTA Box ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-soft));
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cta-box .cta-text { flex: 1 1 280px; }
.cta-box h4 { margin: 0 0 4px; color: var(--text); font-size: 1.1rem; }
.cta-box p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.cta-box .btn { flex: 0 0 auto; }

/* ---------- 10. Disclosure ---------- */
.disclosure {
  background: var(--bg-soft); border-left: 4px solid var(--warn);
  padding: 12px 16px; margin: 16px 0 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem; color: var(--text-muted);
}

/* ---------- 11. Article meta ---------- */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  color: var(--text-subtle); font-size: 0.9rem; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.article-meta .author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.article-meta .author-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 0.9rem;
}
.breadcrumb {
  font-size: 0.875rem; color: var(--text-subtle); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }

/* ---------- 12. TOC ---------- */
.toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px; margin: 24px 0;
}
.toc h4 { margin: 0 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

/* ---------- 13. FAQ ---------- */
.faq { margin: 24px 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item .faq-body { padding: 16px 20px; color: var(--text-muted); }

/* ---------- 14. Pros/Cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons .col {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px;
}
.pros-cons .pros { border-top: 4px solid var(--accent); }
.pros-cons .cons { border-top: 4px solid var(--danger); }
.pros-cons h4 { margin: 0 0 10px; font-size: 1rem; }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 0.95rem; }
.pros-cons li { margin-bottom: 6px; color: var(--text-muted); }

/* ---------- 15. Spec list ---------- */
.spec-list { margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.spec-list dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; }
.spec-list dt, .spec-list dd { padding: 10px 16px; border-bottom: 1px solid var(--border); margin: 0; }
.spec-list dt { background: var(--bg-soft); font-weight: 600; color: var(--text); }
.spec-list dd { color: var(--text-muted); }
.spec-list dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 500px) {
  .spec-list dl { grid-template-columns: 1fr; }
  .spec-list dt { border-bottom: 0; }
}

/* ---------- 16. Verdict box ---------- */
.verdict {
  background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius-md);
  padding: 24px; margin: 28px 0;
}
.verdict h4 { margin: 0 0 8px; color: var(--accent-hover); font-size: 1.1rem; }
.verdict p { margin: 0; color: var(--text); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 24px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 360px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--text-subtle);
}
.footer-bottom a { color: var(--text-subtle); }

/* ---------- 18. Pillar nav (category listing) ---------- */
.list-compact { list-style: none; padding: 0; margin: 24px 0; }
.list-compact li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-compact li:last-child { border-bottom: 0; }
.list-compact a { font-weight: 600; color: var(--text); }
.list-compact a:hover { color: var(--accent); }
.list-compact .meta { font-size: 0.85rem; color: var(--text-subtle); white-space: nowrap; }

/* ---------- 19. Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 20px; background: var(--bg-soft); border-radius: var(--radius-md); }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat .label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- 20. Tag pills ---------- */
.pill { display: inline-block; padding: 3px 10px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; font-size: 0.78rem; font-weight: 500; margin: 0 4px 4px 0; }

/* ---------- 21. Section header ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- 22. Skip link / a11y ---------- */
.skip-link { position: absolute; top: -40px; left: 8px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { top: 8px; color: #fff; text-decoration: none; }

/* ---------- 23. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-box, .btn, .nav-toggle, .theme-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
}

/* ---------- 24. Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
