/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f5f7fa;
  color: #2d3748;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #306EE8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1E4BB0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  color: #1a202c;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #306EE8;
  display: inline-block;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: #2d3748;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 64px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lexend', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.9px;
}

.brand:hover {
  color: #1E293B;
  opacity: 0.85;
}

.brand__logo {
  height: 32px;
  width: auto;
  border: none;
  border-radius: 0;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.nav a:hover {
  color: #306EE8;
  background: rgba(48, 110, 232, 0.08);
}

.nav a.active {
  color: #306EE8;
  background: rgba(48, 110, 232, 0.12);
  font-weight: 600;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.layout {
  padding-top: 90px;
  padding-bottom: 4rem;
}

/* ===== HERO BANNER ===== */
.hero {
  margin-top: 64px;
  background: #f0f4f8;
  border-bottom: 1px solid #e2e8f0;
  padding: 3.5rem 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__title {
  font-family: 'Lexend', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 480px;
}

.hero__meta {
  font-size: 0.95rem;
  color: #718096;
  font-weight: 500;
}

.hero__visual {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.hero__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== SINGLE COLUMN CONTENT ===== */
.content-single {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card__title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #306EE8;
  margin-bottom: 0.4rem;
}

.muted {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
}

.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1rem 0;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
}

.kv__k {
  color: #a0aec0;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kv__v {
  color: #2d3748;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #306EE8, #2858C5);
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(48, 110, 232, 0.25);
}

.btn:hover {
  background: linear-gradient(135deg, #2858C5, #1E4BB0);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(48, 110, 232, 0.35);
}

.side-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #306EE8;
  border-bottom: 1px solid #f0f0f0;
}

.side-link:last-child {
  border-bottom: none;
}

.side-link:hover {
  color: #1E4BB0;
}

/* ===== CONTENT AREA ===== */
.content {
  min-width: 0;
}

.section {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: fadeUp 0.5s ease both;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
.section:nth-child(6) { animation-delay: 0.3s; }
.section:nth-child(7) { animation-delay: 0.35s; }
.section:nth-child(8) { animation-delay: 0.4s; }
.section:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lead {
  font-size: 1.15rem;
  color: #4a5568;
  margin-bottom: 1.8rem;
  font-weight: 400;
  line-height: 1.7;
  border-left: 3px solid #306EE8;
  padding-left: 1rem;
}

/* ===== FIGURES ===== */
.figure {
  margin: 1.8rem 0;
  text-align: center;
}

.figure img {
  border-radius: 10px;
  margin: 0 auto;
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #a0aec0;
  font-style: italic;
}

/* Image placeholder for missing images */
.img-placeholder {
  background: linear-gradient(135deg, #edf2f7, #e2e8f0);
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
  color: #a0aec0;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 auto;
}

.img-placeholder::before {
  content: "🖼";
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-style: normal;
}

/* ===== FEEDBACK IMAGES ROW ===== */
.feedback-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.8rem 0;
  flex-wrap: nowrap;
}

.feedback-row .figure {
  margin: 0;
}

.feedback-row .figure img {
  height: 420px;
  width: auto;
  object-fit: contain;
}

.feedback-before {
  flex: 0 1 auto;
  min-width: 0;
}

.feedback-after-group {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
}

.feedback-after-group .figure {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

.feedback-arrow {
  font-size: 2rem;
  color: #306EE8;
  font-weight: 700;
  flex-shrink: 0;
  align-self: center;
}

/* ===== CHART ROW (side by side) ===== */
.chart-row {
  display: flex;
  gap: 1.5rem;
  margin: 1.8rem 0;
  align-items: stretch;
}

.chart-row .figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-row .figure img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

/* Solo survey charts (chart3, chart4) */
.figure--solo-chart img {
  max-width: 380px;
  margin: 0 auto;
}

/* ===== FIGMA EMBED ===== */
.figma-embed {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.figma-embed__label {
  margin: 0;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #306EE8, #2858C5);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.figma-embed iframe {
  display: block;
  border-radius: 0 0 12px 12px;
}

/* ===== CALLOUT ===== */
.callout {
  background: linear-gradient(135deg, rgba(48, 110, 232, 0.06), rgba(48, 110, 232, 0.02));
  border-left: 4px solid #306EE8;
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.callout__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #306EE8;
  margin-bottom: 0.3rem;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== SURVEY LINK CALLOUT ===== */
.survey-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(48, 110, 232, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}

.survey-link:hover {
  background: rgba(48, 110, 232, 0.15);
}

/* ===== TESTING TABLE ===== */
.test-section {
  margin-bottom: 1.5rem;
}

.test-section__title {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3748;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: rgba(48, 110, 232, 0.06);
  border-radius: 6px;
  display: inline-block;
}

.test-list {
  list-style: none;
  padding-left: 0;
}

.test-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.8rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #f7fafc;
}

.test-list li:last-child {
  border-bottom: none;
}

.test-list li::before {
  content: "✓";
  position: absolute;
  left: 0.3rem;
  color: #306EE8;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 1.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section {
    padding: 1.4rem;
    border-radius: 10px;
  }

  .feedback-row {
    flex-direction: column;
  }

  .feedback-after-group {
    flex-direction: column;
  }

  .feedback-arrow {
    transform: rotate(90deg);
  }

  .chart-row {
    flex-direction: column;
  }

  .chart-row .figure img {
    height: auto;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(48, 110, 232, 0.2);
  color: #1a202c;
}
