/* RPMCalc support/copyright/marketing pages — matches the in-app RPMTheme
   palette (Theme/RPMTheme.swift): near-black navy background, surface cards,
   electric-blue accent, red-needle "alert" state, silver text. */

:root {
  --bg: #050a14;
  --surface: #0f1726;
  --surface-light: #1a2438;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f3f8;
  --text-dim: rgba(240, 243, 248, 0.62);
  --text-faint: rgba(240, 243, 248, 0.4);
  --blue: #0085ff;
  --blue-glow: #59bfff;
  --red: #ed241f;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(0, 133, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(237, 36, 31, 0.07), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header */
header.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 0 28px;
}

header.page-header img.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  flex-shrink: 0;
}

header.page-header .titles h1 {
  font-size: clamp(22px, 5vw, 30px);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

header.page-header .titles .subtitle {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

nav.crumbs {
  display: flex;
  gap: 18px;
  font-size: 13px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

nav.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

nav.crumbs a:hover,
nav.crumbs a.active {
  color: var(--blue-glow);
  border-bottom-color: var(--blue-glow);
}

.effective-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-glow);
  background: rgba(0, 133, 255, 0.12);
  border: 1px solid rgba(0, 133, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px clamp(18px, 4vw, 28px);
  margin-bottom: 18px;
}

.card h2 {
  font-size: 17px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.card h2 .dot.warn { background: var(--red); }

.card h3 {
  font-size: 15px;
  margin: 18px 0 4px;
  color: var(--text);
}

.card p, .card li {
  font-size: 14.5px;
  color: var(--text-dim);
}

.card ul { padding-left: 20px; margin: 8px 0; }
.card li { margin-bottom: 6px; }

a { color: var(--blue-glow); }
a:hover { color: var(--blue); }

code {
  background: var(--surface-light);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
}

/* Intro lede */
.lede {
  font-size: 15.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.lede strong { color: var(--text); }

/* FAQ accordion */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
details.faq:last-child { border-bottom: none; }

details.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--blue-glow);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq .faq-body {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-top: 10px;
  padding-right: 24px;
}

/* Contact / CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 8px;
}
.btn:hover { color: #ffffff; filter: brightness(1.1); }

/* Footer */
footer.page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer.page-footer a { color: var(--text-faint); }
footer.page-footer a:hover { color: var(--blue-glow); }

/* Hero (marketing page) */
.hero {
  text-align: center;
  padding: 8px 0 20px;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--blue-glow); }

.hero .tagline {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 26px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--blue-glow); border-color: var(--blue-glow); }

/* Screenshot showcase strip */
.shot-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 6px 18px;
  margin: 8px 0 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-strip figure {
  margin: 0;
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
}

.shot-strip img {
  height: 360px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  display: block;
}

.shot-strip figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .shot-strip img { height: 280px; }
}

/* Feature grid (marketing page) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 4px;
}

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item h3 .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.feature-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* Closing CTA band */
.cta-band {
  text-align: center;
  padding: 12px 0 6px;
}

.cta-band h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.cta-band p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 18px;
}

/* Light-mode fallback for users/printers that force light backgrounds */
@media (prefers-color-scheme: light) {
  body { background-color: var(--bg); } /* keep the app's dark identity intentionally */
}
