/* Reset & Variables */
:root {
  /* Colors - Light, accessible palette */
  --surface: #f6f7fb;
  --surface-alt: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --primary: #0ea5a6; /* teal */
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --accent: #4f46e5; /* indigo */
  --accent-600: #4338ca;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --ring: #93c5fd; /* sky-300 */
  --shadow: rgba(2, 6, 23, 0.08);

  /* Typography */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;  --sp-5: 20px;
  --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
ul,ol { margin: 0; padding-left: 1.25rem; font-weight: 400; }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Layout */
.container { max-width: 1200px; width: 100%; padding: 0 var(--sp-4); margin: 0 auto; }
.site-main { display: block; }
.content-wrap { padding: 0 0 var(--sp-16); background: radial-gradient(1200px 600px at 10% -10%, #e6f6f7 0, rgba(255,255,255,0) 60%), radial-gradient(900px 400px at 110% 10%, #ecebff 0, rgba(255,255,255,0) 60%); }

/* Header */
.masthead { background: transparent; }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand__img { width: 64px; height: auto; }

/* Showcase (hero) */
.showcase { color: var(--ink); padding: var(--sp-12) 0 var(--sp-8); }
.display-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.05; letter-spacing: -0.01em; text-align: center; margin: 0 0 var(--sp-4); }
.showcase__title span { display: block; }
.showcase__title span:nth-child(1) { color: var(--accent-600); }
.showcase__title span:nth-child(2) { color: var(--primary-700); }
.showcase__lead { max-width: 760px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.125rem; }

/* Buttons */
.button { --btn-bg: var(--primary); --btn-bg-h: var(--primary-600); --btn-ink: #fff; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: 12px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; box-shadow: 0 8px 20px var(--shadow); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { background: var(--btn-bg-h); transform: translateY(-2px); box-shadow: 0 12px 28px var(--shadow); color: var(--border); }
.button:active { transform: translateY(0); }
.button--primary { --btn-bg: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); --btn-bg-h: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); color: #ffffff; }

/* Vendors (companies) */
.vendors { padding-top: var(--sp-8); }
.vendors__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.vendor-card { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); align-items: center; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: 0 10px 30px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.vendor-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px var(--shadow); }
@media (max-width: 992px) { .vendor-card { grid-template-columns: 1fr; text-align: left; } }
.vendor-card__badge { position: absolute; top: -12px; left: var(--sp-6); background: linear-gradient(135deg, #fde68a, #f59e0b); color: #1f2937; font-weight: 800; font-size: .875rem; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.06); }
.vendor-card__header {  }
.vendor-card__header img { width: 140px; height: auto; }
.vendor-card__meta { display: grid; gap: 6px; }
.vendor-card__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); }
.vendor-card__score { font-weight: 800; color: var(--success); margin-left: 8px; }
.vendor-card__votes { color: var(--muted-2); font-size: .9rem; }
.vendor-card__offer { background: linear-gradient(135deg, #e6f6f7, #eef2ff); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); }
.vendor-card__offer-title { margin: 0 0 4px; font-weight: 800; color: var(--accent-600); }
.vendor-card__offer-text { margin: 0; font-weight: 700; color: var(--primary-700); }
.vendor-card__features { margin: 0 0 var(--sp-4); padding-left: 1.1rem; color: var(--muted-2); }
.vendor-card__feature { list-style: disc; margin: 4px 0; }
.vendor-card__cta { justify-self: end; }
@media (max-width: 992px) { .vendor-card__cta { justify-self: stretch; } }

/* Method (how) */
.method { padding: var(--sp-12) 0; }
.section-title { font-family: var(--font-display); text-align: center; font-weight: 800; color: var(--ink); margin: 0 auto var(--sp-4); font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.method__subtitle { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto var(--sp-8); }
.method__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 992px) { .method__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .method__list { grid-template-columns: 1fr; } }
.method__item { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; box-shadow: 0 8px 24px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.method__item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px var(--shadow); }
.method__icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-content: center; margin: 0 auto var(--sp-4); background: linear-gradient(135deg, #e6f6f7, #eef2ff); border: 1px solid var(--border); }
.method__icon svg { width: 28px; height: 28px; color: var(--primary-700); }
.method__item-title { font-weight: 800; margin: 0 0 var(--sp-2); }
.method__item-text { color: var(--muted); margin: 0; }

/* Trust (why-we) */
.trust { padding: var(--sp-12) 0; background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%); }
.trust__subtitle { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto var(--sp-8); }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .trust__list { grid-template-columns: 1fr; } }
.trust__item { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-4); align-items: start; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: 0 8px 24px var(--shadow); }
.trust__icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-content: center; background: linear-gradient(135deg, #e6f6f7, #eef2ff); border: 1px solid var(--border); }
.trust__icon svg { width: 28px; height: 28px; color: var(--accent-600); }
.trust__item-title { font-weight: 800; margin: 0 0 6px; }
.trust__text { color: var(--muted); margin: 0; }

/* Metrics (stats) */
.metrics { padding: var(--sp-12) 0; }
.metrics__subtitle { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto var(--sp-8); }
.metrics__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 992px) { .metrics__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .metrics__list { grid-template-columns: 1fr; } }
.metrics__item { text-align: center; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: 0 8px 24px var(--shadow); }
.metrics__icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-content: center; margin: 0 auto var(--sp-3); background: linear-gradient(135deg, #e6f6f7, #eef2ff); border: 1px solid var(--border); }
.metrics__icon svg { width: 28px; height: 28px; color: var(--ink); }
.metrics__num { font-weight: 800; font-size: 2rem; margin: 0 0 var(--sp-2); }
.metrics__item-title { font-weight: 800; margin: 0 0 4px; }
.metrics__item-text { color: var(--muted); margin: 0; }
.metrics__item:nth-child(1) .metrics__num { color: var(--accent-600); }
.metrics__item:nth-child(2) .metrics__num { color: var(--warning); }
.metrics__item:nth-child(3) .metrics__num { color: var(--success); }
.metrics__item:nth-child(4) .metrics__num { color: var(--primary-700); }

/* FAQ (glossary) */
.uix-faq { padding: var(--sp-12) 0; }
.uix-faq__title {font-family: var(--font-display); text-align: center; font-weight: 800; color: var(--ink); margin: 0 auto var(--sp-4); font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);}
.uix-faq__subtitle { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto var(--sp-8); }
.uix-faq__list { display: grid; gap: var(--sp-4); }
.uix-faq__item { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-alt); box-shadow: 0 8px 24px var(--shadow); }
.uix-faq__question { display: block; width: 100%; text-align: left; padding: var(--sp-5) var(--sp-6); font-weight: 800; background: linear-gradient(135deg, #eef2ff, #e6f6f7); color: var(--ink); cursor: pointer; position: relative; }
.uix-faq__question p { margin: 0; }
.uix-faq__question::after { content: '+'; position: absolute; right: var(--sp-6); top: 50%; transform: translateY(-50%); transition: transform .2s ease; }
.uix-faq__item.active .uix-faq__question::after { transform: translateY(-50%) rotate(45deg); }
.uix-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s;}
.uix-faq__answer[hidden] { display: none; }
.uix-faq__answer-content { color: var(--muted); margin: 0; padding: var(--sp-4); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--muted); padding: var(--sp-12) 0 var(--sp-8); }
.site-footer__nav { display: flex; gap: var(--sp-6); align-items: center; justify-content: center; flex-wrap: wrap; margin: 0 0 var(--sp-6); padding-left: 0; list-style: none; }
.site-footer__link { color: var(--accent); }
.site-footer__link:hover { color: var(--accent-600); }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: center; margin-bottom: var(--sp-8); }
.site-footer__badge { padding: var(--sp-2); max-width: 150px; }
.site-footer__badge-img { max-height: 50px; }
.site-footer__desc { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 992px) { .site-footer__desc { grid-template-columns: 1fr; } }
.site-footer__text { margin: 0; font-size: .95rem; line-height: 1.6; font-weight: normal; }
.site-footer__legal { margin-top: var(--sp-6); padding-top: var(--sp-6); text-align: center; border-top: 1px solid var(--border); }

/* Cookies banner */
.cookies-banner { position: fixed; inset-inline: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: var(--sp-4); background: var(--surface-alt); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px var(--shadow); color: var(--ink); padding: var(--sp-4) var(--sp-6); z-index: 1000; }
.cookies-banner__btns { display: flex; gap: var(--sp-3); }
#accept-cookies, #reject-cookies { font-weight: 800; border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 14px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
#accept-cookies { background: var(--success); color: #fff; border-color: transparent; }
#accept-cookies:hover { transform: translateY(-2px); }
#reject-cookies { background: var(--danger); color: #fff; border-color: transparent; }
#reject-cookies:hover { transform: translateY(-2px); }
@media(max-width:992px) { .cookies-banner__btns { flex-direction: column; } }

/* Legacy pages support (until templates are migrated) */
.legal-page { padding-bottom: 3rem; background: var(--surface); color: var(--muted); }
.legal-page__title { font-family: var(--font-display); font-weight: 800; text-align: center; color: var(--ink); font-size: clamp(2rem, 1rem + 2.5vw, 3rem); margin: 0 0 var(--sp-4); }
.legal-page__header { text-align: center; margin-bottom: var(--sp-6); }
.legal-page__content { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: 0 8px 24px var(--shadow); }
.legal-page a { color: var(--accent); }
.legal-page a:hover { color: var(--accent-600); }
.legal-page h2, .legal-page h3 { color: var(--ink); }



/* Minimal fallbacks to avoid flashing before HTML migration on other pages */
.header, .footer { display: block; }
