/* realprompts - landing styles
 * Accent: electric purple #8b5cf6 (chosen to match the bracket/underline motif
 * in the product art; reads cleanest against #0d1117 with the mono headings).
 */

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #8b5cf6;
  --accent-ink: #0d1117;

  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;

  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: var(--s-3) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .brand-slash { color: var(--accent); }

.site-nav {
  display: flex;
  gap: var(--s-4);
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 639px) {
  .site-nav .nav-secondary { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  color: var(--text);
}

.hero-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--s-5);
  text-wrap: pretty;
}

/* ---------- Mission ---------- */

.mission {
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
}
.mission p {
  font-size: 18px;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Section heads ---------- */

section { padding: var(--s-7) 0; }
section + section { border-top: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-5);
  gap: var(--s-3);
  flex-wrap: wrap;
}

h2 {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
h2 .h-prefix {
  color: var(--accent);
  margin-right: var(--s-2);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.btn-primary {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  transition: background 120ms, color 120ms;
  line-height: 1;
}
.btn-buy:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 6px;
  background: transparent;
  line-height: 1;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}
.btn-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

/* ---------- Catalog grid ---------- */

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}

.product {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 160ms;
}
.product:hover { border-color: #4a5260; }

.product-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.product h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.product-price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
}
.product-price .ccy { color: var(--muted); }

.product-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.product-bullets li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.product-bullets li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.product-actions {
  margin-top: auto;
  padding-top: var(--s-2);
}

.badge {
  position: absolute;
  top: -10px;
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Bundles ---------- */

.bundle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

.bundle {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
}
@media (max-width: 639px) {
  .bundle { grid-template-columns: 1fr; }
}

.bundle h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  margin: 0 0 var(--s-1);
  color: var(--text);
}

.bundle-composition {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 var(--s-2);
}

.bundle-target {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.bundle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
}
@media (max-width: 639px) {
  .bundle-right {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

.bundle-price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.bundle-price .save {
  font-size: 12px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: var(--s-2);
  vertical-align: middle;
  font-weight: 600;
}

/* ---------- About ---------- */

.about p {
  font-size: 16px;
  color: var(--text);
  max-width: 640px;
  margin: 0 0 var(--s-3);
  text-wrap: pretty;
}
.about p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  transition: transform 160ms;
}
.faq-item[open] summary::after { content: "-"; }

.faq-item summary:hover { background: rgba(139, 92, 246, 0.05); }

.faq-answer {
  padding: 0 var(--s-4) var(--s-4);
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}
.faq-answer p { margin: 0 0 var(--s-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-5) 0 var(--s-6);
  margin-top: var(--s-6);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.footer-links {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.footer-meta + .footer-meta { margin-top: var(--s-1); }

/* ---------- Legal pages ---------- */

.legal {
  padding: var(--s-6) 0 var(--s-7);
}
.legal h1 {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-5);
  color: var(--text);
}
.legal h2 {
  font-family: var(--font-mono);
  font-size: 17px;
  margin: var(--s-5) 0 var(--s-2);
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
  max-width: 64ch;
}
.legal a { color: var(--accent); }
.legal .lede {
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-mono);
  margin-bottom: var(--s-4);
}

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
