/* ═══════════════════════════════════════════════════════
   LOCKBOARD — Single-page layout (100vh × 100vw)
   Primary: #5721B3 | Font: Plus Jakarta Sans

   Vertical budget (desktop):
     Topbar:             53px  (16+21+16)
     Hero grid:          flex 1 (stretches to fill)
     Testimonials strip: 130px (fixed)
   ═══════════════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --brand:       #5721B3;
  --brand-hover: #4a1a99;
  --brand-tint:  rgba(87, 33, 179, 0.07);
  --brand-glow:  rgba(87, 33, 179, 0.18);

  --text:           #0f0f1a;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --bg:             #ffffff;
  --bg-subtle:      #fafafa;
  --bg-tint:        #f7f4ff;
  --border:         #e5e7eb;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-pill: 100px;

  --shadow-brand:  0 8px 28px rgba(87,33,179,0.30);
  --shadow-device: 0 20px 56px rgba(87,33,179,0.18), 0 6px 20px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t:      200ms ease;
  --t-slow: 360ms ease;

  /* Fixed heights — single source of truth */
  --topbar-h:       57px;
  --strip-h:        195px;
  /* Video height = viewport minus all overhead */
  --video-h: calc(100vh - var(--topbar-h) - var(--strip-h) - 80px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;

  /* ★ The single-page constraint */
  width:    100vw;
  height:   100vh;
  overflow: hidden;
  display:  flex;
  flex-direction: column;
}
img, video { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }

/* ───────────────────────────────────────────
   TOPBAR  (fixed height: var(--topbar-h))
─────────────────────────────────────────── */
.topbar {
  flex-shrink: 0;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

.topbar-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  justify-self: center;
}

.topbar-cta {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(87,33,179,0.28);
}

/* ───────────────────────────────────────────
   MAIN  (fills remaining height)
─────────────────────────────────────────── */
.main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 48px;
  overflow: hidden;
}

/* Background glow — top-right purple orb */
.bg-glow {
  position: absolute;
  top: -140px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(87,33,179,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid — fades toward edges */
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(87,33,179,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-image: linear-gradient(135deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

/* ───────────────────────────────────────────
   HERO GRID  (stretches between topbar and strip)
─────────────────────────────────────────── */
.hero-grid {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 28px 0 20px;
}

/* ─── Left: copy ─── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.accent { color: var(--brand); }

.hero-sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 20px;
}

/* 3-col feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.feature strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.feature span {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* CTA row */
.hero-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-lg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background var(--t), color var(--t), box-shadow var(--t),
              transform var(--t), border-color var(--t);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 12px 36px rgba(87,33,179,0.40);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-brand); }

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

.shortcut-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.75;
  transition: color var(--t), opacity var(--t);
}
.shortcut-link:hover { opacity: 1; color: var(--brand); }

/* CTA footnote micro-copy */
.cta-footnote {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Bottom CTA — shown on mobile after testimonials, hidden on desktop */
.bottom-cta {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}
.bottom-cta .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }

/* ─── Right: devices ─── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
}

/* Purple glow orb behind phones */
.devices-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(87,33,179,0.16) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.devices {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.device-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-device);
  cursor: pointer;
  outline: none;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.device-frame:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 28px 64px rgba(87,33,179,0.26), 0 8px 24px rgba(0,0,0,0.12);
}
.device-frame:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

/* Second phone offset for layered depth */
.device-frame--offset { margin-top: 36px; }

/* ★ Video height is fully calculated — no overflow */
.app-video {
  height: var(--video-h);
  width: auto;
  display: block;
}

/* Pause/play overlay */
.pause-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.pause-overlay svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.device-frame.paused .pause-overlay,
.device-frame:hover .pause-overlay { opacity: 1; }

/* ───────────────────────────────────────────
   TESTIMONIALS STRIP  (fixed: var(--strip-h))
─────────────────────────────────────────── */
.testimonials-strip {
  flex-shrink: 0;
  height: var(--strip-h);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.strip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.testimonials-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.testimonial-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: default;
  transition: transform var(--t), box-shadow var(--t);
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.t-stars {
  display: flex;
  gap: 2px;
}

.t-quote {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  font-style: normal;
}

.t-author {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ───────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */

/* ── Tablet  (≤ 900px) ── */
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }

  .main { overflow: visible; padding: 0 32px; }

  .topbar { padding: 0 24px; }
  .topbar-cta { font-size: 12px; padding: 8px 16px; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 36px 0 28px;
    gap: 40px;
  }
  .hero-headline { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-visual { justify-content: center; }

  /* Keep both phones side-by-side but smaller */
  .device-frame--offset { margin-top: 28px; }
  .app-video { height: clamp(280px, 42vw, 440px); }

  /* Testimonials scroll freely */
  .testimonials-strip { height: auto; padding: 28px 0 36px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .bottom-cta { display: flex; }
}

/* ── Mobile  (≤ 600px) ── */
@media (max-width: 600px) {
  .main { padding: 0 20px; }

  /* Topbar: icon-only CTA to save space */
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-cta .btn-label { display: none; }   /* hide text, keep icon */
  .topbar-cta {
    padding: 9px 12px;
    font-size: 0;      /* collapse text */
    gap: 0;
  }
  .topbar-cta svg { width: 20px; height: 20px; }

  /* Hero */
  .hero-grid { gap: 28px; padding: 28px 0 20px; }
  .hero-content { width: 100%; align-items: stretch; }
  .hero-headline { font-size: clamp(1.75rem, 9vw, 2.2rem); line-height: 1.12; }
  .hero-sub { font-size: 14px; max-width: 100%; margin-bottom: 16px; }

  /* Features: single column on small screens */
  .features-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .feature { flex-direction: row; align-items: flex-start; gap: 10px; }
  .feature-icon {
    flex-shrink: 0;
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
  }
  .feature strong, .feature span { display: inline; }
  .feature strong::after { content: ' '; }

  /* CTAs stack full-width */
  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 14px; width: 100%; align-self: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; box-sizing: border-box; }

  /* Single phone — hide offset duplicate */
  .device-frame--offset { display: none; }
  .devices { justify-content: center; }
  .app-video { height: clamp(300px, 72vw, 420px); }
  .device-frame { border-radius: 20px; }

  /* Testimonials: single column */
  .testimonials-strip { padding: 24px 0 32px; gap: 12px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 10px; }
  .t-quote { font-size: 13px; }
  .strip-label { font-size: 10px; }
}

/* ── Very small (≤ 380px) ── */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.65rem; }
  .logo { display: none; }          /* icon alone is enough */
}

/* Video caption */
.video-caption {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
