/* PhotoCrafty6 pastel theme — shared by the studio, booking, account and recovery pages.
   Fonts are self-hosted (SIL Open Font License, see static/fonts/FONTS-LICENSE.txt). */
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --cream: #fffaf6;
  --card: #fffdfb;
  --blush: #f9dde3;
  --blush-2: #f3c4cf;
  --rose: #b0506e;          /* buttons, white text 5.3:1 */
  --rose-dark: #8f3c58;
  --lavender: #e7e0f6;
  --lavender-2: #cbbdee;
  --mint: #d8f0e6;
  --mint-2: #a9dcc6;
  --peach: #fde5d4;
  --peach-2: #f7c7a6;
  --gold: #c9a45c;          /* ornaments only */
  --gold-soft: #e8d3a2;
  --gold-text: #7a5c22;     /* gold for text, 5.9:1 on cream, 4.8:1 on blush */
  --ink: #3b2c39;           /* plum ink, 12:1 */
  --muted: #6c5a68;         /* 6.3:1 */
  --line: #eedfe2;
  --ok: #2c6b50;
  --warn: #8a5a12;
  --err: #9b2335;
  --shadow: 0 18px 40px -18px rgba(120, 70, 100, 0.28);
  --shadow-soft: 0 8px 24px -12px rgba(120, 70, 100, 0.22);
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle 520px at 4% 2%, rgba(249, 221, 227, 0.9), rgba(249, 221, 227, 0) 100%),
    radial-gradient(circle 560px at 98% 6%, rgba(231, 224, 246, 0.95), rgba(231, 224, 246, 0) 100%),
    radial-gradient(circle 640px at 8% 45%, rgba(216, 240, 230, 0.6), rgba(216, 240, 230, 0) 100%),
    radial-gradient(circle 600px at 96% 62%, rgba(253, 229, 212, 0.7), rgba(253, 229, 212, 0) 100%),
    radial-gradient(circle 600px at 20% 96%, rgba(249, 221, 227, 0.6), rgba(249, 221, 227, 0) 100%),
    var(--cream);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(176, 80, 110, 0.15);
  /* Notched iPhones in landscape (viewport-fit=cover) */
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--rose-dark); }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--lavender-2); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
/* Image wordmark keyed from the flyers (720x204). Height drives size; width follows. */
.logo-img picture, .logo-img img { display: block; }
.logo-img img { height: 2.4rem; width: auto; max-width: 100%; }
.logo-img.logo-lg img { height: auto; width: 21rem; width: clamp(15rem, 62vw, 23rem); }
/* Web-font recreation (logo_text): serif "Photo", script "Crafty", gold serif italic "6". */
.logo .logo-word { font-family: var(--script); font-size: 2.3em; font-weight: 400; color: var(--ink); white-space: nowrap; padding: 0.05em 0.1em 0; letter-spacing: 0; }
.logo .logo-photo { font-family: var(--display); font-weight: 400; font-size: 0.64em; letter-spacing: -0.01em; margin-right: 0.02em; }
.logo .logo-six { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 0.86em; margin-left: 0.02em; color: var(--gold-text);
  background: linear-gradient(180deg, #e2c27a, #b4873a 55%, #8e6a2a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo .logo-cam { display: flex; align-items: center; gap: 0.45em; color: var(--gold); width: 100%; margin-top: 0.05em; }
.logo .logo-cam::before, .logo .logo-cam::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.logo .logo-cam::after { background: linear-gradient(90deg, var(--gold), transparent); }
.logo .logo-cam svg { width: 1.1em; height: 1.1em; flex: none; }
.logo-sm { font-size: 0.85rem; }
.logo-lg { font-size: 1.8rem; font-size: clamp(1.45rem, 4.4vw, 2.2rem); }

/* ---------- Top navigation ---------- */
.topnav {
  max-width: 1180px; margin: 0 auto; padding: 0.9rem 1.25rem 0;
  display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  font-family: var(--sans); font-size: 0.92rem;
}
.topnav .logo { margin-right: auto; }
.topnav .nav-form { margin: 0; }
.topnav a:not(.logo), .topnav button {
  color: var(--ink); text-decoration: none; padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 253, 251, 0.85); font: inherit; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.topnav a:not(.logo):hover, .topnav button:hover { border-color: var(--blush-2); background: #fff; }
.topnav a.primary { background: var(--rose); border-color: var(--rose); color: #fff; }
.topnav a.primary:hover { background: var(--rose-dark); color: #fff; }
body.home .topnav .logo { visibility: hidden; }
@media (max-width: 520px) {
  body.home .topnav .logo { display: none; }
  .topnav { gap: 0.35rem; font-size: 0.85rem; }
  .topnav .logo { flex-basis: 100%; margin: 0 0 0.35rem; }
  .topnav a:not(.logo), .topnav button { padding: 0.4rem 0.75rem; }
}

/* ---------- Ornaments ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.7rem; color: var(--gold); margin: 0 auto; max-width: 22rem; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); display: block; flex: none; }
.ornament i.solid { background: var(--gold); }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; color: var(--gold-text); font-weight: 500; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- Buttons ---------- */
.pill, .btn-primary, .btn {
  font-family: var(--sans); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.pill { padding: 0.85rem 1.6rem; font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; border: 1px solid transparent; }
.pill-rose { background: linear-gradient(135deg, #b0506e, #a24863 55%, #8f3c58); color: #fff; box-shadow: 0 10px 24px -10px rgba(176, 80, 110, 0.7), inset 0 0 0 1px rgba(255,255,255,0.25); }
.pill-rose:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(176, 80, 110, 0.8); }
.pill-ghost { background: rgba(255,255,255,0.75); color: var(--ink); border-color: var(--gold-soft); }
.pill-ghost:hover { color: var(--ink); background: #fff; border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; display: grid; gap: 2rem; align-items: center; }
/* Blooms may poke past the art; clip sideways so phones/tablets never scroll horizontally (iOS ignores body overflow-x). */
.hero { overflow-x: hidden; overflow-x: clip; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 2.25rem; } }
.hero-copy { text-align: center; position: relative; z-index: 2; }
@media (min-width: 900px) { .hero-copy { text-align: left; } .hero-copy .ornament { margin-left: 0; } }
.hero-copy .logo { margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 3.2rem; font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; margin: 0.55rem 0 0; letter-spacing: -0.01em; color: var(--ink); }
.hero h1 .script { display: block; font-size: 0.78em; color: var(--rose); margin-top: 0.12em; letter-spacing: 0; line-height: 1.15; }
.hero .lead { font-family: var(--serif); font-size: 1.28rem; color: var(--muted); max-width: 32rem; margin: 1rem auto 0; line-height: 1.45; }
@media (min-width: 900px) { .hero .lead { margin-left: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.6rem; }
@media (min-width: 900px) { .hero-ctas { justify-content: flex-start; } }
.insta-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.insta-link svg { width: 1.25rem; height: 1.25rem; color: var(--rose); }
.insta-link span { border-bottom: 1px solid var(--gold-soft); }
.insta-link:hover span { border-color: var(--rose); }

.hero-art { position: relative; justify-self: center; width: 86%; max-width: 440px; width: min(86%, 440px); }
.hero-art::before { content: ""; display: block; padding-top: 125%; } /* 4:5 box without aspect-ratio (Safari < 15) */
@media (min-width: 900px) { .hero-art { width: 100%; max-width: 440px; } }
.hero-arch {
  position: absolute; top: 4%; right: 8%; bottom: 0; left: 8%; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.95) 0 6%, transparent 7%),
    radial-gradient(circle at 74% 30%, rgba(255,255,255,0.7) 0 4%, transparent 5%),
    radial-gradient(circle at 20% 60%, rgba(255,255,255,0.55) 0 3%, transparent 4%),
    radial-gradient(circle at 82% 66%, rgba(255,255,255,0.6) 0 5%, transparent 6%),
    linear-gradient(165deg, var(--lavender) 0%, var(--blush) 48%, var(--peach) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.hero-arch::after { content: ""; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; border-radius: inherit; border: 1px solid rgba(201, 164, 92, 0.75); pointer-events: none; }
/* Flyer cut-out is landscape (960x795): oversize it so her face sits centred and the arch crops the shoulders. */
.hero-arch img { position: absolute; left: 50%; bottom: 0; -webkit-transform: translateX(-45%); transform: translateX(-45%); width: 158%; max-width: none; height: auto; display: block;
  /* Fade the black sweater into the arch's pastel gradient. */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0) 100%); }
.hero-art .bloom { position: absolute; width: 34%; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(150, 80, 110, 0.18)); }
.hero-art .bloom-tl { left: -4%; top: 2%; transform: rotate(-12deg); }
.hero-art .bloom-br { right: -6%; bottom: -2%; width: 40%; transform: rotate(14deg); }
.hero-arch { z-index: 1; }
.hero-art .bloom { z-index: 2; }
.bokeh { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: 0.8; }
.bokeh.b1 { width: 74px; height: 74px; background: radial-gradient(circle, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0) 70%); right: 2%; top: 4%; }
.bokeh.b2 { width: 40px; height: 40px; background: radial-gradient(circle, rgba(232, 211, 162, 0.9), rgba(232,211,162,0) 70%); left: 4%; top: 46%; }
.bokeh.b3 { width: 56px; height: 56px; background: radial-gradient(circle, rgba(203, 189, 238, 0.9), rgba(203,189,238,0) 70%); right: 10%; top: 40%; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.section-head { text-align: center; margin-bottom: 1.8rem; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin: 0.45rem 0 0.2rem; line-height: 1.1; }
.section-head h2 .script { color: var(--rose); font-size: 1.1em; }
.section-head p { font-family: var(--serif); font-size: 1.18rem; color: var(--muted); margin: 0.3rem auto 0; max-width: 36rem; }

/* Polaroid gallery */
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 0.9rem; padding: 0.5rem 0 1rem; list-style: none; margin: 0; }
.polaroid {
  background: #fff; padding: 10px 10px 0; width: calc(50% - 0.6rem); max-width: 210px; box-shadow: var(--shadow-soft), 0 1px 2px rgba(60, 40, 50, 0.12);
  border-radius: 3px; transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease, box-shadow .3s;
  position: relative;
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px) scale(1.03); box-shadow: var(--shadow); z-index: 2; }
.polaroid img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--blush); }
.polaroid figcaption { font-family: var(--script); font-size: 1.45rem; text-align: center; color: var(--ink); padding: 0.35rem 0 0.5rem; line-height: 1.1; }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-3deg);
  background: var(--tape, rgba(203, 189, 238, 0.75)); box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.polaroid:nth-child(1) { --tilt: -6deg; --tape: rgba(243, 196, 207, 0.8); }
.polaroid:nth-child(2) { --tilt: 3deg; --tape: rgba(169, 220, 198, 0.8); }
.polaroid:nth-child(3) { --tilt: -2deg; --tape: rgba(232, 211, 162, 0.85); }
.polaroid:nth-child(4) { --tilt: 5deg; --tape: rgba(203, 189, 238, 0.8); }
.polaroid:nth-child(5) { --tilt: -4deg; --tape: rgba(247, 199, 166, 0.8); }
.polaroid:nth-child(6) { --tilt: 4deg; --tape: rgba(243, 196, 207, 0.8); }
@media (min-width: 700px) { .polaroids { gap: 1.6rem 1.4rem; } .polaroid { width: 28%; max-width: 230px; } .polaroid:nth-child(even) { margin-top: 1.2rem; } }
@media (min-width: 1024px) { .polaroids { flex-wrap: nowrap; gap: 0; } .polaroid { width: 17%; margin: 0 -0.15rem; } .polaroid:nth-child(even) { margin-top: 1.6rem; } }
/* Three-chapter story gallery: 2 + 1 on phones, one row of three from tablets up. */
.polaroids-story .polaroid { width: calc(50% - 0.6rem); max-width: 230px; }
.polaroids-story .polaroid figcaption { font-size: 1.15rem; padding-left: 0.2rem; padding-right: 0.2rem; }
.polaroids-story .polaroid:nth-child(3) { width: 64%; max-width: 260px; }
.polaroids-story .polaroid:nth-child(3) figcaption { font-size: 1.3rem; }
@media (min-width: 700px) { .polaroids-story { flex-wrap: nowrap; gap: 0 1.8rem; } .polaroids-story .polaroid, .polaroids-story .polaroid:nth-child(3) { width: 30%; max-width: 270px; margin: 0; } .polaroids-story .polaroid figcaption, .polaroids-story .polaroid:nth-child(3) figcaption { font-size: 1.3rem; } .polaroids-story .polaroid:nth-child(2) { margin-top: 1.8rem; } }
@media (min-width: 1024px) { .polaroids-story { gap: 0 2.6rem; } .polaroids-story .polaroid, .polaroids-story .polaroid:nth-child(3) { width: 28%; max-width: 300px; } .polaroids-story .polaroid figcaption, .polaroids-story .polaroid:nth-child(3) figcaption { font-size: 1.6rem; } }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.step { text-align: center; position: relative; padding: 0 0.5rem; }
.step .icon {
  width: 96px; height: 96px; margin: 0 auto 0.85rem; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, var(--tint, var(--blush)) 75%);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px rgba(255,255,255,0.9), 0 0 0 7px var(--gold-soft), var(--shadow-soft);
  color: var(--gold-text);
}
.step .icon svg { width: 44px; height: 44px; }
.step:nth-child(1) .icon { --tint: var(--blush); }
.step:nth-child(2) .icon { --tint: var(--lavender); }
.step:nth-child(3) .icon { --tint: var(--mint); }
.step .num { font-family: var(--display); color: var(--gold-text); font-size: 0.85rem; letter-spacing: 0.2em; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0.15rem 0 0.25rem; line-height: 1.15; }
.step p { margin: 0 auto; color: var(--muted); font-size: 0.98rem; max-width: 18rem; }
@media (min-width: 760px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 48px; left: calc(50% + 64px); right: calc(-50% + 64px); border-top: 1px dashed var(--gold); }
}

/* Timeless band (flyer 2) */
.timeless {
  position: relative; max-width: 1180px; margin: 1rem auto; padding: 0 1.25rem;
}
.timeless-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 2.6rem 1.25rem 2.4rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.8) 0 18px, transparent 19px),
    radial-gradient(circle at 88% 74%, rgba(255,255,255,0.6) 0 26px, transparent 27px),
    radial-gradient(circle at 78% 18%, rgba(232,211,162,0.45) 0 12px, transparent 13px),
    linear-gradient(120deg, var(--blush) 0%, var(--lavender) 50%, var(--mint) 100%);
  box-shadow: var(--shadow);
}
.timeless-card::before { content: ""; position: absolute; top: 12px; right: 12px; bottom: 12px; left: 12px; border: 1px solid rgba(201,164,92,0.7); border-radius: 20px; pointer-events: none; }
.timeless .kicker { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.timeless h2 { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: 0.16em; text-transform: uppercase; margin: 0.15rem 0 0.2rem; line-height: 1.05; }
.timeless .tagline { font-family: var(--script); font-size: 2rem; font-size: clamp(1.7rem, 4.6vw, 2.5rem); color: var(--rose-dark); margin: 0.4rem 0 1.4rem; line-height: 1.2; }
.timeless-print { margin: 1.8rem auto 0.4rem; width: 54%; max-width: 210px; position: relative; z-index: 1;
  -webkit-transform: rotate(3deg); transform: rotate(3deg); }
.timeless-print img { display: block; width: 100%; height: auto; }
/* Designer photo card: cream mat, gold inner rule, plum satin ribbon band (echoes the flyer's mounted print). */
.photo-card { position: relative; background: linear-gradient(165deg, #fffaf1, #f6ead6); padding: 9% 9% 20%; border-radius: 4px;
  box-shadow: 0 18px 34px -14px rgba(80, 40, 70, 0.45), 0 2px 6px rgba(80, 40, 70, 0.12), inset 0 0 0 1px rgba(201, 164, 92, 0.35); }
.photo-card picture { display: block; position: relative; outline: 1px solid rgba(201, 164, 92, 0.85); outline-offset: 5px; }
.photo-card-ribbon { position: absolute; left: 0; right: 0; bottom: 8%; height: 7%; background: linear-gradient(180deg, #7d3a6b, #5e2650 60%, #6f3060);
  box-shadow: 0 2px 4px rgba(60, 20, 50, 0.3); }
.timeless-print figcaption { font-family: var(--script); font-size: 1.5rem; color: var(--rose-dark); text-align: center; margin-top: 0.7rem; line-height: 1.1; }
@media (min-width: 760px) {
  .timeless-card { display: flex; align-items: center; justify-content: center; padding: 2.6rem 3rem 2.4rem; }
  .timeless-text { flex: 1 1 auto; max-width: 40rem; }
  .timeless-print { flex: 0 0 auto; width: 210px; margin: 0 0 0 2.5rem; }
}
@media (min-width: 1024px) { .timeless-print { width: 240px; margin-left: 3.5rem; } }
.timeless .row-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; position: relative; z-index: 1; }

/* Parchment tag with wax seal */
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.4rem 0.75rem 2.6rem; text-decoration: none;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(160deg, #fbf2e2, #f2e3c8); border: 1px solid #e6d3ad;
  -webkit-clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  box-shadow: inset 0 0 18px rgba(190, 150, 90, 0.2);
}
.tag:hover { color: var(--rose-dark); }
.tag .seal {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e48aa1, #b0506e 70%); box-shadow: 0 0 0 2px rgba(176, 80, 110, 0.35);
}
.tag small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Studio tool ---------- */
.studio-head { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.25rem 0.25rem; text-align: center; }
.studio-head h2 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 0.45rem 0 0.25rem; line-height: 1.1; }
.studio-head p { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); margin: 0 auto; max-width: 42rem; }
main.studio {
  max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.25rem 3rem;
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 880px) { main.studio { grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; } }
.panel {
  background: rgba(255, 253, 251, 0.92); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.15rem 1.15rem 1.3rem; box-shadow: var(--shadow-soft); min-width: 0;
}
.drop {
  display: block; position: relative; border: 1.5px dashed var(--blush-2); border-radius: 18px; padding: 1.4rem 1rem 1.3rem;
  text-align: center; cursor: pointer;
  background: linear-gradient(160deg, rgba(249,221,227,0.45), rgba(231,224,246,0.45));
  transition: background .2s, border-color .2s;
}
.drop:hover { border-color: var(--rose); }
.drop .drop-icon { width: 46px; height: 46px; margin: 0 auto 0.5rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--rose); box-shadow: 0 0 0 1px var(--gold-soft); }
.drop .drop-icon svg { width: 22px; height: 22px; }
.drop.drag { background: linear-gradient(160deg, rgba(249,221,227,0.8), rgba(216,240,230,0.8)); border-color: var(--rose); }
.drop strong { display: block; margin-bottom: 0.15rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.drop span, .hint { color: var(--muted); font-size: 0.9rem; }
#file { display: none; }
.thumb-wrap { margin-top: 0.75rem; }
.thumb-wrap img { max-width: 100%; max-height: 180px; border-radius: 12px; display: block; margin: 0 auto; border: 6px solid #fff; box-shadow: var(--shadow-soft); }
label.field, .group-label, span.field {
  display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-text); font-weight: 500;
  margin: 1rem 0 0.45rem;
}
.modes, .themes, .studios { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modes button, .studios button, .themes button, .btn, .linkish {
  font-family: var(--sans); font-size: 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 0.4rem 0.85rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.modes button:hover, .studios button:hover, .themes button:hover, .btn:hover { border-color: var(--blush-2); background: #fff7f9; }
.modes button.active, .studios button.active, .themes button.active {
  background: linear-gradient(135deg, var(--blush), var(--lavender)); color: var(--ink); border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose);
}
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.themes button { border-radius: 14px; text-align: left; padding: 0.55rem 0.7rem; line-height: 1.25; }
.themes button small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.themes button.active small { color: var(--muted); }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
input[type="color"] { width: 52px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 2px; cursor: pointer; }
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem 0.7rem; font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lavender-2); box-shadow: 0 0 0 3px rgba(203, 189, 238, 0.45); }
textarea { min-height: 4.5rem; resize: vertical; }
input[type="file"] { font: inherit; font-size: 0.88rem; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--rose); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.8rem 0 0; font-size: 0.92rem; }
.check input { margin-top: 0.25rem; }
.btn-primary {
  background: linear-gradient(135deg, #b0506e, #a24863 55%, #8f3c58); color: #fff; border: 1px solid var(--rose);
  font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; padding: 0.75rem 1.2rem; margin-top: 1.1rem; width: 100%;
  box-shadow: 0 10px 22px -12px rgba(176, 80, 110, 0.8);
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary:hover:not(:disabled) { background: var(--rose-dark); color: #fff; }
.preview { display: flex; flex-direction: column; }
.preview-frame {
  flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 16px; overflow: hidden; min-height: 340px;
  background:
    linear-gradient(45deg, #f6e8ec 25%, transparent 25%), linear-gradient(-45deg, #f6e8ec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f6e8ec 75%), linear-gradient(-45deg, transparent 75%, #f6e8ec 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; background-color: #fffafb;
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 880px) { .preview-frame { min-height: 520px; } }
.preview-frame img { max-width: 100%; max-height: 72vh; display: block; }
.placeholder { color: var(--muted); padding: 2rem; text-align: center; }
.placeholder .ph-frame {
  width: 150px; margin: 0 auto 1rem; background: #fff; padding: 9px 9px 30px; box-shadow: var(--shadow-soft); transform: rotate(-3deg);
}
.placeholder .ph-frame div { height: 165px; background: linear-gradient(160deg, var(--lavender), var(--blush) 55%, var(--peach)); display: grid; place-items: center; color: var(--gold); }
.placeholder .ph-frame svg { width: 40px; height: 40px; }
.placeholder p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; align-items: center; }
.actions a, .actions button.btn { text-decoration: none; display: inline-flex; }
.status { min-height: 1.3rem; margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.err { color: var(--err); }
.pay-btn { width: auto; margin-top: 0; padding-left: 1.5rem; padding-right: 1.5rem; }
.pay-btn:disabled { cursor: not-allowed; }
#actions .hint, #paidActions .hint { flex-basis: 100%; font-size: 0.84rem; color: var(--muted); }
#recoveryBox { flex-basis: 100%; margin-top: 0.35rem; }
#recoveryBox label, #accountOffer label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-text); margin: 0.2rem 0 0.3rem; }
#recoveryBox .row { align-items: stretch; gap: 0.4rem; }
#recoveryUrl { flex: 1; min-width: 12rem; font-family: ui-monospace, monospace; font-size: 0.82rem; }
#copyRecovery { margin: 0; }
#accountOffer {
  flex-basis: 100%; margin-top: 0.9rem; padding: 1rem 1rem 0.9rem; border: 1px solid var(--gold-soft); border-radius: 18px;
  background: linear-gradient(150deg, rgba(249,221,227,0.55), rgba(231,224,246,0.55) 60%, rgba(216,240,230,0.55));
}
#accountOffer h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.35rem; line-height: 1.2; }
#accountOffer p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
#accountOffer input[type="email"], #accountOffer input[type="password"] { margin-bottom: 0.45rem; }
#accountOffer .row { gap: 0.4rem; }
#accountOffer .btn-primary { margin-top: 0; width: auto; }
#accountOfferSaved a { color: var(--ok); }
.surprise { margin-top: 0.5rem; }
.surprise .chip-group-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0.3rem; font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 640px) {
  .chip-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.35rem; scrollbar-width: thin; }
}
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.85rem; cursor: pointer; white-space: nowrap; font-family: var(--sans);
}
.chip:hover { border-color: var(--blush-2); background: #fff7f9; }
.chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.chip-sample { margin: 0.7rem 0 0; }
.chip-sample img { width: 120px; height: 160px; object-fit: cover; display: block; border: 6px solid #fff; box-shadow: var(--shadow-soft); transform: rotate(-2deg); }
.chip-sample figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.45rem; }
.refq { margin-top: 0.9rem; font-size: 0.92rem; }
.refq .yn { display: flex; gap: 1rem; margin-top: 0.35rem; }
.refq .yn label { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
#refBox { margin-top: 0.6rem; }
#refPreviewWrap img { max-width: 160px; max-height: 120px; border-radius: 10px; border: 1px solid var(--line); margin-top: 0.5rem; display: block; }
.opts p.hint { margin: 0.5rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer .logo { margin-bottom: 0.7rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; margin-top: 0.6rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--rose-dark); }

/* ---------- Small pages (account, recovery, booking) ---------- */
.page-wrap { max-width: 480px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-wrap.wide { max-width: 960px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 2rem; font-size: clamp(1.8rem, 5vw, 2.3rem); margin: 0 0 0.35rem; line-height: 1.15; }
.page-wrap h1 { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; margin: 0 0 0.4rem; line-height: 1.15; }
.page-wrap h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 0.35rem; }
.page-wrap .panel { padding: 1.4rem 1.3rem 1.5rem; position: relative; }
.page-wrap .panel.flourish::before { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--blush-2), var(--lavender-2), var(--mint-2)); }
.page-wrap label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-text); font-weight: 500; margin: 0.9rem 0 0.35rem; }
.page-wrap p { color: var(--muted); }
.page-wrap button.primary, .page-wrap a.btn-cta {
  margin-top: 1.1rem; width: 100%; background: linear-gradient(135deg, #b0506e, #a24863 55%, #8f3c58); color: #fff; border: 0;
  border-radius: 999px; padding: 0.75rem 1rem; font: 500 1rem var(--sans); cursor: pointer; box-shadow: 0 10px 22px -12px rgba(176, 80, 110, 0.8);
}
.page-wrap button.primary:hover { background: var(--rose-dark); }
.page-wrap .btn { padding: 0.45rem 0.95rem; text-decoration: none; }
.page-wrap .btn-primary { width: auto; margin-top: 0; padding: 0.55rem 1.1rem; }
.page-wrap .error { color: var(--err); }
.page-wrap .ok { color: var(--ok); }
.page-wrap .card {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; margin-bottom: 1rem; background: rgba(255,253,251,0.92);
  border: 1px solid var(--line); border-radius: 22px; padding: 1rem; box-shadow: var(--shadow-soft);
}
@media (max-width: 560px) { .page-wrap .card { grid-template-columns: 1fr; } }
.page-wrap .card img { width: 130px; height: 170px; object-fit: cover; border: 7px solid #fff; box-shadow: var(--shadow-soft); transform: rotate(-2deg); display: block; }
.page-wrap .meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0 0 0.6rem; color: var(--ink); }
.page-wrap .meta span, .page-wrap .hint { color: var(--muted); font-size: 0.9rem; }
.page-wrap .inline { margin-top: 0.75rem; }
.page-wrap .inline button, .page-wrap .danger button {
  font: 0.88rem var(--sans); border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--err); padding: 0.4rem 0.85rem; cursor: pointer;
}
.page-wrap .inline button:hover, .page-wrap .danger button:hover { border-color: var(--err); }
.page-wrap .danger { margin-top: 2rem; }
.page-wrap .page { margin-bottom: 1.2rem; }
.page-wrap .row { gap: 0.4rem; }
.page-wrap .preview-img { max-width: 260px; width: 100%; display: block; margin: 0.4rem 0 1.1rem; border: 9px solid #fff; border-bottom-width: 34px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.page-wrap .actions { margin-top: 0.4rem; }
.page-wrap .ornament { margin: 0.2rem 0 0.9rem; max-width: 14rem; }

/* ---------- Launch: auto-erase + privacy note in pastel ---------- */
.page-wrap label.check { display: flex; text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 400; color: var(--ink); margin: 0.9rem 0 0.2rem; cursor: pointer; }
.page-wrap .inline button.btn { color: var(--ink); }
.page-wrap .inline button.btn:hover { border-color: var(--blush-2); }
.page-wrap .panel + .card, .page-wrap .panel + .hint { margin-top: 1rem; }
.page-wrap form .btn-primary { margin-top: 0.8rem; }
.privacy-note { max-width: 46rem; margin: 1.4rem auto 0; padding: 1rem 1.2rem; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 251, 0.8); }
.privacy-note h2 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.35rem; color: var(--ink); }
.privacy-note p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }
.page-wrap .privacy-note { margin-top: 1.2rem; }
#autoEraseWarning { color: var(--warn); }

/* ---------- Device compatibility ---------- */
/* Comfortable 44px touch targets on phones and tablets. */
@media (pointer: coarse) {
  .topnav a:not(.logo), .topnav button, .modes button, .studios button, .chip, .btn, .linkish, .pill,
  .page-wrap .inline button, .page-wrap .danger button, .site-footer nav a, .insta-link {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  .themes button { min-height: 48px; }
  .check, .refq .yn label { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex: none; }
  input[type="color"] { height: 44px; width: 60px; }
  /* 16px stops iOS Safari from zooming into form fields. */
  input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"], select, textarea { font-size: 16px; min-height: 44px; }
  .drop { padding: 1.6rem 1rem; }
}
/* Older Safari (< 14.1) and Chromium (< 84) ignore `gap` on flexbox; the
   html.no-flexgap class is set by a tiny feature test in brand_head.html. */
.no-flexgap .topnav > *, .no-flexgap .modes > *, .no-flexgap .studios > *, .no-flexgap .chip-row > *,
.no-flexgap .row > *, .no-flexgap .actions > *, .no-flexgap .hero-ctas > *, .no-flexgap .row-ctas > *,
.no-flexgap .site-footer nav > *, .no-flexgap .meta > * { margin: 0 0.45rem 0.45rem 0; }
.no-flexgap .check > input { margin-right: 0.55rem; }
.no-flexgap .refq .yn > label { margin-right: 1rem; }
.no-flexgap .ornament::before { margin-right: 0.7rem; } .no-flexgap .ornament::after { margin-left: 0.7rem; }
.no-flexgap .ornament i + i { margin-left: 0.7rem; }
.no-flexgap .logo .logo-cam svg { margin: 0 0.45em; }
.no-flexgap .polaroids > * { margin: 0.55rem 0.45rem; }
.no-flexgap .drop .drop-icon, .no-flexgap .tag .seal { margin-right: 0; }
.no-flexgap .insta-link svg { margin-right: 0.5rem; }
