/* StepsMaxxing marketing + legal site. One shared stylesheet, no framework. */

:root {
  --lime: #5FD93A;
  --royal: #1747D6;
  --sky: #1E9BF0;
  --midnight: #0B1B5C;
  --volt: #D7FF3A;
  --cloud: #F3F7FF;

  --bg: var(--cloud);
  --surface: #FFFFFF;
  --surface-2: #E6EEFF;
  --text: #0B1B5C;
  --text-muted: #46538A;
  --border: #D3DDF5;
  --link: #1747D6;
  --accent: var(--royal);
  --accent-text: #FFFFFF;
  --hero-bg: linear-gradient(160deg, #1747D6 0%, #1E9BF0 100%);
  --hero-text: #FFFFFF;
  --note-bg: #F7FFD6;
  --note-border: #B9DB2A;
  --shadow: 0 6px 24px rgba(11, 27, 92, 0.08);

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1080px;
  --prose: 720px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071240;
    --surface: #0E1D5E;
    --surface-2: #142775;
    --text: #EEF3FF;
    --text-muted: #AEBBEA;
    --border: #233788;
    --link: #8FC8FF;
    --accent: var(--lime);
    --accent-text: #0B1B5C;
    --hero-bg: linear-gradient(160deg, #0B1B5C 0%, #1747D6 100%);
    --note-bg: #1A2A3E;
    --note-border: #7FA51C;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }

p, li { overflow-wrap: anywhere; }

a { color: var(--link); text-underline-offset: 3px; }

[id] { scroll-margin-top: 120px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; font-size: 0.95rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-text);
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn-volt { background: var(--volt); color: var(--midnight); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: #000; color: #fff; border-radius: 12px;
  padding: 8px 18px; min-width: 170px; text-decoration: none; line-height: 1.15;
  border: 1px solid rgba(255,255,255,0.35);
}
.store-badge small { font-size: 0.72rem; }
.store-badge strong { font-family: "Fredoka", sans-serif; font-size: 1.2rem; font-weight: 600; }
.store-badge.soon { background: transparent; border: 2px dashed currentColor; color: inherit; cursor: default; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { color: #fff; }
.hero h1 .volt { color: var(--volt); }
.hero p.lead { font-size: 1.2rem; max-width: 34em; margin: 0; }
.hero .mascot { width: min(320px, 70vw); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25)); }
.pill {
  display: inline-block; background: rgba(255,255,255,0.18); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.3fr 1fr; }
  .hero { padding: 72px 0 80px; }
}

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.section h2:first-child { margin-top: 0; }
.section-intro { color: var(--text-muted); max-width: 40em; font-size: 1.1rem; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--text-muted); }
.card .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }

.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--text); vertical-align: middle;
}

.company {
  background: var(--midnight); color: #EEF3FF; border-radius: var(--radius);
  padding: 32px 22px; display: grid; gap: 20px;
  border: 1px solid var(--border);
}
.company h2 { color: #fff; margin-top: 0; }
.company ul { margin: 0; padding-left: 1.2em; }
.company li { margin: 6px 0; }
.company .muted { color: #AEBBEA; }
@media (min-width: 820px) { .company { grid-template-columns: 1.4fr 1fr; padding: 40px; } }

/* Legal / prose pages */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head p { color: var(--text-muted); margin: 0; }
.legal { padding-bottom: 56px; }
.legal h2 { border-top: 1px solid var(--border); padding-top: 1.2em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 4px 0; }

.note {
  background: var(--note-bg); border: 1px solid var(--note-border); border-left-width: 6px;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 20px 0;
}
.note p { margin: 0.3em 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: "Fredoka", sans-serif; font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 14px 0; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lime); color: var(--midnight);
  font-family: "Fredoka", sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 16px; margin: 10px 0;
}
details[open] { padding-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 20px 0;
}
.contact-card h3 { margin-top: 0; }

.placeholder { background: var(--surface-2); border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--midnight); color: #C9D4FA; padding: 40px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-size: 1.3rem; color: #fff; font-weight: 700; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer p { margin: 0; }
