/* PRD-H00 Wedding Hub Storefront — Stitch "Atelier Hanok & Vow" High-End Wedding Magazine & Artifact Showcase */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Noto+Serif+KR:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --bg-ivory: #fff9f6;
  --bg-cream: #fbf2ee;
  --surface-container: #f5ece8;
  --surface-glass: rgba(255, 255, 255, 0.90);
  --surface-solid: #ffffff;
  --text-charcoal: #1f1b19;
  --text-muted: #574843;
  --rose-gold: #9e6555;
  --rose-gold-dark: #834e3f;
  --rose-gold-soft: #ffdbd0;
  --sage-green: #456553;
  --sage-soft: #e6f2ec;
  --gold-accent: #7a5c29;
  --champagne-gold: #c89d54;
  --border-warm: rgba(215, 194, 189, 0.68);
  --shadow-soft: 0 16px 40px -12px rgba(48, 32, 26, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-elevated: 0 24px 52px -14px rgba(64, 38, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-ivory);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(255, 226, 214, 0.48) 0%, transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(247, 224, 186, 0.36) 0%, transparent 42%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.92) 0%, var(--bg-ivory) 65%, var(--bg-cream) 100%);
  color: var(--text-charcoal);
  font-family: 'Plus Jakarta Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.58;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, span, a, button, label, li, th, td {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.serif-title {
  font-family: 'Noto Serif KR', 'Cormorant Garamond', 'EB Garamond', 'Nanum Myeongjo', Georgia, serif;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.editorial-italic {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-style: italic;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* Layout Shell: Editorial Boutique Container */
.hub-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 104px;
  position: relative;
}

/* True Light-Theme Frosted Silk Glass Card */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(224, 203, 196, 0.78);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(158, 101, 85, 0.45);
}

/* Editorial Hero Showcase & Sunlight Bokeh Orbs */
.hero-editorial-stage {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 244, 0.88) 52%, rgba(251, 240, 234, 0.92) 100%);
  border: 1px solid rgba(215, 190, 181, 0.75);
  box-shadow: 0 28px 64px -18px rgba(82, 50, 40, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.sunlight-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.sunlight-orb-rose {
  width: 340px;
  height: 340px;
  top: -110px;
  right: 12%;
  background: radial-gradient(circle, rgba(235, 179, 164, 0.42) 0%, rgba(235, 179, 164, 0) 72%);
}

.sunlight-orb-champagne {
  width: 300px;
  height: 300px;
  bottom: -90px;
  left: 6%;
  background: radial-gradient(circle, rgba(242, 209, 158, 0.38) 0%, rgba(242, 209, 158, 0) 72%);
}

/* Bridal Arch Photo Frame & Layered Tangible Artifacts */
.bridal-arch-showcase {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.bridal-arch-frame {
  position: relative;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4 / 4.65;
  background: linear-gradient(165deg, #f3e1d8 0%, #e5c8bc 48%, #d2ab9c 100%);
  border: 6px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 54px -14px rgba(64, 38, 30, 0.22);
}

.bridal-arch-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 190px 190px 16px 16px;
  border: 1px solid rgba(255, 250, 245, 0.72);
  pointer-events: none;
  z-index: 2;
}

.bridal-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.02) saturate(0.96) brightness(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bridal-arch-showcase:hover .bridal-arch-img {
  transform: scale(1.03);
}

.bridal-arch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 24, 21, 0.04) 0%, rgba(31, 24, 21, 0.16) 55%, rgba(31, 24, 21, 0.64) 100%);
  z-index: 1;
}

.floating-artifact-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 253, 250, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 212, 204, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 42px -10px rgba(45, 28, 22, 0.20);
}

.wax-seal-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, #e2b86b 0%, #b58338 62%, #875c1d 100%);
  color: #fffdf9;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), 0 4px 10px rgba(115, 75, 26, 0.28);
  border: 1.5px solid rgba(255, 243, 219, 0.75);
  flex-shrink: 0;
}

/* Visual Artifact Preview Stage Inside Storefront Cards */
#free-kits-grid .artifact-preview-stage { min-height: 74px; display: flex; flex-direction: column; justify-content: center; }
#pro-products-grid .artifact-preview-stage { min-height: 78px; display: flex; flex-direction: column; justify-content: center; }
.artifact-preview-stage {
  position: relative;
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 194, 189, 0.55);
}

.artifact-stage-sage {
  background: linear-gradient(135deg, #f5faf7 0%, #e7f2ec 55%, #fbf6f2 100%);
  border-color: rgba(69, 101, 83, 0.22);
}

.artifact-stage-rose {
  background: linear-gradient(135deg, #fffaf7 0%, #fbeee9 52%, #f5e1d8 100%);
  border-color: rgba(158, 101, 85, 0.28);
}

.artifact-stage-parchment {
  background: linear-gradient(135deg, #fffdf9 0%, #fbf2e3 54%, #f4e4cb 100%);
  border-color: rgba(181, 131, 56, 0.32);
}

.artifact-stage-royal {
  background: linear-gradient(135deg, #241e1c 0%, #382b27 58%, #4d3831 100%);
  border-color: rgba(212, 169, 98, 0.40);
  color: #fff9f5;
}

.mini-paper-sheet {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(218, 198, 190, 0.72);
  border-radius: 13px;
  padding: 11px 13px;
  box-shadow: 0 10px 24px -8px rgba(31, 27, 25, 0.09);
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fbf4f0;
  border: 1px solid rgba(158, 101, 85, 0.22);
  color: #59443e;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.keyword-pill-sage {
  background: #eef6f1;
  border-color: rgba(69, 101, 83, 0.22);
  color: #355241;
}

.concierge-care-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fbf3ef 0%, #fffaf7 100%);
  border: 1px solid rgba(158, 101, 85, 0.24);
  font-size: 0.75rem;
  font-weight: 700;
  color: #784638;
}

/* Stage Tabs Bar (Single Header Policy: #hago-global-couple-bar is the only top fixed bar) */
.stage-tabs-bar {
  position: relative;
  z-index: 20;
  background: rgba(255, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(215, 194, 189, 0.48);
  border-bottom: 1px solid rgba(215, 194, 189, 0.58);
  padding: 13px 0;
  margin-bottom: 34px;
}

.stage-tabs-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.stage-tab-btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stage-tab-btn:hover {
  border-color: var(--rose-gold);
  color: var(--text-charcoal);
  background: #fffdfb;
}

.stage-tab-btn.active {
  background: linear-gradient(135deg, #8e5646 0%, #6e3d2f 100%);
  color: #ffffff;
  border-color: #6e3d2f;
  box-shadow: 0 8px 20px -5px rgba(131, 78, 63, 0.38);
}

/* Buttons & Touch Targets */
.btn-primary-rose {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #915848 0%, #734133 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  box-shadow: 0 10px 22px -6px rgba(131, 78, 63, 0.36);
}

.btn-primary-rose:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -6px rgba(131, 78, 63, 0.45);
}

.btn-secondary-ivory {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 13px;
  border: 1px solid rgba(131, 78, 63, 0.32);
  background: #ffffff;
  color: var(--rose-gold-dark);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary-ivory:hover {
  background: var(--bg-cream);
  border-color: var(--rose-gold-dark);
}

.btn-sage-free {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 13px;
  border: 1px solid rgba(69, 101, 83, 0.25);
  background: linear-gradient(135deg, #4b6d5a 0%, #375343 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 18px -6px rgba(55, 83, 67, 0.32);
}

.btn-sage-free:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Price Anchoring Tags */
.price-anchor {
  text-decoration: line-through;
  color: #9e938c;
  font-size: 0.82rem;
}

.price-store {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-charcoal);
}

.price-oto-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fbf2ee;
  color: var(--rose-gold-dark);
  border: 1px solid rgba(131, 78, 63, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31, 27, 25, 0.58);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff8f5;
  border: 1px solid rgba(131, 78, 63, 0.28);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(31, 27, 25, 0.28);
}

@media (max-width: 640px) {
  .hub-shell {
    padding: 0 14px 88px;
  }
  .modal-panel {
    padding: 18px;
    border-radius: 18px;
  }
  .bridal-arch-frame {
    aspect-ratio: 4 / 4.2;
  }
}

/* Utilities & Couple Role Badges */
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.role-pill-groom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f0f5;
  color: #274e66;
  border: 1px solid rgba(39, 78, 102, 0.22);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-pill-bride {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fbf2ee;
  color: #834e3f;
  border: 1px solid rgba(131, 78, 63, 0.22);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-pill-both {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f2ec;
  color: #365242;
  border: 1px solid rgba(69, 101, 83, 0.22);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Lifecycle Chronological Stepper Card */
.lifecycle-step-card {
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border-warm);
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lifecycle-step-card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.lifecycle-step-card.is-current-stage,
.lifecycle-step-card.active {
  border: 1.5px solid var(--rose-gold-dark);
  background: linear-gradient(160deg, #ffffff 0%, #fbf2ee 100%);
  box-shadow: 0 14px 32px -10px rgba(131, 78, 63, 0.2);
}

.future-preview-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-warm);
  padding: 20px;
  transition: all 0.2s ease;
}

.future-preview-card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-soft);
}

/* Family Charter Certificate (P04 Tab 3) */
.family-charter-certificate {
  background: radial-gradient(circle at 50% 0%, #fffdf9 0%, #fbf5ec 100%);
  border: 3px double #9e6555;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 48px -12px rgba(64, 45, 38, 0.14);
}

/* Cash Envelope Cutout Label Cards (P01) */
.envelope-cutout-card {
  border: 1.5px dashed #834e3f;
  border-radius: 16px;
  background: #fffdf9;
  padding: 14px;
  transition: background 0.15s ease;
}

/* Mobile Dark-Mode Stage Prompter (P03 ?mode=prompter) */
.prompter-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0f172a;
  color: #f8fafc;
  overflow-y: auto;
  padding: 20px 16px 96px;
}

.prompter-cue-bgm {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fde047;
  font-weight: 800;
  font-size: 0.85em;
  margin: 4px 0;
}

.prompter-cue-action {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.85em;
  margin: 4px 0;
}

/* Blur Paywall for Locked PRO Previews */
.blur-paywall {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

@media print {
  .no-print,
  #hago-global-couple-bar,
  #hago-hub-fb-root,
  header,
  footer {
    display: none !important;
  }
  html, body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .glass-card {
    box-shadow: none !important;
    border: 1px solid #d9c2b8 !important;
    break-inside: avoid;
  }
  .envelope-cutout-card {
    break-inside: avoid;
    border: 1.5px dashed #1f1b19 !important;
  }
}
