/* bestsurveytools.net — modern survey-focused, coral + purple */

:root {
  --bg: #EDE9F2;
  --bg-alt: #E4DEEA;
  --bg-card: #FFFFFF;
  --border: #D5CEDE;
  --border-soft: #E8E2EE;
  --text: #2A2235;
  --text-soft: #5A4F6B;
  --text-faint: #8B7F9A;
  --coral: #FF6B7A;
  --coral-hover: #E85565;
  --coral-soft: #FFB3BB;
  --purple: #4A2C6E;
  --purple-hover: #3A2258;
  --purple-soft: #7B5BA8;
  --accent: var(--coral);
  --accent-hover: var(--coral-hover);
  --accent-alt: var(--purple);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
  --max-prose: 720px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--purple); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.4rem; }
:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: var(--max-prose); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 233, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-soft); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--purple); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero--compact { padding: 3rem 0 2rem; text-align: left; background: none; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255, 107, 122, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--purple);
}
.lede {
  max-width: 640px;
  margin: 1.25rem auto 0;
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.hero--compact .lede { margin-left: 0; margin-right: 0; }
.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  background: var(--bg-card);
  padding: 1.35rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(74, 44, 110, 0.06);
}
.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section--border { border-top: 1px solid var(--border); }
.section-head {
  max-width: var(--max-prose);
  margin-bottom: 2.25rem;
}
.section-head p { color: var(--text-soft); margin-top: 0.75rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Callout */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 4px 16px rgba(74, 44, 110, 0.05);
}
.callout h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.65rem;
}

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 0 0.75rem;
  color: var(--text-soft);
}
th, td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-alt);
}
tbody tr:last-child td,
tbody tr:last-child th { border-bottom: none; }
.rating { color: var(--coral); white-space: nowrap; font-weight: 600; }

/* Tool cards */
.tool-grid { display: grid; gap: 2.25rem; }
.tool-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(74, 44, 110, 0.06);
}
@media (min-width: 768px) {
  .tool-card { grid-template-columns: 72px 1fr; gap: 2rem; }
}
.tool-rank {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--coral-soft);
  line-height: 1;
}
.tool-card h2 { font-size: 1.6rem; color: var(--purple); }
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.65rem 0 1rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.tool-meta strong { color: var(--text-soft); font-weight: 600; }
.pros-cons {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
@media (min-width: 560px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros-cons h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 0.5rem;
}
.pros-cons ul { font-size: 0.925rem; color: var(--text-soft); list-style: none; padding: 0; }
.pros-cons li { padding-left: 1.15rem; position: relative; }
.pros-cons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.8rem;
}
.pros-cons > div:last-child li::before { content: "–"; color: var(--text-faint); }

/* Testimonials */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin: 1.5rem 0;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  font-size: 3.5rem;
  line-height: 1;
  color: var(--coral-soft);
  position: absolute;
  top: 0.25rem;
  left: 1.25rem;
}
.testimonial blockquote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  padding-top: 1.25rem;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-faint);
}
.testimonial cite strong { color: var(--text-soft); font-weight: 600; }

/* Case study */
.case-study {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  margin-bottom: 1.25rem;
}
.case-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.case-study h3 { font-size: 1.35rem; margin-bottom: 0.65rem; color: var(--purple); }
.case-study p { color: var(--text-soft); }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn--accent {
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
}
.btn--accent:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  color: #fff;
}
.cta-banner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple) 0%, #6B3F96 100%);
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.cta-banner .btn--accent {
  background: var(--coral);
  border-color: var(--coral);
}
.cta-banner .btn--accent:hover {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}

/* FAQ */
.faq-list { max-width: var(--max-prose); margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--purple);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--coral);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.975rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--coral); }

/* Prose */
.prose { max-width: var(--max-prose); }
.prose h2 { margin-top: 2.25rem; color: var(--purple); }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }

/* Method grid */
.method-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.method {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.method strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.method p { font-size: 0.925rem; color: var(--text-soft); }

/* Pill tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 44, 110, 0.08);
  color: var(--purple);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: var(--bg-alt);
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-soft);
  max-width: 360px;
}
.footer-col h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 0.4rem; }
.footer-col a { font-size: 0.925rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--coral); }
.footer-network {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-network h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.footer-network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}
.footer-network-links a { color: var(--text-faint); }
.footer-network-links a:hover { color: var(--purple); }
.footer-network-links span { color: var(--border); }
.footer-bottom {
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .nav-links { gap: 0.5rem 1rem; font-size: 0.85rem; }
}
