:root {
  --navy: #0B2A4A; --navy-700: #123a63; --blue: #2563EB; --blue-600: #1d4ed8; --blue-50: #eef4ff;
  --green: #22C55E; --green-50: #ecfdf3;
  --ink-900: #0b2540; --ink-700: #334a63; --ink-500: #5b7088; --ink-300: #b7c2d0;
  --line: rgba(11, 42, 74, 0.10); --bg: #f6f8fc; --surface: #ffffff;
  --r-sm: 9px; --r-md: 13px; --r-lg: 18px; --r-pill: 999px;
  --shadow-md: 0 4px 10px -2px rgba(11, 42, 74, 0.10), 0 2px 4px rgba(11, 42, 74, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(11, 42, 74, 0.28), 0 8px 18px -10px rgba(11, 42, 74, 0.16);
  --font-display: 'Poppins', system-ui, sans-serif; --font-ui: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-ui); color: var(--ink-900); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.center.narrow { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: .88rem; }
.accent { color: var(--blue); }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 .8rem; }
.lead, .section-lead { font-size: 1.15rem; color: var(--ink-700); max-width: 60ch; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: var(--r-pill); font: 700 1rem var(--font-ui); padding: .85em 1.4em; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 252, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1; }
.brand img { width: 56px; height: auto; }
.brand-lg { font-size: 1.75rem; }
.brand-lg img { width: 64px; }
.cta-mark { width: 104px; height: auto; margin: 0 auto 18px; }
@media (max-width: 820px) { .brand { font-size: 1.35rem; gap: 9px; } .brand img { width: 44px; } }
.bw-a { color: var(--navy); } .bw-b { color: var(--blue); }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu > a:not(.btn), .nav-uses summary { color: var(--ink-700); font-weight: 600; text-decoration: none; cursor: pointer; }
.nav-uses { position: relative; }
.nav-uses summary { list-style: none; }
.nav-uses summary::after { content: ' ▾'; font-size: .8em; }
.nav-uses ul { position: absolute; top: 140%; left: -12px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-lg); min-width: 200px; }
.nav-uses li a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-900); text-decoration: none; font-weight: 600; }
.nav-uses li a:hover { background: var(--blue-50); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45em 1em; font: 600 .95rem var(--font-ui); color: var(--navy); }
  .nav-menu { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: flex; }
  .nav-menu > a, .nav-uses summary { padding: 10px 4px; }
  .nav-uses ul { position: static; box-shadow: none; padding: 0 0 0 8px; }
}

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--navy); color: #dbe6f5; }
.section.dark h2 { color: #fff; }
.section.dark .section-lead { color: #b8c9e0; }

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 85% 10%, var(--blue-50), transparent 60%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.hero-map { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; }
.hero-map svg { width: 100%; height: auto; max-height: 72vh; display: block; margin: 0 auto; }
[hidden] { display: none !important; }
.seat-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font: 600 .82rem var(--font-ui); padding: 6px 10px; border-radius: var(--r-sm); transform: translate(-50%, -130%); white-space: nowrap; box-shadow: var(--shadow-md); }
.seat-tip[hidden] { display: none; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Forms */
.lead-form { margin: 26px 0 10px; max-width: 520px; }
.center .lead-form { margin-left: auto; margin-right: auto; }
.lead-row { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px; box-shadow: var(--shadow-md); }
.lead-row input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1rem var(--font-ui); padding: 0 14px; background: transparent; color: var(--ink-900); }
@media (max-width: 480px) { .lead-row { flex-direction: column; border-radius: var(--r-md); } .lead-row input { padding: 12px; } }
.form-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: #15803d; } .form-status.err { color: #b91c1c; }
.dark .form-status.ok { color: var(--green); } .dark .form-status.err { color: #fca5a5; }
.dfy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .dfy { grid-template-columns: 1fr; } }
.dfy-form { display: grid; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: 24px; }
.dfy-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: #dbe6f5; }
.dfy-form input, .dfy-form select, .dfy-form textarea { font: 500 1rem var(--font-ui); padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .95); color: var(--ink-900); width: 100%; }
.dfy-form .btn { justify-self: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 36px 0 22px; }
.theme-card { display: grid; gap: 6px; align-content: start; padding: 14px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-900); transition: transform .2s, box-shadow .2s; }
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.theme-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--r-md); overflow: hidden; }
.theme-thumb img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.theme-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-top: 6px; }
.theme-short { color: var(--ink-500); font-size: .93rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 56px; }
.step { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.step:nth-child(even) { grid-template-columns: 1.3fr 1fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-50); color: #15803d; font-weight: 800; margin-bottom: 12px; }
.step-img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (max-width: 820px) { .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 18px; } .step:nth-child(even) .step-text { order: 0; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.feature h3::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: middle; }
.feature p { margin: 0; color: var(--ink-700); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq p { margin: 10px 0 0; color: var(--ink-700); }

/* Theme page */
.theme-hero .hero-map { padding: 22px; }
.theme-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 18px; }
.footer-head { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-bottom: 4px; }

/* Templates & guides */
.eyebrow a { color: inherit; text-decoration: none; }
.stat-row { list-style: none; padding: 0; margin: 18px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.stat-row li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; color: var(--ink-700); }
.stat-row strong { color: var(--navy); }
.template-map { max-width: 1000px; margin: 0 auto; }
.template-map svg { max-height: 80vh; }
.template-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.inside { padding-left: 1.2em; color: var(--ink-700); }
.inside li { margin: 8px 0; }
.template-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md); }
.template-cta .lead-form { margin: 14px 0 6px; }
.guide-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.guide { max-width: 720px; }
.guide h2 { font-size: 1.4rem; margin-top: 1.8em; }
.guide p { color: var(--ink-700); font-size: 1.06rem; }
.guide code { background: var(--blue-50); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.guide-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.guide-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.guide-list a { display: grid; gap: 6px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-700); }
.guide-list a:hover { box-shadow: var(--shadow-md); }
.guide-list strong { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; }
.on-dark-title { color: #fff; }
.on-dark-link { color: #93c5fd; }
@media (max-width: 900px) { .template-body, .guide-wrap { grid-template-columns: 1fr; } .guide-aside { position: static; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; align-content: start; }
.footer-links a { color: var(--ink-700); text-decoration: none; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--green); }
.template-cta .lead-row { flex-direction: column; border-radius: var(--r-md); }
.template-cta .lead-row input { padding: 12px; }
.more-link { margin-top: 22px; font-weight: 600; }

/* Pricing */
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; }
.price-card.is-featured { border-color: var(--blue); box-shadow: 0 18px 40px -22px rgba(37, 99, 235, .55); }
.price-badge { position: absolute; top: -12px; left: 22px; margin: 0; padding: 3px 10px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.price-name { font-size: 1.3rem; margin: 0 0 4px; }
.price-blurb { color: var(--ink-700); margin: 0 0 16px; min-height: 2.8em; }
.price { margin: 0; }
.price strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); letter-spacing: -.02em; }
.price span { color: var(--ink-700); font-size: .92rem; }
.price-note { color: var(--ink-700); font-size: .85rem; margin: 2px 0 16px; }
.price-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.price-list li { padding-left: 24px; position: relative; color: var(--ink-900, #0f172a); font-size: .95rem; }
.price-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.price-card .btn { width: 100%; }
.extra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.extra-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.extra-card h3 { margin: 0 0 6px; }
.extra-card .price strong { font-size: 1.6rem; }
.extra-card p:last-child { color: var(--ink-700); margin: 10px 0 0; }
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .price-grid, .extra-grid { grid-template-columns: 1fr; } }

/* Clients strip */
.clients { padding: 34px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.clients-title { text-align: center; margin: 0 0 22px; color: var(--ink-700); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.client-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px 54px; }
.client { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.client img { height: 52px; width: auto; filter: grayscale(1) opacity(.7); transition: filter .2s; }
.client:hover img { filter: none; }
.client span { font-size: .78rem; color: var(--ink-700); font-weight: 600; }
@media (max-width: 640px) { .client-row { gap: 18px 30px; } .client img { height: 42px; } }
.theme-card.is-current { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.theme-card.is-current { position: relative; }
.current-tag { position: absolute; top: 22px; right: 22px; z-index: 1; padding: 2px 9px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; }

/* How the beta works: three numbered cards */
.beta-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 28px; }
.beta-steps .feature h3::before { display: none; }
.beta-steps .feature h3 { margin: 0 0 6px; }
@media (max-width: 760px) { .beta-steps { grid-template-columns: 1fr; } }

/* Beta label next to the wordmark */
.beta-tag { align-self: center; margin-left: -4px; padding: 3px 8px; border-radius: 999px; background: var(--green-50); color: #15803d; font-family: var(--font-ui); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.beta-note { max-width: 70ch; margin: 18px 0 0; padding: 16px 20px; border-radius: var(--r-lg); background: var(--green-50); color: var(--ink-900); border: 1px solid #bbf7d0; }
.link-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.guide-date { margin: -6px 0 14px; }
.guide-next { margin-top: 32px; padding: 14px 18px; background: var(--green-50); border-radius: var(--r-lg); }
.guide-list--related { margin-top: 12px; }
.theme-prose h2 { margin-top: 1.6em; }
.theme-prose h2:first-child { margin-top: 0; }

/* Tables and code inside guides */
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.prose th { text-align: left; background: var(--bg); font-weight: 700; color: var(--navy); }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: .88em; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: #0b2540; color: #e6edf7; padding: 16px 18px; border-radius: var(--r-md); overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
