/* BudgetDefence — Landing Page Styles
   Based on Concilely design language: dark slate, emerald accents, glassmorphism */

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: #f8fafc; /* slate-50 */
  background-color: #020618; /* slate-950 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Variables ────────────────────────────────────── */
:root {
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --slate-950: #020618;

  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --cyan-400: #22d3ee;
  --sky-500:  #0ea5e9;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --red-200:    #fecaca;
  --orange-200: #fed7aa;
  --amber-200:  #fde68a;
  --yellow-200: #fef08a;

  --max-w: 72rem; /* 1152px */
  --max-w-narrow: 64rem;
}

/* ── Layout Utilities ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ── Background Gradient Overlay ──────────────────── */
.bg-radial-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at top, #0f172a, transparent 45%),
    radial-gradient(circle at 30% 20%, rgba(59,130,246,0.15), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(16,185,129,0.18), transparent 35%);
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(2,6,24,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem 1rem;
}

.site-header__logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--slate-50);
}

.site-header__logo span {
  color: var(--emerald-400);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
}

.site-header__nav a:hover { color: #fff; }

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.site-header__cta a:hover { color: #fff; }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--slate-200);
  cursor: pointer;
}

.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  font-size: 0.875rem;
  color: var(--slate-200);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(2,6,24,0.95);
}

.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #fff; }

@media (min-width: 48rem) {
  .site-header__nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ── Section Helpers ──────────────────────────────── */
.section {
  position: relative;
  z-index: 10;
  padding-block: 4rem;
}

.section--alt {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(15,23,42,0.40);
}

.section--alt2 {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(15,23,42,0.50);
}

.section__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-200);
}

.section__title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.25rem;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero__content {
  max-width: 48rem;
}

.hero__content > * + * { margin-top: 1.5rem; }

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--slate-200);
}

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

.hero__trust-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 3rem; }
  .hero__trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn--primary {
  background: var(--emerald-400);
  color: var(--slate-900);
  box-shadow: 0 10px 15px -3px rgba(52,211,153,0.30);
}
.btn--primary:hover {
  background: var(--emerald-300);
}

.btn--secondary {
  background: rgba(255,255,255,0.10);
  color: var(--slate-100);
  border: 1px solid rgba(255,255,255,0.20);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.40);
}

.btn--white {
  background: #fff;
  color: var(--slate-900);
}
.btn--white:hover {
  background: var(--slate-100);
}

/* ── Trust Card (hero) ────────────────────────────── */
.trust-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--slate-200);
  user-select: none;
}

.trust-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--emerald-200);
  letter-spacing: 0.08em;
}

.trust-card__text {
  margin-top: 0.25rem;
  font-weight: 600;
  color: #fff;
}

/* ── Integration Strip ────────────────────────────── */
.integrations-strip {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(15,23,42,0.30);
  padding-block: 1.5rem;
}

.integrations-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

.integrations-strip__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  font-weight: 600;
}

.integrations-strip__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-200);
  user-select: none;
}

.integration-badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Problem Section ──────────────────────────────── */
.problem-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 0;
}

@media (min-width: 48rem) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

.problem-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
  user-select: none;
}

.problem-card > div + div { margin-top: 1rem; }

.problem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.pill--red    { background: rgba(254,202,202,0.10); color: var(--red-200); }
.pill--orange { background: rgba(254,215,170,0.10); color: var(--orange-200); }
.pill--amber  { background: rgba(253,230,138,0.10); color: var(--amber-200); }
.pill--yellow { background: rgba(254,240,138,0.10); color: var(--yellow-200); }

/* ── Steps / How It Works ─────────────────────────── */
.steps-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 64rem) {
  .steps-grid { grid-template-columns: repeat(5, 1fr); }
}

.step-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  user-select: none;
}

.step-card__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-200);
}

.step-card__title {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
}

.step-card__note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--emerald-200);
  font-style: italic;
}

/* ── Product Preview ──────────────────────────────── */
.preview-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .preview-grid { grid-template-columns: 1fr 1fr; }
}

.preview-mock {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.preview-mock__header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-mock__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.preview-mock__dot--r { background: #ef4444; }
.preview-mock__dot--y { background: #eab308; }
.preview-mock__dot--g { background: #22c55e; }

.preview-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.preview-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--slate-200);
}

.preview-table .app-name { font-weight: 600; color: #fff; }

.usage-bar-bg {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.usage-bar {
  height: 100%;
  border-radius: 9999px;
}

.usage-bar--high  { background: var(--emerald-400); }
.usage-bar--med   { background: #eab308; }
.usage-bar--low   { background: #ef4444; }

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.375rem;
}

.status-dot--good    { background: var(--emerald-400); }
.status-dot--warning { background: #eab308; }
.status-dot--danger  { background: #ef4444; }

.preview-values { display: grid; gap: 1rem; }

.value-block {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
}

.value-block__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-block__icon--emerald { background: rgba(52,211,153,0.15); color: var(--emerald-400); }
.value-block__icon--sky     { background: rgba(14,165,233,0.15); color: var(--sky-500); }
.value-block__icon--amber   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.value-block__icon--rose    { background: rgba(244,63,94,0.15);  color: #f43f5e; }

.value-block__title {
  font-weight: 600;
  color: #fff;
  font-size: 0.9375rem;
}

.value-block__desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--slate-300);
}

/* ── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.25rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,243,208,0.60);
  box-shadow: 0 10px 15px -3px rgba(52,211,153,0.20);
}

.feature-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(64px);
  transition: opacity 0.5s;
  background:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,0.25), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(14,165,233,0.25), transparent 35%);
  pointer-events: none;
}

.feature-card:hover .feature-card__glow { opacity: 0.6; }

.feature-card__body { position: relative; }
.feature-card__body > * + * { margin-top: 0.5rem; }

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.feature-card__desc {
  color: var(--slate-200);
  font-size: 0.875rem;
}

.feature-card__detail {
  font-size: 0.8125rem;
  color: var(--emerald-200);
}

.feature-card--highlight {
  border-color: rgba(110,231,183,0.40);
}

/* ── Audience / Who It's For ──────────────────────── */
.audience-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .audience-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.audience-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.25rem;
  user-select: none;
}

.audience-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.audience-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
}

.audience-card__list li::before {
  content: "\2713\00a0";
  color: var(--emerald-400);
  font-weight: 700;
}

/* ── Pricing ──────────────────────────────────────── */
.pricing-wrapper {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  user-select: none;
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .pricing-wrapper { grid-template-columns: 1.1fr 1fr; }
}

.pricing-info > * + * { margin-top: 0.75rem; }

.pricing-info ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
}

.pricing-cards { display: grid; gap: 1rem; }

.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
}

.pricing-card--featured {
  border-color: rgba(110,231,183,0.30);
  box-shadow: 0 10px 15px -3px rgba(52,211,153,0.20);
}

.pricing-card--featured .pricing-card__glow {
  position: absolute;
  inset: -2rem;
  opacity: 0.20;
  filter: blur(64px);
  background:
    radial-gradient(circle at 30% 20%, rgba(16,185,129,0.45), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(14,165,233,0.35), transparent 35%);
  pointer-events: none;
}

.pricing-card__body { position: relative; }
.pricing-card__body > * + * { margin-top: 0.75rem; }

.pricing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card__badge {
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.pricing-card__badge--neutral {
  background: rgba(255,255,255,0.10);
  color: var(--slate-100);
}

.pricing-card__badge--emerald {
  background: rgba(52,211,153,0.20);
  color: var(--emerald-100);
}

.pricing-card__price {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.pricing-card__price span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-300);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--slate-200);
}

.pricing-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-200);
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item__q:hover { color: var(--emerald-200); }

.faq-item__chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--slate-400);
}

.faq-item.open .faq-item__chevron { transform: rotate(180deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate-200);
  line-height: 1.6;
}

.faq-item.open .faq-item__a {
  max-height: 12rem;
  padding: 0 1.25rem 1.25rem;
}

/* ── Final CTA ────────────────────────────────────── */
.final-cta {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2rem;
  background: linear-gradient(to right,
    rgba(52,211,153,0.20),
    rgba(255,255,255,0.10),
    rgba(34,211,238,0.15)
  );
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .final-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.final-cta__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-100);
}

.final-cta__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 2rem;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__brand {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.site-footer__links a:hover { color: var(--slate-200); }

/* ── Misc ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-emerald-200 { color: var(--emerald-200); }
.text-slate-200   { color: var(--slate-200); }
.text-white       { color: #fff; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* savings callout */
.savings-callout {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(52,211,153,0.20);
  background: rgba(52,211,153,0.08);
  font-size: 0.875rem;
  color: var(--emerald-200);
  text-align: center;
  font-weight: 500;
}
