:root {
  --bg: #0b0c14;
  --panel: #0f1220;
  --panel-2: #0d101c;
  --text: #e6e9f2;
  --muted: #9aa3b2;
  --border: #1a2130;
  --accent: #c23030;
  --accent-2: #a32828;
  --shadow: 0 12px 28px rgba(3, 8, 23, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(600px 320px at 15% -10%, rgba(194,48,48,0.18) 0%, rgba(194,48,48,0) 60%),
    radial-gradient(720px 360px at 85% -10%, rgba(194,48,48,0.12) 0%, rgba(194,48,48,0) 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #0b0c14 0%, #090b13 60%, #07090f 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
/* Stick footer to bottom */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; position: relative; overflow: hidden; }
.subtitle { color: var(--muted); margin-top: -8px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,12,20,0.75); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }

.site-nav ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.site-nav a { color: var(--text); opacity: 0.9; display: inline-flex; align-items: center; height: 42px; padding: 0 6px; border-radius: 10px; }
.site-nav a:hover { color: #fff; opacity: 1; background: rgba(255,255,255,0.03); }
.nav-cta { display: flex; gap: 10px; margin-left: 18px; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--text); font-size: 20px; }

.hero { padding-top: 96px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -80px -10% auto -10%; height: 420px; background: radial-gradient(60% 60% at 50% 0%, rgba(194,48,48,.18) 0%, rgba(194,48,48,0) 70%); filter: blur(20px); pointer-events: none; }
.hero p.subtitle, .hero .note { font-size: 15px; opacity: .9; }
.hero h1 { font-size: 42px; }
@media (min-width: 900px) { .hero h1 { font-size: 72px; } }

/* CTA section: center content and prevent background artifacts */
.cta .container { text-align: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); }
.hero h1 { font-weight: 900; letter-spacing: -0.02em; }
.hero .homepage-heading-gradient, .hero h1 {
  background: linear-gradient(90deg, #ffffff 0%, #e5e7eb 35%, #c9d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-content .note { color: var(--muted); }
.cta-group { display: flex; gap: 12px; margin-top: 12px; }

.grid.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.grid.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 20px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.35); border-color: #2a3347; }
.grid.cards .card > :last-child { margin-top: auto; }
.card h2, .card h3 { margin-top: 0; }

.plan .price { color: var(--muted); margin: 6px 0; display: flex; align-items: baseline; gap: 6px; }
.plan .price span { color: var(--text); font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.features-list li { margin: 6px 0; }
.features-list li::marker { color: #475273; }
.plan .badge { display: inline-block; background: #0b5cff22; color: var(--accent); border: 1px solid #0b5cff55; padding: 4px 8px; border-radius: 999px; font-size: 12px; margin-bottom: 6px; }
.features-list { padding-left: 18px; color: var(--muted); }

.btn { display: inline-block; background: linear-gradient(180deg, var(--accent), #b02b2b); color: white; padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 16px rgba(194,48,48,0.25); font-weight: 700; letter-spacing: .01em; border: 1px solid #ff4e4e22; }
.btn:hover { background: linear-gradient(180deg, var(--accent-2), #8f1f1f); text-decoration: none; box-shadow: 0 10px 22px rgba(194,48,48,0.35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(146,153,170,0.25); border-radius: 999px; }
.btn-lg { padding: 12px 18px; font-size: 16px; }
.btn-block { width: 100%; text-align: center; }

h1, h2, h3 { line-height: 1.2; }
ul, ol { margin-top: 0; }

.code-card { background: #0b1120; border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: #a5b4fc; }
.code-header { display: flex; gap: 6px; margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
pre { margin: 0; white-space: pre-wrap; }

.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 12px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
@media (min-width: 900px) { .steps { gap: 16px; } .step-num { width: 30px; height: 30px; } }

.accordion { margin-top: 14px; }
.accordion-item + .accordion-item { margin-top: 10px; }
.accordion-trigger { display: block; width: 100%; text-align: left; background: linear-gradient(180deg, var(--panel), var(--panel-2)); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px; font-weight: 700; cursor: pointer; appearance: none; -webkit-appearance: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.accordion-trigger[aria-expanded="true"] { border-color: #2b3b56; }
.accordion-panel { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; padding: 14px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); color: var(--muted); }

/* Normalize form controls so buttons inherit fonts/colors */
button, input, select, textarea { font: inherit; color: inherit; }

.site-footer { border-top: none; background: rgba(5,6,15,0.7); backdrop-filter: blur(6px); }
.footer-grid { display: flex; gap: 32px; justify-content: flex-start; align-items: flex-start; padding-top: 20px; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* Bottom copyright bar */
.container.copyright { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.copy-left { display: inline-flex; gap: 12px; align-items: center; }
.container.copyright a { color: var(--muted); }
.container.copyright a:hover { color: #fff; }

/* Modal (checkout) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,6,15,0.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 520px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.modal h3 { margin: 0 0 8px; }
.modal p.subtitle { margin: 0 0 16px; }
.modal .form-row { display: grid; gap: 10px; margin-top: 10px; }
.modal label { font-size: 13px; color: var(--muted); }
.modal input, .modal select { width: 100%; background: #0c1020; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; }

.skip-link { position: absolute; left: -200%; top: -200%; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: #fff; padding: 8px 10px; border-radius: 8px; }

@media (max-width: 900px) {
  .grid.cards, .grid.cards.three { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 60px; background: rgba(11,15,25,0.95); border-bottom: 1px solid var(--border); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav a { display: block; padding: 12px 20px; }
  .nav-cta { padding: 12px 20px 16px; }
}

/* Utility spacing for cards on legal hub so buttons align */
.grid.cards .card p + p + p { margin-top: auto; }

