/* Event ROI Finder — design tokens from blueprint */
:root {
  --primary: #047857;
  --onPrimary: #FFFFFF;
  --secondary: #10B981;
  --onSecondary: #FFFFFF;
  --accent: #E11D48;
  --onAccent: #FFFFFF;
  --background: #F8FAFC;
  --foreground: #1E293B;
  --card: #FFFFFF;
  --cardForeground: #1E293B;
  --muted: #E9EFF8;
  --mutedForeground: #64748B;
  --border: #E2E8F0;
  --destructive: #DC2626;
  --onDestructive: #FFFFFF;
  --ring: #047857;

  --container: 1100px;
  --radius: 2px;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--foreground);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1em;
  color: var(--mutedForeground);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #065f46;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ——— Navbar ——— */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.navbar__brand:hover {
  color: var(--primary);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--onPrimary);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.navbar__cta:hover {
  background: #065f46;
  color: var(--onPrimary);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform 150ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--onPrimary);
}

.btn--primary:hover {
  background: #065f46;
  color: var(--onPrimary);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background:
    linear-gradient(165deg, #ECFDF5 0%, var(--background) 42%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.hero__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--primary);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.hero__subtitle {
  font-size: 1.0625rem;
  max-width: 38ch;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions .btn {
  text-align: center;
  max-width: 100%;
}

/* Hero dashboard mockup */
.hero__visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(30, 41, 59, 0.04), 0 12px 32px rgba(30, 41, 59, 0.06);
  animation: hero-rise 600ms ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__visual-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mutedForeground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.hero__visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.hero__visual-dot:nth-child(1) { background: var(--accent); }
.hero__visual-dot:nth-child(2) { background: #F59E0B; }
.hero__visual-dot:nth-child(3) { background: var(--secondary); }

.dashboard-mock {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.dash-kpi {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
}

.dash-kpi__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mutedForeground);
  margin-bottom: 0.25rem;
}

.dash-kpi__value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.03em;
}

.dash-kpi__delta {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.15rem;
}

.dash-kpi__delta--down {
  color: var(--accent);
}

.dash-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.dash-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.dash-panel__title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mutedForeground);
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 110px;
  padding-top: 0.25rem;
}

.chart-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
  min-height: 8px;
  position: relative;
  transition: opacity var(--transition), filter var(--transition);
  animation: bar-grow 700ms ease both;
}

.chart-bar:nth-child(1) { animation-delay: 80ms; }
.chart-bar:nth-child(2) { animation-delay: 140ms; }
.chart-bar:nth-child(3) { animation-delay: 200ms; }
.chart-bar:nth-child(4) { animation-delay: 260ms; }
.chart-bar:nth-child(5) { animation-delay: 320ms; }
.chart-bar:nth-child(6) { animation-delay: 380ms; }

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.chart-bar:nth-child(odd) {
  background: var(--secondary);
}

.chart-bar:hover {
  opacity: 0.85;
  filter: brightness(1.06);
}

.chart-bar[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--foreground);
  color: var(--onPrimary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 2;
}

.chart-bar:hover[data-tooltip]::after {
  opacity: 1;
}

.chart-labels {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: var(--mutedForeground);
  font-weight: 500;
}

.venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.venue-table th {
  text-align: left;
  font-weight: 600;
  color: var(--mutedForeground);
  padding: 0.3rem 0.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.venue-table td {
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--muted);
  color: var(--cardForeground);
}

.venue-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius);
  font-size: 0.65rem;
  font-weight: 700;
}

.badge--high {
  background: #D1FAE5;
  color: #047857;
}

.badge--mid {
  background: #FEF3C7;
  color: #B45309;
}

.badge--low {
  background: #FFE4E6;
  color: #BE123C;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--muted);
  border-block: 1px solid var(--border);
}

.section__header {
  margin-bottom: 2rem;
  max-width: 44rem;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.section__subtitle {
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ——— Feature cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px rgba(4, 120, 87, 0.08);
}

.card__media {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.card__media svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}

.card__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ——— Audience list ——— */
.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.audience-list__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  font-size: 0.9375rem;
  color: var(--cardForeground);
  transition: border-color var(--transition);
}

.audience-list__item:hover {
  border-color: var(--secondary);
}

.audience-list__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: #D1FAE5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-list__icon svg {
  width: 14px;
  height: 14px;
}

/* ——— Testimonial ——— */
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 40rem;
  margin-inline: auto;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cardForeground);
  font-style: normal;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.testimonial__author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--foreground);
  margin: 0;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--mutedForeground);
  margin: 0.2rem 0 0;
}

/* ——— Waitlist ——— */
.waitlist {
  padding: 4.5rem 0;
  background:
    linear-gradient(180deg, #ECFDF5 0%, var(--muted) 100%);
  border-top: 1px solid var(--border);
}

.waitlist__inner {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.waitlist__title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.waitlist__subtitle {
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.waitlist-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.waitlist-form__row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18);
}

.waitlist-form input[type="email"].is-invalid {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.waitlist-form__error {
  font-size: 0.8125rem;
  color: var(--destructive);
  margin: 0;
  display: none;
}

.waitlist-form__error.is-visible {
  display: block;
}

.waitlist-form__hint {
  font-size: 0.75rem;
  color: var(--mutedForeground);
  margin: 0;
  text-align: center;
}

.waitlist-form__msg {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  text-align: center;
  display: none;
}

.waitlist-form__msg.is-visible {
  display: block;
}

.waitlist-form__msg.is-error {
  color: var(--destructive);
}

/* ——— Footer ——— */
.footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--foreground);
  letter-spacing: -0.03em;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--mutedForeground);
  margin: 0;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero__grid,
  .card-grid,
  .dash-body,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero__subtitle {
    max-width: none;
  }

  .waitlist-form__row {
    flex-direction: column;
  }

  .waitlist-form__row .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
  }
}
