/* BoringPages — monochrome UI, single indigo accent for CTAs */

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --border: #2b2b30;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 600; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-pro { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Layout */
main { display: block; }
.screen { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 3rem; }
#screen-result { max-width: 1024px; }

.hero { text-align: center; margin: 1rem 0 1.75rem; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin: 0 auto; }

/* Form controls */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
#url-input { font-size: 1.05rem; padding: 1rem 1.1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-big { font-size: 1.1rem; padding: 1rem 1.25rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--muted); }

.linklike {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.25rem 0;
}
.linklike:hover { color: var(--text); }
.linklike.danger { color: var(--danger); }

.chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  justify-self: start;
}

/* URL hero box */
.url-box { display: grid; gap: 0.75rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.card h2 { margin-top: 0; }
.card > label { display: block; margin: 0.9rem 0 0.4rem; font-weight: 600; font-size: 0.95rem; }
.btn-row { display: grid; gap: 0.6rem; margin-top: 1rem; justify-items: start; }
.btn-row .btn { justify-self: stretch; }

/* Text helpers */
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: var(--danger); margin: 0.5rem 0 0; }
.success { color: var(--ok); }

/* Progress steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.steps li { color: var(--muted); padding-left: 1.6rem; position: relative; }
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active::before { border-color: var(--accent); animation: pulse 1s infinite; }
.steps li.done { color: var(--muted); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }

@keyframes pulse { 50% { opacity: 0.35; } }

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 3rem auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Product preview */
.preview-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
#preview-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.preview-title { font-weight: 700; }
.preview-price { font-size: 1.15rem; font-weight: 800; margin-top: 0.25rem; }

/* Paywall */
.paywall-hero { text-align: center; }
.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.bullets { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; text-align: left; }
.bullets li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.bullets strong { display: block; margin-bottom: 0.2rem; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0 1rem;
  text-align: left;
}
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.price-name { font-weight: 800; font-size: 1.1rem; }
.price-sub { color: var(--muted); font-size: 0.9rem; }
.price-amount { font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.price-card .btn { width: 100%; }

.claim-wrap { margin-top: 1rem; text-align: center; }
#claim-form { margin-top: 1rem; text-align: left; }
#claim-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
#claim-form .btn { margin-top: 0.75rem; width: 100%; }

.waitlist { text-align: center; }
.waitlist form { margin-top: 1.25rem; text-align: left; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.waitlist .btn { margin-top: 0.75rem; width: 100%; }

/* Library */
.library { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.lib-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.lib-title { font-weight: 700; }
.lib-meta { color: var(--muted); font-size: 0.85rem; }
.lib-actions { display: flex; gap: 0.9rem; flex-shrink: 0; }

/* Result */
.result-bar { margin-bottom: 1rem; }
.result-actions { display: grid; gap: 0.6rem; grid-template-columns: 1fr; margin: 1rem 0; }
.publish-out {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.publish-out a { color: #c7d2fe; }
#preview-frame {
  width: 100%;
  min-height: 75vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: block;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Desktop tweaks */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .btn { width: auto; }
  .url-box .btn { justify-self: start; min-width: 280px; }
  .btn-row { grid-auto-flow: column; justify-content: start; align-items: center; }
  .btn-row .btn { justify-self: start; min-width: 220px; }
  .result-actions { grid-template-columns: repeat(3, auto); justify-content: start; align-items: center; }
  .result-actions .btn, .result-actions .btn-ghost { width: auto; }
  .price-card .btn, #claim-form .btn, .waitlist .btn { width: 100%; }
}
