/* === SAFE COLOR STUDIOS — BRAND STYLESHEET === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FDFAF8;
  --bg-alt: #F3EDF7;
  --fg: #1C1A2E;
  --teal: #1B7A7A;
  --teal-dark: #0F5454;
  --turquoise: #40C9C9;
  --lilac: #B48FD6;
  --purple-light: #E8DFF5;
  --orange: #E8834A;
  --orange-light: #FFF0E8;
  --blue: #4A6FA5;
  --cream: #FDFAF8;
  --muted: #7A7285;
  --border: rgba(27, 122, 122, 0.12);
  --shadow: rgba(27, 122, 122, 0.1);

  --font-display: 'Dancing Script', 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-mono: 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === UTILITY === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--lilac);
  margin-bottom: 14px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: #6A6375;
  max-width: 520px;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 16px rgba(27, 122, 122, 0.25);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 122, 122, 0.3);
}
.btn-secondary {
  background: white;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}
.btn-orange {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(232, 131, 74, 0.3);
}
.btn-orange:hover {
  background: #D06A30;
  transform: translateY(-1px);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* === HERO === */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--purple-light) 100%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-light);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: #5A5365;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-mockup {
  position: relative;
  display: inline-block;
}
.book-mockup::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  background: var(--teal);
  border-radius: 4px;
  z-index: 0;
  opacity: 0.15;
}
.book-mockup img {
  position: relative;
  z-index: 1;
  width: 280px;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(27, 122, 122, 0.2),
    0 4px 12px rgba(0,0,0,0.1),
    -2px 2px 0 rgba(255,255,255,0.3);
  transform: rotate(-1.5deg);
}
.book-caption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

/* === MEET JAX === */
.meet-jax { padding: 90px 0; background: var(--bg-alt); }
.meet-jax-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.character-art { display: flex; justify-content: center; }
.character-art img {
  width: 300px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(180, 143, 214, 0.2);
}
.meet-jax-content .section-headline { margin-bottom: 8px; }
.jax-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--lilac);
  margin-bottom: 20px;
}
.meet-jax-content p {
  font-size: 0.95rem;
  color: #6A6375;
  line-height: 1.75;
  margin-bottom: 14px;
}
.jax-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trait-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

/* === INSIDE THE BOOK === */
.inside-book { padding: 90px 0; }
.inside-book-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.inside-book .section-sub { margin-bottom: 48px; }
.pages-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.pages-spread img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27, 122, 122, 0.12);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.87rem; color: #6A6375; line-height: 1.6; }

/* === MADE FOR YOU (Custom Order Form) === */
.made-for-you { padding: 90px 0; background: var(--bg-alt); }
.made-for-you-inner { max-width: 700px; margin: 0 auto; padding: 0 32px; }
.made-for-you .section-sub { margin-bottom: 40px; }

.form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(27, 122, 122, 0.08);
  border: 1px solid var(--border);
}
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 600;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4A4460;
  margin-bottom: 6px;
}
.form-group label span { color: var(--orange); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E0DCE8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 122, 122, 0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.privacy-notice {
  background: var(--orange-light);
  border: 1.5px solid rgba(232, 131, 74, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.privacy-notice-title {
  font-weight: 800;
  color: var(--orange);
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.privacy-notice p { font-size: 0.85rem; color: #5A4A3A; line-height: 1.6; }

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.confirm-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.confirm-row label {
  font-size: 0.9rem;
  color: #4A4460;
  line-height: 1.55;
}

.form-submit-row { text-align: center; }
.form-submit-row .btn { width: 100%; max-width: 320px; padding: 16px 32px; font-size: 1rem; }
.form-error {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 12px 16px;
  color: #B91C1C;
  font-size: 0.87rem;
  margin-bottom: 16px;
  display: none;
}
.form-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: none;
}
.form-success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.9rem; color: #5A5365; }

/* === FOOTER === */
.footer { padding: 48px 0; background: var(--fg); color: rgba(255,255,255,0.75); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}
.footer-brand-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--turquoise); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }

/* === MADE FOR YOU SECTION === */
.mfy-section {
  padding: 80px 0;
  background: var(--cream);
}
.mfy-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
}
.mfy-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}
.mfy-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 18px;
  line-height: 1.3;
}
.mfy-sub {
  font-size: 0.97rem;
  color: #5A5360;
  line-height: 1.7;
}
.mfy-sub strong { color: var(--teal); }

.mfy-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Form Card */
.mfy-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(27, 107, 107, 0.07);
}

.mfy-group {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(27, 107, 107, 0.08);
}
.mfy-group:last-of-type { border-bottom: none; margin-bottom: 28px; padding-bottom: 0; }

.mfy-group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 18px;
}
.mfy-required { color: var(--coral); }
.mfy-optional { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.mfy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mfy-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mfy-field:last-child { margin-bottom: 0; }

.mfy-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4A4455;
  letter-spacing: 0.02em;
}
.mfy-field input,
.mfy-field select,
.mfy-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6570' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.mfy-field input:focus,
.mfy-field select:focus,
.mfy-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 107, 107, 0.12);
}
.mfy-field input::placeholder { color: #A09890; }
.mfy-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Photo Upload */
.mfy-photo-area {
  position: relative;
  border: 2px dashed rgba(27, 107, 107, 0.25);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.mfy-photo-area:hover { border-color: var(--teal); background: rgba(27, 107, 107, 0.03); }

.mfy-file-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.mfy-photo-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.5;
}
.mfy-photo-label svg { color: var(--teal); }
.mfy-photo-label small { font-size: 0.78rem; color: #A09890; }

.mfy-photo-preview {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mfy-photo-preview img {
  max-width: 200px; max-height: 200px; border-radius: 8px;
  border: 1px solid var(--border); object-fit: cover;
}
.mfy-remove-photo {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 12px;
  font-size: 0.8rem; color: var(--muted); cursor: pointer; font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.mfy-remove-photo:hover { border-color: var(--coral); color: var(--coral); }

/* Privacy */
.mfy-privacy { margin-bottom: 28px; }
.mfy-privacy-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(27, 107, 107, 0.05);
  border: 1px solid rgba(27, 107, 107, 0.12);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 16px;
}
.mfy-lock-icon { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.mfy-privacy-notice strong { font-size: 0.83rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 4px; }
.mfy-privacy-notice p { font-size: 0.82rem; color: #5A5360; line-height: 1.55; }

.mfy-privacy-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: #5A5360; line-height: 1.55;
  cursor: pointer;
}
.mfy-privacy-check input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  accent-color: var(--teal); width: 16px; height: 16px;
  cursor: pointer;
}
.mfy-privacy-link { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* Submit Button */
.mfy-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 24px;
  background: var(--teal);
  color: white;
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(27, 107, 107, 0.28);
  letter-spacing: 0.02em;
}
.mfy-submit:hover { background: var(--teal-dark); box-shadow: 0 6px 20px rgba(27, 107, 107, 0.35); }
.mfy-submit:active { transform: scale(0.99); }
.mfy-submit:disabled { background: #B0C8C8; cursor: not-allowed; box-shadow: none; transform: none; }

.mfy-spinner {
  animation: mfy-spin 0.9s linear infinite;
}
@keyframes mfy-spin { to { transform: rotate(360deg); } }

/* Success / Error */
.mfy-success {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(27, 107, 107, 0.06);
  border: 1.5px solid rgba(27, 107, 107, 0.25);
  border-radius: 12px; padding: 20px;
  margin-top: 20px;
  font-size: 0.9rem; color: var(--teal-dark);
  animation: mfy-fadeIn 0.4s ease-out;
}
.mfy-success svg { flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.mfy-success strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.mfy-success p { line-height: 1.6; color: #4A4455; }

.mfy-error {
  background: rgba(232, 120, 90, 0.08);
  border: 1.5px solid rgba(232, 120, 90, 0.3);
  border-radius: 10px; padding: 14px 16px;
  font-size: 0.85rem; color: var(--coral-dark);
  margin-top: 16px; line-height: 1.55;
}
@keyframes mfy-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Info Panel */
.mfy-info {
  display: flex; flex-direction: column; gap: 16px;
}
.mfy-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.mfy-info-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(27, 107, 107, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--teal);
}
.mfy-info-card h4 {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 600;
  color: var(--fg); margin-bottom: 6px;
}
.mfy-info-card p { font-size: 0.83rem; color: #5A5360; line-height: 1.55; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner,
  .meet-jax-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { order: -1; }
  .hero-ctas { justify-content: center; }
  .book-mockup img { width: 220px; }
  .character-art { order: -1; }
  .character-art img { width: 240px; }
  .pages-spread { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-tagline { display: none; }
  .book-cover { width: 180px; }
  .mfy-layout { grid-template-columns: 1fr; }
  .mfy-form-card { padding: 28px 20px; }
  .mfy-row { grid-template-columns: 1fr; }
  .mfy-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 56px; }
  .meet-jax, .inside-book, .made-for-you { padding: 64px 0; }
  .form-card { padding: 24px 20px; }
}