/* ------------------------------------------------------------
   Benny's BPM Corrector: product page and policy pages (/bpm).
   Same look as the desktop: Bliss wallpaper, frosted cards.
   ------------------------------------------------------------ */

:root {
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #1d1d1f;
  --muted: #5e5e63;
  --line: rgba(0, 0, 0, .1);
  --select: #316ac5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.55 var(--ui-font);
  color: var(--ink);
  background: #5b9be6;
}

/* The wallpaper sits in its own fixed layer (background-attachment: fixed doesn't work on iPhone) */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #5b9be6 url("wallpapers/bliss.jpg") center / cover no-repeat;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; }

.wrap { width: min(1000px, 100%); margin: 0 auto; padding: 20px 16px 40px; }

/* ---------- Top bar ---------- */

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font: 600 13px/1 var(--ui-font);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.pill img { width: 20px; height: 20px; border-radius: 5px; }
.pill:hover { background: rgba(255, 255, 255, .9); }

/* ---------- Cards ---------- */

.card {
  padding: 26px 28px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2), 0 2px 6px rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.card h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.card h3 { margin: 22px 0 6px; font-size: 16px; }
.card p { margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }

.label {
  display: table;
  margin: 0 auto 22px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 700 12px/1 var(--ui-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 40, 80, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

section { margin: 0 0 56px; }

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 36px; align-items: center; margin-bottom: 64px; }
.hero-shot { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .22)); }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-head img { width: 60px; height: 60px; border-radius: 14px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .22)); }
.app-head h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.app-head p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.hero .desc { margin: 0 0 20px; font-size: 16px; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
}
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-amount strong { font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.price-amount span { font-size: 14px; color: var(--muted); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font: 600 15px/1 var(--ui-font);
  text-decoration: none;
  transition: background-color .15s ease;
}
.cta:hover { background: #000; }

.fine { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }

/* ---------- What it does ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 18px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(#3ec3e6, #1f8fbf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(62, 195, 230, .14); font-size: 15px; }

/* ---------- Gallery ---------- */

.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 32px; }
.gallery figure { width: min(290px, 100%); margin: 0; text-align: center; }
.gallery img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25)); }
.gallery figcaption { margin-top: 8px; font: 600 14px/1.3 var(--ui-font); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* ---------- Two cards side by side ---------- */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0 0 10px 28px; }
.checks li:last-child { padding-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #2fa84f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.specs { margin: 0; }
.specs dt { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.specs dt:first-child { margin-top: 0; }
.specs dd { margin: 2px 0 0; }

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 2px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: 0 2px 16px; color: #3a3a3f; }

/* ---------- Policy pages ---------- */

.doc { width: min(720px, 100%); margin: 0 auto 32px; }
.doc h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.doc .updated { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.doc h2 { margin: 26px 0 8px; font-size: 18px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }

/* ---------- Footer ---------- */

.foot { width: min(720px, 100%); margin: 0 auto; padding: 18px 22px; text-align: center; font-size: 13px; line-height: 1.5; color: #3a3a3f; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-weight: 600; }
.foot nav a { text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .wrap { padding-top: 14px; }
  .hero { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .hero-shot { max-width: 300px; }
  .card { padding: 20px 18px 22px; }
  .steps, .pair { grid-template-columns: 1fr; }
  .steps { gap: 10px; }
  .steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .steps li::before { flex: none; margin: 0; }
  .app-head h1 { font-size: 22px; }
  .app-head img { width: 52px; height: 52px; }
  .gallery figure { width: min(260px, 80%); }
  .price { justify-content: flex-start; }
  .price .cta { width: 100%; }
  section { margin-bottom: 44px; }
  .doc h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }
