/* ── Marquee design system ─────────────────────────────────────────── */
:root {
  --bg: #0e0c10;
  --bg-raise: #17141b;
  --bg-raise-2: #1e1a24;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f0e8;
  --muted: #a89f93;
  --gold: #f5b942;
  --gold-deep: #d99a1e;
  --pink: #ff5c8a;
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(245, 185, 66, 0.07), transparent 60%),
                    radial-gradient(900px 500px at 10% 110%, rgba(255, 92, 138, 0.05), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
small { color: var(--muted); font-weight: 400; }

/* ── nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 12, 16, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: 0.16em; color: var(--text); display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(245, 185, 66, 0.65);
}
.brand-mini { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.16em; }
.nav-links { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); }
.nav-link { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.inline-form { display: inline; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease; text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #241a05;
  box-shadow: 0 4px 20px rgba(245, 185, 66, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(245, 185, 66, 0.4); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.linkish {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px;
  justify-self: start; font-family: var(--font-body);
}
.linkish:hover { color: var(--gold); }

/* ── layout ── */
.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 80px; }
.narrow { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.narrow h1 { font-size: 30px; }
.footer {
  border-top: 1px solid var(--border); padding: 26px clamp(16px, 4vw, 48px);
  color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

.card {
  background: var(--bg-raise); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card h2 { font-size: 21px; margin-bottom: 10px; }

/* ── flashes ── */
.flashes { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(480px, 92vw); }
.flash {
  background: var(--bg-raise-2); border: 1px solid var(--gold);
  border-radius: 12px; padding: 12px 18px; font-size: 14.5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); animation: flash-in 0.25s ease;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* ── hero ── */
.hero-banner {
  margin: -24px calc(50% - 50vw) 0;
  padding: 6px calc(50vw - 50%) 30px;
  background:
    linear-gradient(180deg, rgba(14, 12, 16, 0.88) 0%, rgba(14, 12, 16, 0.72) 45%, var(--bg) 100%),
    url("../img/hero-bg.jpg") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: clamp(30px, 7vh, 80px) 0 30px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 12.5px;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5.5vw, 62px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { color: var(--muted); font-size: 17.5px; margin: 22px 0 28px; max-width: 54ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

.hero-collage { position: relative; height: 460px; }
.collage-poster {
  position: absolute; width: 62%; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease;
}
.collage-poster:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 5; }
.c1 { top: 0; left: 4%; transform: rotate(-5deg); z-index: 3; }
.c2 { top: 12%; right: 0; transform: rotate(4deg); z-index: 2; }
.c3 { bottom: 0; left: 18%; transform: rotate(-1deg); z-index: 1; }

/* ── sections ── */
.section { padding: 44px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin-bottom: 10px; }
.section-title.left { text-align: left; font-size: 24px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.step h3 { margin: 12px 0 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 185, 66, 0.12); color: var(--gold);
  font-family: var(--font-display); font-weight: 800;
}

/* poster wall on landing */
.wall-section { padding-top: 30px; }
.poster-wall {
  display: flex; gap: 16px; overflow-x: auto; padding: 10px 6px 18px;
  scroll-snap-type: x proximity;
}
.poster-wall img {
  height: 300px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  scroll-snap-align: center; transition: transform 0.2s ease;
}
.poster-wall img:nth-child(odd) { transform: rotate(-1.6deg); }
.poster-wall img:nth-child(even) { transform: rotate(1.4deg); }
.poster-wall img:hover { transform: scale(1.05) rotate(0deg); }

/* style strip on landing */
.style-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-tag {
  border-radius: 12px; padding: 18px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; background: var(--bg-raise);
  position: relative; overflow: hidden;
}
.style-tag::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; opacity: 0.9;
}
.style-tag span { color: var(--muted); font-size: 13.5px; }
.st-chalkboard::before { background: linear-gradient(90deg, #e8e6e1, #9fb4a8); }
.st-neon::before { background: linear-gradient(90deg, #ff5c8a, #4dd8ff); }
.st-vintage::before { background: linear-gradient(90deg, #c0392b, #e8ddc4); }
.st-minimal::before { background: linear-gradient(90deg, #f5b942, #f4f0e8); }
.st-festival::before { background: linear-gradient(90deg, #ff8c42, #ff5c8a, #4dd8ff); }
.st-trad::before { background: linear-gradient(90deg, #1e5631, #f5b942, #6e1423); }
.st-matchday::before { background: linear-gradient(90deg, #0b3d1e, #d7ff3e); }
.st-cinema::before { background: linear-gradient(90deg, #1a1206, #f5b942, #8a1f1f); }
.st-street::before { background: linear-gradient(90deg, #2b2b2b, #ff2fa0, #a6ff2f); }
.st-psych::before { background: linear-gradient(90deg, #ff5c8a, #ff8c42, #2fd8c3, #7b5cff); }
.st-photofirst::before { background: linear-gradient(90deg, #10131a, #4a6b8a, #c9a86a); }
.st-zine::before { background: linear-gradient(90deg, #efe9dc, #e0452f, #2b2b2b); }

/* ── pricing ── */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); gap: 20px; justify-content: center; }
.price-tag { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.price-card em { color: var(--muted); font-style: normal; font-size: 13px; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 40px rgba(245, 185, 66, 0.12); }
.ribbon {
  position: absolute; top: -12px; right: 20px;
  background: var(--gold); color: #241a05; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.price { font-family: var(--font-display); font-size: 42px; font-weight: 800; }
.price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price-card li { padding-left: 26px; position: relative; font-size: 15px; }
.price-card li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: 13px; }

/* ── faq / cta ── */
.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); max-width: 22ch; }

/* ── auth ── */
.auth-wrap { display: flex; justify-content: center; padding: clamp(20px, 8vh, 70px) 0; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

/* ── forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; }
.field > span em { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea, .caption-box textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 15.5px;
  padding: 11px 14px; width: 100%; outline: none; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.form-error {
  background: rgba(255, 107, 107, 0.1); border: 1px solid var(--danger);
  color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 14.5px;
}

/* ── dashboard ── */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 10px 0 22px; }
.dash-head h1 { font-size: clamp(24px, 3.4vw, 34px); }
.meter-chip { min-width: 210px; }
.meter-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.meter { height: 7px; background: var(--bg-raise-2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 99px; transition: width 0.4s ease; }
.blocked-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: var(--gold); margin-bottom: 24px; }

.brief-card { margin-bottom: 14px; }
.brief-card h2 { margin-bottom: 18px; }
.picker-label { font-size: 13.5px; font-weight: 600; margin: 20px 0 10px; }

.style-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.style-option {
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: all 0.15s; position: relative; text-align: center;
}
.style-option input { position: absolute; opacity: 0; }
.style-option:hover { border-color: rgba(255, 255, 255, 0.25); }
.style-option:has(input:checked) { border-color: var(--gold); background: rgba(245, 185, 66, 0.07); }
.style-swatch { width: 100%; height: 34px; border-radius: 7px; }
.st-chalkboard .style-swatch { background: linear-gradient(135deg, #2d3a33, #1c2420); }
.st-neon .style-swatch { background: linear-gradient(135deg, #1a0b2e 60%, #ff5c8a); }
.st-vintage .style-swatch { background: linear-gradient(135deg, #e8ddc4, #c0392b); }
.st-minimal .style-swatch { background: linear-gradient(135deg, #f4f0e8 55%, #f5b942 55%); }
.st-festival .style-swatch { background: linear-gradient(135deg, #ff8c42, #ff5c8a, #4dd8ff); }
.st-trad .style-swatch { background: linear-gradient(135deg, #1e5631, #6e1423); }
.st-matchday .style-swatch { background: linear-gradient(135deg, #0b3d1e 55%, #d7ff3e); }
.st-cinema .style-swatch { background: linear-gradient(135deg, #1a1206 50%, #f5b942); }
.st-street .style-swatch { background: linear-gradient(135deg, #2b2b2b 40%, #ff2fa0 70%, #a6ff2f); }
.st-psych .style-swatch { background: linear-gradient(135deg, #ff5c8a, #ff8c42, #2fd8c3, #7b5cff); }
.st-photofirst .style-swatch { background: linear-gradient(135deg, #10131a 55%, #4a6b8a); }
.st-zine .style-swatch { background: linear-gradient(135deg, #efe9dc 55%, #e0452f); }
.style-name { font-size: 12.5px; font-weight: 600; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.seg-opt:has(input:checked) span { background: var(--gold); color: #241a05; }

.uploads-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upload-box {
  border: 1.5px dashed var(--border); border-radius: 12px; min-height: 86px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.upload-box:hover { border-color: var(--gold); }
.upload-box input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.upload-hint { color: var(--muted); font-size: 13.5px; font-weight: 600; pointer-events: none; }
.upload-box.has-file { border-style: solid; border-color: var(--gold); }
.upload-box.has-file .upload-hint {
  background: rgba(14, 12, 16, 0.78); padding: 4px 10px; border-radius: 8px; color: var(--text);
}
#submit-btn { margin-top: 22px; }

/* ── poster grid ── */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.poster-tile {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-raise);
  transition: transform 0.15s, border-color 0.15s; color: var(--text);
}
.poster-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); text-decoration: none; }
.poster-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.aspect-1-1 img { aspect-ratio: 1; }
.aspect-9-16 img { aspect-ratio: 9 / 16; }
.tile-state {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.tile-state.failed { color: var(--danger); }
.tile-caption { padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.tile-caption strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-caption span { font-size: 12.5px; color: var(--muted); }

.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── poster page ── */
.poster-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; padding-top: 14px; }
.poster-stage {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-raise); align-self: start;
}
.poster-stage img { width: 100%; display: block; }
.stage-generating, .stage-failed {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center;
}
.poster-stage.aspect-1-1 .stage-generating, .poster-stage.aspect-1-1 .stage-failed { aspect-ratio: 1; }
.poster-stage.aspect-9-16 .stage-generating, .poster-stage.aspect-9-16 .stage-failed { aspect-ratio: 9 / 16; }
.stage-failed .muted { max-width: 44ch; }
.marquee-lights { display: flex; gap: 12px; margin-bottom: 8px; }
.marquee-lights span {
  width: 13px; height: 13px; border-radius: 50%; background: var(--gold);
  animation: bulb 1.2s infinite; box-shadow: 0 0 14px rgba(245, 185, 66, 0.8);
}
.marquee-lights span:nth-child(2) { animation-delay: 0.12s; }
.marquee-lights span:nth-child(3) { animation-delay: 0.24s; }
.marquee-lights span:nth-child(4) { animation-delay: 0.36s; }
.marquee-lights span:nth-child(5) { animation-delay: 0.48s; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; box-shadow: none; } }

.poster-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.poster-side h1 { font-size: 28px; }
.meta-list { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.meta-list > div { display: flex; gap: 12px; font-size: 14.5px; }
.meta-list span { color: var(--muted); min-width: 52px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 1px; }
.side-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.caption-box { width: 100%; }
.caption-box textarea { resize: vertical; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }

/* ── account/settings ── */
.plan-line { font-size: 18px; }
.plan-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.chip.warn { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.demo-note { font-size: 13.5px; border-left: 3px solid var(--gold); padding-left: 12px; margin: 12px 0; }
.pw-form { margin: 12px 0 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pw-form .form-grid { width: 100%; }
.welcome-card { border-color: var(--gold); }
.welcome-card p { color: var(--muted); margin-top: 6px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-collage { height: 380px; max-width: 420px; }
  .cards-3, .style-strip { grid-template-columns: 1fr 1fr; }
  .style-picker { grid-template-columns: repeat(3, 1fr); }
  .poster-layout { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-3, .style-strip, .uploads-row { grid-template-columns: 1fr; }
  .style-picker { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .nav-link { display: none; }
  .hero-collage { height: 300px; }
}
