/* SubPulse website — colors and layout carried over from the original site. */
:root {
  --background: oklch(0.08 0.02 270);
  --foreground: oklch(0.95 0 0);
  --card: oklch(0.12 0.02 270);
  --primary: oklch(0.45 0.18 25);
  --primary-hover: oklch(0.41 0.17 25);
  --primary-text: oklch(0.62 0.2 25);
  --primary-soft: oklch(0.45 0.18 25 / 12%);
  --on-primary: oklch(0.98 0 0);
  --secondary: oklch(0.16 0.02 270);
  --secondary-hover: oklch(0.19 0.02 270);
  --muted: oklch(0.7 0.02 270);
  --border: oklch(1 0 0 / 10%);
  --radius: 0.625rem;
  --wrap: 72rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
main { flex: 1 0 auto; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--primary); color: var(--on-primary); padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: oklch(0.08 0.02 270 / 80%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { color: var(--primary-text); }
.brand img { width: 4rem; height: 4rem; border-radius: 0.375rem; }
.nav { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 500; }
@media (min-width: 640px) { .nav { gap: 1.5rem; } }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--foreground); }
.nav a[aria-current="page"] { color: var(--primary-text); }

/* Buttons */
.btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .btns { flex-direction: row; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color 0.15s; }
@media (min-width: 640px) { .btn { width: auto; } }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--foreground); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn svg { width: 1rem; height: 1rem; }

/* Home */
.hero { position: relative; overflow: hidden; padding: 5rem 0; text-align: center; background: linear-gradient(to bottom, var(--primary-soft), transparent 70%); }
@media (min-width: 640px) { .hero { padding: 7rem 0; } }
.hero .wrap { max-width: 56rem; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.tagline { margin: 1.5rem auto 0; max-width: 42rem; color: var(--primary-text); font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
.lede { margin: 1.5rem auto 0; max-width: 42rem; color: var(--muted); font-size: 1.0625rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 3rem; text-align: center; }
.section h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { margin: 1rem auto 0; max-width: 42rem; color: var(--muted); }
.features { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); font-size: 0.875rem; line-height: 1.6; }
.tick { flex: 0 0 auto; padding: 0.375rem; border-radius: 0.375rem; background: var(--primary-soft); color: var(--primary-text); }
.tick svg { width: 1rem; height: 1rem; }
.narrow { max-width: 48rem; text-align: center; }
.badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); }
.badge-icon svg { width: 1.5rem; height: 1.5rem; }
.narrow .copy { margin-top: 1.5rem; text-align: left; color: var(--muted); }
.narrow .copy p, .narrow > p { margin: 1rem auto 0; color: var(--muted); max-width: 42rem; }
.narrow > p { text-align: center; }

/* Policy and support pages */
.page { max-width: 48rem; padding-top: 4rem; padding-bottom: 5rem; }
.page h1 { margin: 0; font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.page .updated { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }
.policy { margin-top: 2.5rem; color: var(--muted); }
.policy section + section { margin-top: 2.5rem; }
.policy h2 { margin: 0 0 1rem; color: var(--foreground); font-size: 1.375rem; font-weight: 700; }
.policy p { margin: 0.75rem 0 0; }
.policy ul { margin: 0.75rem 0 0; padding-left: 1.5rem; }
.policy li + li { margin-top: 0.25rem; }
.policy a, .contact-email { color: var(--primary-text); text-underline-offset: 3px; }
.policy a:hover, .contact-email:hover { color: var(--foreground); }
.support-head { text-align: center; }
.support-head .badge-icon { margin-bottom: 1.25rem; }
.support-head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.125rem; }
.card { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); }
@media (min-width: 640px) { .card { padding: 2rem; } }
.card h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.steps { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); }
.steps li + li { margin-top: 0.875rem; }
.steps .tick { padding: 0.375rem; }
.contact-email { display: inline-block; margin-top: 1rem; font-size: 1.125rem; font-weight: 600; word-break: break-all; }
.card .btns { justify-content: flex-start; margin-top: 1.5rem; }

/* 404 */
.notfound { text-align: center; padding: 6rem 0; }
.notfound .code { margin: 0; font-size: 4.5rem; font-weight: 700; line-height: 1; }
.notfound h1 { margin: 1rem 0 0; font-size: 1.25rem; }
.notfound p { color: var(--muted); }

/* Footer */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--secondary); }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 640px) { .footer-row { flex-direction: row; justify-content: space-between; } }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 500; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.site-footer .disclaimer { max-width: 48rem; margin: 1.5rem auto 0; text-align: center; font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Narrow phones: keep the header on one line without sideways scrolling */
@media (max-width: 400px) {
  .brand img { width: 2.75rem; height: 2.75rem; }
  .nav { gap: 0.875rem; }
}
@media (max-width: 359px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
