/* =====================================================================
   AIME Headshots — Editorial Studio UI
   Warm alabaster gallery paper, crisp white cards, obsidian ink,
   metallic rose-copper foil accents, Playfair Display + Montserrat,
   AIME infinity emblem, copper sparkles, and studio portrait showcase.
   Compatible with both index.html and teams.html.
   ===================================================================== */

:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --surface-2: #f3f0ed;
  --ink: #0f0e12;
  --text: #2b2930;
  --muted: #6d6973;
  --faint: #9e9a9f;
  --line: #e8e2dc;
  --line-strong: #d8cfc7;

  --rose: #e0a080;
  --rose-deep: #b97462;
  --rose-tint: #fbefe8;

  --copper: #d0906f;
  --copper-light: #ecc0a5;
  --copper-text: #9e5944;
  --copper-grad: linear-gradient(135deg, #f3c6a8 0%, #d0906f 50%, #a9634e 100%);
  --copper-foil: linear-gradient(120deg, #a35f4a 0%, #d99b79 38%, #f4ccb0 52%, #c27c62 72%, #9a5540 100%);
  --copper-tint: #fbf2ec;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 14, 18, .04), 0 12px 32px -12px rgba(15, 14, 18, .10);
  --shadow-lg: 0 32px 72px -28px rgba(24, 16, 12, .20), 0 2px 6px rgba(15, 14, 18, .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm editorial studio lighting aura + subtle gallery grain */
.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(960px 560px at 50% -8%, rgba(224, 160, 128, .22), transparent 64%),
    radial-gradient(680px 520px at 92% 18%, rgba(243, 198, 168, .15), transparent 62%),
    radial-gradient(720px 540px at 6% 78%, rgba(208, 144, 111, .10), transparent 62%);
}

main {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto; padding: 0 20px 44px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 auto; padding: 15px max(24px, calc((100% - 1080px) / 2));
  background: rgba(247, 245, 243, .82);
  border-bottom: 1px solid rgba(208, 144, 111, .16);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { display: none; }

.brand-lockup {
  display: inline-flex; align-items: center; gap: 11px;
}
.hdr-inf {
  width: 46px; height: 22px; flex: none;
  filter: drop-shadow(0 2px 6px rgba(208, 144, 111, .28));
}

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--ink); }
.wordmark b {
  font-family: var(--serif);
  font-weight: 600; font-size: 22px; letter-spacing: 5px; margin-right: -5px;
}
.wordmark small {
  font-family: var(--sans);
  font-size: 8px; font-weight: 700; letter-spacing: 4px; margin-right: -4px; margin-top: 4px;
  color: var(--copper-text);
}

.hdr-right {
  display: inline-flex; align-items: center; gap: 14px;
}
.hdr-teams-link {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--copper-text); text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #fdf7f3);
  border: 1px solid #ead0c0; border-radius: 999px; padding: 7px 15px;
  box-shadow: 0 2px 10px rgba(208, 144, 111, .12);
  transition: border-color .2s, color .2s, transform .15s var(--ease);
}
.hdr-teams-link:hover { border-color: var(--copper); color: var(--ink); transform: translateY(-1px); }

.tier-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--copper-text); background: linear-gradient(180deg, #ffffff, #fdf7f3);
  border: 1px solid #ead0c0; border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 2px 10px rgba(208, 144, 111, .12);
}

/* ---------------- Hero + Infinity + Sparkles + Portrait Triptych ---------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 40px 0 36px;
}
.hero-logo { display: none; }

/* Ambient sparkles + faint infinity watermark */
.hero-sparkles {
  position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0;
}
.hero-bg-inf {
  position: absolute; left: 50%; top: 52%;
  width: min(680px, 94vw); height: auto;
  transform: translate(-50%, -50%);
  opacity: .08;
}
.hero-sparkles .sp {
  position: absolute; color: var(--copper);
  display: inline-block; filter: drop-shadow(0 0 8px rgba(224, 160, 128, .55));
  animation: twinkle 4.2s ease-in-out infinite;
}
.sp-star { display: block; width: 100%; height: 100%; }
.sp-1 { width: 18px; height: 18px; top: 14%; left: 9%; animation-delay: 0s; }
.sp-2 { width: 13px; height: 13px; top: 8%; right: 13%; animation-delay: 1.1s; color: #b97462; }
.sp-3 { width: 22px; height: 22px; top: 44%; right: 5%; animation-delay: 2.1s; }
.sp-4 { width: 12px; height: 12px; top: 50%; left: 5%; animation-delay: 2.9s; color: #e0a080; }
.sp-5 { width: 15px; height: 15px; bottom: 10%; right: 18%; animation-delay: .6s; }

@keyframes twinkle {
  0%, 100% { opacity: .28; transform: scale(.82) rotate(0deg); }
  50% { opacity: .95; transform: scale(1.14) rotate(12deg); }
}

/* Hero AIME Infinity Crest */
.hero-crest {
  position: relative; z-index: 1;
  display: inline-flex; flex-direction: column; align-items: center;
  margin-bottom: 18px;
}
.hero-inf {
  width: 96px; height: 44px;
  filter: drop-shadow(0 6px 16px rgba(208, 144, 111, .30));
}
.inf-star {
  transform-origin: 68px 17px;
  animation: starPulse 3.6s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(.92); opacity: .88; }
  50% { transform: scale(1.12); opacity: 1; }
}
.crest-wordmark {
  display: flex; flex-direction: column; align-items: center; margin-top: 2px;
}
.crest-wordmark b {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600; letter-spacing: 11px; margin-right: -11px;
  color: var(--ink); line-height: 1;
}
.crest-wordmark small {
  font-size: 9.5px; font-weight: 700; letter-spacing: 3.4px; margin-right: -3.4px;
  color: var(--copper-text); margin-top: 7px;
}

.hero h1 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6.2vw, 60px); line-height: 1.07; letter-spacing: -.8px;
  color: var(--ink); margin-bottom: 16px;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: var(--copper-foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 4px;
}
.hero h1::after {
  content: ""; display: block; width: 68px; height: 2.5px; border-radius: 3px;
  margin: 18px auto 0; background: var(--copper-grad);
}

.tagline {
  position: relative; z-index: 1;
  max-width: 540px; margin: 0 auto 18px;
  font-size: clamp(15.5px, 1.9vw, 18px); color: var(--muted); line-height: 1.55;
}

.micro { position: relative; z-index: 1; }
.micro-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--copper-text); background: var(--copper-tint);
  border: 1px solid #efd6c6; border-radius: 999px;
  padding: 6px 15px;
}
.micro-star { width: 13px; height: 13px; color: var(--copper); flex: none; }

/* Editorial 3-Portrait Gallery Triptych */
.hero-triptych {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 34px auto 4px; max-width: 650px;
  padding: 6px 10px 10px;
}
.trip-card {
  position: relative;
  appearance: none; -webkit-appearance: none;
  font-family: inherit; text-align: left; cursor: pointer;
  width: 196px; padding: 9px 9px 12px;
  background: var(--surface);
  border: 1px solid #e7ddd5;
  border-radius: 18px;
  box-shadow: 0 18px 42px -18px rgba(22, 14, 10, .24), 0 1px 3px rgba(15, 14, 18, .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.trip-left {
  transform: translateX(14px) translateY(10px) rotate(-4.5deg);
  z-index: 1;
}
.trip-center {
  width: 218px;
  transform: translateY(-6px) rotate(0deg);
  z-index: 3;
  border-color: var(--copper-light);
  box-shadow: 0 26px 56px -20px rgba(35, 18, 10, .32), 0 0 0 1px rgba(208, 144, 111, .22);
}
.trip-right {
  transform: translateX(-14px) translateY(10px) rotate(4.5deg);
  z-index: 2;
}
.trip-card:hover {
  z-index: 5;
  border-color: var(--copper);
  box-shadow: 0 28px 60px -18px rgba(163, 95, 74, .34);
}
.trip-left:hover { transform: translateX(8px) translateY(0) rotate(-2deg) scale(1.03); }
.trip-center:hover { transform: translateY(-12px) rotate(0deg) scale(1.03); }
.trip-right:hover { transform: translateX(-8px) translateY(0) rotate(2deg) scale(1.03); }

.trip-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px;
  color: #fff; background: var(--ink);
  border: 1px solid rgba(240, 192, 160, .55);
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 14, 18, .25);
}
.trip-star { width: 10px; height: 10px; color: var(--copper-light); }

.trip-frame {
  display: block; position: relative; overflow: hidden;
  border-radius: 11px; border: 1px solid rgba(208, 144, 111, .32);
  aspect-ratio: 4 / 5; background: var(--surface-2);
}
.trip-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease);
}
.trip-card:hover .trip-frame img { transform: scale(1.04); }

.trip-meta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: 9px; line-height: 1.25;
}
.trip-meta strong {
  font-family: var(--serif); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.trip-meta small {
  font-size: 10.5px; color: var(--muted); margin-top: 2px;
}

/* ---------------- Studio Card ---------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 42px);
  box-shadow: var(--shadow-lg);
}
.card::before {
  content: ""; position: absolute; left: 36px; right: 36px; top: -1px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), #f3c6a8, var(--copper), transparent);
}
.loading::before { display: none; }

.step { margin-bottom: 28px; }
.step-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
}
.step-label span {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; letter-spacing: 0;
}

/* ---------------- Dropzone + Camera Viewfinder Brackets ---------------- */
.dropzone {
  display: block; position: relative; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md);
  background:
    radial-gradient(360px 200px at 50% 50%, rgba(224, 160, 128, .10), transparent 72%),
    var(--surface-2);
  min-height: 244px; overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--copper);
  background-color: var(--copper-tint);
  box-shadow: 0 0 0 4px rgba(208, 144, 111, .10);
}
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Viewfinder corners */
.vf-corner {
  position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2;
  border-color: var(--copper); border-style: solid; opacity: .65;
  transition: all .25s var(--ease);
}
.vf-tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; border-top-left-radius: 5px; }
.vf-tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; border-top-right-radius: 5px; }
.vf-bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; border-bottom-left-radius: 5px; }
.vf-br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; border-bottom-right-radius: 5px; }
.dropzone:hover .vf-corner { opacity: 1; }
.dropzone:hover .vf-tl { top: 10px; left: 10px; }
.dropzone:hover .vf-tr { top: 10px; right: 10px; }
.dropzone:hover .vf-bl { bottom: 10px; left: 10px; }
.dropzone:hover .vf-br { bottom: 10px; right: 10px; }

.dz-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center;
}
.dz-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  margin-bottom: 10px; font-size: 24px; font-weight: 700;
  background: var(--surface); color: var(--copper-text);
  border: 1px solid #efd8ca;
  box-shadow: 0 10px 24px -8px rgba(163, 95, 74, .25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dropzone:hover .dz-icon {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px -8px rgba(163, 95, 74, .35);
}
.dz-text { font-size: 16px; font-weight: 600; color: var(--ink); }
.dz-hint { font-size: 13px; color: var(--muted); }
.preview { display: none; width: 100%; max-height: 390px; object-fit: contain; background: var(--surface-2); }
.dropzone.has-image { border-style: solid; border-color: var(--copper-light); }
.dropzone.has-image .dz-inner { display: none; }
.dropzone.has-image .preview { display: block; }
.dropzone.shake { animation: shake .35s; border-color: var(--rose-deep); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------------- Visual Style Cards (with Real Portraits) ---------------- */
.styles {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.style-chip {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 13px;
  font-family: inherit; color: var(--ink); text-align: left;
  padding: 10px 14px 10px 10px; border-radius: var(--radius-md);
  background: var(--surface); border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.style-chip:hover {
  border-color: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.style-chip .chip-thumb {
  width: 56px; height: 70px; border-radius: 10px; overflow: hidden; flex: none;
  border: 1px solid rgba(208, 144, 111, .30); background: var(--surface-2);
}
.style-chip .chip-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease);
}
.style-chip:hover .chip-thumb img { transform: scale(1.06); }
.style-chip .chip-body {
  display: flex; flex-direction: column; gap: 3px; padding-right: 18px;
}
.style-chip .chip-title {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25;
}
.style-chip .chip-desc {
  font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.35;
}
.style-chip.selected {
  border-color: var(--copper);
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f5 100%);
  box-shadow: 0 0 0 3px rgba(208, 144, 111, .18);
}
.style-chip.selected::after {
  content: "✓"; position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--copper-grad); color: #fff;
}

/* ---------------- Photo Type Picker ---------------- */
.sub-step-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--copper-text); margin-bottom: 10px; display: block;
}

.photo-types {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin-bottom: 18px;
}
.photo-type-chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left;
  padding: 14px 16px; min-height: 84px; border-radius: var(--radius-md);
  background: var(--surface); border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.photo-type-chip:hover { border-color: var(--copper-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.photo-type-chip .type-ic {
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 3px;
  display: grid; place-items: center;
  background: var(--copper-tint); color: var(--copper-text);
}
.photo-type-chip .type-ic svg { width: 16px; height: 16px; }
.photo-type-chip .type-name { font-size: 14px; font-weight: 600; color: var(--ink); padding-right: 22px; }
.photo-type-chip .type-desc { font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.photo-type-chip.selected {
  border-color: var(--copper);
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f5 100%);
  box-shadow: 0 0 0 3px rgba(208, 144, 111, .18);
}
.photo-type-chip.selected::after {
  content: "✓"; position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--copper-grad); color: #fff;
}

/* ---------------- Holiday Options ---------------- */
.holiday-box {
  margin: 12px 0 20px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--copper-tint); border: 1.5px solid #efd8ca;
  animation: fadeIn .25s var(--ease);
}
.holiday-box .field-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--copper-text); margin-bottom: 6px;
}
.holiday-hint {
  font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 10px;
}

/* ---------------- Fields ---------------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields input, .fields select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 15px 16px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fields input:hover, .fields select:hover { background: #ede8e3; }
.fields input:focus, .fields select:focus {
  background: var(--surface); border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(208, 144, 111, .16);
}
.fields input::placeholder { color: var(--faint); }
.fields .full { grid-column: 1 / -1; }
.fields select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--copper-text) 50%),
    linear-gradient(135deg, var(--copper-text) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.fields select:invalid { color: var(--faint); }

/* ---------------- Primary Studio Buttons (with Foil Sheen) ---------------- */
.generate-btn, .wz-next, .paywall-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .3px;
  color: #fff; background: var(--ink);
  border: 1px solid rgba(240, 192, 160, .28);
  border-radius: 14px; padding: 18px 24px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(240, 192, 160, .35) inset, 0 16px 32px -14px rgba(15, 14, 18, .55);
  transition: transform .18s var(--ease), box-shadow .2s, background .2s;
}
.generate-btn::after, .wz-next::after, .paywall-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -120%; width: 65%;
  background: linear-gradient(105deg, transparent 20%, rgba(243, 198, 168, .22) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.generate-btn:hover::after, .wz-next:hover::after, .paywall-btn:hover::after { left: 145%; }
.generate-btn:hover, .wz-next:hover, .paywall-btn:hover {
  transform: translateY(-1px); background: #1e1c24;
}
.generate-btn span, .wz-next span, .paywall-btn span { color: var(--copper-light); }
.generate-btn:disabled, .paywall-btn:disabled {
  opacity: .48; cursor: not-allowed; transform: none;
}
.disclaimer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ---------------- One-Per-Email Paywall / Upgrade Prompt ---------------- */
.paywall-card {
  text-align: center; padding: 14px 8px 6px;
  animation: fadeIn .32s var(--ease);
}
.paywall-inf-wrap { margin-bottom: 8px; }
.paywall-inf {
  width: 82px; height: 38px;
  filter: drop-shadow(0 4px 12px rgba(208, 144, 111, .28));
}
.paywall-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--copper-text);
  background: var(--copper-tint); border: 1px solid #efd6c6;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.paywall-title {
  font-family: var(--serif); font-size: clamp(24px, 3.8vw, 31px); font-weight: 600;
  color: var(--ink); line-height: 1.2; margin-bottom: 12px;
}
.paywall-copy {
  font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto 18px; line-height: 1.6;
}
.paywall-copy strong { color: var(--ink); font-weight: 600; }
.paywall-perks {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.paywall-perks span {
  font-size: 12px; font-weight: 600; color: var(--copper-text);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.paywall-actions {
  max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
}
.paywall-dismiss {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; transition: color .15s;
}
.paywall-dismiss:hover { color: var(--ink); }

/* ---------------- Step-by-Step Studio Wizard ---------------- */
.wz-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 24px; }
.wz-back {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 20px; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.wz-back:hover { color: var(--copper-text); background: var(--copper-tint); }
.wz-back.off { visibility: hidden; }
.wz-prog { text-align: center; }
.wz-bar { width: 136px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 33%; border-radius: 4px; background: var(--copper-grad); transition: width .35s var(--ease); }
.wz-count { font-size: 11.5px; color: var(--copper-text); font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }

.wz .step { display: none; margin-bottom: 26px; animation: fadeIn .3s var(--ease); }
.wz .step.is-active { display: block; }
.wz .step-label {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: -.3px; text-transform: none; margin-bottom: 6px;
}
.wz .step-label span { display: none; }
.wz-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.wz:not(.wz-last) .generate-btn, .wz:not(.wz-last) .disclaimer { display: none; }
.wz.wz-last .wz-next { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

.tips {
  margin-top: 16px; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 3px solid var(--copper);
  font-size: 13px; color: var(--text);
}
.tips strong { display: block; font-size: 12.5px; letter-spacing: .3px; color: var(--ink); margin-bottom: 6px; }
.tips ul { padding-left: 18px; color: var(--muted); }
.tips li { margin: 2px 0; }

/* ---------------- Obsidian Darkroom Loading Screen ---------------- */
.loading {
  text-align: center; padding: 46px 28px 52px;
  background: radial-gradient(500px 300px at 50% 0%, rgba(208, 144, 111, .18), transparent 70%), #09080b;
  color: #fff; border-color: rgba(224, 160, 128, .28);
}
.loading-logo {
  display: block; width: 170px; height: auto; margin: 0 auto 12px;
  mix-blend-mode: screen; opacity: .94;
}
.ring {
  position: relative; width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; color: var(--copper-light);
  box-shadow: 0 0 0 1px rgba(240, 192, 160, .20) inset, 0 0 60px -10px rgba(224, 160, 128, .45);
}
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--copper-light); border-right-color: rgba(224, 160, 128, .35);
  animation: spin 1.4s linear infinite;
}
.spinner { display: none; }
.loading h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.loading p { color: rgba(255, 255, 255, .66); font-size: 13.5px; max-width: 390px; margin: 0 auto; }
.checks { list-style: none; display: inline-flex; flex-direction: column; gap: 13px; margin-top: 28px; text-align: left; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .45); transition: color .3s; }
.checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .25);
}
.checks li.on { color: rgba(255, 255, 255, .90); }
.checks li.on::before { border-color: var(--copper-light); border-top-color: transparent; animation: spin .9s linear infinite; }
.checks li.done { color: #fff; }
.checks li.done::before {
  animation: none; border: 0;
  background: var(--copper-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f0e12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Results ---------------- */
.results { margin-top: 8px; }
.results-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.8vw, 42px); font-weight: 600; letter-spacing: -.6px;
  text-align: center; color: var(--ink); margin-bottom: 8px;
}
.results-title em {
  font-style: italic;
  background: var(--copper-foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.results-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.result-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.result-col h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.strip-img { display: block; width: 100%; border-radius: var(--radius-sm); }
.dl-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dl-btn {
  flex: 1 1 140px; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 13px 16px; border-radius: 12px; background: var(--surface-2);
  transition: background .15s, color .15s;
}
.dl-btn:hover { background: var(--copper-tint); color: var(--copper-text); }
.dl-btn.primary { color: #fff; background: var(--ink); }
.dl-btn.primary:hover { background: #24222a; color: #fff; }
.count-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--copper-grad); padding: 2px 9px; border-radius: 999px; }
.count-badge:empty { display: none; }

.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shot { position: relative; border-radius: 14px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.shot:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--copper); }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shot .cap {
  position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(15, 14, 18, .58); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 8px;
}
.shot .shot-dl {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%; text-decoration: none;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  opacity: 0; transition: opacity .15s;
}
.shot:hover .shot-dl, .shot:focus-within .shot-dl { opacity: 1; }
@media (hover: none) { .shot .shot-dl { opacity: 1; } }

/* ---------------- Pricing / Upsell ---------------- */
.upsell { margin-top: 28px; }
.upsell > h3 { font-family: var(--serif); text-align: center; font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.upsell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.upsell-grid.two { grid-template-columns: repeat(2, 1fr); }
.upsell-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.upsell-card.premium, .upsell-card.free-row.active { border-color: var(--copper); }
.upsell-card.paid-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcf6f1 100%);
  border-color: var(--copper-light);
}
.tier-line { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.upsell-card h4 { font-size: 17px; margin-bottom: 12px; color: var(--ink); }
.upsell-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.upsell-card li { font-size: 13px; color: var(--muted); }
.upsell-btn {
  margin-top: 16px; width: 100%; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--surface-2); border: 0;
  padding: 13px 16px; border-radius: 12px; cursor: not-allowed;
  transition: transform .15s var(--ease), background .15s;
}
.upsell-btn:not([disabled]) {
  cursor: pointer; color: #fff; background: var(--ink);
  box-shadow: 0 1px 0 rgba(240, 192, 160, .35) inset, 0 10px 22px -10px rgba(15, 14, 18, .45);
}
.upsell-btn:not([disabled]):hover { transform: translateY(-1px); background: #221f29; }
.price-tag { font-size: 28px; font-weight: 600; color: var(--ink); }

.claim-banner {
  margin-bottom: 22px; text-align: center; font-size: 14px; font-weight: 500;
  color: var(--ink); background: var(--copper-tint);
  border: 1px solid var(--copper-light); border-radius: 12px; padding: 13px 16px;
}
.restart-btn {
  display: block; margin: 26px auto 0;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 24px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, color .15s;
}
.restart-btn:hover { border-color: var(--copper); color: var(--copper-text); }
.error {
  margin-top: 18px; text-align: center; font-size: 14px; color: #9b2c1f;
  background: #fdecea; border: 1px solid #f6c9c2; border-radius: 12px; padding: 12px 16px;
}

/* ---------------- How It Works + Obsidian Closing Band ---------------- */
.how {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 72px auto 0; max-width: 1020px; text-align: center; padding: 0 20px;
  position: relative; z-index: 1;
}
.how-item .ic {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--surface);
  color: var(--copper-text); box-shadow: 0 0 0 1px #f1dccf, var(--shadow);
  transition: transform .2s var(--ease);
}
.how-item:hover .ic { transform: translateY(-3px); }
.how-item .ic svg { width: 24px; height: 24px; }
.how-item h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.how-item p { font-size: 13.5px; color: var(--muted); }

.band-wrap { padding: 0 20px; }
.band {
  position: relative; z-index: 1; overflow: hidden;
  margin: 60px auto 0; max-width: 1020px; border-radius: var(--radius);
  background:
    radial-gradient(560px 280px at 14% 50%, rgba(208, 144, 111, .16), transparent 70%),
    #08070a;
  color: #fff; padding: 36px 42px;
  box-shadow: inset 0 1.5px 0 rgba(224, 160, 128, .55), var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.band-left {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.band-logo {
  width: 126px; height: auto; flex: none;
  mix-blend-mode: screen;
}
.band h3 {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 31px); font-weight: 500; line-height: 1.24; color: #fff;
}
.band h3 em {
  font-style: italic;
  background: var(--copper-foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.band-sub {
  font-size: 12.5px; color: rgba(255, 255, 255, .64); margin-top: 8px;
}
.band-sub a {
  color: var(--copper-light); font-weight: 600; text-decoration: none;
}
.band-sub a:hover { text-decoration: underline; }

.band .uses { display: flex; gap: 9px; flex-wrap: wrap; }
.band .uses span {
  font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(224, 160, 128, .38);
  color: var(--copper-light);
}

.site-footer {
  position: relative; z-index: 1; text-align: center;
  font-size: 12px; color: var(--faint); padding: 34px 20px 44px;
}
.site-footer a { color: var(--text); }

.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .hdr-teams-link { font-size: 10.5px; padding: 6px 12px; }
  main { padding: 0 14px 32px; }
  .hero { padding: 24px 0 24px; }
  .hero-inf { width: 78px; height: 36px; }
  .crest-wordmark b { font-size: 22px; letter-spacing: 8px; margin-right: -8px; }
  .crest-wordmark small { font-size: 8px; letter-spacing: 2.2px; margin-right: -2.2px; }

  .hero-triptych { margin: 24px auto 0; max-width: 100%; padding: 4px 0; }
  .trip-card { width: 33%; padding: 6px 6px 9px; border-radius: 13px; }
  .trip-center { width: 37%; }
  .trip-left { transform: translateX(8px) translateY(8px) rotate(-3.5deg); }
  .trip-right { transform: translateX(-8px) translateY(8px) rotate(3.5deg); }
  .trip-meta strong { font-size: 11px; }
  .trip-meta small { display: none; }
  .trip-badge { font-size: 8px; padding: 3px 8px; top: -9px; }

  .fields { grid-template-columns: 1fr; }
  .styles { grid-template-columns: 1fr; }
  .results-grid, .upsell-grid, .upsell-grid.two { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
  .band-left { gap: 14px; }
  .band-logo { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
