/* StandUSAct.org  -  marketing shell (static). Keep simple; Next app stays under apps/standusact. */
:root, [data-theme="dark"] {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --card: #162033;
  --text: #f1f5f9;
  --muted: #d0dae8;
  --accent: #3b82f6;
  --accent-2: #22c55e;
  --border: #334155;
  --warn: #f59e0b;
  --max: 720px;
  --radius: 12px;
  --header-bg: rgba(11, 18, 32, 0.92);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #334155;
  --accent: #2563eb;
  --accent-2: #15803d;
  --border: #cbd5e1;
  --warn: #b45309;
  --header-bg: rgba(255, 255, 255, 0.92);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.nav-links {
  display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.hero { padding: 3.5rem 0 2rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 0.75rem; }
.hero .tagline { color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2); border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08); padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0 2.5rem;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.section { padding: 0.5rem 0 2.5rem; }
.section h2 { margin: 0 0 0.75rem; font-size: 1.45rem; }
.section p.lead { color: var(--muted); margin-top: 0; }
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.pricing-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .pricing-3 { grid-template-columns: 1fr; max-width: 400px; }
}
.price-card .tier { text-align: center; font-size: 1.15rem; }
.price-card .amt-label {
  text-align: center; font-size: 0.95rem; font-weight: 700; color: var(--muted);
}
.price-card .amt-label.trial { color: var(--accent); }
.price-card .btn { display: block; margin-top: 1.25rem; text-align: center; }
.price-card .hint { text-align: center; }

.price-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25); }
.price-card .tier { font-weight: 700; }
.price-card .amt { font-size: 1.6rem; font-weight: 800; }
.price-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.price-card .hint { margin-top: auto; font-size: 0.8rem; color: var(--warn); }
.disclaimer {
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--muted); font-size: 0.9rem; margin: 1.5rem 0 2rem;
}
.legal-doc { padding: 2rem 0 3rem; max-width: 720px; }
.legal-doc h1 { margin-top: 0; }
.legal-doc h2 { margin-top: 1.75rem; font-size: 1.15rem; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc .meta { font-size: 0.85rem; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; margin-top: 1rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer .footer-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.site-footer nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }
@media (max-width: 560px) { .hero { padding-top: 2rem; } }


/* Theme toggle */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
[data-theme="light"] body,
html[data-theme="light"] body {
  background: radial-gradient(900px 480px at 10% -10%, #e2e8f0 0%, var(--bg) 55%);
}

.nav-links .theme-toggle { list-style: none; }
.nav-links li { display: flex; align-items: center; }


/* ===== App shell: left rail (responsive) ===== */
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  align-items: stretch;
}
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--border, #334155);
  background: var(--bg-elev, var(--card, #162033));
  padding: 1rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 30;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.35rem;
}
.rail-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.rail-brand span { font-size: 1.05rem; letter-spacing: 0.01em; }
.rail-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.rail-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--muted, #94a3b8);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.rail-nav a:hover,
.rail-nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent, #3b82f6) 14%, transparent);
  text-decoration: none;
}
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #334155);
}
.shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.shell-main > .wrap,
.shell-main > main.wrap {
  flex: 1;
}
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #334155);
  background: var(--header-bg, var(--bg-elev, #121a2b));
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.topbar-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.rail-toggle {
  border: 1px solid var(--border, #334155);
  background: var(--bg-elev, #121a2b);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.rail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 25;
}
body.rail-open .rail-backdrop { display: block; }

.site-footer {
  border-top: 1px solid var(--border, #334155);
  padding: 1.25rem 1rem 1.75rem;
  margin-top: auto;
  color: var(--muted, #94a3b8);
  font-size: 0.9rem;
}
.site-footer .footer-row {
  width: min(960px, calc(100% - 0rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted, #94a3b8);
  text-decoration: none;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-brand strong { color: var(--text); font-weight: 700; }
.site-footer nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Hide legacy top header when shell is used */
.shell .site-header { display: none; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; }
  .rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(280px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
  }
  body.rail-open .rail { transform: translateX(0); }
}
