:root {
  --primary: #1976D2;
  --primary-light: #64B5F6;
  --primary-dark: #0D47A1;
  --accent: #F57C00;
  --bg: #F5F5F5;
  --text: #212121;
  --text-secondary: #616161;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --card-bg: #FFFFFF;
  --success: #2E7D32;
  --pro-color: #7B1FA2;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo span { color: var(--text); }
.nav-logo img { width: 36px; height: 36px; display: block; }
.hero-logo { width: 128px; height: 128px; display: block; margin: 0 auto 16px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto 32px; }
.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--primary-dark);
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); text-decoration: none; }

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Full-width background band; content width is set by the inner container */
.band { padding: 64px 24px; }
.steps { grid-template-columns: repeat(3, 1fr); }

.hero-image-wrap { max-width: 960px; margin: 0 auto; }
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13, 71, 161, 0.18);
}

/* Screenshot slider */
.gallery {
  background: linear-gradient(180deg, var(--bg), #E3F2FD);
  padding: 64px 0 48px;
  overflow: hidden;
}
.gallery .section-subtitle { margin-bottom: 32px; }
.slider { position: relative; max-width: var(--max-width); margin: 0 auto; }
.slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 24px 20px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.shot { flex: 0 0 230px; scroll-snap-align: center; margin: 0; text-align: center; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--white);
  border: 6px solid #1B1B1F;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.22);
}
.shot figcaption { margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.slider-btn {
  position: absolute;
  top: calc(50% - 32px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: #F0F6FF; }
.slider-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.slider-btn[hidden] { display: none; }
.slider-btn:disabled { opacity: 0; pointer-events: none; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

/* Video Placeholder */
.video-section { text-align: center; }
.video-placeholder {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #E8E8E8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  border: 2px dashed var(--border);
}

/* Image Placeholders */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #E8E8E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 2px dashed var(--border);
  font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 750px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.pricing-card.popular { border-color: var(--primary); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.pricing-price small { font-size: 1rem; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }
.pricing-note { color: var(--text-secondary); font-size: 0.9rem; margin-top: 2px; }
.pricing-save { color: var(--success); font-weight: 600; font-size: 0.9rem; margin-top: 6px; min-height: 1.4em; }
.pricing-wrap[data-billing="monthly"] .pricing-save { visibility: hidden; }

/* Billing toggle */
.billing-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 40px;
  padding: 4px;
  gap: 2px;
  background: #E3E7EF;
  border-radius: 999px;
}
.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.billing-btn.is-active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.billing-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.save-badge {
  background: var(--success);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.pricing-trial { color: var(--success); font-weight: 600; margin: 8px 0 16px; font-size: 0.95rem; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { padding: 6px 0; color: var(--text-secondary); }
.pricing-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.pricing-btn:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

/* Footer */
.footer {
  background: var(--text);
  color: #9E9E9E;
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col h4 { color: var(--white); margin-bottom: 12px; }
.footer-col a { color: #9E9E9E; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid #424242;
  font-size: 0.9rem;
  text-align: center;
}

/* Legal pages */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .legal-date { color: var(--text-secondary); margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; color: var(--primary-dark); }
.legal h3 { font-size: 1.1rem; margin-top: 20px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { padding: 10px 16px; border: 1px solid var(--border); text-align: left; }
.legal th { background: #F5F5F5; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .nav-links { display: none; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .shot { flex-basis: 190px; }
  .slider-btn { display: none; }
  .billing-btn { padding: 10px 14px; font-size: 0.9rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
