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

:root {
  --cream:   #f0ebe2;
  --warm:    #e8e0d4;
  --stone:   #c9bfb0;
  --blush:   #c4938a;
  --blush-light: #d4a49b;
  --ink:     #2a2420;
  --ink-mid: #5a4f47;
  --ink-soft: #8a7d74;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: multiply;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--blush); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8vw;
  gap: 4rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4a49b22 0%, transparent 70%);
  pointer-events: none;
}

.hero-text { max-width: 520px; }

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 44px;
  max-width: 400px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-cta:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

.hero-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ── PHONE MOCKUP ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.6s;
}

.phone {
  width: 280px;
  height: 560px;
  background: #fff;
  border-radius: 44px;
  box-shadow:
    0 40px 80px rgba(42,36,32,0.15),
    0 0 0 1px rgba(42,36,32,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  transform: rotate(2deg);
}

.phone-inner {
  position: absolute;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 28px;
  gap: 0;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #fff;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: center;
}

/* Coloring page illustration */
.coloring-preview {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42,36,32,0.08);
  margin-bottom: 20px;
  overflow: hidden;
}

.coloring-preview svg { width: 160px; height: 160px; }

.phone-prompt-box {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(42,36,32,0.06);
  margin-bottom: 14px;
}

.phone-prompt-box span {
  color: var(--ink);
  font-weight: 400;
}

.phone-generate-btn {
  width: 100%;
  background: var(--blush);
  border-radius: 100px;
  padding: 12px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* ── DIVIDER ── */
.section-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--stone), transparent);
  margin: 0 auto;
}

/* ── FEATURES ── */
.features {
  padding: 80px 8vw 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  text-align: center;
  margin-bottom: 16px;
}

.features-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  color: var(--ink);
  margin-bottom: 72px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}

.feature-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-mid);
}

/* ── PRICING ── */
.pricing {
  background: var(--warm);
  padding: 100px 8vw;
  text-align: center;
}

.pricing-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 16px;
}

.pricing-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ink);
  margin-bottom: 56px;
}

.pricing-card {
  display: inline-block;
  background: #fff;
  border-radius: 28px;
  padding: 48px 56px;
  box-shadow: 0 20px 60px rgba(42,36,32,0.08);
  text-align: left;
  max-width: 420px;
  width: 100%;
}

.pricing-plan {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.pricing-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-amount sup {
  font-size: 1.4rem;
  vertical-align: super;
}

.pricing-amount .cents {
  font-size: 2rem;
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.pricing-divider {
  height: 1px;
  background: var(--warm);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-mid);
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blush);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.pricing-cta:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

/* ── PRIVACY ── */
.privacy {
  padding: 140px 8vw 100px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 16px;
}

.privacy-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 40px;
}

.privacy-body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-mid);
}

.privacy-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 36px 0 12px;
  font-weight: 400;
}

.privacy-body p { margin-bottom: 16px; }

.privacy-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-body a {
  color: var(--blush);
  text-decoration: none;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--stone);
  padding: 36px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-mid);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--blush); }

/* ── NAV GRADIENT (gallery page) ── */
.nav-gradient {
  background: linear-gradient(to bottom, var(--cream) 60%, transparent);
  mix-blend-mode: normal;
}

/* ── GALLERY HEADER ── */
.gallery-header {
  padding: 140px 8vw 60px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.header-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.header-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.header-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}
.header-cta:hover { background: var(--blush); transform: translateY(-2px); }

/* ── GALLERY ── */
.gallery {
  padding: 60px 6vw 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── CARD ── */
.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(42,36,32,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42,36,32,0.12);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.card-image svg {
  width: 100%;
  height: 100%;
  max-width: 260px;
  padding: 24px;
  box-sizing: border-box;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--warm);
}

.card-prompt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-print {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 100px;
  padding: 11px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-print:hover { background: var(--blush); transform: translateY(-1px); }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm);
  border: none;
  cursor: pointer;
  color: var(--ink-mid);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-download:hover { background: var(--blush); color: #fff; }

/* ── PRINT OVERLAY ── */
#print-container {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  padding: 64px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
#print-container.active { display: flex; }
#print-container svg,
#print-container img { max-width: 680px; max-height: 680px; width: 100%; object-fit: contain; }

#print-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-soft);
}

#print-close {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--warm);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mid);
  transition: background 0.2s;
}
#print-close:hover { background: var(--stone); }

#print-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
#print-btn:hover { background: var(--blush); }

@media print {
  body::before, nav, .gallery-header, .card-body, .gallery { display: none !important; }
  #print-container { display: flex !important; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 24px 24px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    text-align: center;
    gap: 48px;
  }
  .hero-text { max-width: 100%; }
  .hero-body { max-width: 100%; }
  .hero-cta { margin: 0 auto; }
  .hero::after { display: none; }
  .features { padding: 60px 24px 80px; }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .pricing { padding: 60px 24px; }
  .pricing-card { padding: 36px 28px; }
  .privacy { padding: 60px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .gallery-header { padding: 100px 24px 40px; }
  .gallery { padding: 40px 24px 80px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
