@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 210 40% 95%;
  --border: 210 40% 85%;
  --card-foreground: 0 0% 0%;
  --primary: 300 100% 66%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 90%;
  --secondary-foreground: 0 0% 0%;
  --muted: 0 0% 90%;
  --muted-foreground: 0 0% 30%;
  --accent: 300 100% 66%;
  --accent-foreground: 0 0% 100%;
  --surface: 0 0% 100%;
  --surface-foreground: 0 0% 0%;
  --glow: 300 100% 66%;
  --radius: 0.5rem;
}

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

body {
  font-family: 'Red Hat Display', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: 'Red Hat Display', sans-serif; }
.font-mono, code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes score-fill {
  from { width: 0%; }
  to   { width: var(--score-width); }
}

.animate-slide-up  { animation: slide-up  0.6s ease-out forwards; }
.animate-fade-in   { animation: fade-in   0.4s ease-out forwards; }
.animate-score-fill{ animation: score-fill 1.5s ease-out forwards; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, hsl(172 66% 50% / 0.08), transparent 60%);
}
.hero-inner {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .dashboard-desktop { display: none !important; }
  .dashboard-mobile  { display: block !important; }
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--primary));
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--foreground));
}
.hero h1 span  { color: hsl(var(--primary)); }
.hero .subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
}
.hero .subtext { font-size: 1rem; color: hsl(var(--surface-foreground)); }

/* ─── Input CTA ──────────────────────────────────────────────── */
.input-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}
.input-group {
  display: flex;
  gap: 12px;
  max-width: 32rem;
}
.input-group input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}
.input-group input::placeholder { color: hsl(var(--muted-foreground)); }
.input-group input:focus {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.btn-hero {
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 0 20px hsl(var(--glow) / 0.3);
}
.btn-hero:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 30px hsl(var(--glow) / 0.5);
}

.microcopy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

/* ─── Dashboard Mockup ───────────────────────────────────────── */
.dashboard {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}
.dashboard-glow {
  position: absolute;
  inset: -16px;
  background: hsl(var(--primary) / 0.05);
  border-radius: 16px;
  filter: blur(16px);
}
.dashboard-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid hsl(var(--border));
}
.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.3);
}
.dashboard-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-left: 8px;
}
.dashboard-body { padding: 20px; }
.dashboard-body > * + * { margin-top: 20px; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}

/* Score Circle */
.score-circle { text-align: center; }
.score-circle svg { width: 80px; height: 80px; }
.score-number {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* Content Activity */
.content-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}
.content-row + .content-row { margin-top: 8px; }
.content-label {
  width: 80px;
  color: hsl(var(--surface-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-bar-bg {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.content-bar {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.7);
}
.content-count {
  font-family: 'JetBrains Mono', monospace;
  color: hsl(var(--primary));
  width: 24px;
  text-align: right;
}

/* Signal Bars */
.signal-bar { margin-bottom: 12px; }
.signal-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.signal-bar-label { color: hsl(var(--surface-foreground)); }
.signal-bar-value { font-family: 'JetBrains Mono', monospace; color: hsl(var(--primary)); }
.signal-bar-bg {
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.signal-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary));
}

/* ─── Social Proof ───────────────────────────────────────────── */
.social-proof {
  padding: 64px 24px;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
.social-proof-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) { .social-proof-inner { gap: 64px; } }
.social-item {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}
.social-item strong { color: hsl(var(--foreground)); font-weight: 500; }
.social-icon { width: 16px; height: 16px; color: hsl(var(--primary)); }

/* ─── How It Works ───────────────────────────────────────────── */
.how-it-works { padding: 96px 24px; }
.how-it-works-inner { max-width: 56rem; margin: 0 auto; }
.how-it-works h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 767px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 30px hsl(var(--glow) / 0.08);
}
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.4);
}
.step-icon {
  margin-top: 12px;
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg { width: 20px; height: 20px; color: hsl(var(--primary)); }
.step-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ─── Mobile Dashboard ───────────────────────────────────────── */
.dashboard-mobile { display: none; padding: 64px 24px; text-align: center; }
.dashboard-mobile .eyebrow { margin-bottom: 32px; }

/* ─── Footer CTA ─────────────────────────────────────────────── */
.footer-cta { padding: 96px 24px; text-align: center; }
.footer-cta-inner { max-width: 40rem; margin: 0 auto; }
.footer-cta h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-cta .subtitle { color: hsl(var(--muted-foreground)); margin-bottom: 24px; }
.footer-cta .btn-hero { font-size: 1rem; padding: 0 32px; height: 56px; }
.footer-line {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid hsl(var(--border));
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.footer-line p { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ─── Content Card ───────────────────────────────────────────── */
.content-card {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 30px;
}

/* ─── Page Header (from file 2) ──────────────────────────────── */
.header {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: hsl(var(--foreground)); }
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--primary));
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* ─── Calculator Layout (from file 2) ───────────────────────── */
.calculator { padding: 0 24px 96px; }
.calc-inner { max-width: 1152px; margin: 0 auto; }
.calc-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1023px) { .calc-grid { grid-template-columns: 1fr; } }

/* Input cards */
.inputs { display: flex; flex-direction: column; gap: 16px; }
.input-card {
  padding: 20px;
  border-radius: 12px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}
.input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.input-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.icon-sm { width: 16px; height: 16px; color: hsl(var(--primary)); flex-shrink: 0; }
.input-value { font-size: 14px; font-weight: 600; color: hsl(var(--primary)); }

/* Tooltip */
.tooltip-trigger {
  cursor: help;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  position: relative;
}
.tooltip-trigger:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 260px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 400;
}

/* Slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  outline: none;
  margin-bottom: 4px;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(var(--surface));
  border: 2px solid hsl(var(--primary));
  cursor: pointer;
  box-shadow: 0 0 8px hsl(var(--glow) / 0.3);
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(var(--surface));
  border: 2px solid hsl(var(--primary));
  cursor: pointer;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

/* ─── Output / Results (from file 2) ────────────────────────── */
.output {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1023px) { .output { position: static; } }

.result-card {
  border-radius: 12px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--card));
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 40px hsl(var(--glow) / 0.08);
}
.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}
.result-amount {
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 8px 0;
}
.result-detail { font-size: 14px; color: hsl(var(--muted-foreground)); }

/* Frequency table */
.freq-table {
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
}
.freq-table-header {
  padding: 12px 20px;
  border-bottom: 1px solid hsl(var(--border));
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}
.freq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 2px solid transparent;
  border-bottom: 1px solid hsl(var(--border));
}
.freq-row:last-child { border-bottom: none; }
.freq-row:hover { background: hsl(var(--secondary) / 0.5); }
.freq-row.active {
  background: hsl(var(--primary) / 0.08);
  border-left-color: hsl(var(--primary));
}
.freq-row .freq-label { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.freq-row.active .freq-label,
.freq-row.active .freq-budget { color: hsl(var(--primary)); }
.freq-tag { font-size: 10px; color: hsl(var(--muted-foreground)); margin-left: 8px; }
.freq-right { text-align: right; font-family: 'JetBrains Mono', monospace; }
.freq-budget { font-weight: 600; }
.freq-daily { font-size: 12px; color: hsl(var(--muted-foreground)); margin-left: 8px; }

.context-line { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.6; padding: 0 4px; }

/* ─── CTA Section (from file 2) ─────────────────────────────── */
.cta-section {
  max-width: 36rem;
  margin: 48px auto 0;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
  padding: 24px;
  text-align: center;
}
.cta-title { font-size: 14px; font-weight: 500; }
.cta-subtitle { font-size: 12px; color: hsl(var(--muted-foreground)); margin: 8px 0 16px; }

/* ─── Hero subtitle alias (from file 2) ─────────────────────── */
.hero-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 16px auto 0;
}

/* ─── Hero content wrapper (from file 2, centered variant) ──── */
.hero-content {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  text-align: center;
}