:root {
  --bg: #14110e;
  --bg2: #1e1914;
  --ink: #f4ebe0;
  --muted: #a89886;
  --accent: #e8a045;
  --accent2: #ff6b4a;
  --line: rgba(244, 235, 224, 0.12);
  --ok: #6bcb8c;
  --danger: #ff6b6b;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(232, 160, 69, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 107, 74, 0.12), transparent);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #1a1208; }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  position: relative;
}
.hero-copy { position: relative; z-index: 1; }
.hero::before { display: none; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.hero p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-collage {
  position: relative;
  min-height: min(72vh, 560px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  align-content: center;
}
.hero-collage figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: #0c0a08;
  aspect-ratio: 3 / 4;
}
.hero-collage figure:nth-child(2),
.hero-collage figure:nth-child(5) {
  transform: translateY(1.1rem);
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Sharp image; only private regions are pre-blurred in the JPG */
  filter: none;
  transform: none;
}
.hero-collage figure::after {
  content: "Bits blurred";
  position: absolute;
  inset: auto 0.45rem 0.45rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 235, 224, 0.72);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.hero-note {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.75rem;
  }
  .hero-collage {
    min-height: 280px;
    order: -1;
  }
  .hero-collage figure:nth-child(n+4) { display: none; }
  .hero-collage figure:nth-child(2),
  .hero-collage figure:nth-child(5) { transform: none; }
}

.section { padding: 3.5rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.section .lead { color: var(--muted); margin: 0 0 2rem; max-width: 52ch; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.price-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card h3 { margin: 0; font-family: var(--font-display); }
.price-card .amt {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}
.price-card .amt small { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.price-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); flex: 1; }
.badge {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1208;
  background: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.studio-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}
@media (max-width: 860px) {
  .studio-layout { grid-template-columns: 1fr; }
  .hero::before { display: none; }
}

.panel {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
}
.panel h2 { margin-top: 0; font-family: var(--font-display); font-size: 1.25rem; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
textarea, input, select {
  width: 100%;
  background: #0f0d0b;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  margin-bottom: 0.9rem;
}
textarea { min-height: 140px; resize: vertical; }
.preview {
  min-height: 420px;
  background: #0c0a08;
  border-radius: 0.85rem;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview img { width: 100%; height: auto; display: block; }
.preview .ph { color: var(--muted); text-align: center; padding: 2rem; }
.meta-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.status { color: var(--accent); min-height: 1.25rem; font-size: 0.9rem; }
.err { color: var(--danger); }

.gate {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.92);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}
.gate-box {
  width: min(420px, 100%);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}
.gate-box h2 { font-family: var(--font-display); margin-top: 0; }
.hidden { display: none !important; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

pre.code {
  background: #0c0a08;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow: auto;
  font-size: 0.85rem;
  color: #e8d9c4;
}

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .auth-grid { grid-template-columns: 1fr; } }

.keyframes-pulse {
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}


.seo-bullets { color: var(--muted); margin: 0 0 1.25rem; padding-left: 1.15rem; max-width: 40ch; }
.seo-bullets li { margin: 0.35rem 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; }
.guide-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 1rem 1.1rem; text-decoration: none; color: inherit;
}
.guide-card:hover { border-color: var(--accent); text-decoration: none; }
.guide-card strong { font-family: var(--font-display); }
.guide-card span { color: var(--muted); font-size: 0.9rem; }
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.85rem 1rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); margin: 0.65rem 0 0; }
.crumbs { padding: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
.seo-article h1 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0.4rem 0 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; max-width: 52rem; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.library-card {
  background: #0c0a08;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.library-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.library-meta { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.5rem; }
.library-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}
.library-meta .btn { width: 100%; padding: 0.55rem 0.75rem; font-size: 0.85rem; }
