/* =========================================================
   Plain Automation — shared stylesheet
   Dark navy / fluorescent green, mobile-first, no frameworks
   ========================================================= */

:root {
  --bg: #0A1628;
  --bg-alt: #0E1D33;
  --bg-card: #12233D;
  --bg-inset: #0B1A2E;
  --border: #1E3355;
  --border-soft: #182B49;
  --accent: #3DFFA2;
  --accent-dim: #2BC97E;
  --accent-glow: rgba(61, 255, 162, 0.14);
  --text: #EDF2F7;
  --text-muted: #9FB0C7;
  --text-faint: #6E7F98;
  --danger: #FF7A7A;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1080px;
  --max-article: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

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

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); text-decoration: none; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-wrap {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--accent-glow), transparent 70%);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lede {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.4rem;
}

/* ---------- Buttons / CTAs ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #06121F;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(61, 255, 162, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { box-shadow: 0 6px 22px rgba(61, 255, 162, 0.18); }

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 2.2rem 0;
}
.cta-box p { color: var(--text-muted); margin-bottom: 1rem; }
.cta-box .btn { margin-top: 0.2rem; }

/* ---------- Cards ---------- */

.section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.6rem;
}
.section .section-sub {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.card .card-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--text-muted); font-size: 0.97rem; flex: 1; }
.card .card-link {
  margin-top: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Trust list ---------- */

.trust-list { list-style: none; display: grid; gap: 1rem; }
.trust-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  color: var(--text-muted);
}
.trust-list strong { color: var(--text); display: block; margin-bottom: 0.15rem; }

/* ---------- Article ---------- */

.article-header {
  padding: 3.2rem 0 1.6rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 2.2rem;
}
.article-header h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-bottom: 0.9rem; }
.article-meta {
  color: var(--text-faint);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.article-meta .updated { color: var(--accent); font-weight: 600; }

.article-body h2 {
  font-size: 1.55rem;
  margin: 2.6rem 0 0.9rem;
  padding-top: 0.4rem;
}
.article-body h3 { font-size: 1.18rem; margin: 1.8rem 0 0.6rem; }
.article-body p { margin-bottom: 1.1rem; color: #D7E0EC; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; color: #D7E0EC; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--text); }

/* Video embed (responsive 16:9) */
.video-embed { margin: 2rem 0; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

/* Quick-answer box */
.quick-answer {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0 2.2rem;
}
.quick-answer .qa-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.quick-answer p { margin-bottom: 0.5rem; }
.quick-answer p:last-child { margin-bottom: 0; }

/* Comparison table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table caption {
  text-align: left;
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-card);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare-table tbody th { color: var(--text); font-weight: 700; white-space: nowrap; }
.compare-table tbody td { color: #C7D3E4; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .winner { color: var(--accent); font-weight: 700; }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}
.pros, .cons {
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  background: var(--bg-inset);
}
.pros { border-left: 4px solid var(--accent); }
.cons { border-left: 4px solid var(--danger); }
.pros h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cons h4 { color: var(--danger); margin-bottom: 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pros ul, .cons ul { margin: 0 0 0 1.2rem; }
.pros li, .cons li { margin-bottom: 0.4rem; color: #C7D3E4; font-size: 0.96rem; }

/* Verdict box */
.verdict {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  margin: 2.6rem 0;
}
.verdict h2 { margin-top: 0 !important; }
.verdict .verdict-score {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* Note / disclaimer inline */
.note {
  font-size: 0.88rem;
  color: var(--text-faint);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin: 1.4rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  margin-top: 4rem;
  padding: 2.6rem 0 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.footer-small { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Static pages (about, disclosure, privacy) ---------- */

.page-body h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.page-body p { margin-bottom: 1.1rem; color: #D7E0EC; }
.page-body ul { margin: 0 0 1.3rem 1.4rem; color: #D7E0EC; }
.page-body li { margin-bottom: 0.45rem; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 6rem 0 4.5rem; }
}
