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

:root {
  --bg-color: #fbfbfd;
  --bg-color-secondary: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-color: #0066cc;
  --accent-glow: rgba(0, 102, 204, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow-light: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --hero-gradient: linear-gradient(135deg, #1d1d1f 30%, #0066cc 100%);
  --logo-gradient: linear-gradient(135deg, #1d1d1f, #86868b);
  --body-gradient: radial-gradient(circle at 50% 0%, rgba(0,102,204,0.05) 0%, transparent 50%);
  --nav-bg: rgba(251, 251, 253, 0.8);
  --border-color: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0d0d0f;
    --bg-color-secondary: #16161a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-color: #007aff;
    --accent-glow: rgba(0, 122, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.8);
    --hero-gradient: linear-gradient(135deg, #ffffff 30%, #a0a0ab 100%);
    --logo-gradient: linear-gradient(135deg, #ffffff, #a0a0ab);
    --body-gradient: radial-gradient(circle at 50% 0%, rgba(0,122,255,0.05) 0%, transparent 50%);
    --nav-bg: rgba(13, 13, 15, 0.8);
    --border-color: rgba(255, 255, 255, 0.12);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky navbar */
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: var(--body-gradient);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.3s ease-in-out;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #007aff, #ff2a5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.25));
}

.logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-icon {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--accent-color);
}

.nav-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-top: 4rem;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--glass-border);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px var(--accent-glow);
  color: white;
  opacity: 1;
}

/* Official Mac App Store badge */
.appstore-badge {
  display: inline-block;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  transition: transform 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
}

.appstore-badge img {
  height: 54px;
  width: auto;
  display: block;
}

/* Grid & Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 5% 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.7s; }

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Content Pages */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.content-page h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-page h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-page p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--glass-border);
  margin: 2rem 0;
}

.content-page ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  font-size: 1.1rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Companion Detail Page */
.companion-detail-page {
  max-width: 1100px;
  margin: 3rem auto 6rem;
  padding: 3.5rem 3rem;
}

.companion-hero {
  text-align: center;
  margin-bottom: 5rem;
}

.badge-new {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent-color);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

.companion-hero-shots {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 8rem;
}

.companion-hero-shots.single-hero {
  margin: 4rem auto 4rem;
}

.companion-hero-composite {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 0 1px var(--glass-border);
}

@media (prefers-color-scheme: dark) {
  .companion-hero-iphone, .device-iphone {
    border-color: #222;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  }
}

.companion-feature-block {
  margin-bottom: 6rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 4rem;
}

.companion-feature-block h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.companion-feature-block > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.detail-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
}

.detail-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.detail-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.screenshot-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.screenshot-showcase.mixed-showcase {
  align-items: flex-end;
}

.showcase-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-iphone {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  border: 8px solid #111;
}

.device-ipad {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  border: 10px solid #111;
}

.showcase-item .caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-weight: 500;
}

/* Combo Section */
.combo-section {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.05) 0%, rgba(142, 45, 226, 0.05) 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  border: 1px solid var(--border-color);
}

.combo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.combo-step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.combo-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.combo-step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .companion-hero-shots {
    flex-direction: column;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
  .companion-hero-composite {
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  .screenshot-showcase, .combo-steps {
    flex-direction: column;
    gap: 3rem;
  }
  .device-ipad {
    max-width: 95%;
    border-width: 6px;
    border-radius: 16px;
  }
  .device-iphone {
    max-width: 65%;
    border-width: 5px;
    border-radius: 24px;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 5%;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
}

footer .logo {
  font-size: 1.5rem;
  justify-content: center;
}

footer .logo .nav-icon {
  width: 24px;
  height: 24px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.legal-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.75;
  max-width: 640px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo {
    font-size: 2.2rem;
    justify-content: center;
  }

  footer .logo {
    font-size: 1.8rem;
  }

  .nav-icon {
    width: 40px;
    height: 40px;
  }
  
  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 3rem 1.5rem 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-image {
    margin-top: 2.5rem;
  }

  .features-grid {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .content-page {
    padding: 3rem 1.5rem;
  }

  .content-page h1 {
    font-size: 2.2rem;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

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

/* Pricing Section */
.pricing-section {
  text-align: center;
  padding: 4rem 5%;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.pricing-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pricing-section > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-light);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.lifetime {
  border: 2px solid var(--accent-color);
  position: relative;
}

.pricing-card.lifetime::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
}

.pricing-card li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
}

/* --- iPhone & iPad Companion section --- */
.companion-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
  flex-wrap: wrap;
}
.companion-intro { flex: 1 1 340px; }
.companion-intro h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 1rem 0;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.companion-intro > p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; }
.badge-soon {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-color);
  background: var(--accent-glow);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.companion-features { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.companion-features li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}
.companion-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.3rem;
  height: 1.3rem;
  line-height: 1.3rem;
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
  background: var(--accent-color);
  border-radius: 50%;
}
.companion-shots {
  flex: 1 1 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
}
.companion-shots .shot {
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--glass-border);
}
.companion-shots .shot-pad { width: 58%; max-width: 430px; }
.companion-shots .shot-phone { width: 30%; max-width: 200px; }
@media (max-width: 640px) {
  .companion-shots .shot-pad { width: 62%; }
  .companion-shots .shot-phone { width: 34%; }
}

/* Window-grab screenshots carry their own macOS drop shadow + transparent margins,
   so suppress the box frame the opaque screenshot styles add. */
.hero-image.no-frame,
.feature-image.no-frame {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
