:root {
  --bg: #0a0a14;
  --bg-elevated: #0f0f1c;
  --surface: #14142a;
  --surface-2: #1c1c35;
  --border: #2a2a45;
  --text: #e8e8f0;
  --muted: #9090a8;
  --muted-2: #7070a0;
  --accent: #e53935;
  --accent-glow: rgba(229, 57, 53, 0.35);
  --indigo: #3949ab;
  --indigo-bright: #7986cb;
  --cyan: #00bcd4;
  --orange: #fb8c00;
  --green: #43a047;
  --purple: #7b1fa2;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--indigo-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 69, 0.6);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-lockup:hover {
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: none;
  gap: 24px;
  margin-right: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c62828);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(229, 57, 53, 0.45);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 72px 0 72px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 140px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(229, 57, 53, 0.18) 0%,
    rgba(123, 31, 162, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(57, 73, 171, 0.2);
  border: 1px solid rgba(121, 134, 203, 0.35);
  color: var(--indigo-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-strapline {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

@media (min-width: 900px) {
  .hero-strapline {
    font-size: 1rem;
    margin-bottom: 14px;
  }
}

.hero h1 .accent {
  background: linear-gradient(135deg, #ff6b6b, #e53935 50%, #ab47bc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-cta {
  margin-bottom: 20px;
}

.hero-qr-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-qr-card {
  flex-shrink: 0;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-qr-image {
  display: block;
  width: 120px;
  height: 120px;
}

.hero-qr-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-qr-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text);
}

.hero-qr-sub {
  margin: 0;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-qr-price {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.hero-play-link {
  display: none;
}

.hero-ios-cta,
.hero-ios-note {
  display: none;
}

.hero-actions-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* iPhone / iPad: web dashboard is the primary path */
html.is-ios .hero-play-link,
html.is-ios .hero-qr-card,
html.is-ios .hero-qr-sub--desktop {
  display: none !important;
}

html.is-ios .hero-ios-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

html.is-ios .hero-ios-note {
  display: block;
  margin: 0;
  max-width: 360px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

html.is-ios .hero-dashboard-secondary {
  display: none;
}

/* Phones, tablets, and other touch screens: button instead of QR */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  .hero-qr-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-qr-card,
  .hero-qr-sub--desktop {
    display: none;
  }

  .hero-play-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 767px) {
  .header-login-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px var(--accent-glow);
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-qr-title {
    font-size: 1.05rem;
  }
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ── Phone mockups ──────────────────────────────────────────────────── */

.mockup-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.phone {
  width: 260px;
  background: #050508;
  border-radius: 36px;
  padding: 10px;
  border: 2px solid #2a2a45;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone--back {
  position: absolute;
  right: 0;
  top: 40px;
  transform: rotate(6deg) scale(0.92);
  opacity: 0.92;
  z-index: 1;
}

.phone--front {
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
}

@media (max-width: 899px) {
  .phone--back {
    display: none;
  }

  .phone--front {
    transform: none;
  }
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #050508;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 6px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid var(--border);
}

/* Parent dashboard mockup */
.ui-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 6px;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.ui-header-title {
  padding: 4px 16px 12px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ui-card {
  margin: 0 12px 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ui-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ui-child-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.ui-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ui-badge--locked {
  background: rgba(229, 57, 53, 0.2);
  color: #ef5350;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.ui-badge--active {
  background: rgba(67, 160, 71, 0.15);
  color: var(--green);
  border: 1px solid rgba(67, 160, 71, 0.35);
}

.ui-battery {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 700;
}

.ui-timing-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.ui-chip {
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
}

.ui-chip--on {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.5);
  color: var(--cyan);
}

.ui-pause-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}

.ui-pause-btn--resume {
  background: var(--orange);
  box-shadow: 0 6px 20px rgba(251, 140, 0, 0.3);
}

.ui-schedule {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(57, 73, 171, 0.12);
  border: 1px solid rgba(121, 134, 203, 0.25);
  font-size: 0.62rem;
  color: var(--muted);
}

.ui-schedule strong {
  color: var(--indigo-bright);
  display: block;
  margin-bottom: 2px;
}

/* Lock overlay mockup */
.ui-lock-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 32px 20px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(229, 57, 53, 0.12),
    var(--bg) 55%
  );
}

.ui-lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  box-shadow: 0 12px 40px var(--accent-glow);
  margin-bottom: 20px;
  font-size: 2rem;
}

.ui-lock-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ui-lock-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 200px;
}

.ui-lock-pulse {
  margin-top: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

/* Chart mockup */
.ui-chart {
  padding: 14px;
}

.ui-chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.ui-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--indigo-bright), var(--indigo));
  opacity: 0.85;
}

.ui-bar--high {
  height: 85%;
  background: linear-gradient(180deg, #ef5350, var(--accent));
}

.ui-bar--mid {
  height: 55%;
}

.ui-bar--low {
  height: 30%;
  opacity: 0.5;
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding: 72px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(20, 20, 42, 0.5), transparent);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-bright);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.65;
}

/* Problem stats */
.stat-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .feature-row--reverse .feature-copy {
    order: 2;
  }

  .feature-row--reverse .feature-visual {
    order: 1;
  }
}

.feature-copy h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-copy p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.65;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-visual .phone {
  transform: none;
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
}

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

.step-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(121, 134, 203, 0.12);
  line-height: 1;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: rgba(57, 73, 171, 0.2);
  border: 1px solid rgba(121, 134, 203, 0.3);
}

/* CTA band */
.cta-band {
  margin: 0 0 72px;
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(57, 73, 171, 0.25),
    rgba(229, 57, 53, 0.15)
  );
  border: 1px solid rgba(121, 134, 203, 0.3);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 1.02rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted-2);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.legal-footer a {
  margin-right: 16px;
}
