/* ============================================================
   AttendIQ - Comparison Page Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
  --sage:         #3DAA8E;
  --sage-light:   #E8F7F3;
  --sage-mid:     #5BBDA3;
  --sage-dark:    #2D8A72;
  --navy:         #0D1823;
  --navy-mid:     #152130;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text:         #0D1117;
  --text-mid:     #3D5166;
  --text-muted:   #5A6A78;
  --border:       #E2E8EE;
  --surface:      #F8FAFB;
  --white:        #FFFFFF;
  --green:        #22C55E;
  --green-light:  #DCFCE7;
  --red:          #EF4444;
  --red-light:    #FEE2E2;
  --amber:        #F59E0B;
  --amber-light:  #FEF3C7;
  --radius:       10px;
  --container:    1200px;
  --prose-max:    760px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sage); }
img { display: block; max-width: 100%; }

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

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; flex-shrink: 0;
}
.logo-iq { color: var(--sage); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-login {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none;
}
.btn-primary {
  background: var(--sage); color: white; padding: 8px 18px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.btn-primary:hover { background: var(--sage-dark); color: white; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 16px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--border); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 500; }

/* ── Compare hero ── */
.compare-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f45 100%);
  padding: 64px 0 72px;
  color: white;
}
.compare-hero .container { max-width: var(--container); }
.compare-hero__label {
  display: inline-block; padding: 4px 12px;
  background: rgba(61,170,142,.2); border: 1px solid rgba(61,170,142,.4);
  border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 20px;
}
.compare-hero__h1 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.compare-hero__sub {
  font-size: 18px; color: rgba(255,255,255,.65);
  max-width: 620px; margin-bottom: 40px; line-height: 1.6;
}
.compare-hero__meta {
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ── Verdict box ── */
.verdict-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 860px; margin: 0 auto 60px;
}
.verdict-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.verdict-card--winner { border-color: var(--sage); }
.verdict-card__badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--sage); color: white; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 12px;
  border-radius: 100px;
}
.verdict-card__name {
  font-size: 20px; font-weight: 800; color: var(--navy);
  margin-bottom: 8px;
}
.verdict-card__best-for {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.verdict-card__desc {
  font-size: 14px; color: var(--text-mid); line-height: 1.65;
}

/* ── Comparison table ── */
.compare-table-section {
  padding: 64px 0;
}
.compare-table-section h2 {
  font-size: 26px; font-weight: 800; color: var(--navy);
  margin-bottom: 32px; letter-spacing: -0.01em;
}
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th {
  text-align: left; padding: 14px 16px;
  background: var(--navy); color: white; font-weight: 700; font-size: 13px;
}
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.compare-table th.col-attendiq { background: var(--sage-dark); }
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tr:nth-child(even) td { background: var(--surface); }
.compare-table td:first-child { font-weight: 600; color: var(--navy); }
.icon-yes { color: var(--green); font-size: 18px; }
.icon-no  { color: var(--red); font-size: 18px; }
.icon-partial { color: var(--amber); font-size: 14px; font-weight: 600; }

/* ── Pricing comparison ── */
.pricing-compare {
  background: var(--surface); border-radius: var(--radius);
  padding: 40px; margin: 48px 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 32px;
}
.pricing-compare__col h3 {
  font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px;
}
.pricing-compare__col .price-main {
  font-size: 36px; font-weight: 900; color: var(--navy);
  letter-spacing: -0.03em; margin: 12px 0 4px;
}
.pricing-compare__col .price-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
}
.pricing-compare__col ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.pricing-compare__col li {
  font-size: 14px; color: var(--text-mid);
  display: flex; gap: 8px; align-items: flex-start;
}
.pricing-compare__col li .dot { color: var(--sage); font-weight: 700; flex-shrink: 0; }
.pricing-compare__col li .dot--no { color: var(--red); }

/* ── Prose sections ── */
.compare-prose { padding: 0 0 64px; }
.compare-prose .prose-inner {
  max-width: var(--prose-max); margin: 0 auto;
}
.compare-prose h2 {
  font-size: 26px; font-weight: 800; color: var(--navy);
  margin: 48px 0 16px; letter-spacing: -0.01em;
  line-height: 1.2;
}
.compare-prose h3 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin: 32px 0 12px;
}
.compare-prose p { color: var(--text-mid); margin-bottom: 20px; font-size: 16px; }
.compare-prose ul, .compare-prose ol {
  margin: 0 0 20px 20px; color: var(--text-mid); font-size: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.compare-prose strong { color: var(--navy); }
.compare-prose .callout {
  background: var(--sage-light); border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px;
  margin: 28px 0; color: var(--text-mid); font-size: 15px;
}
.compare-prose .callout strong { color: var(--sage-dark); }
.compare-prose .stat-block {
  background: var(--navy); border-radius: var(--radius); padding: 28px 32px;
  margin: 32px 0; display: flex; gap: 40px; flex-wrap: wrap;
}
.stat { text-align: center; flex: 1; min-width: 120px; }
.stat__num { font-size: 36px; font-weight: 900; color: var(--sage); letter-spacing: -0.03em; }
.stat__label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ── FAQ ── */
.compare-faq { padding: 40px 0 72px; }
.compare-faq h2 {
  font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 32px;
}
.faq-list { max-width: var(--prose-max); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--navy); text-align: left;
}
.faq-item__q:hover { color: var(--sage-dark); }
.faq-item__chevron {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted);
  transition: transform .25s ease;
}
.faq-item__q[aria-expanded="true"] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__a p { padding-bottom: 18px; font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.faq-item__a.open { max-height: 400px; }

/* ── CTA ── */
.compare-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f45 100%);
  padding: 72px 0; text-align: center; color: white;
}
.compare-cta h2 {
  font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.compare-cta p {
  font-size: 17px; color: rgba(255,255,255,.65); max-width: 540px;
  margin: 0 auto 36px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-sage {
  background: var(--sage); color: white; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.btn-sage:hover { background: var(--sage-dark); color: white; }
.btn-ghost {
  background: rgba(255,255,255,.1); color: white; padding: 14px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2); text-decoration: none;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: white; }

/* ── Footer ── */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.5);
  padding: 32px 0; font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-inner a:hover { color: rgba(255,255,255,.8); }

/* ── Mobile hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all .2s;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu .btn-primary { margin-top: 8px; display: inline-block; text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .verdict-box { grid-template-columns: 1fr; }
  .pricing-compare { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table td, .compare-table th { padding: 10px 12px; }
  .stat-block { gap: 24px; }
}
