/* AIComparisonGuide.com — Global Stylesheet */
:root {
  --ink: #0F1117;
  --navy: #1B2B5E;
  --navy-mid: #243570;
  --gold: #C9A84C;
  --gold-lt: #F5EDD6;
  --white: #FFFFFF;
  --off: #F8F7F4;
  --gray: #EEECE8;
  --lgray: #F4F6FA;
  --mid: #777777;
  --border: #E0DDD6;
  --green: #1A6B3A;
  --green-lt: #EAFAF1;
  --red: #C0392B;
  --red-lt: #FDEDEC;
  --blue: #1B5EA8;
  --blue-lt: #EBF2FC;
  --teal: #0B7B6B;
  --teal-lt: #E6F5F3;
  --purple: #5B3F9A;
  --purple-lt: #F0EBFD;
  --claude-color: #C9A84C;
  --chatgpt-color: #10A37F;
  --gemini-color: #4285F4;
  --grok-color: #1DA1F2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--white); line-height: 1.75; }

/* ── NAV ── */
nav {
  background: var(--ink);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.logo { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { color: #888; text-decoration: none; font-size: 0.84rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-btn { background: var(--gold) !important; color: var(--ink) !important; padding: 7px 18px; border-radius: 6px; font-weight: 700 !important; font-size: 0.82rem !important; white-space: nowrap; }
.nav-btn:hover { background: #E8C96A !important; }

/* ── AD SLOTS ── */
.ad-slot { background: var(--lgray); border: 1px dashed #CCCCCC; border-radius: 8px; padding: 10px; text-align: center; margin: 24px auto; min-height: 90px; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; }

/* ── COMPARISON TABLES ── */
.comp-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; margin: 24px 0; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.comp-table th { background: var(--navy); color: var(--white); padding: 14px 16px; font-size: 0.9rem; text-align: left; font-weight: 700; }
.comp-table th.ai-col { text-align: center; }
.comp-table td { padding: 13px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.comp-table tr:nth-child(even) td { background: var(--off); }
.comp-table tr:nth-child(odd) td { background: var(--white); }
.comp-table .td-center { text-align: center; }
.win { color: var(--green); font-weight: 700; }
.lose { color: var(--mid); }
.tie { color: var(--gold); font-weight: 600; }
.winner-tag { display: inline-block; background: var(--green-lt); color: var(--green); font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 8px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }

/* ── ARTICLE / GUIDE LAYOUT ── */
.article-hero { background: var(--ink); padding: 56px 5% 44px; position: relative; overflow: hidden; }
.article-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-cat { display: inline-block; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35); color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 13px; border-radius: 14px; margin-bottom: 16px; }
.article-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--white); line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.02em; }
.article-meta { font-size: 0.8rem; color: #778899; }
.article-meta strong { color: #AABBCC; }

.article-wrapper { display: grid; grid-template-columns: 1fr 270px; gap: 44px; max-width: 1100px; margin: 0 auto; padding: 52px 5%; align-items: start; }
.article-body h2 { font-family: 'Fraunces', serif; font-size: 1.55rem; color: var(--navy); margin: 36px 0 14px; line-height: 1.2; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 9px; }
.article-body p { font-size: 0.97rem; line-height: 1.82; margin-bottom: 16px; color: #222; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { font-size: 0.95rem; line-height: 1.75; margin-bottom: 7px; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--teal); font-weight: 600; }
.article-body a:hover { color: var(--gold); }

/* ── CALLOUT BOXES ── */
.callout { border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.callout-blue { background: var(--lgray); border-left: 4px solid var(--navy); }
.callout-gold { background: var(--gold-lt); border-left: 4px solid var(--gold); }
.callout-green { background: var(--green-lt); border-left: 4px solid var(--green); }
.callout-red { background: var(--red-lt); border-left: 4px solid var(--red); }
.callout strong { display: block; margin-bottom: 5px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; }
.callout p { margin-bottom: 0; font-size: 0.92rem; }

/* ── VERDICT BOX ── */
.verdict-box { background: var(--green-lt); border: 2px solid var(--green); border-radius: 12px; padding: 24px 28px; margin: 28px 0; }
.verdict-box h3 { color: var(--green); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.verdict-box p { color: #145A32; font-size: 0.97rem; margin-bottom: 0; font-weight: 500; line-height: 1.7; }

/* ── CTA BOX ── */
.cta-box { background: var(--navy); border-radius: 14px; padding: 36px 32px; text-align: center; margin: 36px 0; border-top: 4px solid var(--gold); }
.cta-box h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 10px; }
.cta-box p { color: #99AABB; font-size: 0.9rem; margin-bottom: 22px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-box a { background: var(--gold); color: var(--ink); padding: 13px 28px; font-size: 0.92rem; font-weight: 700; text-decoration: none; border-radius: 6px; display: inline-block; transition: all 0.2s; }
.cta-box a:hover { background: #E8C96A; transform: translateY(-2px); }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 84px; }
.sidebar-card { background: var(--lgray); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.sidebar-card h4 { font-size: 0.76rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.sidebar-card li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.sidebar-card a { font-size: 0.84rem; color: var(--teal); text-decoration: none; font-weight: 600; display: block; }
.sidebar-card a:hover { color: var(--gold); }
.sidebar-promo { background: var(--ink); border-radius: 12px; padding: 22px; text-align: center; }
.sidebar-promo h4 { color: var(--gold); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.sidebar-promo p { color: #99AABB; font-size: 0.8rem; margin-bottom: 14px; line-height: 1.55; }
.sidebar-promo a { background: var(--gold); color: var(--ink); padding: 9px 16px; font-size: 0.82rem; font-weight: 700; text-decoration: none; border-radius: 6px; display: block; }

/* ── AI BADGES ── */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.badge-claude { background: rgba(201,168,76,0.15); color: var(--claude-color); border: 1px solid rgba(201,168,76,0.3); }
.badge-chatgpt { background: rgba(16,163,127,0.12); color: var(--chatgpt-color); border: 1px solid rgba(16,163,127,0.25); }
.badge-gemini { background: rgba(66,133,244,0.1); color: var(--gemini-color); border: 1px solid rgba(66,133,244,0.25); }

/* ── SCORE CARDS ── */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.score-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 16px; text-align: center; }
.score-num { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; display: block; line-height: 1; margin-bottom: 4px; }
.score-label { font-size: 0.75rem; color: var(--mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.score-sub { font-size: 0.8rem; color: var(--mid); margin-top: 4px; }

/* ── CARD GRID (homepage) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 36px; }
.guide-card { border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.2s; background: var(--white); text-decoration: none; display: block; }
.guide-card:hover { border-color: var(--gold); box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }
.card-top { padding: 24px 22px 18px; border-bottom: 1px solid var(--border); }
.card-top .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.card-top h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.card-body { padding: 16px 22px; }
.card-body p { font-size: 0.84rem; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.card-link { font-size: 0.82rem; font-weight: 700; color: var(--gold); }

/* ── EMAIL SECTION ── */
.email-section { background: var(--gold); padding: 56px 5%; text-align: center; }
.email-section h2 { font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--ink); margin-bottom: 10px; }
.email-section p { font-size: 0.95rem; color: rgba(15,17,23,0.65); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
.email-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.email-form input { flex: 1; min-width: 210px; padding: 13px 16px; font-size: 0.92rem; border: none; border-radius: 7px; outline: none; font-family: 'DM Sans', sans-serif; }
.email-form button { background: var(--ink); color: var(--white); padding: 13px 24px; font-size: 0.92rem; font-weight: 700; border: none; border-radius: 7px; cursor: pointer; transition: background 0.2s; }
.email-form button:hover { background: #1A2030; }
.email-note { font-size: 0.74rem; color: rgba(15,17,23,0.45); margin-top: 10px; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 44px 5% 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 32px; }
.footer-brand p { font-size: 0.8rem; color: #445566; max-width: 220px; margin-top: 10px; line-height: 1.6; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col a { font-size: 0.82rem; color: #445566; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1A1A1A; padding-top: 18px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.73rem; color: #334455; }
.footer-bottom a { color: #334455; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .article-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .email-form { flex-direction: column; }
  .email-form input { min-width: unset; width: 100%; }
  .comp-table th, .comp-table td { padding: 10px 8px; font-size: 0.8rem; }
}
