/*
 * InviteStory - Digital Wedding Card Templates Landing Page
 * Style: Luxury Boutique Directory (Alabaster Paper, Jewelry Engravings, Custom Checkmarks)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Alabaster & Warm Cream Color System */
  --color-bg-white: #ffffff;
  --color-bg-gray: #fbfbfa;
  /* Luxury warm-cream paper tone */
  --color-text-dark: #1c1c1e;
  /* Sophisticated slate charcoal black */
  --color-text-gray: #8e8e93;
  --color-border: rgba(0, 0, 0, 0.05);
  /* Thin, soft boundary outlines */
  --color-border-dark: #c7c7cc;

  /* Brand Jewelry Accents */
  --color-brand-forest: #0d2620;
  --color-brand-gold: #c09559;
  /* Metallic gold */
  --color-brand-gold-hover: #d2a96c;
  --color-brand-gold-light: #fbf8f2;
  --color-brand-gold-dark: #9f753c;

  /* Typography */
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Design Tokens */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-pill: 99px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.015);
  --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.35);

  /* Preview Modal */
  --color-modal-scrim: rgba(0, 0, 0, 0.55);
}

/* Reset system */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-bottom: 110px;
  /* clears the floating tier nav when jumping to anchors */
  scroll-padding-top: 80px;
  /* clears the sticky header when jumping to anchors */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-gray);
  color: var(--color-text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-header);
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

p {
  color: var(--color-text-gray);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Core Container */
.container {
  max-width: 960px;
  /* Condensed width for premium boutique look */
  margin: 0 auto;
  padding: 0 24px;
}

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

.gold-text {
  color: var(--color-brand-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 6px;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-gold {
  background-color: var(--color-brand-gold);
  color: var(--color-bg-white);
}

.btn-gold:hover {
  background-color: var(--color-brand-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 149, 89, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-dark);
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: var(--color-text-dark);
  transform: translateY(-1px);
}

/* Header bar */
.header-bar {
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Mobile: drop the sticky behavior so the header doesn't clip the
   top of cards in the catalogue section as the user scrolls past. */
@media (max-width: 900px) {
  .header-bar {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 26px;
  width: auto;
  max-width: 130px;
}

/* Hero Section */
.hero {
  padding: 36px 0 24px;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 300;
  /* Thin, elegant premium weight */
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title span {
  font-weight: 500;
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile hero compaction — tighter typography, narrower paragraph column */
@media (max-width: 600px) {
  .hero {
    padding: 18px 0 16px;
  }

  .hero-title {
    font-size: 2.4rem;
    /* ~38px — close to 42px target; line-height tight keeps it compact */
    line-height: 1.05;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 0.85rem;
    /* ~14px */
    max-width: 340px;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.15rem;
  }

  /* slightly smaller on very narrow phones */
}

/* Pricing Grid */
.pricing-section {
  padding: 30px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.pricing-card.featured {
  border: 1.5px solid var(--color-brand-gold);
  box-shadow: var(--shadow-premium);
}

.pricing-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-gray);
  margin-bottom: 8px;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--font-header);
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.pricing-card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.pricing-card-original-price {
  font-size: 1.05rem;
  font-weight: 400;
  font-family: var(--font-header);
  color: var(--color-text-gray);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.pricing-card-save-badge {
  display: inline-block;
  background-color: #fff0f0;
  color: #c0392b;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.02em;
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.pricing-card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-gray);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.pricing-card-cta {
  display: block;
  text-align: center;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-dark);
  padding: 9px;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.pricing-card.featured .pricing-card-cta {
  background-color: var(--color-brand-gold);
  color: var(--color-bg-white);
  border: none;
}

.pricing-card-cta:hover {
  transform: translateY(-1px);
  border-color: var(--color-text-dark);
  box-shadow: var(--shadow-subtle);
}

.pricing-card.featured .pricing-card-cta:hover {
  background-color: var(--color-brand-gold-hover);
  box-shadow: 0 4px 12px rgba(192, 149, 89, 0.15);
}

/* Catalogue Controls */
.catalogue-section {
  padding: 50px 0 120px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .catalogue-section {
    padding: 32px 0 120px;
  }
}

.controls-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 40px;
  background: none;
  border: none;
  box-shadow: none;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-subtle);
}

.search-input:focus {
  border-color: var(--color-brand-gold);
  background-color: var(--color-bg-white);
  box-shadow: 0 8px 30px rgba(192, 149, 89, 0.08);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-gray);
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-gray);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.clear-search-btn svg {
  width: 14px;
  height: 14px;
}

.filter-tags-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-tag {
  white-space: nowrap;
  padding: 6px 16px;
  background-color: var(--color-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-gray);
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-subtle);
}

.filter-tag:hover {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.filter-tag.active {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
  border-color: var(--color-text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   Tier Selector — Glass Radio Group (Uiverse.io by chase2k25)
   Adapted for 4 options (All / Classic / Premium / Luxury),
   rendered inside the floating mobile-app bottom nav bar.
   ===================================================== */

.tier-floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  pointer-events: none;
  width: fit-content;
  max-width: calc(100vw - 24px);
}

@media (max-width: 480px) {
  .tier-floating-nav {
    bottom: 14px;
    max-width: calc(100vw - 16px);
  }
  .glass-radio-group label {
    min-width: 64px;
    font-size: 0.72rem;
    padding: 0.42rem 0.7rem;
  }
}

.tier-floating-nav > .glass-radio-group {
  pointer-events: auto;
  /* Stronger drop shadow for the "floating above page" feel */
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.glass-radio-group {
  --bg: rgba(255, 255, 255, 0.92);
  --text: var(--color-text-gray);

  display: flex;
  position: relative;
  background: var(--bg);
  border-radius: 1.1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.07),
    0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px; /* creates the inset space around the glider */
}

.glass-radio-group input {
  display: none;
}

.glass-radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  font-size: 0.78rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.15px;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease-in-out;
  font-family: var(--font-body);
  white-space: nowrap;
  border-radius: 0.75rem; /* helps with hover hit area */
}

.glass-radio-group label:hover {
  color: var(--color-text-dark);
}

.glass-radio-group input:checked+label {
  color: #ffffff;
  font-weight: 600;
}

/* Hide meta sub-labels (prices / counts) to match clean pill design */
.tier-meta {
  display: none;
}

.glass-glider {
  position: absolute;
  /* Inset 4px on all sides — mirrors the container padding */
  top: 0;
  bottom: 0;
  /* Width = one quarter of the inner area (container padding already offsets us) */
  width: calc(25% - 0px);
  border-radius: 0.75rem;
  z-index: 1;
  /* Animate left for smooth inset sliding; keep background/shadow smooth */
  transition:
    left 0.45s cubic-bezier(0.37, 1.95, 0.66, 0.56),
    background 0.35s ease-in-out,
    box-shadow 0.35s ease-in-out;
}

/* ── Glider position: each tab occupies 25% of the group width ──
   left = (tab-index × 25%) of total width
   The 4px container padding is baked in — we start from 0 and the
   padding on .glass-radio-group provides the visual inset gap.      */

/* All — neutral dark graphite */
#glass-all:checked ~ .glass-glider {
  left: 0%;
  background: linear-gradient(145deg, #72727a, #4a4a50);
  box-shadow:
    0 2px 10px rgba(70, 70, 80, 0.30),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Classic — deep forest green */
#glass-classic:checked ~ .glass-glider {
  left: 25%;
  background: linear-gradient(145deg, #4c6a51, #2c4433);
  box-shadow:
    0 2px 10px rgba(60, 100, 70, 0.35),
    inset 0 1px 1px rgba(180, 220, 180, 0.20);
}

/* Premium — muted dusty rose / mauve */
#glass-premium:checked ~ .glass-glider {
  left: 50%;
  background: linear-gradient(145deg, #a26278, #7c4558);
  box-shadow:
    0 2px 10px rgba(150, 80, 110, 0.35),
    inset 0 1px 1px rgba(245, 200, 215, 0.20);
}

/* Luxury — warm antique gold */
#glass-luxury:checked ~ .glass-glider {
  left: 75%;
  background: linear-gradient(145deg, #c49a5e, #a07840);
  box-shadow:
    0 2px 10px rgba(185, 145, 75, 0.40),
    inset 0 1px 1px rgba(255, 235, 190, 0.25);
}

/* =====================================================
   Floating WhatsApp Button — bottom-right CTA
   ===================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999 !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 10px 28px rgba(37, 211, 102, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

.floating-whatsapp:active {
  transform: translateY(-1px) scale(0.96);
}

/* Glowing pulse ring behind the button */
.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2.2s ease-in-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.3); opacity: 0; }
}

/* Mobile: position clearly above the floating tier nav bar */
@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 72px;
    right: 16px;
    width: 48px;
    height: 48px;
    z-index: 999 !important;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

/* Dynamic Cards List (Row layout on both Desktop and Mobile) */
.templates-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas: "thumb body";
  column-gap: 18px;
  align-items: stretch;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  position: relative;
}

/* =====================================================
   Mobile 3-column card composition:
     [ thumb ] [ info              ] [ actions ]
     110×110    title / pills / meta   Preview + Order
   ===================================================== */
.template-card-thumb {
  grid-area: thumb;
  width: 100%;
  height: 100%;
  align-self: stretch;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, var(--thumb-color, #1c1c1e) 0%, color-mix(in srgb, var(--thumb-color, #1c1c1e) 55%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-header);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.template-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover .template-card-thumb-img {
  transform: scale(1.06);
}

.template-card-thumb-initial {
  display: block;
  line-height: 1;
}

.template-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "info  actions"
    "meta  actions";
  gap: 4px 14px;
  flex: 1 1 auto;
  min-width: 0;
  align-items: start;
}

.template-card-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
}

.template-card-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin: 0;
  white-space: normal;
  word-break: normal;
}

.template-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.template-card-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-gray);
  margin-top: 6px;
}

.template-card-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  justify-self: end;
}

.template-card-actions .btn {
  padding: 8px 14px;
  font-size: 0.72rem;
  white-space: nowrap;
  min-width: 92px;
  justify-content: center;
}



/* Apply 3-column mobile grid on viewports ≤ 768px */
@media (max-width: 768px) {
  .template-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-areas: "thumb body";
    column-gap: 14px;
    row-gap: 0;
    align-items: stretch;
    padding: 14px;
  }

  .template-card-thumb {
    width: 100%;
    height: 100%;
    align-self: stretch;
    font-size: 1.4rem;
  }

  .template-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .template-card-info {
    gap: 3px;
  }

  .template-card-title {
    font-size: 1rem;
  }

  .template-card-meta {
    font-size: 0.72rem;
  }

  .template-card-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
  }

  .template-card-actions .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.7rem;
    min-width: 0;
  }


}

/* Narrow phones: slightly smaller thumb and tighter layout */
@media (max-width: 380px) {
  .template-card {
    grid-template-columns: 96px 1fr;
    column-gap: 12px;
    padding: 12px;
  }

  .template-card-thumb {
    width: 100%;
    height: 100%;
    align-self: stretch;
    font-size: 1.25rem;
  }

  .template-card-actions .btn {
    padding: 7px 8px;
    font-size: 0.68rem;
  }


}

.template-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: rgba(192, 149, 89, 0.15);
}

/* Tier Card Background Gradients */
.template-card.tier-card-1 {
  background: linear-gradient(135deg, #f0f4f1 0%, #e2ece5 100%);
  border-color: rgba(107, 143, 113, 0.18);
}

.template-card.tier-card-2 {
  background: linear-gradient(135deg, #fcf0f2 0%, #f5e2e8 100%);
  border-color: rgba(212, 163, 179, 0.18);
}

.template-card.tier-card-3 {
  background: linear-gradient(135deg, #faf3e6 0%, #eedebf 100%);
  border-color: rgba(192, 149, 89, 0.28);
  box-shadow: 0 4px 20px rgba(192, 149, 89, 0.05);
}

.template-card.tier-card-3:hover {
  box-shadow: 0 10px 30px rgba(192, 149, 89, 0.12);
}

/* Tier Specific WhatsApp Order Buttons */
.order-btn-1 {
  background-color: #4c6a51 !important;
  color: #ffffff !important;
}

.order-btn-1:hover {
  background-color: #3b5a41 !important;
  box-shadow: 0 4px 12px rgba(76, 106, 81, 0.25) !important;
}

.order-btn-2 {
  background-color: #a05c75 !important;
  color: #ffffff !important;
}

.order-btn-2:hover {
  background-color: #85445d !important;
  box-shadow: 0 4px 12px rgba(160, 92, 117, 0.25) !important;
}

.order-btn-3 {
  background-color: #c09559 !important;
  color: #ffffff !important;
}

.order-btn-3:hover {
  background-color: #9f753c !important;
  box-shadow: 0 4px 12px rgba(192, 149, 89, 0.25) !important;
}

.template-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.template-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  min-width: 0;
}

/* Geometric Emblem Jewelry Engraving styles */
.geom-emblem-container {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
  background-color: var(--color-bg-gray);
  transition: var(--transition-fast);
}

.geom-svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Specific jewelry strokes */
.tier-geom-1 .geom-svg {
  stroke: #527958;
  stroke-width: 0.9px;
}

.tier-geom-2 .geom-svg {
  stroke: #b6748a;
  stroke-width: 0.9px;
}

.tier-geom-3 .geom-svg {
  stroke: var(--color-brand-gold-dark);
  stroke-width: 0.8px;
}

.template-card:hover .geom-emblem-container {
  border-color: rgba(192, 149, 89, 0.25);
  background-color: var(--color-brand-gold-light);
}

.template-text-content {
  flex-grow: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.template-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.template-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  white-space: normal;
  word-break: break-word;
}

.expand-icon {
  width: 14px;
  height: 14px;
  color: var(--color-brand-gold);
  transition: var(--transition-smooth);
}

.template-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.template-tag,
.template-tier-badge {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
}

.template-tag {
  background-color: var(--color-bg-gray);
  color: var(--color-text-gray);
  border: 1px solid var(--color-border);
}

.template-tier-badge.tier-badge-1 {
  background-color: rgba(107, 143, 113, 0.08);
  color: #527958;
  border: 1.5px solid rgba(107, 143, 113, 0.12);
}

.template-tier-badge.tier-badge-2 {
  background-color: rgba(212, 163, 179, 0.08);
  color: #b6748a;
  border: 1.5px solid rgba(212, 163, 179, 0.12);
}

.template-tier-badge.tier-badge-3 {
  background-color: rgba(192, 149, 89, 0.08);
  color: var(--color-brand-gold-dark);
  border: 1.5px solid rgba(192, 149, 89, 0.12);
}

.template-meta {
  font-size: 0.8rem;
  color: var(--color-text-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-original-price {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--color-text-gray);
  font-weight: 400;
  font-size: 0.78rem;
}

.card-base-price {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.92rem;
}

.card-save-badge {
  display: inline-block;
  background-color: #fff0f0;
  color: #c0392b;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.02em;
  border: 1px solid rgba(192, 57, 43, 0.15);
  white-space: nowrap;
}

.template-meta-dot {
  width: 3px;
  height: 3px;
  background-color: var(--color-brand-gold);
  border-radius: 50%;
}

.template-desc {
  display: none;
  /* Controlled strictly inside the accordion container */
}

.template-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.template-actions .btn-sm {
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
}

/* Accordion slide-and-fade wrapper — GSAP Flip drives the animation;
   transitions kept off here to avoid conflict. Static max-height still
   provides a no-JS fallback (contents hidden by default). */
.template-details-expanded {
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  width: 100%;
}

.template-card.expanded .template-details-expanded {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
  margin-top: 16px;
}

.expanded-desc-text {
  font-size: 0.85rem;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 300;
}

/* Luxury Custom Checkbox estimators */
.addons-list {
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--color-bg-gray);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
}

.addons-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-gray);
  margin-bottom: 6px;
}

.addon-item {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-dark);
  min-height: 20px;
  font-weight: 300;
}

/* Hide native checkbox */
.addon-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkmark gold rings */
.checkmark-circle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  background-color: transparent;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.addon-item:hover input~.checkmark-circle {
  border-color: var(--color-brand-gold);
}

.addon-item input:checked~.checkmark-circle {
  border-color: var(--color-brand-gold);
  background-color: transparent;
}

/* Solid gold dot inside checked ring */
.checkmark-circle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-gold);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-fast);
}

.addon-item input:checked~.checkmark-circle::after {
  opacity: 1;
  transform: scale(1);
}

.addon-price {
  margin-left: auto;
  color: var(--color-text-gray);
  font-weight: 500;
  font-size: 0.75rem;
}

.total-calc-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  color: var(--color-text-dark);
}

.total-price-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand-gold-dark);
}

/* Currency switcher design */
.currency-switch-container {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 3px;
  border-radius: var(--border-radius-pill);
  gap: 1px;
}

.currency-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text-gray);
  border-radius: var(--border-radius-pill);
  transition: var(--transition-fast);
  white-space: nowrap;
}

/* Mobile header compaction */
@media (max-width: 900px) {
  .header-bar {
    padding: 12px 0;
  }

  .container {
    padding: 0 16px;
  }

  .logo-img {
    height: 22px;
    max-width: 110px;
  }

  .header-container {
    gap: 8px;
  }

  .currency-switch-container {
    gap: 1px;
  }

  .currency-btn {
    padding: 5px 8px;
    font-size: 0.6rem;
    min-width: 36px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .header-cta {
    white-space: nowrap;
    /* keep "Order Customization 💬" on a single line */
    padding: 9px 14px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.01em;
  }
}

.currency-btn.active {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Quick chips */
.suggest-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.suggest-chip {
  font-family: var(--font-body);
  font-size: 0.68rem;
  padding: 4px 10px;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  color: var(--color-text-gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggest-chip:hover {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.no-results {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
}

.no-results svg {
  width: 26px;
  height: 26px;
  color: var(--color-brand-gold);
  margin-bottom: 10px;
}

.no-results h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.no-results p {
  font-size: 0.8rem;
}

/* =====================================================
   Urgency Banner (countdown + live viewers)
   ===================================================== */

@keyframes flame-bob {

  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(1);
  }

  50% {
    transform: translateY(-2px) rotate(4deg) scale(1.12);
  }
}

@keyframes dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
  }
}

@keyframes timer-shimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

.urgency-banner {
  background: linear-gradient(135deg, #111114 0%, #1e1b14 50%, #111114 100%);
  color: #e8dcc8;
  padding: 11px 0;
  border-bottom: 1px solid rgba(192, 149, 89, 0.15);
  position: relative;
  overflow: hidden;
}

/* Subtle gold top-border glow */
.urgency-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(192, 149, 89, 0.7) 40%, rgba(210, 169, 108, 1) 50%, rgba(192, 149, 89, 0.7) 60%, transparent 100%);
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.urgency-countdown,
.urgency-viewers {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #c8bfb0;
}

.urgency-countdown strong {
  color: #e8dcc8;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.urgency-viewers strong {
  color: #fff;
  font-weight: 700;
}

/* Gold glowing timer pill */
.urgency-timer {
  background: linear-gradient(135deg, rgba(192, 149, 89, 0.18) 0%, rgba(210, 169, 108, 0.12) 100%);
  border: 1px solid rgba(192, 149, 89, 0.4);
  border-radius: var(--border-radius-pill);
  padding: 3px 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #f0c97a;
  text-shadow: 0 0 10px rgba(240, 201, 122, 0.5);
  box-shadow: 0 0 10px rgba(192, 149, 89, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Animated flame */
.urgency-flame {
  display: inline-block;
  animation: flame-bob 1.4s ease-in-out infinite;
  transform-origin: bottom center;
  font-size: 1rem;
}

/* Pulsing green dot */
.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  flex-shrink: 0;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

/* Separator between countdown and viewers */
.urgency-inner::after {
  content: none;
}

/* Mobile */
@media (max-width: 600px) {
  .urgency-banner {
    padding: 9px 0;
  }

  .urgency-inner {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .urgency-countdown,
  .urgency-viewers {
    font-size: 0.72rem;
    gap: 7px;
  }

  .urgency-timer {
    padding: 2px 10px;
    font-size: 0.72rem;
  }

  .urgency-dot {
    width: 7px;
    height: 7px;
  }
}

/* =====================================================
   Section title shared by Testimonials / FAQ
   ===================================================== */
.section-title {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text-dark);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .section-title {
    font-size: 34px;
    line-height: 1.1;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
  }

  .section-subtitle {
    padding: 0 24px;
    margin-bottom: 20px;
  }
}

/* =====================================================
   How It Works — 3-step strip
   ===================================================== */
.how-it-works {
  padding: 32px 0 12px;
}

/* Single toggle button — centered, prominent pill */

/* Glow keyframe */
@keyframes how-btn-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 22px 6px rgba(192, 149, 89, 0.45), 0 4px 18px rgba(159, 117, 60, 0.35);
  }

  50% {
    box-shadow: 0 0 38px 12px rgba(210, 169, 108, 0.6), 0 6px 24px rgba(159, 117, 60, 0.5);
  }
}

.how-it-works-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  /* Rich gold gradient */
  background: linear-gradient(135deg, #d4a754 0%, #c09559 40%, #9f753c 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(80, 40, 0, 0.35);
  padding: 14px 30px;
  border: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  /* Warm glow behind the button */
  box-shadow:
    0 0 22px 6px rgba(192, 149, 89, 0.45),
    0 4px 18px rgba(159, 117, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: how-btn-glow-pulse 2.8s ease-in-out infinite;
}

/* Shimmer overlay */
.how-it-works-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.55s ease;
  pointer-events: none;
}

.how-it-works-toggle:hover::before {
  background-position: -200% 0;
}

.how-it-works-toggle:hover {
  background: linear-gradient(135deg, #e0b86a 0%, #d2a96c 40%, #b5864e 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 40px 14px rgba(210, 169, 108, 0.65),
    0 8px 28px rgba(159, 117, 60, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: none;
}

.how-it-works-toggle:active {
  transform: translateY(0px) scale(0.99);
  box-shadow:
    0 0 18px 5px rgba(192, 149, 89, 0.4),
    0 3px 12px rgba(159, 117, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Expanded (open) state — slightly deeper gold */
.how-it-works-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, #c09559 0%, #9f753c 60%, #7a5520 100%);
  box-shadow:
    0 0 28px 8px rgba(159, 117, 60, 0.5),
    0 5px 20px rgba(100, 65, 20, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: none;
}

.how-it-works-toggle[aria-expanded="true"]:hover {
  background: linear-gradient(135deg, #d2a96c 0%, #c09559 60%, #9f753c 100%);
  box-shadow:
    0 0 42px 14px rgba(192, 149, 89, 0.6),
    0 8px 28px rgba(159, 117, 60, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.02);
}

.how-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-it-works-toggle[aria-expanded="true"] .how-toggle-icon {
  transform: rotate(45deg);
}

/* Steps wrapper — uses CSS grid-rows trick (0fr → 1fr) to animate
   the height of the collapsed content smoothly. Works in modern
   browsers (Chrome 117+, Firefox 119+, Safari 17.4+). */
.how-steps-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 720px;
  margin: 0 auto;
}

.how-steps-wrap[aria-hidden="true"] {
  visibility: hidden;
}

.how-steps-wrap.is-open {
  grid-template-rows: 1fr;
}

.how-steps-wrap .how-steps {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  /* No padding-top here — it would leak through when collapsed */
  padding-top: 0;
}

/* Add top spacing only when the panel is open */
.how-steps-wrap.is-open .how-steps {
  padding-top: 18px;
}

/* Reduced-motion users get an instant toggle, no animation */
@media (prefers-reduced-motion: reduce) {
  .how-steps-wrap {
    transition: none;
  }

  .how-toggle-icon {
    transition: none;
  }
}

/* Mobile: button is full-width-ish and clearly centered; slightly larger tap target */
@media (max-width: 600px) {
  .how-it-works {
    padding: 24px 16px;
    text-align: center;
  }

  .how-it-works .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .how-it-works-toggle {
    width: 100%;
    max-width: 320px;
    padding: 15px 24px;
    font-size: 0.95rem;
  }
}

.how-step {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 22px 20px;
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  position: relative;
  /* anchor for the integrated step-arrow */
}

.how-step-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--color-brand-gold);
}

.how-step-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.how-step-desc {
  font-size: 0.78rem;
  color: var(--color-text-gray);
  line-height: 1.5;
}

.how-step-arrow {
  align-self: center;
  color: var(--color-brand-gold);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Mobile: stack cards vertically, hide the floating-between arrows, and
   show a small integrated arrow at the top-right of each card instead. */
@media (max-width: 600px) {
  .how-it-works {
    padding: 18px 0 8px;
  }

  .how-steps {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .how-step {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 14px 16px 16px;
    text-align: left;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "icon  arrow"
      "icon  title"
      ".     desc";
    column-gap: 12px;
    row-gap: 4px;
  }

  .how-step-icon {
    grid-area: icon;
    font-size: 1.3rem;
    margin: 0;
    align-self: center;
    justify-self: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-brand-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .how-step-title {
    grid-area: title;
    font-size: 0.85rem;
    margin: 0;
  }

  .how-step-desc {
    grid-area: desc;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  /* Hide the between-card arrow div, render a small arrow inside each
     card's top-right corner via a ::after on the icon (which sits in the
     top-right of the grid). */
  .how-step-arrow {
    display: none;
  }

  .how-step-icon::after {
    content: "↓";
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--color-brand-gold);
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1;
  }
}

/* =====================================================
   Social Proof — Testimonials + Trust Badges
   ===================================================== */
.social-proof {
  padding: 48px 0 32px;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.testimonials-wrapper {
  position: relative;
  margin-bottom: 36px;
}

.testimonials-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 4px 20px 12px;
  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/old Edge */
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.testimonial-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  overflow: hidden;
  /* safety: never let long quotes leak outside the card */
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 86vw;
    /* per design spec */
    max-width: 420px;
  }
}

/* Prev / Next overlay buttons (desktop: floating on card edges) */
.testimonials-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  z-index: 2;
  transition: var(--transition-fast);
}

.testimonials-nav-btn:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
  border-color: var(--color-text-dark);
  transform: translateY(-50%) translateY(-1px);
}

.testimonials-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonials-nav-prev {
  left: 6px;
}

.testimonials-nav-next {
  right: 6px;
}

@media (max-width: 480px) {
  .testimonials-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* Mobile: move arrows below the cards so they don't sit on top of the
   review text. Layout becomes: cards row → dots row → arrows row. */
@media (max-width: 600px) {
  .testimonials-wrapper {
    /* Allow the wrapper to grow vertically so arrows sit below */
    padding-bottom: 56px;
  }

  .testimonials-nav-btn {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  .testimonials-nav-prev {
    left: calc(50% - 50px);
  }

  .testimonials-nav-next {
    left: calc(50% + 18px);
  }

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

.testimonial-quote {
  font-size: 0.88rem;
  color: var(--color-text-dark);
  line-height: 1.55;
  font-style: italic;
}

@media (max-width: 600px) {
  .testimonial-quote {
    font-size: 22px;
    line-height: 1.55;
  }
}

.testimonial-quote::before {
  content: "\201C";
  font-family: var(--font-header);
  font-size: 2.2rem;
  color: var(--color-brand-gold);
  position: absolute;
  top: 6px;
  left: 14px;
  opacity: 0.5;
  line-height: 1;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
}

.testimonial-author-name {
  color: var(--color-text-dark);
  font-weight: 500;
}

.testimonial-author-wedding {
  color: var(--color-text-gray);
  font-size: 0.7rem;
}

/* Trust marquee (continuous horizontal scroll) */
.trust-marquee {
  position: relative;
  overflow: hidden;
  /* Soft fade on both edges so items don't hard-clip at viewport boundaries.
     Mobile: gentler fade so the first card isn't clipped on the left. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
}

.trust-marquee-track {
  display: flex;
  width: max-content;
  animation: trust-marquee-scroll 28s linear infinite;
}

.trust-marquee-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  /* trailing gap so two sets read as one continuous row */
  flex-shrink: 0;
}

@keyframes trust-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.trust-marquee:hover .trust-marquee-track,
.trust-marquee:focus-within .trust-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track {
    animation: none;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  flex: 0 0 280px;
  min-width: 0;
}

/* Mobile: cards fill most of the viewport so the first card is fully
   visible and the next card peeks in from the right (per design spec). */
@media (max-width: 600px) {
  .trust-item {
    flex: 0 0 82vw;
    max-width: 360px;
    min-width: 0;
  }
}

.trust-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-gold);
}

.trust-icon svg {
  width: 26px;
  height: 26px;
}

.trust-icon-upi svg {
  width: 36px;
  height: 36px;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.trust-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.trust-text span {
  font-size: 0.7rem;
  color: var(--color-text-gray);
}

/* =====================================================
   FAQ Accordion
   ===================================================== */
.faq-section {
  padding: 48px 0 40px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--color-bg-gray);
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--color-brand-gold);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* =====================================================
   Exit-Intent Offer Modal
   ===================================================== */
.exit-intent-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  /* above the preview modal (1000) */
  display: none;
  align-items: center;
  justify-content: center;
}

.exit-intent-modal.is-open {
  display: flex;
}

.exit-intent-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-intent-modal.is-open .exit-intent-scrim {
  opacity: 1;
}

.exit-intent-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, var(--color-bg-white) 0%, var(--color-brand-gold-light) 100%);
  border: 1px solid rgba(192, 149, 89, 0.25);
  border-radius: var(--border-radius-md);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: calc(100vw - 32px);
  box-shadow: var(--shadow-modal);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-intent-modal.is-open .exit-intent-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.exit-intent-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-gray);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.exit-intent-close:hover {
  color: var(--color-text-dark);
  background-color: rgba(0, 0, 0, 0.04);
}

.exit-intent-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.exit-intent-title {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.exit-intent-desc {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  line-height: 1.55;
  margin-bottom: 18px;
}

.exit-intent-desc strong {
  color: var(--color-brand-gold-dark);
  font-weight: 600;
}

.exit-intent-cta {
  display: inline-block;
  background-color: var(--color-brand-gold);
  color: var(--color-bg-white);
  padding: 10px 22px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(192, 149, 89, 0.3);
}

.exit-intent-cta:hover {
  background-color: var(--color-brand-gold-hover);
  transform: translateY(-1px);
}

.exit-intent-fineprint {
  font-size: 0.7rem;
  color: var(--color-text-gray);
  margin-top: 12px;
  opacity: 0.8;
}

/* =====================================================
   Per-tier Order button styling — Luxury tier screams BUY
   ===================================================== */
.order-btn-3 {
  position: relative;
  font-size: 0.78rem !important;
  padding: 8px 18px !important;
  background: linear-gradient(135deg, #d2a96c 0%, #c09559 50%, #9f753c 100%) !important;
  box-shadow: 0 4px 16px rgba(192, 149, 89, 0.35) !important;
  letter-spacing: 0.04em !important;
}

.order-btn-3::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-pill);
  background: linear-gradient(135deg, rgba(192, 149, 89, 0.4), rgba(159, 117, 60, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.order-btn-3:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .order-btn-3 {
    animation: luxury-pulse 2.6s ease-in-out infinite;
  }
}

@keyframes luxury-pulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(192, 149, 89, 0.35);
  }

  50% {
    box-shadow: 0 4px 22px rgba(192, 149, 89, 0.6);
  }
}

/* Premium tier — subtle gradient lift, secondary attention */
.order-btn-2 {
  background: linear-gradient(135deg, #b6748a 0%, #a05c75 100%) !important;
  box-shadow: 0 4px 12px rgba(160, 92, 117, 0.18) !important;
}

/* Footer styling */
.footer {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-gray);
  font-weight: 300;
}

.footer p {
  margin-bottom: 6px;
}

.footer-logo {
  max-width: 130px;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Responsiveness overrides */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .pricing-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 20px 14px;
    margin: 0 -20px;
    /* bleed to viewport edges so the carousel has visual breathing room */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    flex: 0 0 84vw;
    /* fixed mobile width per design */
    max-width: 400px;
    padding: 20px;
    /* Ensure long content (strikethrough + price + save badge + description + cta) fits */
    overflow: hidden;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Row parameters mobile spacing — handled by the dedicated
     .template-card 3-column composition block earlier in this file. */
}

/* =====================================================
   Preview Modal (device-frame demo viewer)
   ===================================================== */

/* --- Scrim (full-viewport backdrop) --- */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.preview-modal.is-open {
  display: flex;
}

.preview-modal-scrim {
  position: absolute;
  inset: 0;
  background-color: var(--color-modal-scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal.is-open .preview-modal-scrim {
  opacity: 1;
}

/* --- Panel shell (centered column) --- */
.preview-modal-panel {
  position: relative;
  z-index: 1;
  /* above scrim */
  width: min(96vw, 540px);
  max-height: 99vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal.is-open .preview-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- Header --- */
.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.preview-modal-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.preview-modal-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-modal-style-tag {
  font-size: 0.68rem;
  color: var(--color-text-gray);
  font-weight: 400;
}

.preview-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-gray);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.preview-modal-close:hover {
  color: var(--color-text-dark);
  background-color: var(--color-bg-gray);
}

/* --- Body (phone-frame iframe) --- */
.preview-modal-body {
  flex: 1 1 auto;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 8px;
  background-color: #1a1a1a;
  /* device wallpaper behind phone */
  overflow: auto;
  min-height: 0;
}

.preview-modal-iframe-wrap {
  position: relative;
  width: 412px;
  height: 915px;
  max-width: 100%;
  background-color: #000;
  border-radius: 44px;
  /* iPhone-like radius */
  padding: 36px 12px 12px 12px;
  /* extra top padding hosts the notch in the bezel */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  overflow: hidden;
  margin: auto;
  /* centers when room, pins to start when overflowing */
}

.preview-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 32px;
  background-color: #000;
  display: block;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-iframe.is-loaded {
  opacity: 1;
}

.preview-modal-phone-notch {
  position: absolute;
  top: 8px;
  /* sits in the 36px top bezel, above iframe content */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background-color: #000;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
  z-index: 2;
}

/* Loader dots inside the phone frame */
.preview-modal-loader {
  position: absolute;
  inset: 12px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0d0d0d;
  z-index: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preview-modal-loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-gold);
  opacity: 0.3;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-loader-dot.is-pulse-1 {
  opacity: 0.9;
  transform: translateY(-2px);
}

.preview-modal-loader-dot.is-pulse-2 {
  opacity: 0.6;
  transform: translateY(0);
}

.preview-modal-loader-dot.is-pulse-3 {
  opacity: 0.3;
  transform: translateY(0);
}

/* --- Toolbar --- */
.preview-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.preview-modal-nav {
  display: flex;
  gap: 6px;
}

.preview-nav-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preview-nav-btn:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
  border-color: var(--color-text-dark);
  transform: translateY(-1px);
}

.preview-modal-tiers {
  display: inline-flex;
  background-color: var(--color-bg-gray);
  border-radius: var(--border-radius-pill);
  padding: 3px;
  gap: 2px;
}

.preview-tier-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  color: var(--color-text-gray);
  transition: var(--transition-fast);
}

.preview-tier-tab:hover {
  color: var(--color-text-dark);
}

.preview-tier-tab.is-active {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-modal-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.preview-toolbar-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.02em;
}

.preview-toolbar-home {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-dark);
}

.preview-toolbar-home:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: var(--color-text-dark);
  transform: translateY(-1px);
}

.preview-toolbar-buy {
  background-color: var(--color-brand-gold);
  color: var(--color-bg-white);
}

.preview-toolbar-buy:hover {
  background-color: var(--color-brand-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 149, 89, 0.25);
}

/* --- Body scroll lock when modal is open --- */
body.preview-modal-open {
  overflow: hidden;
}

/* --- Responsive: shrink phone frame on narrow viewports --- */
/* Mobile + tablet: hide the floating tier nav entirely so it can't cross
   section boundaries. The catalogue has its own tier filter UI inside the
   controls-card area. Using !important to override any future overrides.
   Also tighten section padding to ~40-60px on mobile so the page flows
   quickly from one section to the next. */
@media (max-width: 900px) {

  /* Floating tier nav is now visible on all viewports */

  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 18px 0 14px;
  }

  .how-it-works {
    padding: 24px 0 6px;
  }

  .pricing-section {
    padding: 24px 0;
  }

  .social-proof {
    padding: 36px 0 24px;
  }

  .catalogue-section {
    padding: 32px 0 120px;
  }

  .faq-section {
    padding: 36px 0 28px;
  }
}

@media (max-width: 480px) {
  .preview-modal-panel {
    width: 100vw;
    /* 100dvh accounts for mobile browser chrome (Safari toolbar etc.) so
       the modal never overflows behind the bottom bar. */
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .preview-modal-body {
    padding: 12px 8px;
  }

  .preview-modal-iframe-wrap {
    /* Scale the 412x915 device down to fit a ~360px viewport */
    transform: scale(0.78);
    transform-origin: center center;
    margin: 0;
  }

  .preview-modal-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .preview-toolbar-btn,
  .preview-tier-tab {
    padding: 6px 10px;
    font-size: 0.68rem;
  }
}