/* The Prompt Press — playful creator-studio theme */
:root {
  --navy: #101d33;
  --navy-2: #18294a;
  --coral: #ff6b4a;
  --coral-dark: #e8552f;
  --cream: #fff8f2;
  --ink: #1d2433;
  --muted: #5d6b85;
  --card: #ffffff;
  --line: #e8e2d9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 29, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.2rem;
  background: rgba(16, 29, 51, 0.96);
  color: #fff;
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.2px; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { color: #cfd8ea; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }
.cart-btn {
  background: var(--coral); color: #fff; border: 0; border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 800; cursor: pointer; font-size: 0.95rem;
}
.cart-btn:hover { background: var(--coral-dark); }
.cart-count {
  background: #fff; color: var(--coral); border-radius: 999px;
  padding: 0.05rem 0.5rem; font-size: 0.8rem; margin-left: 0.25rem;
}

/* ---------- buttons / cards ---------- */
.btn {
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 800;
  padding: 0.7rem 1.4rem; font-size: 1rem; text-decoration: none;
  display: inline-block; text-align: center; transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem;
  border: 1px solid var(--line);
}
.pill {
  display: inline-block; background: #ffe9dd; color: var(--coral-dark);
  border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 700; font-size: 0.85rem;
}
.pill-soon { background: var(--navy); color: #fff; }
.fineprint { color: var(--muted); font-size: 0.85rem; }
.error { color: #c0392b; font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #243a63 100%); color: #fff; }
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0.8rem 0 0.2rem; letter-spacing: -1px; }
.tagline { font-size: 1.5rem; font-weight: 700; color: #ffd9c7; margin: 0.2rem 0; }
.hero-sub { color: #cfd8ea; font-size: 1.1rem; max-width: 34rem; }
.hero-price { font-size: 1.25rem; }
.hero-price strong { color: var(--coral); font-size: 1.6rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; color: #aebad4; font-size: 0.92rem; }
.hero-art img { width: 100%; max-width: 340px; border-radius: 28px; box-shadow: var(--shadow); }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.section h2 { font-size: 2rem; margin: 0 0 0.4rem; letter-spacing: -0.5px; }
.section-sub { color: var(--muted); margin-top: 0; font-size: 1.05rem; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt .card { box-shadow: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.step { text-align: center; padding: 1rem; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 0.8rem; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.5rem; align-items: start; }
.studio-form label { display: block; font-weight: 700; margin: 1rem 0 0.4rem; }
.studio-form label:first-child { margin-top: 0; }
.studio-form textarea, .studio-form select, #cart-email, #modal-qty, .modal select {
  width: 100%; border: 2px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.9rem; font-size: 1rem; font-family: inherit; background: #fff;
}
.studio-form textarea:focus, .studio-form select:focus { outline: none; border-color: var(--coral); }
.char-count { text-align: right; color: var(--muted); font-size: 0.8rem; }
.style-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.style-pills button {
  border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.45rem 1rem; font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.style-pills button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#generate-btn { width: 100%; margin-top: 1.2rem; }

.studio-result { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.result-placeholder { font-size: 4rem; }
.result-loading .spinner {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  border: 6px solid var(--line); border-top-color: var(--coral);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mockup-wrap { position: relative; width: 100%; max-width: 380px; }
#preview-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--line); background: #f4f6fa;
  touch-action: none;
}
#preview-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#print-area { position: absolute; overflow: hidden; }
#print-area.debug { outline: 2px dashed rgba(255,80,80,0.7); outline-offset: -1px; }
#preview-design {
  position: absolute; display: none; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#preview-design:active { cursor: grabbing; }
.preview-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: var(--muted); font-size: 0.95rem;
}
.mockup-wrap .result-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.72); border-radius: 14px; backdrop-filter: blur(2px);
}
#mockup-hint { margin-top: 0.6rem; font-size: 0.9rem; }
.placement-tools {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 0.6rem; font-size: 0.85rem;
}
.placement-tools .size-slider { display: flex; align-items: center; gap: 0.4rem; flex: 1; min-width: 140px; }
.placement-tools input[type="range"] { flex: 1; }
.modal-stage {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f4f6fa;
  margin: 0 auto 1rem;
}
#modal-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#modal-print-area { position: absolute; overflow: hidden; }
#modal-design { position: absolute; }

.text-tool { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.text-tool input[type="text"] {
  width: 100%; padding: 0.55rem 0.7rem; border: 2px solid var(--line);
  border-radius: 10px; font-size: 1rem; margin: 0.3rem 0 0.6rem; box-sizing: border-box;
}
.text-tool input[type="text"]:focus { outline: none; border-color: var(--coral); }
.text-row { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; }
.text-row select {
  flex: 1; min-width: 0; padding: 0.5rem; border: 2px solid var(--line);
  border-radius: 10px; font-size: 0.9rem; background: #fff;
}
.text-size { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; flex: 1; }
.text-size input[type="range"] { flex: 1; accent-color: var(--coral); }
.text-color { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.text-color input[type="color"] { width: 2.2rem; height: 2rem; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.text-tool .chk { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; cursor: pointer; }
.text-tool .chk input { accent-color: var(--coral); width: 1rem; height: 1rem; }

.idea-wrap { position: relative; margin: 0.2rem 0 1rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.idea-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1rem; box-shadow: 0 12px 32px rgba(20,30,60,0.16);
}
.idea-pop p { margin: 0.2rem 0 0.8rem; font-size: 1rem; line-height: 1.45; }
.idea-actions { display: flex; gap: 0.5rem; }
.idea-close {
  position: absolute; top: 0.3rem; right: 0.5rem; border: none; background: none;
  font-size: 1.3rem; cursor: pointer; color: var(--muted); line-height: 1;
}
.result-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }

.saved-wrap { margin-top: 2rem; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem; }
.saved-grid img { width: 100%; border-radius: 12px; cursor: pointer; border: 2px solid transparent; }
.saved-grid img:hover { border-color: var(--coral); }

/* ---------- garments / marketplace ---------- */
.garment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.garment { text-align: center; }
.garment-emoji { font-size: 3rem; }
.garment-price { font-size: 1.6rem; font-weight: 800; color: var(--coral-dark); margin: 0.3rem 0; }
.garment-desc { color: var(--muted); font-size: 0.95rem; min-height: 3.2em; }

.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.market-card { text-align: center; }
.market-art { font-size: 3.4rem; }
.market-card h4 { margin: 0.5rem 0 0.2rem; }
.market-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.duo-card h3 { margin-top: 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfd8ea; margin-top: 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; align-items: start;
}
.footer-brand img { width: 52px; border-radius: 14px; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a, .footer-copy a { color: #cfd8ea; text-decoration: none; }
.footer-links a:hover, .footer-copy a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.9rem; font-size: 1.5rem; }
.footer-social a { text-decoration: none; }
.footer-copy { text-align: center; padding: 0 1.5rem 1.5rem; font-size: 0.85rem; color: #8b98b8; }

/* ---------- cart drawer ---------- */
.cart-overlay, .modal-overlay {
  position: fixed; inset: 0; background: rgba(16, 29, 51, 0.55); z-index: 90;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw);
  background: var(--cream); z-index: 100; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.25); padding: 1.2rem; overflow-y: auto;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { margin: 0; }
.icon-btn { background: none; border: 0; font-size: 1.2rem; cursor: pointer; }
.cart-empty { text-align: center; margin-top: 3rem; color: var(--muted); }
.cart-item { display: flex; gap: 0.8rem; background: #fff; border-radius: 14px; padding: 0.8rem; margin-bottom: 0.8rem; border: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #eef1f6; }
.cart-item-info { flex: 1; font-size: 0.92rem; }
.cart-item-info strong { display: block; }
.cart-item-info .muted { color: var(--muted); font-size: 0.85rem; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.qty-ctrl { display: flex; align-items: center; gap: 0.5rem; }
.qty-ctrl button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }

.ship-progress { margin: 1rem 0; }
.ship-msg { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.4rem; }
.ship-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
#ship-fill { height: 100%; background: var(--coral); width: 0%; transition: width 0.3s; }

.ship-methods { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.ship-methods label { display: flex; gap: 0.6rem; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 0.6rem 0.9rem; cursor: pointer; font-weight: 600; }
.ship-methods input { accent-color: var(--coral); }

.cart-totals { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.cart-totals > div { display: flex; justify-content: space-between; padding: 0.15rem 0; }
.cart-totals .grand { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.5rem; }
.email-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
#cart-email { margin: 0.3rem 0 1rem; }

/* ---------- modal ---------- */
.modal-overlay { display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 110; }
.modal { max-width: 440px; width: 100%; text-align: center; }
.modal img { width: 100%; max-width: 240px; border-radius: 12px; background: #eef1f6; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 0.7rem; margin: 1rem 0; text-align: left; }
.modal-row label { font-size: 0.85rem; font-weight: 700; display: block; margin-bottom: 0.25rem; }
.modal-price { font-size: 1.3rem; font-weight: 800; color: var(--coral-dark); }
.modal-actions { display: flex; gap: 0.7rem; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art img { margin: 0 auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .studio-grid { grid-template-columns: 1fr; }
  .garment-grid, .market-grid { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}
