/* ========================================================================== */
/* Bubbs marketing site — shared styles.                                       */
/*                                                                            */
/* One stylesheet for every page; ship it gzipped behind a CDN for <10KB.     */
/* No external fonts (system stack) so the site renders instantly even on     */
/* slow phones — the likely entry point for a parent clicking a store link.   */
/* ========================================================================== */

:root {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --bg-card: #111e38;
  --accent: #3ecfff;
  --accent-green: #22d3ee;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --border: #1e3a5f;
  --danger: #f87171;
  --ok: #22c55e;
  --radius: 14px;
  --max-w: 1100px;
  --pad: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- Shared layout ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
}
.logo .dot {
  color: var(--accent);
}

nav.primary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav.primary a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
nav.primary a:hover { color: var(--accent); }

footer.site {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
footer.site .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Homepage hero ---------- */

.hero {
  padding: clamp(60px, 10vw, 120px) 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero .sub {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #052c39;
}
.btn-primary:hover { background: var(--accent-green); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

/* ---------- Feature rows ---------- */

section.features {
  padding: 40px 0 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
}

/* ---------- Section heading blocks ---------- */

.block {
  padding: 60px 0;
}
.block h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 12px;
}
.block .lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 720px;
  margin: 0 0 28px;
}
.block .lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.block.alt {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 48px var(--pad);
  margin: 40px 0;
}

/* ---------- Policy / doc body ---------- */

article.doc {
  padding: 48px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}
article.doc h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  margin: 0 0 6px;
}
article.doc .meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}
article.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
article.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 800;
}
article.doc p, article.doc li {
  color: var(--text);
}
article.doc ul {
  padding-left: 22px;
  line-height: 1.6;
}
article.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
article.doc th, article.doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
article.doc th {
  background: var(--bg-elev);
  font-weight: 800;
}
article.doc code, article.doc pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 14px;
}
article.doc pre {
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
article.doc blockquote {
  margin: 20px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
article.doc .summary-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}
article.doc .summary-card ul {
  margin: 0;
}

/* ---------- Support form ---------- */

.support-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.support-card h3 {
  margin-top: 0;
  font-size: 19px;
}
.support-card a.email {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 17px;
}
form.contact {
  display: grid;
  gap: 14px;
}
form.contact label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}
form.contact input,
form.contact textarea,
form.contact select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
form.contact input:focus,
form.contact textarea:focus,
form.contact select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
form.contact textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Misc ---------- */

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(62, 207, 255, 0.16);
  color: var(--accent);
}
.notice {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg-elev);
  border-left: 4px solid var(--accent);
  margin: 24px 0;
}
.notice strong { color: var(--accent); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps > li {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 22px 18px 64px;
  position: relative;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--accent);
  color: #052c39;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 15px;
}

@media (max-width: 640px) {
  nav.primary { gap: 14px; font-size: 14px; }
  footer.site .container { flex-direction: column; }
}
