/* ================================================================
   MINI-MALBUCH — Scrapbook Editorial
   Fraunces × Nunito × Caveat
   Paper-cream, deep ink, tomato accent
   ================================================================ */

:root {
  --paper:        #FBF4E4;
  --paper-deep:   #F2E8CE;
  --paper-cool:   #EDE5D0;
  --ink:          #1A1D2E;
  --ink-soft:     #2E3149;
  --ink-mute:     #6C6E83;

  --tomato:       #E63946;
  --tomato-deep:  #B8232F;
  --mustard:      #F4A261;
  --butter:       #F6CB62;
  --sky:          #A8DADC;
  --sage:         #A7C4A0;
  --plum:         #6B4E71;

  --tape:         #F4D35E;
  --tape-alt:     #EE964B;
  --tape-mint:    #B5EAD7;

  --shadow-soft:  0 2px 12px rgba(26, 29, 46, 0.08);
  --shadow-lift:  0 20px 50px rgba(26, 29, 46, 0.18);
  --shadow-hard:  6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);

  --radius:       2px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- PAPER GRAIN OVERLAY (fixed, layered over everything) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* subtle vignette so edges feel like paper */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(26,29,46,0.08) 100%);
}

main { position: relative; z-index: 2; }

/* ================== TYPOGRAPHY ================== */

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -0.02em;
}

.font-hand {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tomato);
  display: inline-block;
}

.eyebrow::before {
  content: '✦';
  margin-right: 0.5em;
  color: var(--tomato);
}

/* ================== HEADER ================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  background: rgba(251, 244, 228, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 29, 46, 0.1);
}

.site-header nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-variation-settings: "SOFT" 100;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--tomato);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 1.1rem;
  transform: rotate(-8deg);
  box-shadow: var(--shadow-hard-sm);
  border: 2px solid var(--ink);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--tomato);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links .nav-text { display: none; }
}

/* ================== BUTTONS ================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-hard-sm);
  letter-spacing: 0.01em;
  border-radius: 0;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  background: var(--tomato);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--tomato-deep);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.btn-ghost:hover {
  transform: translate(0, -2px);
  box-shadow: none;
}

.btn-big {
  padding: 1.3rem 2.5rem;
  font-size: 1.15rem;
}

/* ================== HERO ================== */

.hero {
  position: relative;
  padding: 5rem 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 3rem 10rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
  }
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 1.5rem 0;
  font-variation-settings: "SOFT" 50, "opsz" 144, "WONK" 1;
}

.hero-headline .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--tomato);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
  position: relative;
  display: inline-block;
  padding-right: 0.1em;
}

.hero-headline .accent::before {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2,14 Q50,2 100,10 T200,10 T298,12' stroke='%23E63946' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  z-index: -1;
  opacity: 0.85;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.hand-note {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--tomato);
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: rotate(-1.5deg);
}

.hand-note::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M5,5 Q25,5 35,20 T55,35' stroke='%23E63946' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M48,28 L55,35 L48,40' stroke='%23E63946' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  transform: rotate(15deg);
}

/* ===== POLAROIDS ===== */

.polaroid-stack {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  background: #FEFDF8;
  padding: 16px 16px 60px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  width: 72%;
}

.polaroid img,
.polaroid svg {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.polaroid .caption {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--ink);
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 100px;
  height: 28px;
  background: var(--tape);
  opacity: 0.9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateX(-50%) rotate(-4deg);
}

.polaroid-a {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 2;
}

.polaroid-a::before { background: var(--tape); }

.polaroid-b {
  top: 18%;
  right: 0;
  transform: rotate(4deg);
  z-index: 3;
}

.polaroid-b::before { background: var(--tape-mint); transform: translateX(-50%) rotate(3deg); }

.polaroid-a:hover { transform: rotate(-2deg) translateY(-6px); }
.polaroid-b:hover { transform: rotate(1deg) translateY(-6px); z-index: 5; }

.polaroid-arrow {
  position: absolute;
  top: 35%;
  left: 42%;
  width: 80px;
  height: 60px;
  z-index: 4;
  transform: rotate(-5deg);
}

/* floating decorative doodles */
.doodle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.doodle-1 { top: 5%; left: 8%; width: 60px; animation-delay: 0s; }
.doodle-2 { top: 15%; right: 5%; width: 50px; animation-delay: 1s; }
.doodle-3 { bottom: 25%; left: 45%; width: 40px; animation-delay: 2s; }
.doodle-4 { bottom: 10%; right: 15%; width: 55px; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ===== TORN PAPER DIVIDER ===== */

.torn-divider {
  position: relative;
  height: 60px;
  margin: -30px 0;
  z-index: 3;
  background: var(--paper-deep);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,30 Q1400,40 1380,32 Q1340,22 1300,38 Q1250,52 1200,35 Q1150,22 1100,42 Q1050,58 1000,38 Q950,22 900,40 Q850,55 800,35 Q750,22 700,42 Q650,58 600,38 Q550,22 500,40 Q450,55 400,35 Q350,20 300,40 Q250,55 200,38 Q150,22 100,40 Q50,55 0,40 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,30 Q1400,40 1380,32 Q1340,22 1300,38 Q1250,52 1200,35 Q1150,22 1100,42 Q1050,58 1000,38 Q950,22 900,40 Q850,55 800,35 Q750,22 700,42 Q650,58 600,38 Q550,22 500,40 Q450,55 400,35 Q350,20 300,40 Q250,55 200,38 Q150,22 100,40 Q50,55 0,40 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ===== SECTIONS ===== */

section {
  position: relative;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-top: 0.8rem;
  line-height: 0.95;
  font-variation-settings: "SOFT" 50, "opsz" 144, "WONK" 1;
}

.section-title .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--tomato);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}

/* ===== STEPS / HOW IT WORKS ===== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step-card {
  position: relative;
  background: #FEFDF8;
  padding: 2.5rem 2rem 2.5rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform 0.4s var(--ease);
}

.step-card:nth-child(1) { transform: rotate(-1.5deg); }
.step-card:nth-child(2) { transform: rotate(1deg); margin-top: 1.5rem; }
.step-card:nth-child(3) { transform: rotate(-0.5deg); }

.step-card:hover {
  transform: translateY(-6px) rotate(0deg);
}

.step-number {
  position: absolute;
  top: -30px;
  left: -10px;
  width: 70px;
  height: 70px;
  background: var(--tomato);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.7rem;
  transform: rotate(-5deg);
  box-shadow: var(--shadow-hard-sm);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(2px 2px 0 rgba(26,29,46,0.15));
}

.step-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  font-variation-settings: "SOFT" 50;
}

.step-body {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== PRICING ===== */

.pricing-wrap {
  background: var(--paper-deep);
  padding: 8rem 2rem;
  position: relative;
}

.pricing-wrap::before,
.pricing-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--paper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q60,35 120,15 T240,15 T360,15 T480,15 T600,15 T720,15 T840,15 T960,15 T1080,15 T1200,15 T1320,15 T1440,15 L1440,0 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q60,35 120,15 T240,15 T360,15 T480,15 T600,15 T720,15 T840,15 T960,15 T1080,15 T1200,15 T1320,15 T1440,15 L1440,0 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.pricing-wrap::before { top: 0; }
.pricing-wrap::after { bottom: 0; transform: rotate(180deg); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.ticket {
  position: relative;
  background: #FEFDF8;
  border: 2px solid var(--ink);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-hard);
  transition: transform 0.4s var(--ease);
}

.ticket:nth-child(1) { transform: rotate(-1deg); }
.ticket:nth-child(2) { transform: rotate(1.5deg); }

.ticket:hover { transform: rotate(0) translateY(-6px); }

/* perforation circles on sides */
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  background: var(--paper-deep);
  border-radius: 50%;
  border: 2px solid var(--ink);
  transform: translateY(-50%);
}

.ticket::before { left: -17px; }
.ticket::after { right: -17px; }

.ticket-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--ink);
}

.ticket-tier {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-desc {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 700;
}

.ticket-price {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}

.ticket-price .currency {
  font-size: 2rem;
  vertical-align: top;
  font-weight: 600;
  margin-right: 0.1em;
  color: var(--tomato);
}

.ticket-features {
  list-style: none;
  margin: 2rem 0;
}

.ticket-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(26,29,46,0.15);
}

.ticket-features li::before {
  content: '✓';
  color: var(--tomato);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ticket-stamp {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--tomato);
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  transform: rotate(12deg);
  box-shadow: var(--shadow-hard-sm);
  z-index: 5;
}

/* ===== LETTER / TESTIMONIAL ===== */

.letter-section {
  padding: 8rem 2rem;
}

.letter {
  max-width: 700px;
  margin: 0 auto;
  background: #FEFDF8;
  padding: 4rem 3rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  position: relative;
  transform: rotate(-0.5deg);
}

.letter::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 30px;
  width: 120px;
  height: 30px;
  background: var(--tape-alt);
  opacity: 0.85;
  transform: rotate(-4deg);
}

.letter p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
  color: var(--ink-soft);
}

.letter .salute {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.letter .signature {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: var(--tomato);
  margin-top: 2rem;
  transform: rotate(-2deg);
  display: inline-block;
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--ink);
  color: var(--paper-deep);
  padding: 5rem 2rem 2rem;
  margin-top: 6rem;
  position: relative;
  z-index: 2;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--ink);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q60,5 120,25 T240,25 T360,25 T480,25 T600,25 T720,25 T840,25 T960,25 T1080,25 T1200,25 T1320,25 T1440,25 L1440,40 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q60,5 120,25 T240,25 T360,25 T480,25 T600,25 T720,25 T840,25 T960,25 T1080,25 T1200,25 T1320,25 T1440,25 L1440,40 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translateY(-39px);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.footer-brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--butter);
}

.footer-tag {
  opacity: 0.75;
  max-width: 360px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
}

.footer-col ul { list-style: none; }

.footer-col li {
  padding: 0.35rem 0;
}

.footer-col a {
  color: var(--paper-deep);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-col a:hover { opacity: 1; color: var(--butter); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 244, 228, 0.15);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ================== PAGE: UPLOAD / PROCESSING / PREVIEW ================== */

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

.page-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.paper-card {
  background: #FEFDF8;
  border: 2px solid var(--ink);
  padding: 2.5rem;
  box-shadow: var(--shadow-hard);
  position: relative;
}

@media (min-width: 700px) {
  .paper-card { padding: 3rem; }
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-label {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.form-label .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--tomato);
  color: var(--paper);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  border: 2px solid var(--ink);
  transform: rotate(-5deg);
  flex-shrink: 0;
}

/* drop zone */
.dropzone {
  display: block;
  border: 3px dashed var(--ink);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: all 0.3s var(--ease);
  position: relative;
}

.dropzone:hover,
.dropzone.drag-over {
  background: var(--tape);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-sm);
}

.dropzone-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.dropzone-main {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.dropzone-hint {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.file-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}

.file-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-tile .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--tomato);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease);
}

.file-tile .remove-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

.file-counter {
  margin-top: 1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--ink-mute);
}

.file-counter.valid { color: var(--sage); }

/* radio card picker */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.pick-card {
  cursor: pointer;
  display: block;
}

.pick-card input { position: absolute; opacity: 0; pointer-events: none; }

.pick-card-inner {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 1.3rem 1rem;
  text-align: center;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-hard-sm);
}

.pick-card:hover .pick-card-inner {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.pick-card input:checked ~ .pick-card-inner {
  background: var(--tomato);
  color: var(--paper);
}

.pick-card-inner .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.pick-card-inner .label {
  font-weight: 800;
  font-size: 0.95rem;
}

.pick-card-inner .sub {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.pick-card-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Foto-Tipps ===== */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tip-col {
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--paper-cool);
}
.tip-good { border-color: var(--sage); background: rgba(167, 196, 160, 0.1); }
.tip-bad { border-color: var(--tomato); background: rgba(230, 57, 70, 0.05); }
.tip-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.tip-good .tip-heading { color: #2d6a30; }
.tip-bad .tip-heading { color: var(--tomato); }
.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tip-list li {
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tip-good .tip-list li::before { content: '✓'; position: absolute; left: 0; color: #2d6a30; font-weight: 700; }
.tip-bad .tip-list li::before { content: '✕'; position: absolute; left: 0; color: var(--tomato); font-weight: 700; }

@media (max-width: 580px) {
  .tips-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* input */
.text-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.25s var(--ease);
}

.text-input:focus {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* checkbox row */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 2px dashed var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.check-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 20px;
  height: 20px;
  accent-color: var(--tomato);
  flex-shrink: 0;
}

.check-row a {
  color: var(--tomato);
  font-weight: 800;
}

.submit-big {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.3rem;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  background: var(--tomato);
  color: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
}

.submit-big:hover:not(:disabled) {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
  background: var(--tomato-deep);
}

.submit-big:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.error-msg {
  color: var(--tomato);
  font-weight: 700;
  text-align: center;
  margin-top: 1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
}

/* ===== PROCESSING ===== */

.processing-hero {
  text-align: center;
  padding: 2rem 0 4rem;
}

.processing-emoji {
  font-size: 6rem;
  display: inline-block;
  animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.1); }
}

.progress-track {
  width: 100%;
  height: 24px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-hard-sm);
}

.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--tomato),
    var(--tomato) 12px,
    var(--tomato-deep) 12px,
    var(--tomato-deep) 24px
  );
  background-size: 24px 24px;
  animation: barberpole 1s linear infinite;
  transition: width 0.7s var(--ease);
  width: 0%;
}

@keyframes barberpole {
  from { background-position: 0 0; }
  to { background-position: 34px 0; }
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .jobs-grid { grid-template-columns: repeat(10, 1fr); }
}

.job-tile {
  aspect-ratio: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-hard-sm);
}

.job-tile.done { background: var(--sage); }
.job-tile.processing { background: var(--butter); animation: pulse 1s ease-in-out infinite; }
.job-tile.failed { background: var(--tomato); color: white; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== PREVIEW ===== */

.preview-frame {
  width: 100%;
  height: 720px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: white;
}

/* ===== EDIT GALLERY ===== */

.edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.regen-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  background: var(--butter);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  font-weight: 800;
  font-size: 0.9rem;
  transform: rotate(1.5deg);
}

.regen-pill strong {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--tomato);
}

.regen-dot {
  width: 10px;
  height: 10px;
  background: var(--tomato);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.regen-pill-done {
  background: var(--sage);
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  cursor: pointer;
}

.gallery-tile:nth-child(3n+1) { transform: rotate(-1deg); }
.gallery-tile:nth-child(3n+2) { transform: rotate(0.5deg); }
.gallery-tile:nth-child(3n+3) { transform: rotate(-0.3deg); }

.gallery-tile:hover {
  transform: translateY(-4px) rotate(0deg);
  z-index: 5;
  box-shadow: 6px 6px 0 var(--ink);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.tile-swap {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 46, 0.75);
  border: none;
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Fraunces', serif;
  font-weight: 800;
}

.gallery-tile:hover .tile-swap { opacity: 1; }

.tile-swap-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tomato);
  border: 2px solid var(--paper);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
}

.tile-swap-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.gallery-tile.removed img { filter: grayscale(1) blur(1px); opacity: 0.3; }
.gallery-tile.removed {
  border-color: var(--tomato);
  transform: rotate(-3deg) scale(0.95);
}
.gallery-tile.removed .tile-swap {
  opacity: 1;
  background: rgba(230, 57, 70, 0.85);
}
.gallery-tile.removed .tile-swap-label::before {
  content: 'wird ersetzt ';
}

.gallery-tile-new {
  border-color: var(--sage);
}

.gallery-new-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--sage);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-4deg);
}

.gallery-add {
  display: block;
  border-style: dashed;
  background: var(--paper-deep);
  cursor: pointer;
}

.gallery-add-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--ink-mute);
  transition: color 0.25s var(--ease);
}

.gallery-add:hover .gallery-add-inner { color: var(--tomato); }

.gallery-add-plus {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}

.gallery-add-text {
  font-weight: 800;
  font-size: 0.85rem;
}

/* disclaimer box */
.disclaimer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper-deep);
  border: 2px dashed var(--ink);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.disclaimer-icon {
  font-size: 1.5rem;
  color: var(--tomato);
  flex-shrink: 0;
  line-height: 1;
}

.disclaimer strong { color: var(--ink); }

/* summary bar at bottom of gallery */
.edit-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--tape);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  padding: 1rem 1.4rem;
  margin-top: 1.5rem;
}

.edit-summary-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.edit-summary-text .font-hand {
  font-size: 1.6rem;
  color: var(--tomato);
}

.edit-summary-actions {
  display: flex;
  gap: 0.7rem;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .edit-head { flex-direction: column; }
}

/* ===== SUCCESS ===== */

.success-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  position: relative;
}

.success-emoji {
  font-size: 8rem;
  display: inline-block;
  transform: rotate(-5deg);
  filter: drop-shadow(4px 4px 0 rgba(26,29,46,0.2));
}

.download-card {
  max-width: 600px;
  margin: 3rem auto;
}

/* ===== LEGAL PAGES (impressum, datenschutz, agb) ===== */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 2;
  font-family: 'Nunito', sans-serif;
}

.legal-wrap h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 2rem;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

.legal-wrap h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--tomato);
}

.legal-wrap p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-wrap ul {
  margin: 1rem 0 1rem 1.3rem;
  color: var(--ink-soft);
}

.legal-wrap li {
  padding: 0.3rem 0;
  line-height: 1.6;
}

.legal-wrap a {
  color: var(--tomato);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ================== ANIMATIONS ================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }
.reveal-5 { animation-delay: 0.7s; }

/* selection */
::selection {
  background: var(--butter);
  color: var(--ink);
}

/* custom scrollbar */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper-deep);
}

/* ================== UTILITIES ================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.rotate-n { transform: rotate(-2deg); }
.rotate-p { transform: rotate(2deg); }

/* ===== PREVIEW IMAGE STACK (replaces iframe) ===== */

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.preview-page {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: white;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}

.preview-page img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.preview-page-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
}

.preview-page-shield {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  pointer-events: auto;
}

.no-save,
.no-save * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* ===== SHARE CARD ===== */

.share-card {
  background: linear-gradient(135deg, var(--butter) 0%, var(--tape) 100%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  position: relative;
  transform: rotate(-0.3deg);
}

.share-card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 40px;
  width: 90px;
  height: 24px;
  background: var(--tape-mint);
  transform: rotate(-3deg);
  opacity: 0.9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-left {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.share-emoji {
  font-size: 3rem;
  color: var(--tomato);
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 rgba(26,29,46,0.15));
}

.share-head {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  line-height: 1.05;
}

.share-head em {
  font-style: italic;
  font-weight: 500;
  color: var(--tomato);
}

.share-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.share-body strong { color: var(--ink); }

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  color: var(--ink);
  min-height: 48px;
}

.share-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--tomato);
  color: var(--paper);
}

.share-btn-icon { font-size: 1.1rem; }

/* ===== PRICE DISPLAY ===== */

.price-display {
  background: var(--paper);
  border: 2px dashed var(--ink);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  font-weight: 700;
}

.price-row:not(:last-child) {
  border-bottom: 1px dashed rgba(26,29,46,0.15);
}

.price-discount {
  color: var(--tomato);
  font-weight: 800;
}

.discount-badge {
  background: var(--tomato);
  color: var(--paper);
  padding: 2px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.price-final {
  padding-top: 0.8rem;
  margin-top: 0.3rem;
  border-top: 2px solid var(--ink) !important;
}

.price-big {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--tomato);
  line-height: 1;
}

.price-base {
  color: var(--ink);
  font-weight: 800;
}

.checkout-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.checkout-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.input-hint {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
}

.edit-head-sub {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin-left: 52px;
}

/* ===== TOAST ===== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.6rem;
  border: 2px solid var(--butter);
  box-shadow: var(--shadow-hard);
  font-weight: 800;
  z-index: 999;
  animation: toastIn 0.4s var(--ease);
  max-width: 90%;
  text-align: center;
}

.toast-error {
  background: var(--tomato);
  border-color: var(--ink);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================================================================
   COMPREHENSIVE MOBILE RESPONSIVE PASS
   Breakpoints: 375 (iPhone SE), 430 (iPhone Pro Max), 640 (landscape phone),
                768 (iPad portrait), 1024 (iPad landscape), 1200+ (desktop)
   =================================================================== */

/* ===== Safe area for iPhone notches ===== */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: calc(1.2rem + env(safe-area-inset-top));
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* ===== Phones portrait (up to 640px) ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-header {
    padding: 0.9rem 1.2rem;
  }

  .brand { font-size: 1.3rem; gap: 0.4rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.9rem; }

  .nav-links { gap: 0.7rem; }
  .nav-links .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  section { padding: 3.5rem 1.2rem; }

  /* Hero on phones */
  .hero {
    padding: 2.5rem 1.2rem 4rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-headline {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    margin: 1rem 0;
  }
  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }
  .hero-cta-row {
    gap: 0.7rem;
  }
  .hero-cta-row .btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
  }
  .btn-big {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Polaroid stack on phones — smaller, simpler */
  .polaroid-stack {
    max-width: 320px;
    aspect-ratio: 1.1;
  }
  .polaroid {
    width: 78%;
  }
  .polaroid .caption { font-size: 1.3rem; }

  .hand-note {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  /* doodles smaller on mobile */
  .doodle-1, .doodle-2, .doodle-3, .doodle-4 {
    transform: scale(0.65);
  }

  /* Sections */
  .section-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  /* Steps */
  .steps-grid {
    gap: 2.5rem;
  }
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3) {
    transform: rotate(-0.5deg);
    margin-top: 0;
  }
  .step-card {
    padding: 2rem 1.6rem;
  }
  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
    top: -22px;
    left: -8px;
  }

  /* Pricing */
  .pricing-wrap {
    padding: 5rem 1.2rem;
  }
  .pricing-grid {
    gap: 2.5rem;
  }
  .ticket {
    padding: 2.2rem 1.8rem;
  }
  .ticket:nth-child(1),
  .ticket:nth-child(2) {
    transform: rotate(0);
  }
  .ticket::before, .ticket::after { display: none; }
  .ticket-price {
    font-size: 3.8rem;
  }
  .ticket-price .currency {
    font-size: 1.5rem;
  }
  .ticket-stamp {
    width: 70px;
    height: 70px;
    font-size: 0.75rem;
    top: -15px;
    right: -10px;
  }

  /* Letter */
  .letter-section {
    padding: 5rem 1.2rem;
  }
  .letter {
    padding: 2.5rem 1.8rem;
  }
  .letter p { font-size: 1rem; }
  .letter .salute { font-size: 1.8rem; }
  .letter .signature { font-size: 1.7rem; }

  /* Footer */
  .site-footer {
    padding: 4rem 1.2rem 2rem;
  }

  /* Page wraps */
  .page-wrap {
    padding: 2.5rem 1.2rem 4rem;
  }
  .page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .page-sub {
    font-size: 1rem;
  }

  /* Forms / paper cards */
  .paper-card {
    padding: 1.8rem 1.3rem;
  }

  .form-label {
    font-size: 1.1rem;
  }
  .form-label .num {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .dropzone {
    padding: 2rem 1rem;
  }
  .dropzone-icon { font-size: 2.8rem; }
  .dropzone-main { font-size: 1.15rem; }

  /* Input: 16px to prevent iOS zoom */
  .text-input,
  input[type="email"],
  input[type="text"] {
    font-size: 16px;
  }

  .pick-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .pick-card-inner {
    padding: 1rem 0.9rem;
  }

  .submit-big {
    padding: 1.2rem;
    font-size: 1.1rem;
  }

  /* File grid */
  .file-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .gallery-tile:nth-child(3n+1),
  .gallery-tile:nth-child(3n+2),
  .gallery-tile:nth-child(3n+3) {
    transform: rotate(0);
  }
  /* Touch UX: show swap always on mobile (no hover) */
  @media (hover: none) {
    .tile-swap { opacity: 1; background: rgba(26, 29, 46, 0.35); }
    .tile-swap-label { display: none; }
    .tile-swap-icon {
      width: 32px;
      height: 32px;
      position: absolute;
      top: 6px;
      right: 6px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
  }

  .edit-head { flex-direction: column; gap: 1rem; }
  .edit-head-sub { margin-left: 42px; }
  .regen-pill { transform: rotate(0); }

  .edit-summary { flex-direction: column; align-items: stretch; }
  .edit-summary-actions { justify-content: stretch; }
  .edit-summary-actions .btn { flex: 1; justify-content: center; }

  .gallery-new-badge {
    padding: 1px 6px;
    font-size: 0.6rem;
  }

  /* Processing */
  .processing-emoji { font-size: 4.5rem; }
  .jobs-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
  .job-tile { font-size: 1.1rem; }

  /* Share card */
  .share-card {
    padding: 1.6rem 1.3rem;
  }
  .share-head { font-size: 1.4rem; }
  .share-emoji { font-size: 2.3rem; }
  .share-buttons { grid-template-columns: 1fr 1fr; }
  .share-btn {
    font-size: 0.88rem;
    padding: 0.85rem 0.7rem;
  }

  /* Price */
  .price-big { font-size: 1.7rem; }
  .price-row { font-size: 0.95rem; }
  .checkout-title { font-size: 1.6rem; }

  /* Preview stack */
  .preview-page { max-width: 100%; }
  .preview-page-label {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  /* Legal */
  .legal-wrap {
    padding: 2.5rem 1.2rem 4rem;
  }
  .legal-wrap h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .legal-wrap h2 { font-size: 1.15rem; }

  /* Doodle positioning */
  .doodle { display: none; } /* too noisy on tiny screens */
}

/* ===== iPhone SE (very narrow) ===== */
@media (max-width: 380px) {
  .hero-headline { font-size: 2.6rem; }
  .nav-links {
    gap: 0.4rem;
  }
  .brand { font-size: 1.15rem; }
  .section-title { font-size: 1.9rem; }
  .ticket-price { font-size: 3.2rem; }
  .share-buttons { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Tablets (640-1024) ===== */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-headline { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .polaroid-stack { max-width: 420px; }
  .share-buttons { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Landscape orientation phones — compact header, reduced vertical padding ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 2rem 1.5rem 3rem; }
  .section-head { margin-bottom: 2rem; }
  .processing-emoji { font-size: 3rem; }
}

/* ===== Larger touch targets on all touch devices ===== */
@media (pointer: coarse) {
  .btn, .share-btn, .nav-links a {
    min-height: 44px;
  }
  .tile-swap-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===== High DPI (retina) — ensure crisp shadows ===== */
@media (-webkit-min-device-pixel-ratio: 2) {
  .shadow-hard-sm { box-shadow: 3px 3px 0 var(--ink); }
}

/* ===== Dark mode support — keep paper aesthetic but adjust ===== */
/* ================== TRUST SECTION ================== */

.trust-section {
  padding: 3rem 2rem;
  background: var(--paper-deep);
  border-top: 2px solid var(--paper-cool);
  border-bottom: 2px solid var(--paper-cool);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.trust-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.trust-text strong {
  display: block;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
}

@media (max-width: 680px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ================== FAQ ================== */

#faq {
  padding: 5rem 2rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 2px solid var(--paper-cool);
  padding: 0;
}

.faq-item summary {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--tomato);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  /* Intentionally keep light theme — the paper look is the brand.
     Adjust minor browser chrome only. */
  :root {
    color-scheme: light;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .doodle, .processing-emoji, .regen-dot { animation: none; }
}
