/* ============================================================
   EasyWebsiteChat.com — "Clarity" Redesign
   Design: Light, warm, minimal · Typographic precision
   Fonts: DM Serif Display (headings) · DM Sans (body)
   Palette: Warm white · Deep teal · Amber
   Fonts loaded via <link> in header.php — no @import needed
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --color-bg:           #FAFAF8;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F3F2EF;
  --color-surface-3:    #ECEAE6;
  --color-border:       #E5E2DC;
  --color-border-soft:  #EEE;

  /* Brand — deep teal */
  --color-primary:      #0B7A6E;
  --color-primary-d:    #085F55;
  --color-primary-l:    #EAF4F3;
  --color-primary-m:    rgba(11,122,110,0.12);

  /* Accent — warm amber (CTAs) */
  --color-accent:       #D97706;
  --color-accent-d:     #B45309;
  --color-accent-l:     #FEF3C7;

  /* Semantic */
  --color-green:        #059669;
  --color-green-l:      #D1FAE5;
  --color-red:          #DC2626;
  --color-red-l:        #FEE2E2;

  /* Text */
  --color-text:         #1C1917;
  --color-text-muted:   #6B6560;
  --color-text-light:   #A8A29E;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-base:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:   0.73rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm:   0.3rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows — soft, natural */
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg:      0 8px 28px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  --shadow-primary: 0 4px 14px rgba(11,122,110,.18);
  --shadow-accent:  0 4px 14px rgba(217,119,6,.22);

  /* Layout */
  --max-width:  1200px;
  --nav-height: 64px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: var(--text-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--color-primary-d); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-base); border: none; background: none; }
input, select, textarea { font-family: var(--font-base); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 640px)  { .container { padding: 0 var(--space-8); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-10); } }

.section    { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }
.section-lg { padding: var(--space-24) 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;         /* DM Serif Display is a weight-400 display font */
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.heading-display {
  font-size: clamp(2.4rem, 5.5vw, var(--text-6xl));
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.heading-1 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
.heading-2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
.heading-3 { font-size: var(--text-xl); }

.text-muted  { color: var(--color-text-muted); }
.text-small  { font-size: var(--text-sm); }
.text-center { text-align: center; }
.lead        { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--color-primary-d);
  border-color: var(--color-primary-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,122,110,.24);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-l);
  color: var(--color-primary-d);
}
.btn-ghost {
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: var(--color-accent-d);
  border-color: var(--color-accent-d);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 0.35rem var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: 0.8rem var(--space-8); font-size: var(--text-base); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-primary { background: var(--color-primary-l);  color: var(--color-primary); }
.badge-green   { background: var(--color-green-l);     color: var(--color-green); }
.badge-amber   { background: var(--color-accent-l);    color: var(--color-accent-d); }
.badge-red     { background: var(--color-red-l);        color: var(--color-red); }
.badge-grey    { background: var(--color-surface-2);   color: var(--color-text-muted); }

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border);
}
.card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-l), var(--shadow-md);
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-soft);
  height: var(--nav-height);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* ── Logo (wordmark only) ── */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}
.nav-logo:hover { color: inherit; }

/* "easy" — DM Sans light */
.logo-easy {
  font-family: var(--font-base);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0;
}
/* "Website" — DM Sans semibold */
.logo-website {
  font-family: var(--font-base);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
/* "Chat" — DM Serif Display italic, accent color */
.logo-chat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-left: 1px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all .18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-l);
}

.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: flex; align-items: center; gap: var(--space-3); } }
/* Hide CTA button below 768px — it's already in the mobile menu */
@media (max-width: 767px) { .nav-cta .btn { display: none; } }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid transparent;
  transition: all .18s;
}
.mobile-menu a:hover { background: var(--color-primary-l); color: var(--color-primary); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: var(--space-4); }

/* ── Language Switcher ── */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-current {
  cursor: pointer;
  font-size: .8rem;
  font-weight: 500;
  padding: .3rem .6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  user-select: none;
  white-space: nowrap;
  transition: background .15s;
}
.lang-current:hover { background: var(--color-surface-2); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  z-index: 200;
  list-style: none;
  padding: .35rem 0;
  padding-top: calc(.35rem + 6px); /* 6px invisible bridge eliminates the hover gap */
  margin: 0;
  margin-top: -6px;                /* visually shifts it back down so it looks like 6px gap */
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: block; }
.lang-dropdown li a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  font-size: .82rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background .1s;
}
.lang-dropdown li a:hover { background: var(--color-surface-2); color: var(--color-text); }
.lang-dropdown li.lang-active a { font-weight: 700; color: var(--color-primary); }

/* ── Hero Section ── */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
/* Subtle right-side decorative accent */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-l) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 740px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-l);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(11,122,110,.15);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .highlight {
  color: var(--color-primary);
  font-style: italic; /* DM Serif Display italic for the accent word */
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-12); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

/* ── Tool Cards Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px)  { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all .22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.tool-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-l), var(--shadow-md);
}
.tool-card-badge { position: absolute; top: -10px; left: var(--space-6); }

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.tool-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  overflow: hidden;
  flex-shrink: 0;
}
.tool-logo img { width: 100%; height: 100%; object-fit: contain; }

.tool-card-price { text-align: right; }
.price-free {
  color: var(--color-green);
  font-weight: 700;
  font-size: var(--text-sm);
}
.price-from { font-size: var(--text-xs); color: var(--color-text-light); }
.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.2;
}
.price-amount span { font-family: var(--font-base); font-size: var(--text-xs); font-weight: 400; color: var(--color-text-muted); }

.tool-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.tool-card-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}
.tool-card-features {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex: 1;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--space-2);
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.feature-pill.has-feature { background: var(--color-green-l); color: var(--color-green); }

.tool-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.stars       { color: var(--color-accent); font-size: var(--text-sm); letter-spacing: .03em; }
.rating-value { font-weight: 700; font-size: var(--text-sm); }
.rating-count { font-size: var(--text-xs); color: var(--color-text-light); }

.tool-card-actions { display: flex; gap: var(--space-2); }
.tool-card-actions .btn { flex: 1; justify-content: center; }

/* ── Comparison Table ── */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  white-space: nowrap;
}
.comparison-table thead th {
  background: var(--color-surface-2);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.comparison-table thead th:first-child { border-top-left-radius: var(--radius-lg); min-width: 160px; }
.comparison-table thead th:last-child  { border-top-right-radius: var(--radius-lg); }
.comparison-table tbody td { background: var(--color-surface); }
.comparison-table tbody tr:nth-child(even) td { background: #FDFCFA; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.comparison-table tbody tr:last-child td:last-child  { border-bottom-right-radius: var(--radius-lg); }
.comparison-table tbody tr:hover td { background: var(--color-primary-l) !important; }

.comparison-table .feature-name {
  font-weight: 600;
  color: var(--color-text);
  white-space: normal;
  min-width: 160px;
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 4;
  box-shadow: 2px 0 4px -2px rgba(0,0,0,.07);
}
.comparison-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--color-surface-2);
  z-index: 15;
  box-shadow: 2px 0 4px -2px rgba(0,0,0,.07);
}
.comparison-table tbody tr:nth-child(even) .feature-name { background: #FDFCFA; }
.comparison-table tbody tr:hover .feature-name { background: var(--color-primary-l) !important; }

.check-yes { color: var(--color-green); font-size: var(--text-base); }
.check-no  { color: var(--color-text-light); font-size: var(--text-base); }
.col-highlight { background: rgba(11,122,110,.03); }

/* ── Filters Bar ── */
.filters-bar {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
}
.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: all .18s;
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-l);
  color: var(--color-primary);
}

.filter-search { margin-left: auto; position: relative; }
.filter-search input {
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-8);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color .18s;
  width: 200px;
}
.filter-search input:focus { border-color: var(--color-primary); }
.filter-search::before {
  content: '🔍';
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xs);
}

/* ── 1v1 Comparison ── */
.vs-selector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}
.vs-badge {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin: 0 auto;
  font-family: var(--font-base);
}
.vs-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color .18s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.vs-select:focus { border-color: var(--color-primary); outline: none; }

.vs-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.vs-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.vs-header.winner { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-l), var(--shadow-md); }
.vs-tool-name    { font-family: var(--font-display); font-size: var(--text-2xl); margin: var(--space-3) 0 var(--space-1); }
.vs-tool-tagline { color: var(--color-text-muted); font-size: var(--text-sm); }

.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-3); }
.vs-cell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  text-align: center;
}
.vs-cell.win  { background: var(--color-green-l);    border-color: var(--color-green);   color: var(--color-green);   font-weight: 600; }
.vs-cell.lose { background: var(--color-surface-2);  color: var(--color-text-light); }

/* ── Quiz ── */
.quiz-container { max-width: 680px; margin: 0 auto; }
.quiz-progress {
  height: 5px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width .4s ease;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.quiz-options { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 480px) { .quiz-options { grid-template-columns: repeat(2, 1fr); } }
.quiz-option {
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .18s;
  text-align: left;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.quiz-option:hover, .quiz-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-l);
}
.quiz-option-icon  { font-size: 1.5rem; margin-bottom: var(--space-2); }
.quiz-option-label { font-weight: 600; font-size: var(--text-sm); }
.quiz-option-desc  { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }

/* ── Tool Detail Page ── */
.tool-detail-header {
  background: var(--color-primary-l);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-12) 0;
}
.tool-detail-hero {
  display: flex; flex-direction: column; gap: var(--space-6);
}
@media (min-width: 768px) {
  .tool-detail-hero { flex-direction: row; align-items: flex-start; gap: var(--space-8); }
}
.tool-detail-logo {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.tool-detail-meta         { flex: 1; }
.tool-detail-name         { font-size: var(--text-3xl); margin-bottom: var(--space-1); }
.tool-detail-tagline      { color: var(--color-text-muted); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.tool-detail-badges       { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.tool-detail-actions      { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.tool-detail-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.sidebar-price      { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.sidebar-price-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.sidebar-cta        { width: 100%; justify-content: center; margin-bottom: var(--space-3); }
.sidebar-features   { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-box, .cons-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.pros-box { border-top: 3px solid var(--color-green); }
.cons-box { border-top: 3px solid var(--color-red); }
.pros-box h4 { color: var(--color-green); margin-bottom: var(--space-4); font-family: var(--font-base); font-weight: 700; }
.cons-box h4 { color: var(--color-red);   margin-bottom: var(--space-4); font-family: var(--font-base); font-weight: 700; }
.pros-list li, .cons-list li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
}
.pros-list li:last-child, .cons-list li:last-child { border-bottom: none; }
.pros-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-green); font-weight: 700; }
.cons-list li::before { content: '✗'; position: absolute; left: 0; color: var(--color-red);   font-weight: 700; }

/* Rating Bar */
.rating-bar-item { margin-bottom: var(--space-4); }
.rating-bar-label { display: flex; justify-content: space-between; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.rating-bar-track { height: 6px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill  { height: 100%; background: var(--color-primary); border-radius: var(--radius-full); transition: width .6s ease; }

/* Pricing */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.pricing-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { border-color: var(--color-primary); }
.pricing-card.featured { border-color: var(--color-primary); background: var(--color-primary-l); }
.pricing-card-name {
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.pricing-card-price { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-text); }
.pricing-card-price sup { font-family: var(--font-base); font-size: var(--text-base); vertical-align: top; margin-top: var(--space-2); }
.pricing-card-per  { font-size: var(--text-xs); color: var(--color-text-muted); }
.pricing-card-note { font-size: var(--text-xs); color: var(--color-text-light); margin-top: var(--space-2); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-text-light); }

/* ── Section Headers ── */
.section-header { margin-bottom: var(--space-10); }
.section-header.centered { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title { margin-bottom: var(--space-3); }
.section-desc  { color: var(--color-text-muted); line-height: 1.75; }

/* ── Category Tags ── */
.category-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.category-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500;
  color: var(--color-text-muted);
  transition: all .18s; cursor: pointer;
  border: 1px solid transparent;
}
.category-tag:hover, .category-tag.active {
  background: var(--color-primary-l);
  color: var(--color-primary);
  border-color: rgba(11,122,110,.2);
}

/* ── Feature Check List ── */
.feature-check-list { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 480px) { .feature-check-list { grid-template-columns: repeat(2, 1fr); } }
.feature-check-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.feature-check-item.yes { color: var(--color-text); }
.feature-check-item .icon { flex-shrink: 0; }

/* ── Affiliate Disclaimer ── */
.affiliate-disclaimer {
  background: var(--color-accent-l);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: #78350F;
  margin-bottom: var(--space-6);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-text);
  color: rgba(250,250,248,.6);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { color: rgba(250,250,248,.45); font-size: var(--text-sm); margin-top: var(--space-4); line-height: 1.75; }

/* Footer logo — wordmark only */
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.footer-logo .logo-easy    { font-family: var(--font-base); font-size: 1.05rem; font-weight: 300; color: rgba(250,250,248,.5); }
.footer-logo .logo-website { font-family: var(--font-base); font-size: 1.05rem; font-weight: 600; color: rgba(250,250,248,.85); }
.footer-logo .logo-chat    { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: #5DD6C8; margin-left: 1px; }

.footer-col h4 {
  color: rgba(250,250,248,.85);
  font-family: var(--font-base);
  font-size: var(--text-xs); font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase; letter-spacing: .07em;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul li a { color: rgba(250,250,248,.45); font-size: var(--text-sm); transition: color .18s; }
.footer-col ul li a:hover { color: rgba(250,250,248,.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3); align-items: center; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p      { font-size: var(--text-xs); color: rgba(250,250,248,.3); }
.footer-disclaimer    { font-size: var(--text-xs); color: rgba(250,250,248,.25); margin-top: var(--space-2); }

/* ── Alert / Notice ── */
.notice {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  display: flex; gap: var(--space-3); align-items: flex-start;
}
.notice-info    { background: var(--color-primary-l); color: var(--color-primary-d); }
.notice-success { background: var(--color-green-l);   color: #065F46; }
.notice-warning { background: var(--color-accent-l);  color: #92400E; }

/* ── Page Header ── */
.page-header {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}
.page-header h1 { margin-bottom: var(--space-2); }
.page-header p  { color: var(--color-text-muted); }

/* ── Table sorting ── */
.sortable-th { cursor: pointer; user-select: none; }
.sortable-th::after      { content: ' ↕'; font-size: .75em; opacity: .5; }
.sortable-th.asc::after  { content: ' ↑'; opacity: 1; color: var(--color-primary); }
.sortable-th.desc::after { content: ' ↓'; opacity: 1; color: var(--color-primary); }

/* ── Scroll to top ── */
#scroll-top {
  position: fixed;
  bottom: var(--space-6); right: var(--space-6);
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-primary);
  opacity: 0; transform: translateY(10px);
  transition: all .3s;
  z-index: 50; cursor: pointer; border: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover   { background: var(--color-primary-d); }

/* ── Tooltips ── */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--color-text);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Highlighted row ── */
.table-highlight { background: rgba(11,122,110,.04) !important; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .5s ease forwards; }
.animate-delay-1 { animation-delay: .08s; }
.animate-delay-2 { animation-delay: .16s; }
.animate-delay-3 { animation-delay: .24s; }

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: var(--space-4); }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ── Utilities ── */
.hidden          { display: none !important; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2           { gap: var(--space-2); }
.gap-4           { gap: var(--space-4); }
.mt-4            { margin-top: var(--space-4); }
.mt-8            { margin-top: var(--space-8); }
.mb-4            { margin-bottom: var(--space-4); }
.mb-8            { margin-bottom: var(--space-8); }
.w-full          { width: 100%; }
.rounded         { border-radius: var(--radius-md); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
