/* ============================================
   My Beloved — Marketing site design system
   Dark default + light theme via [data-theme]
   ============================================ */

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

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

html[data-theme="dark"],
html:not([data-theme]) {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --bg-deep: #0a090b;
  --bg-primary: #121015;
  --bg-elevated: #1a171c;
  --bg-section: #0c0b0e;
  --bg-section-alt: #15121a;
  --bg-section-grad: linear-gradient(
    165deg,
    #121015 0%,
    #0c0b0e 42%,
    #0a090b 100%
  );
  --bg-section-alt-grad: linear-gradient(
    195deg,
    #1a171c 0%,
    #15121a 48%,
    #100e14 100%
  );
  --bg-soft: rgba(255, 255, 255, 0.04);
  --bg-soft-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(212, 184, 150, 0.18);
  --border-strong: rgba(212, 184, 150, 0.38);
  --text-primary: #f5f0ea;
  --text-secondary: rgba(245, 240, 234, 0.68);
  --text-muted: rgba(245, 240, 234, 0.42);
  --accent: #c4a484;
  --accent-strong: #d8b896;
  --accent-soft: rgba(196, 164, 132, 0.16);
  --accent-glow: rgba(196, 164, 132, 0.28);
  --btn-from: #6b452c;
  --btn-to: #3e2718;
  --btn-text: #f4ebe2;
  --btn-glow: rgba(62, 39, 24, 0.55);
  --btn-pulse: rgba(212, 184, 150, 0.55);
  --wa-green: #1f8c45;
  --wa-green-hover: #187538;
  --price-premium: #C99A4A;
  --danger-soft: rgba(196, 164, 132, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(10, 9, 11, 0.82);
  --nav-dropdown-bg: rgba(10, 9, 11, 0.96);
  --footer-bg: #050407;
  --hero-overlay: linear-gradient(180deg, rgba(10, 9, 11, 0.55) 0%, rgba(10, 9, 11, 0.82) 55%, #0a090b 100%);
  --star: #d8b896;
  --card-radius: 16px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg-deep: #f7f3ee;
  --bg-primary: #fbf8f4;
  --bg-elevated: #ffffff;
  --bg-section: #fbf8f4;
  --bg-section-alt: #f0ebe3;
  --bg-section-grad: linear-gradient(
    165deg,
    #ffffff 0%,
    #fbf8f4 45%,
    #f5f0e8 100%
  );
  --bg-section-alt-grad: linear-gradient(
    195deg,
    #f3eee6 0%,
    #ebe4da 48%,
    #e5ddd2 100%
  );
  --bg-soft: rgba(28, 22, 18, 0.04);
  --bg-soft-hover: rgba(28, 22, 18, 0.07);
  --border: rgba(90, 70, 50, 0.14);
  --border-strong: rgba(90, 70, 50, 0.28);
  --text-primary: #1c1612;
  --text-secondary: rgba(28, 22, 18, 0.68);
  --text-muted: rgba(28, 22, 18, 0.42);
  --accent: #9a7350;
  --accent-strong: #7d5c3e;
  --accent-soft: rgba(154, 115, 80, 0.12);
  --accent-glow: rgba(154, 115, 80, 0.2);
  --btn-from: #7d5c3e;
  --btn-to: #9a7350;
  --btn-text: #fff;
  --btn-glow: rgba(154, 115, 80, 0.2);
  --btn-pulse: rgba(154, 115, 80, 0.45);
  --wa-green: #1a7a3c;
  --wa-green-hover: #156533;
  --price-premium: #8a6418;
  --danger-soft: rgba(154, 115, 80, 0.1);
  --shadow: 0 18px 40px rgba(40, 28, 18, 0.12);
  --header-bg: rgba(251, 248, 244, 0.88);
  --nav-dropdown-bg: rgba(251, 248, 244, 0.97);
  --footer-bg: #efe8df;
  --hero-overlay: linear-gradient(180deg, rgba(251, 248, 244, 0.35) 0%, rgba(251, 248, 244, 0.78) 50%, #fbf8f4 100%);
  --star: #9a7350;
  --card-radius: 16px;
  color-scheme: light;
}

body.site-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
}

.site-logo span {
  color: var(--accent-strong);
  font-weight: 500;
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft-hover);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-soft-hover);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
}

.theme-toggle-icon::after {
  content: '';
  position: absolute;
  inset: 1px 1px 1px 50%;
  background: currentColor;
  border-radius: 0 8px 8px 0;
}

html[data-theme="light"] .theme-toggle-icon::after {
  inset: 2px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 3px -2px 0 0 currentColor;
}

@media (max-width: 768px) {
  .site-logo { font-size: 1.25rem; }

  .site-header {
    flex-wrap: nowrap;
  }

  .site-header.is-nav-open {
    border-bottom-color: transparent;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    width: auto;
    background: var(--nav-dropdown-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 2.25rem 2.25rem;
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      grid-template-rows 0.35s ease,
      opacity 0.28s ease,
      visibility 0.35s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease;
  }

  .site-header.is-nav-open .site-nav {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-color: var(--border);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
  }

  .site-nav-panel {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.2rem clamp(1.25rem, 4vw, 2.5rem) 1.15rem;
  }

  .site-nav a {
    padding: 0.9rem 0.15rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease, color 0.2s ease;
  }

  .site-header.is-nav-open .site-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header.is-nav-open .site-nav a:nth-child(1) { transition-delay: 0.04s; }
  .site-header.is-nav-open .site-nav a:nth-child(2) { transition-delay: 0.08s; }
  .site-header.is-nav-open .site-nav a:nth-child(3) { transition-delay: 0.12s; }
  .site-header.is-nav-open .site-nav a:nth-child(4) { transition-delay: 0.16s; }
  .site-header.is-nav-open .site-nav a:nth-child(5) { transition-delay: 0.2s; }

  .site-nav a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  .site-nav {
    margin-left: auto;
    margin-right: 0;
  }

  .header-actions {
    margin-left: 0;
  }
}

/* ---------- Layout helpers ---------- */
.site-main { position: relative; z-index: 1; }

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

/* Alternating gradient bands — separates homepage blocks in both themes */
.site-main > .section {
  background: var(--bg-section-grad);
}

.site-main > .section:nth-of-type(even) {
  background: var(--bg-section-alt-grad);
}

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

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: var(--btn-text);
  box-shadow: 0 8px 28px var(--btn-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px var(--btn-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.hero-cta {
  padding: 0.55rem 1.15rem;
  animation: heroCtaPulse 2.5s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover {
    animation-play-state: paused;
  }
}

@keyframes heroCtaPulse {
  0%, 100% {
    box-shadow:
      0 8px 28px var(--btn-glow),
      0 0 0 0 var(--btn-pulse);
  }
  50% {
    box-shadow:
      0 8px 28px var(--btn-glow),
      0 0 0 14px transparent;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-strong); }
.back-link .back-arrow { font-size: 1.05em; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100dvh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Dark theme default (matches site default) */
  background: center / cover no-repeat url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Fhero-image-landscape-dark.jpeg?alt=media&token=10acad77-2741-465a-bea6-9aecc1cada6b');
}

html[data-theme="light"] .hero-media {
  background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Fhero_image_landscape.jpeg?alt=media&token=946c8605-c102-43a9-9701-6841c3b09a72');
}

/* Soft sweeping glare — works on portrait & landscape, light & dark */
.hero-media::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -40%;
  width: 45%;
  height: 140%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 248, 235, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: skewX(-18deg) translateX(0);
  animation: heroGlare 9s ease-in-out infinite;
}

html[data-theme="light"] .hero-media::before {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 252, 245, 0.42) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
}

@keyframes heroGlare {
  0%, 12% {
    transform: skewX(-18deg) translateX(0);
    opacity: 0;
  }
  18% { opacity: 1; }
  55% {
    transform: skewX(-18deg) translateX(280%);
    opacity: 1;
  }
  62%, 100% {
    transform: skewX(-18deg) translateX(320%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::before {
    animation: none;
    opacity: 0.35;
    left: 20%;
    width: 28%;
    transform: skewX(-18deg);
  }

  .hero-cta {
    animation: none;
  }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Keep left readable for copy; leave right clearer for phone */
  background: linear-gradient(
    105deg,
    rgba(10, 9, 11, 0.55) 0%,
    rgba(10, 9, 11, 0.28) 42%,
    rgba(10, 9, 11, 0.1) 70%,
    rgba(10, 9, 11, 0.06) 100%
  );
}

html[data-theme="light"] .hero-media::after {
  background: linear-gradient(
    105deg,
    rgba(251, 248, 244, 0.78) 0%,
    rgba(251, 248, 244, 0.45) 45%,
    rgba(251, 248, 244, 0.15) 75%,
    rgba(251, 248, 244, 0.08) 100%
  );
}

.hero-phone {
  display: block;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.phone-mock--hero {
  --phone-w: min(112px, 30vw);
  filter:
    drop-shadow(10px 18px 22px rgba(0, 0, 0, 0.38))
    drop-shadow(4px 28px 36px rgba(0, 0, 0, 0.28))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.phone-mock--frame2 .phone-mock-screen {
  top: 1.1%;
  left: 2.4%;
  right: 2.4%;
  bottom: 1.1%;
  border-radius: 14% / 7%;
}

/* Hero phone: fill screen edge-to-edge a bit wider */
.phone-mock--hero.phone-mock--frame2 .phone-mock-screen {
  top: 1%;
  left: 0%;
  right: 0%;
  bottom: 1%;
  border-radius: 13% / 6.5%;
}

.phone-mock--frame2 .phone-mock-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
}

html[data-theme="dark"] .phone-mock--hero .phone-mock-screen::after,
html:not([data-theme]) .phone-mock--hero .phone-mock-screen::after,
html[data-theme="light"] .phone-mock--hero .phone-mock-screen::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  animation: heroRise 0.9s ease-out both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 14ch;
  margin-bottom: 0;
  color: var(--text-primary);
}

.hero-title-accent {
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 32rem;
  line-height: 1.6;
  margin: 0 auto 1.15rem;
  text-align: center;
}

/* Mobile + tablet: title → phone → centered sub + CTA (no brand) */
@media (max-width: 1099px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "phone"
      "sub"
      "cta";
    justify-items: center;
    align-content: center;
    min-height: 100svh;
    min-height: 100dvh;
    row-gap: 0.85rem;
    padding: clamp(1.1rem, 3.5vw, 1.75rem) clamp(1.15rem, 4vw, 2.25rem) clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero-content {
    display: contents;
    animation: none;
  }

  .hero-brand {
    display: none;
  }

  .hero-title {
    grid-area: title;
    text-align: center;
    max-width: 16ch;
    margin: 0;
    animation: heroRise 0.9s ease-out both;
  }

  .hero-phone {
    grid-area: phone;
    margin: 0.15rem 0 0.1rem;
    animation: heroRise 0.9s ease-out 0.06s both;
  }

  .hero-sub {
    grid-area: sub;
    max-width: 34rem;
    width: 100%;
    margin: 0.2rem auto 0;
    animation: heroRise 0.9s ease-out 0.1s both;
  }

  .hero-cta {
    grid-area: cta;
    justify-self: center;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
    animation:
      heroRise 0.9s ease-out 0.12s both,
      heroCtaPulse 2.5s ease-in-out 1.05s infinite;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .phone-mock--hero {
    --phone-w: min(160px, 22vw);
  }

  .hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  }

  .hero-sub {
    margin-top: 0.4rem;
    line-height: 1.65;
  }

  .hero-cta {
    margin-top: 0.25rem;
  }
}

@media (max-width: 768px) {
  .phone-mock--hero {
    --phone-w: min(96px, 26vw);
  }

  .hero-media {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Fhero-image-portriat-dark.jpeg?alt=media&token=2dea2408-9cc9-463c-9b1b-c806f0bff85d');
  }
  html[data-theme="light"] .hero-media {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Fhero_image_portrait.jpeg?alt=media&token=6337278d-e462-4561-9cd9-bfc60812e260');
  }

  .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(10, 9, 11, 0.28) 0%,
      rgba(10, 9, 11, 0.42) 45%,
      rgba(10, 9, 11, 0.62) 100%
    );
  }
  html[data-theme="light"] .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(251, 248, 244, 0.35) 0%,
      rgba(251, 248, 244, 0.62) 50%,
      rgba(251, 248, 244, 0.86) 100%
    );
  }
}

/* Large desktop: phone floats on the right of the hero */
@media (min-width: 1100px) {
  .hero {
    min-height: min(92vh, 820px);
    flex-direction: row;
    align-items: flex-end;
  }

  .hero-phone {
    position: absolute;
    top: 50%;
    right: clamp(9rem, 18vw, 14rem);
    transform: translateY(-50%);
  }

  .phone-mock--hero {
    --phone-w: min(290px, 32vw);
  }

  .hero-content {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
    padding-right: max(clamp(1.25rem, 4vw, 2.5rem), 480px);
  }

  .hero-brand { margin-bottom: 1.25rem; }

  .hero-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 1.1rem;
  }

  .hero-sub {
    text-align: left;
    margin: 0 0 2rem;
    line-height: 1.65;
  }
}

/* ---------- Collections ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 720px) {
  .collections-grid { grid-template-columns: 1fr; }
}

html[data-theme="light"] #collections {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(154, 115, 80, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 55% at 92% 85%, rgba(125, 92, 62, 0.05), transparent 58%),
    linear-gradient(168deg, #f5f0e8 0%, #efe8df 52%, #ebe3d8 100%);
}

html[data-theme="light"] #collections::before {
  content: '';
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.22) 0 8%, transparent 9%),
    radial-gradient(circle at 22% 72%, rgba(154, 115, 80, 0.04) 0 18%, transparent 19%);
  opacity: 0.7;
}

html[data-theme="light"] #collections::after {
  content: none;
}

html[data-theme="light"] #collections .section-inner {
  position: relative;
  z-index: 1;
}

.collection-card {
  position: relative;
  display: block;
  min-height: 320px;
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 6px 16px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.collection-card:hover {
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.32);
}

.collection-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card:hover .collection-card-media {
  transform: scale(1.06);
}

.collection-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 11, 0.15) 0%, rgba(10, 9, 11, 0.78) 100%);
}

.collection-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  color: #f5f0ea;
  max-width: min(100%, 34rem);
}

.collection-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.45rem;
}

.collection--wedding .collection-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #1a1410;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 6px 14px rgba(196, 164, 132, 0.3);
  animation: collectionFeaturedPulse 2.4s ease-in-out infinite;
}

.collection--wedding .collection-card-label::before {
  content: '✦';
  font-size: 0.8em;
  line-height: 1;
}

@keyframes collectionFeaturedPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 6px 14px rgba(196, 164, 132, 0.3),
      0 0 0 0 rgba(216, 184, 150, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22) inset,
      0 8px 18px rgba(196, 164, 132, 0.4),
      0 0 0 6px rgba(216, 184, 150, 0);
  }
}

.collection-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  max-width: 18ch;
}

.collection-card-desc {
  font-size: 0.92rem;
  color: rgba(245, 240, 234, 0.78);
  max-width: 42ch;
  line-height: 1.55;
}

.collection-card-cta {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f5f0ea;
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: font-size 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.collection-card-cta:hover {
  font-size: 0.95rem;
  opacity: 1;
}

html[data-theme="light"] .collection-card-media::after {
  background: linear-gradient(180deg, rgba(251, 248, 244, 0.05) 0%, rgba(251, 248, 244, 0.72) 55%, rgba(251, 248, 244, 0.92) 100%);
}

html[data-theme="light"] .collection-card-body {
  color: #14110e;
}

html[data-theme="light"] .collection-card-desc {
  color: rgba(20, 17, 14, 0.72);
}

html[data-theme="light"] .collection-card-cta {
  color: #14110e;
  opacity: 0.88;
}

html[data-theme="light"] .collection--wishes .collection-card-label {
  color: #7d5c3e;
}

html[data-theme="light"] .collection--wedding .collection-card-label {
  color: #5a3c28;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(122, 85, 56, 0.28);
  box-shadow: 0 4px 12px rgba(90, 60, 35, 0.1);
  animation: collectionFeaturedPulseLight 2.4s ease-in-out infinite;
}

@keyframes collectionFeaturedPulseLight {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(90, 60, 35, 0.1),
      0 0 0 0 rgba(154, 115, 80, 0.28);
  }
  50% {
    box-shadow:
      0 6px 14px rgba(90, 60, 35, 0.14),
      0 0 0 6px rgba(154, 115, 80, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection--wedding .collection-card-label {
    animation: none;
  }
}

.collection--wedding .collection-card-media {
  background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Ftemplate%20cover%20wedding%20dark.jpeg?alt=media&token=e2c70cf1-67b3-4f6d-bbb5-3045281285a6');
}

.collection--wishes .collection-card-media {
  background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Ftemplate%20cover%20wishes%20dark.jpeg?alt=media&token=fcec3b9c-6c55-4bac-980e-aab8ee1afa2d');
}

html[data-theme="light"] .collection--wedding .collection-card-media {
  background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Ftemplate%20cover%20wedding%20white.jpeg?alt=media&token=8e057e2b-b843-45fa-ac03-faead5510cd0');
}

html[data-theme="light"] .collection--wishes .collection-card-media {
  background-image: url('https://firebasestorage.googleapis.com/v0/b/my-bel0ved.firebasestorage.app/o/templates%2Fshared%2Fimages%2Fwebsite%20home%20images%2Ftemplate%20cover%20wishes%20white.jpeg?alt=media&token=d62fb27e-0d4d-47c7-96c3-09b00de25044');
}

html[data-theme="light"] .collection-card {
  border: 1px solid rgba(90, 60, 40, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(60, 40, 22, 0.16),
    0 6px 16px rgba(60, 40, 22, 0.08);
}

html[data-theme="light"] .collection-card:hover {
  border-color: rgba(122, 85, 56, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 22px 48px rgba(60, 40, 22, 0.2),
    0 8px 18px rgba(154, 115, 80, 0.12);
}

/* ---------- Stats / smiles ---------- */
.stats-band {
  border-block: 1px solid var(--border);
  background: var(--bg-section-alt-grad);
  text-align: center;
  padding: 2.35rem clamp(1.25rem, 4vw, 2.5rem);
}

.stats-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

.stat-rating-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.stat-star {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1;
  color: var(--star);
  transform: translateY(-0.12em);
}

.stat-label,
.smiles-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.smiles-delivered {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.smiles-frame {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.smiles-count-wrap {
  --stat-line: 1.2em;
  height: var(--stat-line);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: var(--stat-line);
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  display: flex;
  align-items: flex-start;
}

.smiles-count-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  font-size: 1em;
}

.smiles-count-cell {
  height: var(--stat-line);
  line-height: var(--stat-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 0.06em;
  box-sizing: border-box;
}

.smiles-label {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.smiles-label.is-visible { opacity: 1; }

@media (max-width: 640px) {
  .stats-band-inner {
    gap: 1.1rem 0.75rem;
  }

  .stat-item + .stat-item::before {
    top: 22%;
    bottom: 22%;
  }

  .stat-label,
  .smiles-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .smiles-count-wrap {
    font-size: 2.1rem;
  }

  .stat-star {
    font-size: 1.35rem;
  }
}

/* ---------- Reviews orders line ---------- */
.reviews-orders {
  --reviews-orders-size: clamp(1.15rem, 2.8vw, 1.4rem);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(196, 164, 132, 0.18) 0%, rgba(196, 164, 132, 0.05) 100%),
    var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(216, 184, 150, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 36px rgba(196, 164, 132, 0.12);
  font-family: var(--font-display);
  font-size: var(--reviews-orders-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  text-align: center;
}

html[data-theme="light"] .reviews-orders {
  background:
    linear-gradient(135deg, rgba(154, 115, 80, 0.14) 0%, rgba(255, 254, 251, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(154, 115, 80, 0.1),
    0 10px 24px rgba(60, 40, 22, 0.08),
    0 0 28px rgba(196, 164, 132, 0.16);
}

.reviews-orders-count,
.reviews-orders-plus,
.reviews-orders-label {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.reviews-orders-plus {
  margin-left: -0.05em;
}

.reviews-orders-label {
  margin-left: 0.15em;
  text-transform: uppercase;
}

.reviews-orders-skeleton {
  display: inline-block;
  width: 2.2rem;
  height: 0.72em;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(
    90deg,
    rgba(196, 164, 132, 0.18) 0%,
    rgba(216, 184, 150, 0.45) 48%,
    rgba(196, 164, 132, 0.18) 100%
  );
  background-size: 200% 100%;
  animation: reviewsOrdersShimmer 1.15s ease-in-out infinite;
}

.reviews-orders:not(.is-loading) .reviews-orders-skeleton {
  display: none;
}

.reviews-orders.is-loading .reviews-orders-plus,
.reviews-orders.is-loading .reviews-orders-label {
  opacity: 0.4;
}

@keyframes reviewsOrdersShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-orders-skeleton {
    animation: none;
  }
}

/* ---------- Reviews marquee ---------- */
.reviews-marquee {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}

.reviews-row {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  will-change: transform;
}

.reviews-row--left .reviews-track {
  animation: reviewsMarqueeLeft 105s linear infinite;
}

.reviews-row--right .reviews-track {
  animation: reviewsMarqueeRight 105s linear infinite;
}

.reviews-row:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes reviewsMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes reviewsMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-row--left .reviews-track,
  .reviews-row--right .reviews-track {
    animation: none;
    transform: none;
  }
}

.review-card {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 196px;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 6px 18px 18px 6px;
  padding: 1.15rem 1.2rem 1.15rem 1.35rem;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(212, 184, 150, 0.12);
}

.review-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent) 55%, transparent);
  border-radius: 6px 0 0 6px;
}

.review-card::after {
  content: '”';
  position: absolute;
  right: 0.55rem;
  bottom: -0.55rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .review-card {
  background: #fff;
  box-shadow:
    0 8px 22px rgba(40, 28, 18, 0.08),
    inset 0 0 0 1px rgba(90, 70, 50, 0.08);
}

html[data-theme="light"] .review-card::after {
  opacity: 0.09;
}

.review-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(212, 184, 150, 0.28);
}

html[data-theme="light"] .review-meta {
  border-bottom-color: rgba(154, 115, 80, 0.22);
}

.review-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-occasion {
  font-size: 0.72rem;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-stars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.15rem;
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--star);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  background: none;
  border: none;
}

.review-star {
  opacity: 0.28;
}

.review-star.is-filled {
  opacity: 1;
}

.review-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.reviews-all-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.reviews-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.reviews-all-link:hover {
  color: var(--accent);
}

/* Full reviews page grid */
.reviews-page-main {
  padding: 2.5rem 1.25rem 4rem;
}

.reviews-page-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.reviews-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.reviews-page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.reviews-full-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

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

@media (max-width: 560px) {
  .reviews-full-grid { grid-template-columns: 1fr; }
}

.reviews-full-grid .review-card {
  width: auto;
  height: auto;
  min-height: 0;
}

.reviews-full-grid .review-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.reviews-full-grid .review-meta-top .review-name {
  min-width: 0;
  flex: 1 1 auto;
}

.reviews-full-grid .review-date {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.reviews-full-grid .review-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.reviews-back-wrap {
  max-width: 1120px;
  margin: 0 auto 1.25rem;
}

.reviews-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.reviews-back-link:hover {
  color: var(--accent-strong);
}

/* ---------- Add-ons page ---------- */
body.addons-page {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addons-theme-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.addons-page-main {
  width: 100%;
  max-width: 820px;
  padding: 1.25rem;
  margin: 0 auto;
}

.addons-page-header {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.addons-page-header h1 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

html[data-theme="dark"] .addons-page-header h1,
html:not([data-theme]) .addons-page-header h1 {
  font-weight: 500;
  color: var(--accent-strong);
}

.addons-page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-family: var(--font-body);
}

.addons-table-section {
  max-width: 820px;
  margin: 0 auto;
}

.addons-table-wrap {
  margin-top: 0;
}

/* ---------- Contact / footer ---------- */
.site-footer {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  text-align: center;
}

.footer-icon {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0.35rem auto 0.35rem;
  object-fit: contain;
}

.footer-icon--on-light {
  display: none;
}

html[data-theme="light"] .footer-icon--on-dark {
  display: none;
}

html[data-theme="light"] .footer-icon--on-light {
  display: block;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.footer-lead {
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 12rem;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.footer-cta::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.footer-cta:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.footer-cta:hover::after {
  transform: translateX(3px);
}

.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.contact-btn:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-phones a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-phones a:hover {
  color: var(--accent-strong);
}

.footer-phones-sep {
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  opacity: 0.85;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.45;
}

/* ---------- Templates page shell ---------- */
.templates-page {
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
  min-height: calc(100vh - 64px);
}

.templates-page-header {
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 40rem;
}

.templates-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.templates-page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.categories-view.is-hidden { display: none; }
.inner-section { display: none; }
.inner-section.is-visible { display: block; }

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .group-grid { grid-template-columns: 1fr; }
}

.group-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.group-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.group-card:hover .group-card-media { transform: scale(1.05); }

.group-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 11, 0.2) 0%, rgba(10, 9, 11, 0.82) 100%);
}

.group-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.6rem 1.4rem;
  color: #f5f0ea;
}

.group-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.group-card-desc {
  font-size: 0.92rem;
  color: rgba(245, 240, 234, 0.78);
}

.group-card--wedding .group-card-media {
  background-image: url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?auto=format&fit=crop&w=1400&q=80');
}

.group-card--wishes .group-card-media {
  background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5393670?auto=format&fit=crop&w=1400&q=80');
}

/* ---------- Inner gallery toolbar ---------- */
.inner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.inner-toolbar .back-link { margin-bottom: 0; flex-shrink: 0; }

.gallery-section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
  max-width: 720px;
}

.subcategory-chips[hidden] { display: none !important; }

.chip {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.sort-control {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 5;
}

.sort-control.is-visible { display: inline-flex; }

.sort-control .sort-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sort-dropdown { position: relative; }

.sort-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.sort-trigger:hover,
.sort-dropdown.is-open .sort-trigger {
  border-color: var(--border-strong);
  background: var(--bg-soft-hover);
}

.sort-trigger-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--accent);
  transition: transform 0.15s ease;
}

.sort-dropdown.is-open .sort-trigger-caret { transform: rotate(180deg); }

.sort-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.sort-dropdown.is-open .sort-menu { display: block; }

.sort-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.sort-option:hover,
.sort-option:focus {
  background: var(--accent-soft);
  outline: none;
}

.sort-option.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@media (max-width: 768px) {
  .sort-control .sort-label { display: none; }
}

/* ---------- Template cards ---------- */
.templates-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0.5rem auto 0;
}

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

@media (max-width: 480px) {
  .templates-row { grid-template-columns: 1fr; }
}

/* ---------- Templates loading shimmer ---------- */
.templates-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0.5rem auto 0;
}

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

@media (max-width: 480px) {
  .templates-skeleton { grid-template-columns: 1fr; }
}

.templates-skeleton[hidden],
.templates-row[hidden] {
  display: none !important;
}

.template-skeleton-card {
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.template-skeleton-preview {
  aspect-ratio: 16 / 10;
  min-height: clamp(11.5rem, 48vw, 15.5rem);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.template-skeleton-body {
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.template-skeleton-line,
.template-skeleton-btn,
.template-skeleton-preview::after {
  background: linear-gradient(
    90deg,
    rgba(127, 127, 127, 0.12) 0%,
    rgba(127, 127, 127, 0.28) 45%,
    rgba(127, 127, 127, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: templateShimmer 1.15s ease-in-out infinite;
}

.template-skeleton-preview::after {
  content: '';
  position: absolute;
  inset: 0;
}

.template-skeleton-line {
  height: 0.72rem;
  border-radius: 999px;
  width: 100%;
}

.template-skeleton-line--title {
  height: 0.95rem;
  width: 62%;
}

.template-skeleton-line--short {
  width: 40%;
}

.template-skeleton-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.template-skeleton-btn {
  height: 2.1rem;
  border-radius: 999px;
  flex: 1;
}

@keyframes templateShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .template-skeleton-line,
  .template-skeleton-btn,
  .template-skeleton-preview::after {
    animation: none;
  }
}

.template-card {
  --template-card-radius: 1.15rem;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(
      155deg,
      rgba(216, 184, 150, 0.55) 0%,
      rgba(216, 184, 150, 0.12) 42%,
      rgba(255, 255, 255, 0.08) 100%
    ) border-box;
  border: 1px solid transparent;
  border-radius: var(--template-card-radius);
  overflow: visible;
  transition: box-shadow 0.28s ease, transform 0.22s ease, background 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 36px rgba(0, 0, 0, 0.26),
    0 4px 12px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .template-card {
  background:
    linear-gradient(180deg, #fffefb 0%, #f8f3eb 100%) padding-box,
    linear-gradient(
      155deg,
      rgba(154, 115, 80, 0.42) 0%,
      rgba(154, 115, 80, 0.12) 48%,
      rgba(255, 255, 255, 0.7) 100%
    ) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(60, 40, 22, 0.08),
    0 3px 10px rgba(60, 40, 22, 0.05);
}

.template-card:hover {
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(
      155deg,
      rgba(216, 184, 150, 0.75) 0%,
      rgba(216, 184, 150, 0.22) 45%,
      rgba(255, 255, 255, 0.12) 100%
    ) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 46px rgba(0, 0, 0, 0.32),
    0 8px 18px rgba(196, 164, 132, 0.12);
  transform: translateY(-3px);
}

html[data-theme="light"] .template-card:hover {
  background:
    linear-gradient(180deg, #fffefb 0%, #f8f3eb 100%) padding-box,
    linear-gradient(
      155deg,
      rgba(154, 115, 80, 0.58) 0%,
      rgba(154, 115, 80, 0.18) 48%,
      rgba(255, 255, 255, 0.8) 100%
    ) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 40px rgba(60, 40, 22, 0.12),
    0 6px 16px rgba(154, 115, 80, 0.1);
}

.template-card .video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(145deg, rgba(60, 48, 40, 0.5) 0%, rgba(24, 20, 22, 0.9) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.template-card .video-new-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  pointer-events: none;
  flex-shrink: 0;
}

.templates-row.is-compact .template-card .video-new-badge {
  position: static;
  top: auto;
  right: auto;
  padding: 0.12rem 0.5rem;
  font-size: 0.62rem;
}

.template-card .video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
              radial-gradient(circle at 70% 70%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.15s;
}

.template-card .video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.template-card .video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.template-card .video-play-icon {
  width: 0;
  height: 0;
  border-left: 14px solid #1a1410;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 2px;
}

.template-card .video-wrap video::-webkit-media-controls-mute-button,
.template-card .video-wrap video::-webkit-media-controls-volume-slider,
.template-card .video-wrap video::-webkit-media-controls-fullscreen-button,
.template-card .video-wrap video::-webkit-media-controls-picture-in-picture-button,
.template-card .video-wrap video::-webkit-media-controls-playback-rate-button {
  display: none !important;
}

.template-card .video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.template-card .video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}

.template-card .card-info {
  padding: 1.1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0 0 calc(var(--template-card-radius, 1.15rem) - 1px) calc(var(--template-card-radius, 1.15rem) - 1px);
  background: transparent;
}

.template-card .card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.template-card .card-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.template-card .card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.template-card .card-orders {
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.template-card .card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.template-card .card-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-strong);
  min-width: 0;
}

.template-card .card-price-original {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.template-card .card-price-current {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
}

.template-card .card-price-pair {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.template-card .card-price-pair-std,
.template-card .card-price-pair-prem {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  white-space: nowrap;
}

.template-card .card-price-pair-sep {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.85em;
}

.template-card .card-price-pair-prem,
.template-card .card-price-pair-prem .card-price-current {
  color: var(--price-premium);
}

.template-card .card-price-prem-mark {
  display: inline-flex;
  align-items: center;
  color: inherit;
  margin-right: 0.12rem;
  transform: translateY(0.08em);
}

.template-card .card-price-prem-mark svg {
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
  display: block;
}

.template-card .card-offer-ends {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0 0.1rem;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--border);
}

.template-card .card-offer-ends-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.template-card .card-offer-ends-timer {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  white-space: nowrap;
}

.template-card .card-live-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.template-card .card-live-demo-icon {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.template-card .card-live-demo-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.template-card .card-live-demo:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

.template-card .card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.template-card .view-more-btn,
.template-card .order-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.template-card .order-now-btn {
  min-height: 2.4rem;
  line-height: 1;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
}

.template-card .view-more-btn {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.template-card .order-now-btn {
  background: var(--wa-green);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.15);
}

.template-card .view-more-btn:hover,
.template-card .order-now-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.template-card .order-now-btn:hover {
  background: var(--wa-green-hover);
}

.template-card .btn-arrow { margin-left: 6px; font-size: 0.95em; }

.template-card .btn-icon-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 0;
}

.template-card .btn-icon-wa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.template-card .btn-label {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .template-card .video-play-button { display: none !important; }
}

#inner-back-link { display: none; }
body.initial-category-view .categories-view { display: none !important; }
body.initial-category-view .inner-section { display: block !important; }
body.initial-category-view #inner-back-link { display: inline-flex !important; }

/* ---------- Detail page ---------- */
.detail-page {
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
}

.detail-container {
  max-width: 960px;
  margin: 0 auto;
}

.detail-page .back-link {
  margin: 1rem 0 1.25rem;
}

.detail-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.detail-header .detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0;
}

.detail-new-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text-primary);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

.detail-new-badge[hidden] {
  display: none !important;
}

.detail-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.detail-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.detail-main > div:first-child {
  flex: 1 1 58%;
  min-width: 0;
}

@media (max-width: 768px) {
  .detail-main { flex-direction: column; }
  .detail-main > div:first-child { flex: none; }
}

.video-big {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  background: linear-gradient(145deg, rgba(60, 48, 40, 0.5) 0%, rgba(24, 20, 22, 0.9) 100%);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 769px) {
  .video-big { padding-bottom: 42%; }
}

.video-order-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.video-big video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  object-position: center;
}

.video-big .video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
              radial-gradient(circle at 70% 70%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.15s;
}

.video-big .video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-big .video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .video-big .video-play-button { display: none !important; }
}

.video-big .video-play-icon {
  width: 0;
  height: 0;
  border-left: 16px solid #1a1410;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 2px;
}

.video-big video::-webkit-media-controls-mute-button,
.video-big video::-webkit-media-controls-volume-slider,
.video-big video::-webkit-media-controls-fullscreen-button,
.video-big video::-webkit-media-controls-picture-in-picture-button,
.video-big video::-webkit-media-controls-playback-rate-button {
  display: none !important;
}

.video-big .no-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  flex: 0 0 40%;
  min-width: 280px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.detail-premium-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.detail-premium-note[hidden] {
  display: none;
}

.detail-premium-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--price-premium);
}

.detail-premium-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.detail-premium-caption {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--text-secondary);
}

.detail-price-wrap {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  min-width: 6.5rem;
}

.detail-price-wrap.is-loading .detail-price-line {
  min-height: 1.2em;
  display: flex;
  align-items: center;
}

.detail-price-skeleton {
  display: inline-block;
  width: 4.5rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(127, 127, 127, 0.18) 0%,
    rgba(127, 127, 127, 0.32) 50%,
    rgba(127, 127, 127, 0.18) 100%
  );
  background-size: 200% 100%;
  animation: detailPricePulse 1.1s ease-in-out infinite;
}

@keyframes detailPricePulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.detail-price-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.12rem;
}

.detail-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin: 0;
}

.detail-price-original {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price-current {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.detail-price-line:has(.detail-pricing-tier) {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

.detail-pricing-tier {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  width: 100%;
}

.detail-pricing-tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  min-width: 4.6rem;
  opacity: 0.92;
}

.detail-pricing-tier-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#detail-pricing-premium .detail-pricing-tier-label,
#detail-pricing-premium .detail-pricing-tier-line,
#detail-pricing-premium .detail-price-current {
  color: var(--price-premium);
}

#detail-pricing-premium .detail-price-original {
  color: var(--text-muted);
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.detail-section-hint {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
  opacity: 0.9;
}

.detail-details-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-details-list li { margin-bottom: 0.35rem; }

.order-now-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.detail-page .order-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.detail-page .order-now-btn[hidden],
.detail-page .detail-live-demo-btn[hidden] {
  display: none !important;
}

.detail-page .order-now-btn:hover {
  transform: scale(1.03);
  background: var(--wa-green-hover);
  box-shadow: 0 4px 24px rgba(31, 140, 69, 0.4);
}

.detail-page .order-now-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.check-template-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  margin-bottom: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.14s;
}

.check-template-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.check-template-icon {
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(1px);
}

.detail-not-found {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

#detail-back-link,
#detail-not-found,
#detail-content {
  display: none;
}

#detail-back-link.is-visible { display: inline-flex; }
#detail-not-found.is-visible { display: block; }
#detail-content.is-visible { display: block; }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 14vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

/* ---------- Phone mock (iPhone frame) ---------- */
.phone-mock {
  --phone-w: 220px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 431 / 800;
  flex-shrink: 0;
  margin: 0 auto;
}

.phone-mock--lg { --phone-w: min(280px, 72vw); }
.phone-mock--sm { --phone-w: 150px; }
.phone-mock--xs { --phone-w: 72px; }

.phone-mock-screen {
  position: absolute;
  /* Wider horizontal fill inside iphone_frame.png */
  top: 1.15%;
  left: 2.1%;
  right: 2.1%;
  bottom: 1.15%;
  border-radius: 12% / 6%;
  overflow: hidden;
  background: #000;
  z-index: 1;
  padding: 0;
  margin: 0;
}

.phone-mock-screen img,
.phone-mock-screen iframe,
.phone-mock-screen video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  background: #000;
}

.phone-mock-screen iframe {
  object-fit: unset;
  /* Scale mobile invite to phone width */
  width: 100%;
  height: 100%;
  transform-origin: top left;
}

.phone-mock-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.phone-mock-fullscreen {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.phone-mock-fullscreen:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* ---------- Feature chips ---------- */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.feature-chip {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

/* ---------- Dual preview (gallery cards) ---------- */
.card-preview-duo {
  --preview-frame-w: clamp(72px, 36%, 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 3.5vw, 1.35rem);
  padding: clamp(0.85rem, 3vw, 1.25rem) clamp(0.45rem, 2.5vw, 0.85rem) clamp(0.75rem, 2.5vw, 1.1rem);
  background: var(--bg-soft);
  min-height: clamp(11.5rem, 48vw, 15.5rem);
  position: relative;
  overflow: visible;
  border-radius: calc(var(--template-card-radius, 1.15rem) - 1px) calc(var(--template-card-radius, 1.15rem) - 1px) 0 0;
}

.card-preview-duo.is-phone-only {
  --preview-frame-w: clamp(88px, 42%, 148px);
}

.card-preview-duo .phone-mock--sm {
  --phone-w: var(--preview-frame-w);
  width: var(--phone-w);
  flex-shrink: 0;
  min-width: 0;
  margin: 0;
  align-self: center;
  position: relative;
  top: 0;
  cursor: pointer;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.card-preview-duo .phone-mock-screen {
  cursor: pointer;
}

.card-preview-duo .phone-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: clamp(28px, 28%, 36px);
  height: clamp(28px, 28%, 36px);
  border: none;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card-preview-duo .phone-video-play-icon {
  width: 0;
  height: 0;
  border-left: 10px solid #1a1410;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}

.card-preview-duo .phone-mock.is-playing .phone-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.card-preview-envelope {
  width: var(--preview-frame-w);
  max-width: none;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 431 / 800;
  height: auto;
  flex-shrink: 0;
  min-width: 0;
  align-self: center;
  position: relative;
  top: 0;
  background: var(--bg-elevated);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="light"] .card-preview-envelope {
  box-shadow:
    0 10px 20px rgba(60, 40, 22, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.card-preview-envelope img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 560px) {
  .card-preview-duo {
    --preview-frame-w: clamp(68px, 34%, 108px);
    min-height: clamp(10.5rem, 58vw, 13.5rem);
    gap: 0.7rem;
  }
}

.template-card .card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* View mode toolbar */
.view-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .view-mode-control {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.view-mode-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.view-mode-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.view-mode-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.view-mode-btn:not(.is-active):hover {
  color: var(--text-primary);
  background: var(--bg-soft-hover);
}

@media (max-width: 560px) {
  .view-mode-btn {
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .view-mode-icon {
    width: 13px;
    height: 13px;
  }
}

.inner-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .inner-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back sort"
      "view view";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.85rem;
  }

  .inner-toolbar .back-link {
    grid-area: back;
    justify-self: start;
  }

  .inner-toolbar-right {
    display: contents;
  }

  .inner-toolbar .view-mode-control {
    grid-area: view;
    justify-self: center;
    width: max-content;
    max-width: 100%;
  }

  .inner-toolbar .sort-control {
    grid-area: sort;
    margin-left: 0;
    justify-self: end;
  }

  .inner-toolbar .sort-control.is-visible {
    display: inline-flex;
  }
}

/* Gallery view: carousel */
.templates-row.is-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1.25rem;
  max-width: none;
}

.templates-row.is-carousel .template-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: center;
}

/* Gallery view: compact / list */
.templates-row.is-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: none;
}

.templates-row.is-compact .template-card {
  flex-direction: row;
  align-items: stretch;
  transform: none;
  min-width: 0;
  overflow: hidden;
}

.templates-row.is-compact .template-card:hover {
  transform: none;
}

.templates-row.is-compact .card-preview-duo {
  --preview-frame-w: clamp(48px, 9vw, 64px);
  width: auto;
  min-height: 0;
  flex-shrink: 0;
  padding: 0.55rem 0.45rem;
  gap: 0.55rem;
  border-radius: calc(var(--template-card-radius, 1.15rem) - 1px) 0 0 calc(var(--template-card-radius, 1.15rem) - 1px);
}

.templates-row.is-compact .card-info {
  padding: 0.75rem 0.85rem;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.templates-row.is-compact .card-name {
  overflow-wrap: break-word;
  word-break: normal;
}

.templates-row.is-compact .card-price {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.templates-row.is-compact .card-offer-ends {
  align-items: center;
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.templates-row.is-compact .card-desc {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.templates-row.is-compact .card-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-top: 0.45rem;
}

.templates-row.is-compact .view-more-btn,
.templates-row.is-compact .order-now-btn {
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.45rem 0.5rem;
}

.templates-row.is-compact .view-more-btn {
  font-size: 0.8rem;
}

.templates-row.is-compact .order-now-btn {
  min-height: 2.4rem;
  font-size: 0.85rem;
}

@media (min-width: 901px) {
  .templates-row.is-compact .card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .templates-row.is-compact .view-more-btn,
  .templates-row.is-compact .order-now-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: max-content;
  }
}

@media (max-width: 900px) {
  .templates-row.is-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .templates-row.is-compact {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .templates-row.is-compact .template-card {
    flex-direction: row;
  }

  .templates-row.is-compact .card-preview-duo {
    --preview-frame-w: clamp(66px, 20vw, 88px);
    width: auto;
    min-height: 0;
    padding: 0.55rem 0.45rem;
    gap: 0;
    border-radius: calc(var(--template-card-radius, 1.15rem) - 1px) 0 0 calc(var(--template-card-radius, 1.15rem) - 1px);
  }

  .templates-row.is-compact .card-preview-envelope {
    display: none;
  }

  .templates-row.is-compact .card-info {
    padding: 0.7rem 0.75rem;
  }

  .templates-row.is-compact .card-actions {
    gap: 0.4rem;
  }
}

/* ---------- Detail layout (phone + meta) ---------- */
.detail-demo-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-phone-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.detail-phone-col .phone-mock--lg {
  --phone-w: min(200px, 42vw);
  cursor: pointer;
}

@media (min-width: 1025px) {
  .detail-phone-col .phone-mock--lg {
    --phone-w: 200px;
  }
}

.detail-phone-col .phone-video-play,
.detail-phone-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.detail-phone-col .phone-video-play-icon {
  width: 0;
  height: 0;
  border-left: 14px solid #1a1410;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.detail-phone-col .phone-mock.is-playing .phone-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.detail-demo-side {
  width: 100%;
}

.detail-needs {
  margin-top: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  overflow: hidden;
}

.detail-needs-toggle {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.detail-needs-title {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.detail-needs-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--accent-strong);
  border-bottom: 1.5px solid var(--accent-strong);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

.detail-needs.is-open .detail-needs-chevron {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.detail-needs-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.detail-needs.is-open .detail-needs-panel {
  grid-template-rows: 1fr;
}

.detail-needs-body {
  overflow: hidden;
  margin: 0;
  padding: 0 1rem 0;
  border-top: 1px solid transparent;
  transition: border-color 0.25s ease, padding 0.32s ease;
}

.detail-needs.is-open .detail-needs-body {
  padding: 0.75rem 1rem 1rem;
  border-top-color: var(--border);
}

.detail-needs-note {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-style: italic;
}

.detail-needs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-needs-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.detail-needs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.detail-order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-width: 0;
}

.detail-order-row .order-now-btn {
  flex: 0 0 auto;
  width: auto;
}

.detail-live-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.detail-live-demo-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.detail-live-demo-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.detail-live-demo-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.detail-actions .order-now-btn {
  margin: 0;
}

@media (max-width: 1024px) {
  .detail-actions {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .detail-order-row {
    flex: 1 1 100%;
    width: 100%;
  }

  .detail-actions .detail-live-demo-btn,
  .detail-actions .order-now-btn {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-height: 2.85rem;
    padding: 0.65rem 0.55rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .detail-actions .order-now-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
  }

  .detail-actions .detail-live-demo-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
  }
}

.detail-premium-note + .detail-description {
  margin-top: 0.95rem;
}

.detail-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
}

.detail-orders-inline {
  display: none;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  white-space: nowrap;
}

.detail-orders-inline.is-visible {
  display: inline-flex;
}

@media (max-width: 1024px) {
  .detail-demo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
  }

  .detail-phone-col {
    padding-bottom: 1.35rem;
  }

  .detail-demo-side {
    width: 100%;
    padding-top: 1.5rem;
    position: relative;
  }

  .detail-demo-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 96%);
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--border) 8%,
      var(--border-strong) 50%,
      var(--border) 92%,
      transparent 100%
    );
    box-shadow: 0 0 12px rgba(212, 184, 150, 0.12);
  }

  .detail-demo-side::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
    box-shadow: 0 0 0 3px var(--bg-elevated);
  }
}

/* ---------- Home: wedding samples carousel ---------- */
.wedding-samples {
  margin-top: 2rem;
  overflow-anchor: none;
}

.wedding-samples.is-loading .samples-track {
  display: none !important;
}

.wedding-samples:not(.is-loading) .samples-skeleton {
  display: none !important;
}

.samples-skeleton {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  padding: 0.75rem 0.15rem 1.5rem;
  scrollbar-width: none;
}

.samples-skeleton::-webkit-scrollbar {
  display: none;
}

.sample-card--skeleton {
  pointer-events: none;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sample-card--skeleton:hover {
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .sample-card--skeleton:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(60, 40, 22, 0.1),
    0 4px 12px rgba(60, 40, 22, 0.06);
}

.sample-skeleton-duo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-height: 11.5rem;
  padding: 0.35rem 0.15rem 0.2rem;
}

.sample-skeleton-phone,
.sample-skeleton-envelope,
.sample-skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(127, 127, 127, 0.12) 0%,
    rgba(127, 127, 127, 0.28) 45%,
    rgba(127, 127, 127, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: templateShimmer 1.15s ease-in-out infinite;
}

.sample-skeleton-phone {
  width: 4.65rem;
  height: 9.6rem;
  border-radius: 0.85rem;
  flex: 0 0 auto;
}

.sample-skeleton-envelope {
  width: 6.4rem;
  height: 7.6rem;
  border-radius: 0.55rem;
  flex: 0 0 auto;
}

.sample-skeleton-line {
  display: block;
  height: 0.72rem;
  border-radius: 999px;
}

.sample-skeleton-line--title {
  width: 68%;
  height: 0.9rem;
  margin-top: 0.15rem;
}

.sample-skeleton-line--price {
  width: 38%;
}

@media (prefers-reduced-motion: reduce) {
  .sample-skeleton-phone,
  .sample-skeleton-envelope,
  .sample-skeleton-line {
    animation: none;
  }
}

.samples-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.15rem 1.5rem;
  overflow-anchor: none;
}

.samples-track.is-updating {
  scroll-snap-type: none;
}

.sample-card {
  --sample-radius: 1.85rem;
  flex: 0 0 min(270px, 78vw);
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  border-radius: var(--sample-radius);
  padding: 0.95rem 0.9rem 1.2rem;
  overflow-anchor: none;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(
      155deg,
      rgba(216, 184, 150, 0.55) 0%,
      rgba(216, 184, 150, 0.08) 42%,
      rgba(255, 255, 255, 0.06) 100%
    ) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: visible;
}

html[data-theme="light"] .sample-card {
  background:
    linear-gradient(180deg, #fffefb 0%, #f7f1e8 100%) padding-box,
    linear-gradient(
      155deg,
      rgba(154, 115, 80, 0.45) 0%,
      rgba(154, 115, 80, 0.1) 48%,
      rgba(255, 255, 255, 0.65) 100%
    ) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(60, 40, 22, 0.1),
    0 4px 12px rgba(60, 40, 22, 0.06);
}

.sample-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(216, 184, 150, 0.14), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(216, 184, 150, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .sample-card::before {
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(154, 115, 80, 0.1), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(154, 115, 80, 0.06), transparent 50%);
}

.sample-card-body {
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(196, 164, 132, 0.12);
}

html[data-theme="light"] .sample-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 44px rgba(60, 40, 22, 0.14),
    0 8px 18px rgba(154, 115, 80, 0.1);
}

@media (max-width: 768px) {
  .samples-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0.4rem 0 1.1rem;
  }

  .sample-card {
    --sample-radius: 1.45rem;
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.6rem 0.95rem;
  }

  .sample-preview-duo {
    padding: 0.85rem 0.4rem 0.85rem;
    border-radius: 1.1rem;
  }

  .sample-preview-duo .phone-mock--sm {
    --phone-w: clamp(64px, 34%, 92px);
    top: -0.35rem;
  }

  .sample-preview-duo .card-preview-envelope {
    width: clamp(56px, 34%, 78px);
    top: 0.55rem;
    border-radius: 4px;
  }

  .sample-card-name {
    font-size: 0.98rem;
  }

  .sample-card-price {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }
}

.sample-card-body.is-out {
  opacity: 0;
  transition: opacity 0.38s ease;
}

.sample-card-body.is-enter {
  animation: sampleCardFade 0.45s ease both;
}

@keyframes sampleCardFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sample-preview-duo {
  padding: 1.15rem 0.55rem 1.1rem;
  min-height: clamp(12.5rem, 52vw, 15.25rem);
  border-radius: 1.35rem;
  overflow: visible;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .sample-preview-duo {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sample-preview-duo .phone-mock--sm {
  --phone-w: clamp(72px, 42%, 112px);
  width: var(--phone-w);
  flex-shrink: 1;
  min-width: 0;
  align-self: flex-start;
  position: relative;
  top: -0.55rem;
  transform-origin: center center;
  transform: scale(0.9);
  will-change: transform;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.sample-preview-duo .card-preview-envelope {
  width: clamp(64px, 36%, 100px);
  max-width: none;
  aspect-ratio: 9 / 16;
  height: auto;
  flex-shrink: 1;
  min-width: 0;
  align-self: flex-end;
  position: relative;
  top: 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform-origin: center center;
  transform: scale(0.9);
  will-change: transform;
}

html[data-theme="light"] .sample-preview-duo .card-preview-envelope {
  box-shadow:
    0 10px 20px rgba(60, 40, 22, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.sample-preview-duo .phone-mock--sm.is-zooming,
.sample-preview-duo .card-preview-envelope.is-zooming {
  animation: sampleFrameZoom 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sampleFrameZoom {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sample-card-body,
  .sample-card-body.is-out,
  .sample-card-body.is-enter {
    transition: none;
    animation: none;
    opacity: 1;
  }

  .sample-preview-duo .phone-mock--sm,
  .sample-preview-duo .card-preview-envelope,
  .sample-preview-duo .phone-mock--sm.is-zooming,
  .sample-preview-duo .card-preview-envelope.is-zooming {
    animation: none;
    transform: none;
  }
}

.sample-card-meta {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.sample-card-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0;
  max-width: 16ch;
}

.sample-card-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
}

.samples-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Comparison table (desktop only) ---------- */
.compare-section {
  display: none;
}

@media (min-width: 769px) {
  .compare-section {
    display: block;
  }
}

.compare-section-inner {
  text-align: center;
  max-width: 820px;
}

.compare-eyebrow {
  text-align: center;
}

.compare-title {
  text-align: center;
  margin-bottom: 0.85rem;
}

.compare-title-rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: var(--accent);
  opacity: 0.85;
}

.compare-wrap {
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 184, 150, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  text-align: left;
}

html[data-theme="light"] .compare-wrap {
  background: #f7f1e8;
  border-color: #e4d5be;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid rgba(212, 184, 150, 0.28);
  border-right: 1px solid rgba(212, 184, 150, 0.28);
  font-size: 1.02rem;
  vertical-align: middle;
}

html[data-theme="light"] .compare-table th,
html[data-theme="light"] .compare-table td {
  border-bottom-color: #e8dcc8;
  border-right-color: #e8dcc8;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  width: 42%;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
}

.compare-table .col-paper,
.compare-table .col-digital {
  text-align: center;
  width: 29%;
}

.compare-table .muted {
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.compare-table .highlight {
  color: var(--accent-strong);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

body.addons-page .addons-table th,
body.addons-page .addons-table td,
body.addons-page .addons-table th:first-child,
body.addons-page .addons-table td:first-child,
body.addons-page .addons-table .highlight {
  font-family: var(--font-body);
}

body.addons-page .addons-table th {
  font-size: 0.98rem;
  font-weight: 600;
}

body.addons-page .addons-table th:first-child,
body.addons-page .addons-table td:first-child {
  width: auto;
}

body.addons-page .addons-table th.col-price,
body.addons-page .addons-table .col-price {
  width: 4.75rem;
  padding-left: 0.65rem;
  padding-right: 1rem;
  font-size: 0.92rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  body.addons-page .addons-table th.col-price,
  body.addons-page .addons-table .col-price {
    font-size: 1.02rem;
  }
}

.compare-check {
  display: inline-block;
  color: #2f9d5c;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.compare-x {
  display: inline-block;
  color: #c45b5b;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
}

html[data-theme="light"] .compare-table .muted {
  color: rgba(28, 22, 18, 0.45);
}

html[data-theme="light"] .compare-check {
  color: #2a8f52;
}

html[data-theme="light"] .compare-x {
  color: #b84e4e;
}

/* ---------- What's included ---------- */
#included .section-eyebrow,
#included .section-title {
  text-align: center;
}

.include-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(212, 184, 150, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .include-panel {
  background: #f3ebe1;
  border-color: #e4d5be;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .include-grid { grid-template-columns: repeat(3, 1fr); }
}

.include-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 7.75rem;
  padding: 1.25rem 0.8rem 1.15rem;
  text-align: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(212, 184, 150, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 184, 150, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.include-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.include-card::after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(212, 184, 150, 0.16);
  pointer-events: none;
}

html[data-theme="light"] .include-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(154, 115, 80, 0.1), transparent 58%),
    linear-gradient(180deg, #fffdf9, #fff);
  border-color: rgba(90, 70, 50, 0.1);
  box-shadow:
    0 1px 2px rgba(40, 28, 18, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .include-card::after {
  border-color: rgba(154, 115, 80, 0.14);
}

.include-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 184, 150, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .include-card:hover {
  border-color: rgba(154, 115, 80, 0.28);
  box-shadow: 0 10px 22px rgba(40, 28, 18, 0.08);
}

.include-icon-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(212, 184, 150, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .include-icon-wrap {
  background: rgba(154, 115, 80, 0.1);
  border-color: rgba(154, 115, 80, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.include-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-size: 1.45rem;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  -webkit-user-select: none;
  user-select: none;
}

.include-icon--wa {
  font-size: 1.3rem;
}

.include-icon--wa svg {
  display: block;
}

.include-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

html[data-theme="light"] .include-card h3 {
  color: #4a3428;
}

html[data-theme="light"] .include-icon {
  color: #5c3f2e;
}

/* Mobile: compact icon-left list (must come after base card styles) */
@media (max-width: 768px) {
  .include-panel {
    margin-top: 1.25rem;
    padding: 0.4rem 0.55rem;
    border-radius: 16px;
  }

  .include-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .include-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    min-height: 0;
    padding: 0.7rem 0.75rem;
    text-align: left;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 184, 150, 0.14);
    box-shadow: none;
  }

  .include-card::before,
  .include-card::after {
    display: none;
  }

  .include-card:hover {
    transform: none;
    box-shadow: none;
  }

  html[data-theme="light"] .include-card {
    background: #fff;
    border-color: rgba(90, 70, 50, 0.08);
    box-shadow: none;
  }

  html[data-theme="light"] .include-card:hover {
    box-shadow: none;
  }

  .include-icon-wrap {
    flex-shrink: 0;
    width: 2.05rem;
    height: 2.05rem;
  }

  .include-icon {
    font-size: 1.1rem;
  }

  .include-icon--wa {
    font-size: 1rem;
  }

  .include-card h3 {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: left;
  }
}

/* ---------- Process flowchart ---------- */
.process-list {
  list-style: none;
  margin: 2rem auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 3.4rem;
  text-align: center;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 184, 150, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.process-step:not(:last-child) {
  margin-bottom: 1.65rem;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 1.5px;
  height: calc(1.65rem + 3px);
  background: var(--accent);
  transform: translateX(-50%);
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
}

html[data-theme="light"] .process-step {
  background: #fff;
  border-color: rgba(154, 115, 80, 0.28);
  box-shadow: 0 1px 2px rgba(40, 28, 18, 0.04);
}

.process-num {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 184, 150, 0.4);
}

html[data-theme="light"] .process-num {
  border-color: rgba(154, 115, 80, 0.28);
}

.process-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}

.process-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---------- FAQ ---------- */
.faq-section-inner {
  text-align: center;
}

.faq-eyebrow {
  text-align: center;
}

.faq-title {
  text-align: center;
  margin-bottom: 0.85rem;
}

.faq-title-rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: var(--accent);
  opacity: 0.85;
}

.faq-list {
  margin: 0 auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

@media (min-width: 900px) {
  .faq-list {
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
  }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 500;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  -webkit-user-select: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.15rem;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.35s ease, margin 0.35s ease;
}

.faq-item.is-open summary::after {
  margin-top: 0.15rem;
  transform: rotate(225deg);
}

.faq-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-panel-inner {
  padding: 0 1.15rem 1.1rem;
}

.faq-item .faq-answer {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-center .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-center {
  text-align: center;
}

.section-center .section-eyebrow,
.section-center .section-title {
  text-align: center;
}

/* ---------- Curved mobile tap ripple (site pages only) ---------- */
body.site-body {
  -webkit-tap-highlight-color: transparent;
}

body.site-body a,
body.site-body button,
body.site-body summary,
body.site-body [role="button"],
body.site-body input,
body.site-body label,
body.site-body .chip,
body.site-body .sort-trigger {
  -webkit-tap-highlight-color: transparent;
}

body.site-body .mb-ripple-host {
  position: relative;
}

body.site-body .mb-ripple-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

body.site-body .mb-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  opacity: 0.28;
  pointer-events: none;
  will-change: transform, opacity;
  animation: mbRippleExpand 0.55s ease-out forwards;
}

@keyframes mbRippleExpand {
  0% {
    transform: scale(0);
    opacity: 0.28;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-body .mb-ripple {
    animation-duration: 0.01ms;
    opacity: 0;
  }
}

/* ---------- Order tier chooser modal ---------- */
body.order-tier-modal-open {
  overflow: hidden;
}

.order-tier-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.order-tier-modal[hidden] {
  display: none !important;
}

.order-tier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 11, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-theme="light"] .order-tier-modal-backdrop {
  background: rgba(40, 30, 20, 0.45);
}

.order-tier-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.order-tier-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.order-tier-modal-close:hover,
.order-tier-modal-close:focus-visible {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.order-tier-modal-title {
  margin: 0 1.75rem 0.25rem 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.order-tier-modal-sub {
  margin: 0 0 1.05rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.order-tier-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg-soft, var(--bg-elevated));
}

.order-tier-card--premium {
  border-color: rgba(201, 154, 74, 0.55);
  background:
    linear-gradient(165deg, rgba(201, 154, 74, 0.12), transparent 55%),
    var(--bg-soft, var(--bg-elevated));
}

.order-tier-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-tier-card-name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-tier-prem-mark {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #C99A4A;
}

.order-tier-prem-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.order-tier-card-price {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.order-tier-card--premium .order-tier-card-price {
  font-size: 1.16rem;
  font-weight: 700;
  color: #C99A4A;
}

.order-tier-price-original {
  margin-right: 0.4rem;
  font-weight: 500;
  font-size: 0.85em;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.order-tier-price-current {
  color: var(--accent-strong, var(--text-primary));
}

.order-tier-card--premium .order-tier-price-current {
  color: #C99A4A;
}

.order-tier-includes {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-tier-includes .order-tier-plus {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
  color: #C99A4A;
}

.order-tier-features {
  margin: 0;
  padding: 0 0 0 1.05rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.order-tier-features li + li {
  margin-top: 0.28rem;
}

.order-tier-card--premium .order-tier-features {
  list-style: none;
  padding-left: 0;
}

.order-tier-card--premium .order-tier-features li {
  position: relative;
  padding-left: 1.15rem;
}

.order-tier-card--premium .order-tier-features li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.52em;
  width: 0.32rem;
  height: 0.32rem;
  background: #C99A4A;
  transform: rotate(45deg);
}

.order-tier-empty {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-style: italic;
}

.order-tier-card .order-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.order-tier-card .order-now-btn .btn-icon-wa {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.order-tier-card .order-now-btn .btn-icon-wa svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.order-tier-card .order-now-btn--standard {
  background: var(--wa-green);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.order-tier-card .order-now-btn--standard:hover {
  background: var(--wa-green-hover);
  transform: scale(1.015);
  box-shadow: 0 4px 16px rgba(31, 140, 69, 0.35);
}

.order-tier-card .order-now-btn--premium {
  background: #C99A4A;
  color: #fff;
  border-color: #C99A4A;
}

.order-tier-card .order-now-btn--premium:hover {
  background: #D8AE63;
  border-color: #D8AE63;
  transform: scale(1.015);
  box-shadow: 0 4px 16px rgba(201, 154, 74, 0.4);
}

@media (max-width: 420px) {
  .order-tier-modal-dialog {
    padding: 1.15rem 0.95rem 1.15rem;
  }

  .order-tier-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
