/* Styles for the Subscriptions page only (public/subscriptions.html). */

.subscriptions-wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.sub-plans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 14px 0;
}

.sub-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 4px 0 14px;
  color: #1a1a1a;
  text-align: center;
}

/* ---------- Plan cards ---------- */

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.plan-card.plan-popular {
  border: 1.5px solid #4db8ff;
  box-shadow: 0 8px 22px rgba(77,184,255,.25);
}
.plan-ribbon {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4db8ff, #8fd3ff);
  color: #0b3a5c;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(77,184,255,.45);
}

.plan-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.plan-price { display: flex; align-items: baseline; gap: 7px; margin: 0 0 14px; }

.pack-price { justify-content: center; align-items: center; gap: 10px; }
.pack-icon { display: inline-flex; flex: none; }
.pack-icon svg { display: block; width: 100%; height: auto; }
.pack-icon-1 { width: 28px; }
.pack-icon-2 { width: 38px; }
.pack-icon-3 { width: 48px; }
.plan-amt { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: #1a1a1a; }
.plan-period { font-size: 13px; color: #8a8a93; }
.plan-strike { font-size: 15px; color: #a3a3ab; text-decoration: line-through; }

.plan-features { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: #3a3a40;
  line-height: 1.35;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #eafaf0;
}
.plan-features li::after {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 8px; height: 5px;
  border-left: 2px solid #19a857;
  border-bottom: 2px solid #19a857;
  transform: rotate(-45deg);
}
.plan-features li.plan-feature-plus::before { background: #eaf2ff; }
.plan-features li.plan-feature-plus::after {
  content: "+";
  width: auto; height: auto;
  left: 3px; top: -1px;
  border: 0;
  transform: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 16px;
  color: #1f8fdc;
}
.plan-approx { font-size: 12px; color: #8a8a93; }
.plan-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid #a3a3ab;
  background: none;
  padding: 0;
  margin-left: 1px;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: #8a8a93;
  cursor: pointer;
  vertical-align: middle;
}
.plan-help:hover, .plan-help:focus-visible { border-color: #4db8ff; color: #1f8fdc; }

.plan-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Top media ---------- */

.sub-media {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 0 auto;
  padding: 22px 14px 0;
}

.sub-media-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  margin: 0 0 14px;
}

.vid-stack {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 26px;
}
.vid-main {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 92%;
  aspect-ratio: 9 / 16;
  width: auto;
  object-fit: cover;
  border-radius: 18px;
  background: #000;
  border: 3px solid #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  z-index: 3;   /* the middle video sits in front of the two beside it */
}
.vid-mini {
  position: absolute;
  height: 60%;
  aspect-ratio: 9 / 16;
  width: auto;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 1;
}
/* Pushed out to the sides so each one shows more of itself from behind the middle video. */
.vid-mini-a { left: -8%; top: 6%; transform: rotate(-6deg); }
.vid-mini-b { right: -8%; bottom: 6%; transform: rotate(6deg); }

/* ---------- Security note ---------- */

.sub-security {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a8a93;
  text-align: center;
}
.sub-security svg { width: 13px; height: 13px; fill: #8a8a93; vertical-align: -1px; margin-right: 5px; }

.plan-soon { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #eaf6ff; color: #2f7fb8; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

.sub-member { margin: -4px auto 14px; padding: 8px 14px; max-width: 560px; border-radius: 12px; background: #eaf6ff; color: #1f5f8f; font-size: 13px; font-weight: 600; text-align: center; }
.sub-member[hidden] { display: none; }
body:not(.light-theme) .sub-member { background: #1d3446; color: #8fd3ff; }

.plan-note { margin: -4px 0 12px; }

/* ---------- Pay by card / crypto chooser ---------- */

.pay-back { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.pay-sheet { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.pay-sheet h3 { margin: 0 0 4px; font-size: 16px; text-align: center; color: #1d1d22; }
.pay-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 13px 14px; border: 1.5px solid #cfe8fb; border-radius: 14px; background: #f4faff; font: inherit; font-weight: 700; font-size: 15px; color: #1d1d22; cursor: pointer; }
.pay-opt small { font-weight: 500; font-size: 12px; color: #6a6a74; }
.pay-opt:hover { border-color: #4db8ff; }
.pay-cancel { border: none; background: none; padding: 8px; font: inherit; font-size: 14px; color: #6a6a74; cursor: pointer; }
body:not(.light-theme) .pay-sheet { background: #1c1c1f; }
body:not(.light-theme) .pay-sheet h3, body:not(.light-theme) .pay-opt { color: #f2f2f4; }
body:not(.light-theme) .pay-opt { background: #232a31; border-color: #2d4457; }
body:not(.light-theme) .pay-opt small, body:not(.light-theme) .pay-cancel { color: #a9a9b3; }

[data-needs-packs][hidden] { display: none !important; }

/* ---------- "What you get" explainer ---------- */

.sub-info { max-width: 560px; margin: 34px auto 0; padding: 0 20px; }
.sub-info .sub-section-title { margin-bottom: 10px; }
.sub-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sub-info li { font-size: 13px; line-height: 1.55; color: #55555d; padding-left: 16px; position: relative; }
.sub-info li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #4db8ff; }
.sub-info b { color: #1d1d22; }
.sub-info a { color: #2f95e0; text-decoration: underline; }
body:not(.light-theme) .plan-soon { background: #1d3446; color: #8fd3ff; }
body:not(.light-theme) .sub-info li { color: #c7c7cf; }
body:not(.light-theme) .sub-info b { color: #f2f2f4; }

.sub-company { max-width: 560px; margin: 14px auto 0; padding: 0 20px; font-size: 12px; line-height: 1.5; color: #8a8a93; text-align: center; }
.sub-company a { color: inherit; text-decoration: underline; }

/* ---------- Dark mode ---------- */

body:not(.light-theme) .sub-section-title,
body:not(.light-theme) .plan-name,
body:not(.light-theme) .plan-amt,
body:not(.light-theme) .sub-media-caption { color: #f2f2f4; }
body:not(.light-theme) .plan-card { background: #1b1b1f; border-color: rgba(255,255,255,.08); box-shadow: none; }
body:not(.light-theme) .plan-features li { color: #c7c7cf; }
body:not(.light-theme) .plan-cta { background: #26262b; color: #f2f2f4; border-color: rgba(255,255,255,.14); }
body:not(.light-theme) .sub-security { color: #9a9aa5; }
body:not(.light-theme) .sub-security svg { fill: #9a9aa5; }
