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

:root {
  --green: #2691d9;
  --green-dark: #1658a8;
  --green-light: #dceafc;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
  position: relative;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: 6px;
}
.nav-logo .bracket {
  background: var(--green); color: #fff;
  padding: 2px 6px; border-radius: 4px; font-size: .85rem;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--green-light); color: var(--green-dark);
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--gray-100); }

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; color: var(--gray-900); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--gray-900); }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }

/* ── HERO ── */
.hero { padding: 72px 0 40px; }
.hero-meta {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: var(--green-dark); text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { max-width: 700px; margin-bottom: 24px; }
.hero-intro { font-size: 1.05rem; color: var(--gray-600); max-width: 680px; margin-bottom: 32px; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0 40px;
}
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; }
.page-header p { font-size: 1rem; color: var(--gray-500); max-width: 580px; }

/* ── QUICK ANSWER ── */
.quick-answer {
  background: linear-gradient(135deg, #f0f7fd 0%, #dcf7fc 100%);
  border: 1.5px solid #86beef;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.qa-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 4px; }
.qa-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.qa-sub { font-size: .85rem; color: var(--gray-600); margin-top: 2px; }
.qa-winner { display: flex; align-items: center; gap: 10px; }
.qa-badge { background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.author-note {
  font-size: .78rem; color: var(--gray-500); margin-top: 12px;
  border-top: 1px solid #bbe3f7; padding-top: 12px; width: 100%;
}

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: var(--gray-50);
  padding: 12px 16px; text-align: left;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .12s; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: 14px 16px; }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-weight: 700; font-size: .85rem;
}
.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: var(--gray-200); color: var(--gray-700); }
.rank-3 { background: #fed7aa; color: #9a3412; }
.rank-other { background: var(--gray-100); color: var(--gray-600); }

.app-name { font-weight: 700; }
.app-name a { color: var(--green-dark); }
.app-name a:hover { text-decoration: underline; }

.score-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-weight: 700; font-size: .85rem; }
.score-high { background: #dcfce7; color: #166534; }
.score-mid  { background: #fef9c3; color: #854d0e; }
.score-low  { background: #fee2e2; color: #991b1b; }

.speed-good { color: var(--green-dark); font-weight: 600; }
.speed-mid  { color: var(--yellow); font-weight: 600; }
.speed-slow { color: var(--red); font-weight: 600; }

/* ── FEATURED CARD ── */
.featured-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.featured-header {
  background: linear-gradient(135deg, #1e5d8e 0%, #1e5d8e 60%, #2287c5 100%);
  padding: 32px 36px; color: #fff;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.featured-header h2 { color: #fff; font-size: 1.7rem; }
.featured-rank {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 8px; padding: 8px 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.big-score { font-size: 3rem; font-weight: 900; line-height: 1; }
.big-score-label { font-size: .85rem; opacity: .8; margin-top: 4px; }

.featured-body { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .featured-body { grid-template-columns: 1fr; } }

.metric-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.metric-label { font-size: .82rem; color: var(--gray-500); font-weight: 600; width: 180px; flex-shrink: 0; }
.metric-bar-wrap { flex: 1; background: var(--gray-100); border-radius: 99px; height: 8px; }
.metric-bar { background: var(--green); height: 100%; border-radius: 99px; }
.metric-score { font-size: .85rem; font-weight: 700; color: var(--gray-700); width: 42px; text-align: right; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec-item { background: var(--gray-50); border-radius: 8px; padding: 14px 16px; }
.spec-key { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.spec-val { font-size: .95rem; font-weight: 700; color: var(--gray-900); }

/* ── BUTTONS ── */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gray-900); color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-outline { background: #fff; color: var(--gray-800); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { background: var(--gray-50); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

/* ── APP CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.app-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.card-score { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.card-rank { font-size: .75rem; font-weight: 700; color: var(--gray-400); }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.card-stat { background: var(--gray-50); border-radius: 6px; padding: 10px 12px; }
.card-stat-label { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 2px; }
.card-stat-val { font-size: .9rem; font-weight: 700; color: var(--gray-800); }
.card-link { display: block; text-align: center; margin-top: 16px; color: var(--green-dark); font-size: .85rem; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ── VS COMPARE ── */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.vs-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  transition: border-color .15s, background .15s;
}
.vs-card:hover { border-color: var(--green); background: #f0fdf4; cursor: pointer; }
.vs-title { font-weight: 700; font-size: .95rem; }
.vs-sub { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.vs-icon { font-size: 1.4rem; }

/* ── VS TABLE ── */
.vs-table-wrap { margin-top: 32px; }
.vs-table-wrap h3 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.vs-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 0; border-bottom: 1px solid var(--gray-100); }
.vs-row:first-child { background: var(--gray-50); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); }
.vs-row > div { padding: 12px 16px; }
.vs-row .winner { color: var(--green-dark); font-weight: 700; }

/* ── FAQ ── */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--gray-800);
  user-select: none; background: #fff; transition: background .12s;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q .chevron { transition: transform .25s; font-size: .7rem; color: var(--gray-400); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .25s;
  font-size: .9rem; color: var(--gray-600); line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ── ARTICLES ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.article-card { border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-thumb { height: 140px; background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.article-body { padding: 16px 18px; }
.article-tag { font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 6px; }
.article-title { font-size: .9rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; }
.article-meta { font-size: .75rem; color: var(--gray-400); }

/* ── METHOD GRID ── */
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.method-item { display: flex; gap: 16px; align-items: flex-start; }
.method-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.method-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.method-item p { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }

/* ── INFO BOX ── */
.info-box { border-radius: var(--radius); padding: 24px 28px; margin-top: 36px; }
.info-box.blue { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.info-box.green { background: var(--green-light); border: 1.5px solid #86ceef; }
.info-box h3 { margin-bottom: 8px; }
.info-box.blue h3 { color: #1e40af; }
.info-box.green h3 { color: #164365; }
.info-box p { font-size: .88rem; line-height: 1.7; }
.info-box.blue p { color: #1e3a8a; }
.info-box.green p { color: #164365; }

/* ── SECTION UTILITIES ── */
.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.section-sub { font-size: 1rem; color: var(--gray-500); margin-top: 10px; max-width: 600px; }
.bg-gray { background: var(--gray-50); }

/* ── FOOTER ── */
footer { background: var(--gray-900); color: var(--gray-400); padding: 48px 0 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .82rem; line-height: 1.6; }
.footer-links h4 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px; }
.footer-links a { display: block; font-size: .85rem; margin-bottom: 8px; color: var(--gray-400); transition: color .12s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; }
.disclaimer { max-width: 600px; line-height: 1.6; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 6px; transition: background .15s;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 99;
    padding: 8px 0;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a {
    padding: 13px 24px; border-radius: 0;
    font-size: 1rem; border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a:last-child { border-bottom: none; }
  .quick-answer { flex-direction: column; gap: 20px; }
  .featured-body { padding: 24px; }
  .spec-grid { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 120px 1fr 1fr; }
}
