@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-subset.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
:root {
  --bg: #0D1117; --surface: #161B22; --border: #30363D; --ink: #E6EDF3; --muted: #8B949E;
  --astrodark: #A371F7; --astroeye: #58A6FF; --astrotools: #3FB950;
  --accent: var(--ink);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --radius: 6px; --wrap: 1120px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --t1: 14px; --t2: 16px; --t3: 18px; --t4: 22px; --t5: 28px; --t6: 40px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: var(--t2)/1.55 var(--font-body); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 var(--s4); }
h1 { font-size: var(--t6); } h2 { font-size: var(--t5); } h3 { font-size: var(--t4); }
p { margin: 0 0 var(--s4); } p.muted, .muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--s5), var(--wrap)); margin-inline: auto; }
.eyebrow { font-family: var(--font-head); font-size: var(--t1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
.ramp { height: 1px; border: 0; background: var(--border); margin: var(--s7) 0; }

/* nav */
.nav { display: flex; align-items: center; gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.nav .brand img { height: 28px; width: auto; }
.nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0 0 0 auto; padding: 0; font-size: var(--t1); }
.nav a { text-decoration: none; color: var(--muted); } .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* hero */
.hero { padding: var(--s8) 0 var(--s7); }
.hero .lockup { width: min(100%, 560px); margin: 0 0 var(--s5); }
.hero h1 { max-width: 20ch; }
.lede { font-size: var(--t3); color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s5); }

/* buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: var(--t2); padding: var(--s3) var(--s5); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); background: var(--surface); text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.launch-note { display: none; color: var(--muted); font-size: var(--t1); }
[data-launch="pre"] .btn.buy { display: none; }
[data-launch="pre"] .launch-note { display: inline-block; }
[data-appstore="pending"] .btn.appstore { display: none; }
[data-appstore="live"] .appstore-note { display: none; }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.card.product { --accent: var(--ink); border-top: 3px solid var(--accent); display: flex; flex-direction: column; }
.card.product[data-app="astrodark"] { --accent: var(--astrodark); }
.card.product[data-app="astroeye"]  { --accent: var(--astroeye); }
.card.product[data-app="astrotools"] { --accent: var(--astrotools); }
.card.product .role { color: var(--accent); }
.card.product h3 { margin-bottom: var(--s2); }
.card.product .price { font-family: var(--font-head); font-size: var(--t4); margin: var(--s4) 0 var(--s2); }
.card.product ul { padding-left: 1.1em; margin: 0 0 var(--s4); color: var(--muted); }
.card.product .btn { margin-top: auto; align-self: flex-start; }

/* screenshot slot: 16:10, placeholder or real image */
.shot { aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: var(--t1); margin: 0 0 var(--s4); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.sku { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.sku .amount { font-family: var(--font-head); font-size: var(--t5); }
.sku.suite { border-color: var(--ink); }
.sku .btn { margin-top: auto; text-align: center; }

/* trust row */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); list-style: none; padding: 0; margin: 0; }
.trust li { border-top: 1px solid var(--border); padding-top: var(--s3); font-size: var(--t1); color: var(--muted); }
.trust li strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: var(--t2); margin-bottom: var(--s1); }

/* product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; padding: var(--s7) 0 var(--s6); }
.product-hero .price { font-family: var(--font-head); font-size: var(--t4); }
.features { columns: 2; column-gap: var(--s6); padding-left: 1.1em; }
.features li { break-inside: avoid; margin-bottom: var(--s2); }
.compat { color: var(--muted); }
.crosssell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); margin: var(--s6) 0; }

/* prose */
.prose { max-width: 68ch; } .prose h2 { margin-top: var(--s6); font-size: var(--t4); } .prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t1); } .prose th, .prose td { border-top: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: var(--s2); }

/* footer */
.footer { border-top: 1px solid var(--border); padding: var(--s6) 0; color: var(--muted); font-size: var(--t1); margin-top: var(--s7); }
.footer .cols { display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: space-between; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s4); } .footer a { color: var(--muted); }
.founder { max-width: 52ch; }

/* responsive: one breakpoint, everything collapses to one column */
@media (max-width: 47.99rem) {
  :root { --t6: 32px; --t5: 24px; }
  .grid-3, .pricing, .trust, .product-hero { grid-template-columns: 1fr; }
  .features { columns: 1; }
  .nav { flex-wrap: wrap; }
  .nav ul { gap: var(--s3); flex-wrap: wrap; margin-left: 0; }
  .hero { padding: var(--s6) 0 var(--s5); }
}

/* product page accent (data-app on <main>) */
main[data-app="astrodark"] { --accent: var(--astrodark); }
main[data-app="astroeye"]  { --accent: var(--astroeye); }
main[data-app="astrotools"] { --accent: var(--astrotools); }
main[data-app] .role { color: var(--accent); }
main[data-app] .product-hero { border-top: 3px solid var(--accent); }

/* tablet band: pricing + trust go two-up between 48rem and 64rem (cards stay one-up) */
@media (min-width: 48rem) and (max-width: 64rem) {
  .pricing, .trust { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
}
