/* ----- Test-mode banner (auto-hides when stripe_publishable_key is pk_live_*) ----- */
.pl-test-banner {
  background: var(--warning);
  color: #1B0B14;
  font-family: var(--font-prop);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  line-height: 1.4;
}
.pl-test-banner code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(0, 0, 0, .15);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 4px;
  color: #1B0B14;
}
.pl-test-banner a {
  color: #1B0B14;
  text-decoration: underline;
  font-weight: 700;
}

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 21, 43, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text);
  border: none;
}
.nav__brand:hover { color: var(--text); }
.nav__brand img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 24px; align-items: center; }
.nav__links a { color: var(--text-muted); border: none; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer;
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface-1); border-bottom: 1px solid var(--border);
    padding: 16px var(--page-gutter);
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-prop); font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s, background-color .15s, color .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary); color: #0A0512;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.32);
}
.btn-primary:hover { background: var(--primary-hi); color: #0A0512; }

/* Override the .nav__links a { color: var(--text-muted) } rule above so
   .btn-primary anchors inside the nav use the dark on-pink text the rest
   of the button system uses. Specificity (0,0,2,1) beats (0,0,1,1). */
.nav__links a.btn-primary,
.nav__links a.btn-primary:hover { color: #0A0512; }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 8px 14px; font-size: 14px; }

/* ----- Cards & tiles ----- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--surface-3); transform: translateY(-2px); }

.card__icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center; margin-bottom: 14px;
  color: #1B0B14; font-weight: 700;
}
.card__title { font-size: var(--size-h3); margin-bottom: 6px; }
.card__body { color: var(--text-muted); margin: 0; }

/* ----- Chips (filter colors) ----- */
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--surface-1); color: var(--text);
  border: 1px solid var(--border);
}
.chip--lum  { color: var(--f-lum);  border-color: rgba(232,232,240,.4); }
.chip--red  { color: var(--f-red);  border-color: rgba(255,107,107,.5); }
.chip--green{ color: var(--f-green);border-color: rgba(149,224,108,.5); }
.chip--blue { color: var(--f-blue); border-color: rgba(107,182,255,.5); }
.chip--ha   { color: var(--f-ha);   border-color: rgba(255,71,126,.5);  }
.chip--oiii { color: var(--f-oiii); border-color: rgba(78,205,196,.5);  }
.chip--sii  { color: var(--f-sii);  border-color: rgba(255,140,66,.5);  }

/* ----- Stat tiles ----- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat-tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-align: left;
}
.stat-tile__label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.stat-tile__value { font-family: var(--font-mono); font-size: 32px; color: var(--text); margin-top: 6px; }
.stat-tile__sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ----- Section headers ----- */
.section-header { margin-bottom: 28px; }
.section-header h2 { margin-bottom: 8px; }
.section-header h2::after {
  content: ""; display: block; height: 3px; width: 60px;
  background: var(--primary); border-radius: 2px; margin-top: 10px;
}
.section-header p { color: var(--text-muted); max-width: 60ch; margin: 0; }

/* ----- Grids ----- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ----- Hero ----- */
.hero { position: relative; padding-block: clamp(72px, 10vw, 120px); overflow: hidden; }
.hero__starfield {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(255,107,157,.07), transparent 55%);
}
.hero__inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 18px; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 62ch; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Forms ----- */
.form { display: flex; gap: 12px; flex-wrap: wrap; }
.form input[type="email"], .form input[type="text"], .form textarea {
  flex: 1 1 240px;
  background: var(--surface-1); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit;
}
.form input::placeholder { color: var(--text-muted); }
.form input:focus, .form textarea:focus { border-color: var(--primary); outline: none; }
.form__msg { width: 100%; font-size: 14px; margin-top: 6px; min-height: 1.2em; }
.form__msg.is-ok { color: var(--success); }
.form__msg.is-err { color: var(--error); }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; }

/* ----- Pricing table ----- */
.tier {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 760px) { .tier { grid-template-columns: 1fr; } }
.tier__card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.tier__card--pro { border-color: var(--primary); box-shadow: 0 14px 32px rgba(255,107,157,.18); position: relative; }
.tier__card--pro::before {
  content: "Pro"; position: absolute; top: -14px; right: 22px;
  background: var(--primary); color: #1B0B14; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.tier__price { font-family: var(--font-mono); font-size: 38px; margin: 8px 0 4px; }
.tier__price small { font-size: 14px; }
.tier__list { list-style: none; padding: 0; margin: 16px 0 22px; }
.tier__list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.tier__list li::before { content: "✓"; color: var(--success); font-weight: 700; }
.tier__list li.no::before { content: "—"; color: var(--text-muted); }
.tier__list li.no { color: var(--text-muted); }

/* ----- Screenshot showcase ----- */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots img {
  width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  padding: 36px 0 28px;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 64px;
}
.footer__row {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
}
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-muted); border: none; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { font-size: 13px; }

/* ----- Download buttons ----- */
.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: flex; flex-direction: column; gap: 8px; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-card.is-primary { border-color: var(--primary); }
.dl-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); word-break: break-all; }

/* ----- Misc ----- */
.kbd {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--surface-1); border: 1px solid var(--border);
}

.callout {
  background: var(--surface-1); border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0;
}
.callout--warning { border-left-color: var(--warning); }
.callout--error { border-left-color: var(--error); }
