/* Shared variables with launchkit */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-card: #f4f4f5;
  --bg-card-alt: #e8e8ec;
  --border: #dddde3;
  --text: #18181b;
  --text-muted: #52525b;
  --text-faint: #71717a;
  --accent: #7c3aed;
  --accent-light: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.07);
  --green: #16a34a;
  --gold: #b45309;
  --gold-bg: rgba(180, 83, 9, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
  --radius: 10px;
  --max-w: 1080px;
}

body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-card-alt); padding: 2px 6px; border-radius: 4px; color: var(--text); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; top: -48px; left: 16px; background: var(--accent); color: #fff; padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 0 0 var(--radius) var(--radius); transition: top 0.15s; z-index: 100; }
.skip-link:focus { top: 0; }

/* LAYOUT */
section { max-width: var(--max-w); margin: 0 auto; padding: 64px 24px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 28px; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.nav-logo { font-weight: 700; font-size: 18px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; border: none; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-large { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* HERO */
.hero { padding: 100px 24px 64px; text-align: center; max-width: var(--max-w); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.subhead { font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* LEADERBOARD */
.leaderboard .listing-grid { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.listing-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; transition: border-color 0.15s; }
.listing-card:hover { border-color: var(--accent); }
.listing-rank { font-size: 18px; font-weight: 800; color: var(--text-faint); text-align: center; }
.listing-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.listing-info .one-liner { font-size: 13px; color: var(--text-muted); }
.listing-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-card-alt); }
.badge--launchkit { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.badge--boost { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.upvote-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; min-width: 52px; font-weight: 700; font-size: 14px; transition: all 0.15s; color: var(--text-muted); }
.upvote-btn:hover, .upvote-btn.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.upvote-btn .arrow { font-size: 16px; line-height: 1; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }
.browse-all-link { display: inline-block; font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.browse-all-link:hover { color: var(--text); text-decoration: none; }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-glow); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* WHAT YOU GET */
.tier-list { display: flex; flex-direction: column; gap: 2px; }
.tier-row { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; }
.tier-row--boost { border-color: var(--gold); background: linear-gradient(90deg, var(--gold-bg) 0%, var(--bg-card) 40%); }
.tier-name-col { font-weight: 700; font-size: 16px; }
.tier-name-col .price { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 8px; }
.tier-desc { font-size: 14px; color: var(--text-muted); }

/* SISTER PRODUCT */
.sister-product { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sister-product section { max-width: var(--max-w); }
.sister-card { background: var(--bg); border: 1px solid var(--accent); border-radius: var(--radius); padding: 32px; position: relative; }
.sister-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sister-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.sister-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; max-width: 600px; }

/* PRICING */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.pricing-card--featured { border-color: var(--gold); background: linear-gradient(160deg, var(--bg-card) 60%, var(--gold-bg)); }
.tier-badge { position: absolute; top: -12px; left: 20px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.tier-name { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.tier-price { font-size: 40px; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.tier-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; flex: 1; }
.tier-features li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; }
.tier-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-card .btn { width: 100%; margin-top: 4px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 18px 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-muted); font-size: 18px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); max-width: var(--max-w); margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* BROWSE PAGE */
.browse-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.sort-bar { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.sort-bar select { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: 13px; cursor: pointer; }

/* LISTING PAGE */
.listing-hero { display: grid; grid-template-columns: 1fr 200px; gap: 32px; margin-bottom: 40px; }
.listing-screenshot { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; width: 100%; aspect-ratio: 16/9; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.listing-screenshot img { width: 100%; height: 100%; object-fit: cover; }
.listing-upvote-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upvote-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; width: 80px; cursor: pointer; transition: all 0.15s; font-size: 24px; font-weight: 800; }
.upvote-big:hover, .upvote-big.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* SUBMIT FORM */
.submit-wrap { max-width: 680px; margin: 0 auto; padding: 60px 24px; }
.form-group { margin-bottom: 24px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label .hint { font-weight: 400; color: var(--text-muted); margin-left: 6px; font-size: 12px; }
input[type="text"], input[type="url"], input[type="date"], input[type="email"], textarea, select { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); font-size: 15px; font-family: var(--font); transition: border-color 0.15s; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.radio-item { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: border-color 0.15s; margin-bottom: 6px; }
.radio-item:has(input:checked) { border-color: var(--accent); }
.radio-item input { margin-top: 3px; accent-color: var(--accent); }
.error-msg { color: #dc2626; font-size: 13px; margin-top: 6px; display: none; }
.error-msg.visible { display: block; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 16px 40px; }
  section { padding: 40px 16px; }
  .tier-row { grid-template-columns: 1fr; gap: 8px; }
  .listing-hero { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}
