/* ── BPM Landing Page ── */

:root {
  --purple-deep: #2D2245;
  --purple-muted: #7B6BA0;
  --purple-accent: #366BE2;
  --purple-light: #E8E0F8;
  --purple-card: #F3EEFF;
  --bg-white: #FFFFFF;
  --text-body: #4A4458;
  --text-light: #8E849B;
  --radius: 16px;
  --max-width: 1080px;
}

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--purple-deep);
  background: radial-gradient(ellipse at center, var(--bg-white) 0%, var(--purple-light) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Sticky Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--purple-deep);
  font-weight: 600;
  font-size: 1.1rem;
}

.header-brand img { width: 32px; height: 32px; }

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

.header-nav a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a { cursor: pointer; }
.nav-drop > a::after { content: ' ▾'; font-size: 0.8em; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 210px;
  padding: 16px 0 8px;
  z-index: 200;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 8px 18px;
  color: var(--text-body);
  font-weight: 500;
  white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--purple-card); text-decoration: none; }

.btn-download {
  display: inline-block;
  background: var(--purple-accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-download:hover { background: #2D5BC2; }

/* Mobile hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--purple-deep);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 24px 16px;
  background: rgba(255,255,255,0.95);
}
.mobile-menu a {
  color: var(--text-body);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu .mobile-group-title {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 4px;
  border: none;
  cursor: default;
}
.mobile-menu .mobile-sub {
  display: flex;
  flex-direction: column;
}
.mobile-menu .mobile-sub a { padding-left: 16px; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger-btn { display: block; }
}

/* ── Sections ── */

section { padding: 64px 24px; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--purple-deep);
}

/* ── Hero ── */

.hero { padding: 80px 24px 40px; text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--purple-deep);
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--purple-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-badges img.badge-apple { height: 48px; }
.store-badges img.badge-google { height: 72px; margin: -12px 0; }
.store-badges a.browser-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--purple-accent);
}

.hero-phone {
  max-width: 300px;
  margin: 0 auto;
}
.hero-phone img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(45, 34, 69, 0.15));
}

/* ── How It Works ── */

.how-it-works { background: rgba(255,255,255,0.6); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-body);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--purple-card);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card .feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Screenshot Gallery ── */

.gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 16px;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 220px;
  scroll-snap-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 12px 24px rgba(45, 34, 69, 0.12));
}

@media (min-width: 1000px) {
  .gallery-scroll {
    justify-content: center;
    overflow: visible;
  }
}

/* ── Who It's For ── */

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.audience-icon { font-size: 2rem; flex-shrink: 0; }

.audience-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.audience-item p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ── Pro ── */

.pro-section {
  background: var(--purple-card);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.pro-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pro-features {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 20px;
}

.pro-pricing {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pro-price {
  text-align: center;
}

.pro-price .amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-deep);
}

.pro-price .period {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Final CTA ── */

.final-cta {
  text-align: center;
  padding: 64px 24px 80px;
}

.final-cta h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Footer ── */

.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

.footer-badges {
  display: flex;
  gap: 12px;
}
.footer-badges img.badge-apple { height: 36px; }
.footer-badges img.badge-google { height: 54px; margin: -9px 0; }

/* ── Scroll Animations ── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Article / Content Pages ── */

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--purple-deep);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--purple-deep);
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--purple-deep);
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-body);
}

.article-content strong { font-weight: 600; color: var(--purple-deep); }

.article-content a { color: var(--purple-accent); }

/* Callout boxes */
.callout {
  background: #FFF8E1;
  border-left: 4px solid #FFB300;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
  color: var(--text-body);
}

.warning-list {
  background: #FDE8E8;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.warning-list ul { margin-bottom: 0; }

/* Download CTA within articles */
.download-section {
  background: var(--purple-card);
  padding: 32px;
  border-radius: var(--radius);
  margin: 40px 0;
  text-align: center;
}

.download-section h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.download-buttons img.badge-apple { height: 48px; }
.download-buttons img.badge-google { height: 72px; margin: -12px 0; }
.download-buttons a.browser-link {
  font-weight: 600;
  color: var(--purple-accent);
}

/* Tables (rate chart page) */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.article-content th {
  background: var(--purple-accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}

.article-content th:first-child { border-radius: 8px 0 0 0; }
.article-content th:last-child { border-radius: 0 8px 0 0; }

.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-body);
}

.article-content tr:nth-child(even) { background: var(--purple-card); }

.article-content td.normal { color: #2E7D32; font-weight: 500; }
.article-content td.elevated { color: #E65100; font-weight: 500; }
.article-content td.seek-help { color: #C62828; font-weight: 500; }

/* FAQ accordion */
.faq-item {
  margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--purple-deep);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 18px 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item .faq-answer p { margin-bottom: 0; }

/* Inline CTA banner between sections */
.inline-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--purple-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
}

.inline-cta img { width: 36px; height: 36px; }

.inline-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-body);
  flex: 1;
}

.inline-cta a {
  font-weight: 600;
  white-space: nowrap;
}
