/* ============================================
   SCREENPROP — MARKETING SITE STYLES
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand */
  --brand-blue: #2979FF;
  --brand-blue-dark: #1A73E8;
  --brand-blue-glow: rgba(41, 121, 255, 0.25);
  --brand-blue-subtle: rgba(41, 121, 255, 0.08);

  /* Surfaces */
  --bg-primary: #000000;
  --bg-secondary: #060606;
  --bg-card: #0D0D0D;
  --bg-card-border: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(10, 10, 10, 0.85);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #555555;

  /* Typography */
  --font-hero: clamp(2.6rem, 6vw, 5rem);
  --font-heading: clamp(1.8rem, 4vw, 3.2rem);
  --font-subheading: clamp(1.3rem, 2.5vw, 2rem);
  --font-body: clamp(1rem, 1.2vw, 1.2rem);
  --font-small: 0.875rem;
  --font-overline: 0.75rem;

  /* Spacing */
  --section-pad: clamp(5rem, 12vh, 10rem);
  --container-max: 1200px;
  --container-narrow: 720px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-slow: 1s;
  --dur-med: 0.7s;
  --dur-fast: 0.35s;
}

/* === UTILITY CLASSES === */
.text-blue { color: var(--brand-blue); }
.text-muted { color: var(--text-secondary); font-size: var(--font-small); }

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* === REVEAL ANIMATIONS === */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal       { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.92); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Hero-specific reveals (triggered on page load, not scroll) */
.reveal-hero {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s var(--ease-out-expo),
    transform 1.2s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

.reveal-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { --delay: 0s; }
.stagger > *:nth-child(2) { --delay: 0.12s; }
.stagger > *:nth-child(3) { --delay: 0.24s; }
.stagger > *:nth-child(4) { --delay: 0.36s; }
.stagger > *:nth-child(5) { --delay: 0.48s; }
.stagger > *:nth-child(6) { --delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ring-pulse, .hero__glow { animation: none !important; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--dur-fast) ease, backdrop-filter var(--dur-fast) ease, padding var(--dur-fast) ease;
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 0.6rem 0;
}

.nav__inner {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 2.5rem;
}

.nav__link {
  font-size: var(--font-small);
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  letter-spacing: 0.02em;
}

.nav__link:hover {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 20px var(--brand-blue-glow);
}

.btn--primary:hover {
  background: var(--brand-blue-dark);
  box-shadow: 0 0 30px var(--brand-blue-glow), 0 0 60px rgba(41, 121, 255, 0.15);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-small);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero__glow--cta {
  width: 500px;
  height: 500px;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero__grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__phones {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero__headline {
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: var(--font-body);
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge__svg--apple { width: 135px; height: 45px; }
.store-badge__svg--google { width: 152px; height: 45px; }
.store-badge__img { height: 45px; width: auto; }

.hero__micro {
  margin-top: 1.5rem;
  font-size: var(--font-small);
  color: var(--text-muted);
}

/* ============================================
   PHONE MOCKUPS
   ============================================ */
.phone-mockup {
  position: relative;
  width: 140px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(41, 121, 255, 0.05);
}

.phone-mockup--feature {
  width: 220px;
}

.phone-mockup--feature .phone-mockup__screen img {
  object-position: center 3px;
}

.phone-mockup__screen {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: stretch;
}

.phone-mockup__screen--lockscreen {
  background: linear-gradient(180deg, #0a0a1a 0%, #111122 100%);
}

.phone-mockup__placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 1rem;
  padding-top: calc(1rem + 3px);
}

.phone-mockup__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.phone-mockup__icon {
  width: 28px;
  height: 28px;
  color: var(--brand-blue);
}

/* Message mockup */
.phone-mockup__placeholder--messages {
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
}

.mock-msg {
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.55rem;
  line-height: 1.4;
  max-width: 80%;
}

.mock-msg--sent {
  background: var(--brand-blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mock-msg--received {
  background: #2a2a2c;
  color: #ddd;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* iOS vs Android message styles */
.mock-msg--ios.mock-msg--sent { background: #0A84FF; border-radius: 18px; border-bottom-right-radius: 4px; }
.mock-msg--ios.mock-msg--received { background: #3A3A3C; border-radius: 18px; border-bottom-left-radius: 4px; }
.mock-msg--android.mock-msg--sent { background: #2979FF; border-radius: 8px; border-bottom-right-radius: 2px; }
.mock-msg--android.mock-msg--received { background: #2C2C2C; border-radius: 8px; border-bottom-left-radius: 2px; }

.phone-mockup__placeholder--ios { background: #000; }
.phone-mockup__placeholder--android { background: #121212; }

/* Inbox mockup */
.phone-mockup__placeholder--inbox {
  justify-content: flex-start;
  gap: 0;
  padding: 0.5rem;
  align-items: stretch;
}

.mock-inbox-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.5rem;
  color: #ccc;
}

.mock-inbox-row--unread { position: relative; }

.mock-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.mock-badge {
  background: var(--brand-blue);
  color: #fff;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

/* Call mockup */
.phone-mockup__placeholder--call {
  background: linear-gradient(180deg, #1a1a1e 0%, #0a0a0e 100%);
  justify-content: center;
  gap: 0.5rem;
}

.mock-caller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2979FF 0%, #1A73E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
}

.mock-caller-name {
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
}

.mock-caller-status {
  font-size: 0.5rem;
  color: var(--text-secondary);
}

.mock-call-actions {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
}

.mock-call-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.mock-call-btn--decline { background: #FF3B30; color: #fff; }
.mock-call-btn--accept { background: #34C759; color: #fff; }
.mock-call-btn--accept-vc { background: #34C759; color: #fff; font-size: 0.6rem; }

/* Ring pulse animation */
.phone-mockup--ring .ring-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--brand-blue);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.phone-mockup--ring.ringing .ring-pulse {
  animation: ringPulse 2s ease-out infinite;
}

.phone-mockup--ring.ringing .ring-pulse--2 {
  animation-delay: 0.5s;
}

.phone-mockup--ring.ringing {
  animation: phoneRing 0.15s ease-in-out 6;
}

@keyframes ringPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

/* Video call mockup */
.phone-mockup__placeholder--videocall {
  background: #1C1C1E;
  justify-content: center;
  gap: 0.5rem;
}

.mock-vc-header {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-vc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34C759 0%, #2a9d4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
}

.mock-vc-name {
  font-size: 0.85rem;
  font-weight: 300;
  color: #fff;
}

.mock-vc-actions {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

/* Lock screen mockup */
.mock-lockscreen {
  width: 100%;
  padding: 1.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mock-lockscreen__time {
  font-size: 2.2rem;
  font-weight: 200;
  text-align: center;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.mock-lockscreen__date {
  font-size: 0.5rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.mock-notification {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  font-size: 0.45rem;
  color: #ddd;
  line-height: 1.3;
}

.mock-notif-icon {
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Notification cascade animation */
.mock-notification--1 { --notif-delay: 0s; }
.mock-notification--2 { --notif-delay: 0.15s; }
.mock-notification--3 { --notif-delay: 0.3s; }

.visible .mock-notification {
  animation: notifCascade 0.6s var(--ease-out-back) var(--notif-delay) both;
}

@keyframes notifCascade {
  from { opacity: 0; transform: translateY(-15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Continuity mockup */
.phone-mockup__placeholder--continuity {
  justify-content: flex-start;
  padding: 0.5rem;
  gap: 1rem;
}

.mock-statusbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
  padding: 0.25rem 0.25rem 0;
}

.mock-statusbar__right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.45rem;
}

.mock-signal {
  font-size: 0.4rem;
  letter-spacing: -0.05em;
}

.mock-battery {
  width: 16px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 2px;
  position: relative;
  display: inline-block;
}

.mock-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}

.mock-battery__fill {
  display: block;
  height: 100%;
  background: #34C759;
  border-radius: 1px;
}

.mock-continuity-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-control {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  padding: 0.3rem 0.4rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}

/* Continuity time flicker animation */
.continuity-time {
  display: inline-block;
}

.continuity-time.flicker {
  animation: timeFlicker 0.08s steps(1) 8;
}

@keyframes timeFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Split section: paired tilted phones */
.split__phones {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.phone-mockup--tilt-left {
  transform: rotate(-5deg) translateY(15px);
}

.phone-mockup--tilt-right {
  transform: rotate(5deg) translateY(-10px);
}

@media (min-width: 1024px) {
  .split__phones { gap: 1.5rem; }
}

/* Burner mockup — screenshot wipe */
.burner-screen {
  position: relative;
}

.burner-before-img {
  position: relative;
  z-index: 1;
}

.burner-after-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s var(--ease-out-expo);
}

.visible .burner-after-img {
  clip-path: inset(0 0 0 0);
  transition-delay: 1.8s;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section--problem {
  background: var(--bg-secondary);
}

.section--features {
  background: var(--bg-primary);
}

.section--how {
  background: var(--bg-secondary);
}

.section--platforms {
  background: var(--bg-primary);
}

.section--usecases {
  background: var(--bg-secondary);
}

.section--pricing {
  background: var(--bg-primary);
}

.section--cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.5);
}

.overline {
  display: block;
  font-size: var(--font-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.section__heading {
  font-size: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section__body {
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.divider-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
  margin: 3rem auto 0;
  transition: width 1.2s var(--ease-out-expo) 0.4s;
}

.divider-line.visible {
  width: 60%;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.split__text {
  flex: 1;
}

.split__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .split {
    flex-direction: row;
    gap: 4rem;
  }
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.feature-card + .feature-card {
  border-top: 1px solid var(--bg-card-border);
}

.feature-card__text {
  flex: 1;
}

.feature-card__heading {
  font-size: var(--font-subheading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feature-card__body {
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-card__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .feature-card {
    flex-direction: row;
    gap: 4rem;
  }

  .feature-card--alt-left {
    flex-direction: row-reverse;
  }
}

/* ============================================
   HOW IT WORKS / STEPS
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.step {
  text-align: center;
  max-width: 300px;
  transition-delay: var(--delay, 0s);
}

.step__number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid rgba(41, 121, 255, 0.2);
}

.step__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.step__icon svg {
  width: 100%;
  height: 100%;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__body {
  font-size: var(--font-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps__line {
  display: none;
}

@media (min-width: 1024px) {
  .steps {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .steps__line {
    display: flex;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
  }

  .steps__line svg {
    width: 100%;
    height: 2px;
  }

  .steps__line-path {
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
  }

  .steps__line.visible .steps__line-path {
    stroke-dashoffset: 0;
  }
}

/* ============================================
   PLATFORM PHONES
   ============================================ */
.platform-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.platform-phone {
  text-align: center;
}

.platform-phone__label {
  display: block;
  margin-top: 1rem;
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ============================================
   USE CASE GRID
   ============================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
  transition-delay: var(--delay, 0s);
}

.usecase-card:hover {
  border-color: rgba(41, 121, 255, 0.2);
  box-shadow: 0 0 30px rgba(41, 121, 255, 0.06);
  transform: translateY(-2px);
}

.usecase-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.usecase-card__icon svg {
  width: 100%;
  height: 100%;
}

.usecase-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.usecase-card__body {
  font-size: var(--font-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Center the last two cards in a row of 3 */
  .usecase-card:nth-child(4) {
    grid-column: 1 / 2;
  }
}

@media (min-width: 1200px) {
  .usecase-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .usecase-card:nth-child(4) {
    grid-column: auto;
  }
}

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
}

.pricing-card__price {
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
}

.pricing-card__dollar {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.4rem;
  color: var(--text-secondary);
}

.pricing-card__amount {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-secondary);
  align-self: flex-end;
  margin-bottom: 0.5rem;
}

.pricing-card__tagline {
  font-size: var(--font-body);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: var(--font-small);
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-card-border);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features svg {
  flex-shrink: 0;
}

.pricing-card__badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pricing-card__micro {
  font-size: var(--font-small);
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-card-border);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.footer__logo {
  opacity: 0.7;
}

.footer__tagline {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__link {
  font-size: var(--font-small);
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.footer__link:hover {
  color: var(--brand-blue);
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-card-border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   LEGAL PAGES (privacy, terms)
   ============================================ */
.legal-page {
  padding: 8rem 1.5rem 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: var(--container-narrow);
}

.legal-page h1 {
  font-size: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-page p,
.legal-page li {
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}

.legal-page strong {
  color: var(--text-primary);
}

.legal-page a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #fff;
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--bg-card-border);
  margin: 2rem 0;
}

/* ============================================
   RESPONSIVE POLISH
   ============================================ */

/* Small phones */
@media (max-width: 380px) {
  .phone-mockup { width: 120px; border-radius: 10px; padding: 2px; }
  .phone-mockup__screen { border-radius: 6px; }
  .hero__phones { gap: 1rem; }
  .phone-mockup--feature { width: 200px; }
  .store-badge__svg--apple { width: 115px; height: 38px; }
  .store-badge__svg--google { width: 130px; height: 38px; }
  .store-badge__img { height: 38px; }
}

/* Desktop: larger hero phones */
@media (min-width: 1024px) {
  .phone-mockup { width: 180px; border-radius: 14px; padding: 4px; }
  .phone-mockup__screen { border-radius: 10px; }
  .phone-mockup--feature { width: 260px; border-radius: 16px; }
  .phone-mockup--feature .phone-mockup__screen { border-radius: 12px; }
  .hero__phones { gap: 2.5rem; margin-bottom: 4rem; }

  /* Tilt the hero phones for visual interest */
  .phone-mockup--left { transform: rotate(-4deg) translateY(20px); }
  .phone-mockup--right { transform: rotate(4deg) translateY(-10px); }
  .phone-mockup--left.reveal-hero.visible { transform: rotate(-4deg) translateY(20px); }
  .phone-mockup--right.reveal-hero.visible { transform: rotate(4deg) translateY(-10px); }

  .mock-msg { font-size: 0.65rem; padding: 0.4rem 0.7rem; }
  .mock-inbox-row { font-size: 0.6rem; padding: 0.5rem 0.3rem; }
  .mock-avatar { width: 28px; height: 28px; font-size: 0.55rem; }
  .mock-caller-avatar { width: 60px; height: 60px; font-size: 1.4rem; }
  .mock-caller-name { font-size: 1.2rem; }
  .mock-lockscreen__time { font-size: 2.8rem; }
  .mock-notification { font-size: 0.55rem; padding: 0.5rem 0.6rem; }
}

/* Wide screens: more breathing room */
@media (min-width: 1440px) {
  .phone-mockup--feature { width: 280px; }
  .hero { padding: 8rem 2rem 6rem; }
}

/* ============================================
   SELECTION HIGHLIGHT
   ============================================ */
::selection {
  background: var(--brand-blue);
  color: #fff;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
