/* BusyMind AI — Base44-inspired marketing site */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --background: hsl(224, 20%, 96%);
  --foreground: hsl(226, 30%, 10%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(224, 18%, 92%);
  --muted-foreground: hsl(224, 12%, 48%);
  --primary: hsl(244, 85%, 60%);
  --primary-dark: hsl(244, 75%, 52%);
  --primary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(199, 90%, 48%);
  --border: hsl(224, 14%, 88%);
  --ring: hsl(244, 85%, 60%);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  background-image:
    radial-gradient(circle at 1px 1px, hsla(224, 14%, 78%, 0.45) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

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

/* Icon sizing — hard caps so layout never distorts */
svg {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  overflow: visible;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.store-badge svg,
.web-badge svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.icon-xs { width: 12px; height: 12px; max-width: 12px; max-height: 12px; }
.icon-sm { width: 14px; height: 14px; max-width: 14px; max-height: 14px; }
.icon-md { width: 14px; height: 14px; max-width: 14px; max-height: 14px; }
.icon-lg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--foreground);
}

.logo-link:hover { color: var(--foreground); }

.logo-link img {
  height: 48px;
  width: auto;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a:hover { color: var(--foreground); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--primary-foreground) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  box-shadow: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--primary-foreground) !important;
  transform: none;
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground) !important;
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-signin:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--foreground);
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 20px; height: 20px; pointer-events: none; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  background: hsla(0, 0%, 100%, 0.98);
  position: relative;
  z-index: 105;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 0; color: var(--foreground); font-weight: 500; }

/* Hero */
.hero {
  padding: 108px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}

.hero-ambient__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 50%;
  transform: translateX(-60%);
  background: hsla(244, 85%, 60%, 0.18);
}

.hero-ambient__orb--2 {
  width: 320px;
  height: 320px;
  top: 40px;
  right: -80px;
  background: hsla(199, 90%, 48%, 0.14);
}

.hero-ambient__orb--3 {
  width: 280px;
  height: 280px;
  bottom: 60px;
  left: -60px;
  background: hsla(244, 75%, 72%, 0.12);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, hsla(244, 85%, 60%, 0.1) 0%, transparent 62%),
    linear-gradient(180deg, hsla(0, 0%, 100%, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(244, 75%, 52%) 100%);
  border: 1px solid hsla(244, 85%, 60%, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px hsla(244, 85%, 60%, 0.28);
}

.hero-badge span {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 hsla(0, 0%, 100%, 0.5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 5vw, 3.125rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  width: 100%;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 28px;
  max-width: 560px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
}

.hero-preview {
  position: relative;
  width: min(920px, 100%);
  margin: 48px auto 0;
  padding: 0 12px 56px;
  z-index: 1;
}

.hero-preview__frame {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid hsla(244, 85%, 60%, 0.18);
  box-shadow:
    0 24px 64px hsla(244, 85%, 60%, 0.14),
    0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: var(--card);
}

.hero-preview__frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(244, 85%, 60%, 0.35), hsla(199, 90%, 48%, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-preview__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-preview__glow {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, hsla(244, 85%, 60%, 0.22) 0%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-card {
  background: hsla(0, 0%, 100%, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--primary);
}

.stat-card span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

/* How it works */
.how-section {
  padding-top: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color 0.25s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: hsla(244, 85%, 60%, 0.1);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.step-card__connector {
  display: none;
}

/* Section backgrounds */
.features-section {
  padding-top: 48px;
  position: relative;
}

.audience-section {
  padding-top: 0;
  background: linear-gradient(180deg, transparent 0%, hsla(244, 85%, 60%, 0.03) 50%, transparent 100%);
}

.app-showcase {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

#pricing {
  background: linear-gradient(180deg, transparent 0%, hsla(199, 90%, 48%, 0.03) 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn:hover { transform: none; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}

.btn-primary:hover { color: var(--primary-foreground); background: var(--primary-dark); }

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--muted); color: var(--foreground); }

.btn-accent {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}

.btn-accent:hover { background: var(--primary-dark); color: var(--primary-foreground); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  font-size: 14px;
  padding: 11px 22px;
}

.btn-outline-light:hover {
  background: hsla(0, 0%, 100%, 0.06);
  color: #fff;
}

.store-badges {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
}

.store-badges > .store-badge {
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 12px;
  transition: border-color 0.2s;
}

button.store-badge {
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}

.store-badge:hover {
  border-color: hsla(244, 85%, 60%, 0.35);
  box-shadow: none;
  color: var(--foreground);
}

.store-badge svg,
.web-badge svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
.store-badge strong { display: block; font-size: 13px; font-weight: 600; }
.store-badge small { font-size: 10px; color: var(--muted-foreground); }

/* Sections */
section { padding: 44px 0; }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: border-color 0.2s;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  height: 100%;
}

.feature-card:hover {
  box-shadow: none;
  transform: none;
  border-color: hsla(244, 85%, 60%, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  flex-shrink: 0;
  justify-self: center;
}

.feature-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  margin: 0 auto;
}

.feature-icon--violet { background: hsla(244, 85%, 60%, 0.1); color: var(--primary); }
.feature-icon--blue { background: hsla(217, 91%, 60%, 0.1); color: hsl(217, 91%, 55%); }
.feature-icon--emerald { background: hsla(162, 70%, 45%, 0.1); color: hsl(162, 70%, 40%); }
.feature-icon--amber { background: hsla(38, 95%, 52%, 0.1); color: hsl(38, 95%, 45%); }
.feature-icon--pink { background: hsla(346, 80%, 52%, 0.1); color: hsl(346, 80%, 50%); }
.feature-icon--orange { background: hsla(25, 95%, 53%, 0.1); color: hsl(25, 95%, 48%); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  width: 100%;
  text-align: center;
  justify-self: stretch;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  width: 100%;
  text-align: center;
  justify-self: stretch;
}

/* App showcase */
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.showcase-row--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.showcase-row--reverse .showcase-copy { order: 2; }
.showcase-row--reverse .showcase-screens { order: 1; }

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.showcase-copy p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 16px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
}

.showcase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.showcase-screens {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}

.device-frame {
  margin: 0;
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.device-frame--desktop {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  border-radius: 14px;
}

.device-frame__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #ECEFF3;
  border-bottom: 1px solid var(--border);
}

.device-frame__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}

.device-frame__chrome span:first-child { background: #FCA5A5; }
.device-frame__chrome span:nth-child(2) { background: #FDE68A; }
.device-frame__chrome span:nth-child(3) { background: #86EFAC; }

.device-frame--phone {
  flex: 0 0 155px;
  width: 155px;
  border-radius: 22px;
  padding: 8px 6px 10px;
  background: #0F172A;
  border-color: #1E293B;
}

.device-frame--phone img {
  border-radius: 16px;
}

/* Side-by-side: match phone height to the desktop frame so every row aligns */
@media (min-width: 961px) {
  .showcase-screens { align-items: stretch; }
  .device-frame--phone { align-self: stretch; }
  .device-frame--phone img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
}

.showcase-cta {
  text-align: center;
  margin-top: 12px;
}

/* Audience — four tiles in a row on desktop; single column on mobile */
.audience-section .audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--primary);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px hsla(244, 85%, 60%, 0.12),
    0 12px 40px hsla(244, 85%, 60%, 0.14);
  transform: none;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.pricing-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
  padding: 6px 0;
}

.pricing-features li svg {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  color: hsl(162, 70%, 40%);
  flex-shrink: 0;
  margin-top: 4px;
}

.pricing-card .btn { width: 100%; }

.pricing-cta {
  margin-top: auto;
}

.pricing-upgrade-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted-foreground);
  text-align: center;
}

/* CTA */
.cta-section { padding: 40px 0; }

.cta-box {
  position: relative;
  background: hsl(226, 28%, 10%);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  border: 1px solid hsl(226, 20%, 16%);
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(244, 85%, 60%, 0.55), hsla(199, 90%, 48%, 0.35), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, hsla(244, 85%, 60%, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box .hero-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-box p {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  color: hsl(224, 12%, 65%);
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-box .store-badge,
.cta-box .web-badge {
  background: hsla(0, 0%, 100%, 0.06);
  border-color: hsla(0, 0%, 100%, 0.12);
  color: #fff;
}

.cta-box .store-badge:hover,
.cta-box .web-badge:hover {
  color: #fff;
  border-color: hsla(0, 0%, 100%, 0.2);
}

.cta-box button.store-badge {
  background: hsla(0, 0%, 100%, 0.06);
  border-color: hsla(0, 0%, 100%, 0.12);
  color: #fff;
}

.cta-box button.store-badge:hover {
  color: #fff;
  border-color: hsla(0, 0%, 100%, 0.2);
}

/* App Store coming soon modal */
.app-store-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-store-modal.is-open {
  display: flex;
}

.app-store-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.app-store-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.app-store-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.app-store-modal-close:hover {
  color: var(--foreground);
  background: var(--muted);
}

.app-store-modal-message {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--foreground);
  margin-bottom: 20px;
}

.app-store-modal-cta {
  width: 100%;
}

/* Footer */
.site-footer {
  background: hsl(226, 28%, 8%);
  color: hsl(224, 12%, 60%);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: hsl(224, 20%, 94%);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
}

.footer-col h4 {
  color: hsl(224, 20%, 90%);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: hsl(224, 12%, 60%);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid hsl(226, 20%, 14%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

/* Legal & contact pages */
.legal-page,
.contact-page {
  padding: 120px 0 80px;
}

.legal-page h1,
.contact-info h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-updated {
  color: var(--muted-foreground);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-page h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--foreground);
}

.legal-page p,
.legal-page li {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul { padding-left: 24px; margin-bottom: 16px; }

.legal-page address {
  font-style: normal;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
}

.contact-lead {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(244, 85%, 60%, 0.1);
  border-radius: 6px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
}

.contact-detail strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 2px;
}

.contact-detail a,
.contact-detail span { font-size: 15px; color: var(--foreground); font-weight: 500; }

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form-alert--success {
  background: hsla(162, 70%, 45%, 0.1);
  color: hsl(162, 70%, 30%);
  border: 1px solid hsla(162, 70%, 45%, 0.25);
}

.form-alert--error {
  background: hsla(0, 72%, 51%, 0.08);
  color: hsl(0, 72%, 40%);
  border: 1px solid hsla(0, 72%, 51%, 0.2);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(244, 85%, 60%, 0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-submit { width: 100%; padding: 16px; font-size: 16px; margin-top: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; max-width: 360px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hero-preview { margin-top: 36px; padding-bottom: 40px; }
  .showcase-row,
  .showcase-row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-row--reverse .showcase-copy,
  .showcase-row--reverse .showcase-screens { order: initial; }
  .showcase-screens {
    flex-direction: column;
    align-items: center;
  }
  .device-frame--phone {
    flex-basis: 260px;
    width: 260px;
  }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.highlighted { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  section { padding: 36px 0; }
  .hero { padding: 88px 0 40px; }
  .stats-strip { margin-top: -12px; }
  .features-grid { grid-template-columns: 1fr; }
  .audience-section .audience-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .audience-card--work { grid-column: 1; grid-row: 1; }
  .audience-card--family { grid-column: 1; grid-row: 2; }
  .audience-card--school { grid-column: 1; grid-row: 3; }
  .audience-card--sports { grid-column: 1; grid-row: 4; }
  .showcase-row { margin-bottom: 40px; }
  .device-frame--phone { flex-basis: 240px; width: 240px; max-width: 80vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-box { padding: 48px 24px; }
  .contact-form-wrap { padding: 28px 20px; }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal — only active once JS confirms support (.js-reveal on <html>) */
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Hover micro-interactions (lifts) */
  .feature-card { transition: border-color 0.2s ease, box-shadow 0.28s ease, transform 0.28s ease; }
  .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: hsla(244, 85%, 60%, 0.28); }

  .feature-icon { transition: transform 0.28s ease; }
  .feature-card:hover .feature-icon { transform: scale(1.08); }

  .pricing-card { transition: border-color 0.2s ease, box-shadow 0.28s ease, transform 0.28s ease; }
  .pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

  .btn { transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.22s ease, transform 0.16s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover, .btn-accent:hover { box-shadow: 0 8px 22px hsla(244, 85%, 60%, 0.32); }

  .store-badge { transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.16s ease; }
  .store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

  .nav-cta { transition: background 0.2s, transform 0.16s ease, box-shadow 0.2s ease; }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px hsla(244, 85%, 60%, 0.3); }

  .device-frame { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .showcase-row:hover .device-frame--desktop,
  .showcase-row:hover .device-frame--phone { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 16px 40px rgba(15, 23, 42, 0.14)); }

  .footer-col a { transition: color 0.2s ease, transform 0.16s ease; }
  .footer-col a:hover { transform: translateX(3px); }

  /* Hero ambient motion */
  @keyframes float-orb-1 {
    0%, 100% { transform: translateX(-60%) translateY(0); }
    50% { transform: translateX(-55%) translateY(18px); }
  }
  @keyframes float-orb-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  @keyframes float-orb-3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
  }
  @keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 hsla(0, 0%, 100%, 0.45); }
    50% { box-shadow: 0 0 0 5px hsla(0, 0%, 100%, 0); }
  }
  @keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .hero-ambient__orb--1 { animation: float-orb-1 14s ease-in-out infinite; }
  .hero-ambient__orb--2 { animation: float-orb-2 11s ease-in-out infinite; }
  .hero-ambient__orb--3 { animation: float-orb-3 13s ease-in-out infinite; }
  .hero-badge span { animation: badge-pulse 2.4s ease-in-out infinite; }
  .hero-preview__frame { animation: hero-float 6s ease-in-out infinite; }

  .stat-card:hover,
  .step-card:hover {
    transform: translateY(-4px);
    border-color: hsla(244, 85%, 60%, 0.28);
    box-shadow: var(--shadow-md);
  }

  .stat-card,
  .step-card { transition: border-color 0.25s ease, box-shadow 0.28s ease, transform 0.28s ease; }

  .nav-desktop a:not(.nav-cta):not(.nav-signin) {
    position: relative;
    transition: color 0.2s ease;
  }
  .nav-desktop a:not(.nav-cta):not(.nav-signin)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 1px;
  }
  .nav-desktop a:not(.nav-cta):not(.nav-signin):hover::after {
    transform: scaleX(1);
  }

  .section-label {
    padding: 4px 10px;
    background: hsla(244, 85%, 60%, 0.08);
    border-radius: 999px;
    border: 1px solid hsla(244, 85%, 60%, 0.12);
  }

  .pricing-card.highlighted {
    animation: pricing-glow 4s ease-in-out infinite;
  }
  @keyframes pricing-glow {
    0%, 100% { box-shadow: var(--shadow-md), 0 0 0 1px hsla(244, 85%, 60%, 0.12), 0 12px 40px hsla(244, 85%, 60%, 0.12); }
    50% { box-shadow: var(--shadow-md), 0 0 0 1px hsla(244, 85%, 60%, 0.2), 0 16px 48px hsla(244, 85%, 60%, 0.2); }
  }
}

/* Header smooth state change on scroll */
.site-header { transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero-ambient__orb,
  .hero-badge span,
  .hero-preview__frame,
  .pricing-card.highlighted { animation: none !important; }
}
