/* =========
   Design tokens
   ========= */
:root {
  --bg-main: #020617;
  --bg-grad-top: #0b1120;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --border-strong: rgba(30, 64, 175, 0.5);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.55);
}

/* =========
   Base
   ========= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-grad-top) 0, var(--bg-main) 45%, var(--bg-main) 100%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    transform 0.1s ease;
}

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

/* =========
   Layout wrappers
   ========= */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* Optional narrower article layout
   Use: <div class="page page--narrow">…</div> on long-article pages
*/
.page--narrow {
  max-width: 800px;
}

/* =========
   Header (top bar)
   ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.88),
    transparent
  );
  border-bottom: 1px solid var(--border-strong);
}

/* Header nav should never force horizontal scrolling */
.site-header .nav{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;   /* key fix */
  min-width: 0;      /* helps flex items shrink instead of overflowing */
}

/* Optional: tighten spacing on mobile */
@media (max-width: 640px){
  .site-header .nav{ gap: 0.9rem 1.1rem; }
}


.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #22d3ee 0, #0ea5e9 32%, #312e81 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.45),
    0 12px 30px rgba(15, 23, 42, 0.9);
}

/* Use the logo image inside the round mark */
.brand-mark img {
  width: 18px;
  height: auto;
  display: block;
}

.brand-text-main {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.nav a {
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

/* Header CTA button (Get the $99 Plan) */
.btn-header {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: radial-gradient(circle at 20% 0, #22d3ee 0, #0ea5e9 38%, #1d4ed8 100%);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(8, 47, 73, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-header span {
  font-size: 0.7rem;
}

.btn-header:hover {
  transform: translateY(-1px);
}

/* Small-screen header */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.75rem;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    order: 3;
  }
}

/* Highlight cards (Action Plan / Setup / Guardian): force readable light text
   Reason: each page defines .card { color: #0f172a; } in a later <style> block, so we need higher specificity.
*/
.card.setup-includes,
.card.setup-includes p,
.card.setup-includes li {
  color: rgba(255,255,255,0.86) !important;
}

.card.setup-includes h2,
.card.setup-includes h3,
.card.setup-includes strong,
.card.setup-includes a {
  color: rgba(255,255,255,0.95) !important;
}

/* Keep "How it works" cards off the viewport edge */
.how-it-works-pad { padding-left: 1.25rem; padding-right: 1.25rem; }
.how-it-works-inner { max-width: 1100px; margin: 0 auto; }

/* Link row (home page secondary CTAs) */
.link-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  font-size:14px;
  color:var(--text-muted);
}
.link-item{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}
.link-item:hover{ text-decoration: underline; }
.link-sep{ opacity:.6; }

a.hover-underline:hover { text-decoration: underline; }

/* =========
   Footer
   ========= */
.site-footer {
  border-top: 1px solid var(--border-strong);
  margin-top: 3rem;
  padding: 1.4rem 1.5rem 1.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer links */
.site-footer a {
  text-decoration: underline;
  text-decoration-color: #334155;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
