/* AIStacked — Plain HTML/CSS. No frameworks, no JS bundles, no render-blocking. */
/* This site loads in under 1 second because it's built plain, not bloated. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --green: #059669;
  --green-light: #ecfdf5;
  --red: #dc2626;
  --red-light: #fef2f2;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --border: #e5e7eb;
  --radius: 8px;
  --max-width: 720px;
  --max-width-wide: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* --- Header / Nav --- */
header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 48px 24px;
}

/* --- Typography --- */
h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 18px;
}

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 700;
}

/* --- Disclosure Badge --- */
.disclosure-badge {
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 32px;
  line-height: 1.5;
}

.disclosure-badge strong {
  color: #78350f;
}

/* --- Article Meta --- */
.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.author-info p {
  margin: 0;
  font-size: 14px;
}

.author-info .author-name {
  font-weight: 700;
  color: var(--text);
}

.author-info .author-bio {
  color: var(--text-muted);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  margin: 8px 0;
  transition: background 0.15s;
}

.cta-button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.cta-box {
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 36px 0;
}

.cta-box h3 {
  margin-top: 0;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.comparison-table th {
  background: var(--text);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

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

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

/* --- Pros / Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.pros, .cons {
  padding: 24px;
  border-radius: var(--radius);
}

.pros {
  background: var(--green-light);
  border: 1px solid #a7f3d0;
}

.cons {
  background: var(--red-light);
  border: 1px solid #fecaca;
}

.pros h4, .cons h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.pros h4 {
  color: var(--green);
}

.cons h4 {
  color: var(--red);
}

.pros ul, .cons ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.pros li, .cons li {
  margin-bottom: 6px;
}

/* --- Score Badge --- */
.score-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* --- Homepage Hero --- */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 42px;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 19px;
  max-width: 580px;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.hero .cta-button {
  background: #fff;
  color: var(--accent);
}

.hero .cta-button:hover {
  background: #f0f0f0;
}

/* --- Article Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--accent);
  text-decoration: none;
}

.card .card-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text);
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Tool Grid (Homepage) --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.tool-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.tool-card h3 {
  margin-top: 0;
}

.tool-card .tool-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-card .tool-commission {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

/* --- Footer --- */
footer {
  background: var(--text);
  color: #a0a0b0;
  padding: 48px 24px 32px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-section h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #a0a0b0;
  font-size: 14px;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* --- Newsletter Form --- */
.newsletter-box {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.newsletter-box h3 {
  margin-top: 0;
}

.newsletter-box input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  margin: 8px 0;
}

.newsletter-box input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* --- Verdict Box --- */
.verdict-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

.verdict-box .verdict-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.verdict-box p {
  margin: 0;
  font-size: 16px;
}

/* --- Methodology Box --- */
.methodology-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
}

.methodology-box strong {
  color: var(--text);
}

.methodology-box p {
  margin: 0;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 56px 20px; }
  .nav { flex-direction: column; gap: 12px; padding: 12px 20px; }
  nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .container, .container-wide { padding: 32px 20px; }
  .pros-cons { grid-template-columns: 1fr; }
  .comparison-table { font-size: 14px; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 24px; }
  .hero h1 { font-size: 26px; }
  .cta-button { display: block; text-align: center; }
}
