/* ═══════════════════════════════════════════════════
   MADEYOUTHIS.COM — Component Styles
   ═══════════════════════════════════════════════════ */

/* ── Logo ── */
.logo {
  font-family: var(--hp-font-body, var(--font-body));
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-charcoal);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  height: auto;
  width: 160px;
  display: block;
  position: relative;
  top: 4px;
}

.logo-heart-char {
  color: var(--coral, var(--color-primary));
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 1px;
  line-height: 1;
}

/* Legacy logo heart (Material Icons) — kept for other pages */
.logo-heart {
  color: var(--color-primary);
  font-size: 0.7em;
  position: relative;
  top: -4px;
  right: 2px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 0 28px;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.header-nav a {
  color: var(--charcoal, var(--color-charcoal));
  opacity: 0.55;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--hp-font-body, var(--font-body));
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.header-nav a:hover { opacity: 1; color: var(--coral); }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-inner { padding: 0 16px; height: 56px; gap: 12px; }
  .header-inner > div { justify-self: end; }
  .logo-img { width: 130px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-charcoal);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: rgba(224, 122, 95, 0.3);
  background: var(--color-surface-hover);
}

.btn-text {
  background: none;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

.btn-text:hover {
  color: var(--color-primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-full { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
}

.btn-icon:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.card-body {
  padding: var(--space-lg);
}

/* ── Template Card ── */
.template-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.template-card-preview {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.template-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-card-badge .material-symbols-outlined {
  font-size: 14px;
  color: var(--color-primary);
}

.template-card-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.template-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.template-card-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.template-card-features {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.feature-tag .material-symbols-outlined {
  font-size: 14px;
  color: var(--color-primary);
}

/* ── Inputs ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.input-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.input {
  width: 100%;
  height: 56px;
  padding: 0 var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: all var(--transition-base);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.input::placeholder {
  color: var(--color-text-faint);
}

.input-icon {
  position: relative;
}

.input-icon .material-symbols-outlined {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
  font-size: 20px;
}

.input-icon .input {
  padding-left: 48px;
}

.input-icon:focus-within .material-symbols-outlined {
  color: var(--color-primary);
}

.textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  resize: none;
  line-height: 1.6;
  transition: all var(--transition-base);
}

.textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.textarea::placeholder {
  color: var(--color-text-faint);
}

.select-wrap {
  position: relative;
}

.select {
  width: 100%;
  height: 56px;
  padding: 0 40px 0 var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-faint);
}

/* ── Photo Upload ── */
.photo-upload {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.photo-upload:hover {
  border-color: var(--color-primary);
}

.photo-upload .material-symbols-outlined {
  font-size: 24px;
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
}

.photo-upload:hover .material-symbols-outlined {
  color: var(--color-primary);
}

.photo-upload span {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  font-weight: 500;
}

.photo-upload:hover span {
  color: var(--color-primary);
}

.photo-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.photo-upload:hover .photo-upload-remove {
  opacity: 1;
}

.photo-upload-remove .material-symbols-outlined {
  font-size: 16px;
  color: white;
}

/* ── Progress Bar ── */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.progress-sublabel {
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: #E8E4D9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Creation Flow Step Transitions ── */
.step-enter {
  animation: stepSlideIn 0.35s cubic-bezier(0.22, 0.68, 0, 1) both;
}

@keyframes stepSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered field entrance */
.step-enter .form-section,
.step-enter .input-group,
.step-enter .card {
  animation: fieldFadeIn 0.4s ease both;
}
.step-enter .form-section:nth-child(1),
.step-enter .input-group:nth-child(1),
.step-enter .card:nth-child(1) { animation-delay: 0.05s; }
.step-enter .form-section:nth-child(2),
.step-enter .input-group:nth-child(2),
.step-enter .card:nth-child(2) { animation-delay: 0.1s; }
.step-enter .form-section:nth-child(3),
.step-enter .input-group:nth-child(3),
.step-enter .card:nth-child(3) { animation-delay: 0.15s; }
.step-enter .form-section:nth-child(4),
.step-enter .input-group:nth-child(4),
.step-enter .card:nth-child(4) { animation-delay: 0.2s; }
.step-enter .input-group:nth-child(5),
.step-enter .card:nth-child(5) { animation-delay: 0.25s; }
.step-enter .input-group:nth-child(6),
.step-enter .card:nth-child(6) { animation-delay: 0.3s; }
.step-enter .card:nth-child(7) { animation-delay: 0.35s; }
.step-enter .card:nth-child(8) { animation-delay: 0.4s; }

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

/* ── Bottom Bar ── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-md) var(--space-lg);
}

.bottom-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.bottom-bar .btn-primary {
  transition: all 0.2s cubic-bezier(0.22, 0.68, 0, 1);
}
.bottom-bar .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.35);
}
.bottom-bar .btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.bottom-bar .btn-text {
  transition: all 0.2s ease;
}
.bottom-bar .btn-text:hover {
  transform: translateX(-2px);
}

@media (max-width: 640px) {
  .bottom-bar-inner {
    flex-direction: column;
  }
}

/* ── Music Picker ── */
.music-picker-hero {
  text-align: center;
  margin-bottom: 28px;
}

.music-picker-vinyl {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9e4de 0%, #d8ebe0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.music-picker-vinyl::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed rgba(224, 122, 95, 0.2);
  animation: vinylSpin 25s linear infinite;
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

.music-picker-vinyl .material-symbols-outlined {
  font-size: 40px;
  color: var(--color-primary);
}

.music-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.music-card:active {
  transform: scale(0.98);
}

.music-card.mc-selected {
  border-color: var(--mc, var(--color-primary));
  background: color-mix(in srgb, var(--mc, var(--color-primary)) 5%, var(--color-surface));
}

.music-card-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.music-card.mc-selected .music-card-dot {
  background: var(--mc, var(--color-primary));
  border-color: var(--mc, var(--color-primary));
  box-shadow: inset 0 0 0 3px #fff;
}

.music-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.music-card-icon .material-symbols-outlined {
  font-size: 22px;
}

.music-card.mc-selected:not(.mc-playing) .music-card-icon {
  background: var(--mc, var(--color-primary)) !important;
}

.music-card.mc-selected:not(.mc-playing) .music-card-icon > .material-symbols-outlined {
  color: #fff !important;
}

.music-card-info {
  flex: 1;
  min-width: 0;
}

.music-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  margin-bottom: 2px;
}

.music-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

.music-play-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.music-play-btn:active {
  transform: scale(0.85);
}

.music-play-btn .material-symbols-outlined {
  font-size: 28px;
  color: var(--mc, var(--color-primary));
}

/* Equalizer animation */
.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.music-eq-bar {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.music-eq-bar:nth-child(1) { animation: mEq1 0.6s ease-in-out infinite; }
.music-eq-bar:nth-child(2) { animation: mEq2 0.7s ease-in-out infinite; }
.music-eq-bar:nth-child(3) { animation: mEq3 0.5s ease-in-out infinite; }
.music-eq-bar:nth-child(4) { animation: mEq4 0.65s ease-in-out infinite; }

@keyframes mEq1 { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@keyframes mEq2 { 0%, 100% { height: 14px; } 50% { height: 6px; } }
@keyframes mEq3 { 0%, 100% { height: 8px; } 50% { height: 20px; } }
@keyframes mEq4 { 0%, 100% { height: 16px; } 50% { height: 4px; } }

/* Progress bar at bottom of card */
.music-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-card.mc-playing .music-progress {
  opacity: 1;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--mc, var(--color-primary));
  border-radius: 0 2px 2px 0;
  transition: width 0.25s linear;
}

/* No music variant */
.music-card-none {
  border-style: dashed;
}

.music-card-none.mc-selected {
  border-style: solid;
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}

.music-card-none.mc-selected .music-card-dot {
  background: var(--color-text-muted);
  border-color: var(--color-text-muted);
}

/* ── Quiz Card ── */
.quiz-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.quiz-card-active {
  border-color: rgba(224, 122, 95, 0.2);
  box-shadow: var(--shadow-hover);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  position: relative;
}

.quiz-card-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-left: 8px;
}

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

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus-within {
  background: var(--color-surface);
  border-color: rgba(224, 122, 95, 0.2);
  box-shadow: var(--shadow-soft);
}

.quiz-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-text-faint);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.quiz-radio:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.quiz-option-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.quiz-option-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  outline: none;
}

.quiz-option-input::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

/* ── Phone Mockup ── */
.phone-mockup {
  width: 300px;
  height: 600px;
  background: #333;
  border-radius: 3rem;
  border: 4px solid #2a2a2a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  outline: 1px solid rgba(0,0,0,0.05);
  isolation: isolate;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .phone-mockup {
    width: 260px;
    height: 520px;
    border-radius: 2.5rem;
  }
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: black;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(2.75rem - 4px);
  background: var(--color-charcoal);
  clip-path: inset(0 round calc(2.75rem - 4px));
}

/* ── Section Divider ── */
.section-gap {
  margin-bottom: var(--space-3xl);
}

/* ── Form Section ── */
.form-section {
  margin-bottom: var(--space-2xl);
}

.form-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* ── Grid Helpers ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

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

/* ── Step indicator (horizontal) ── */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.step-item.completed {
  color: var(--color-secondary);
}

.step-item.active {
  color: var(--color-primary);
  font-weight: 700;
}

.step-item.pending {
  color: var(--color-text-faint);
}

.step-line {
  width: 32px;
  height: 1px;
  background: var(--color-border);
}

/* ── Pill / Tag ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(224, 122, 95, 0.2);
}

.pill-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border: 1px solid rgba(129, 178, 154, 0.2);
}

/* ── Error text ── */
.error-text {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 4px;
  margin-left: 4px;
  display: none;
}

.error-text.visible {
  display: block;
}

/* ── Skeleton / Loading ── */
.skeleton {
  background: linear-gradient(90deg, #f0ece4 25%, #f7f3eb 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ── Char counter ── */
.char-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--color-text-faint);
  font-weight: 500;
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

/* ── Details/Summary (FAQ) ── */
details {
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

details:hover {
  border-color: rgba(129, 178, 154, 0.3);
}

details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--color-charcoal);
}

details summary::-webkit-details-marker { display: none; }

details[open] summary .expand-icon {
  transform: rotate(180deg);
}

.expand-icon {
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

/* ── Legal Prose ── */
.legal-prose {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-charcoal-light);
}

.legal-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 40px 0 16px;
  padding-top: 8px;
}

.legal-prose h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 24px 0 12px;
}

.legal-prose p {
  margin: 0 0 16px;
}

.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-prose li {
  margin-bottom: 8px;
}

.legal-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--color-primary-dark);
}

.legal-prose strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE (hp-*) — New Design System
   ═══════════════════════════════════════════════════ */

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal[style*="delay"] { transition-delay: inherit; }
/* Stagger children inside scroll-reveal containers */
.scroll-reveal.visible .sr-child { opacity: 1; transform: translateY(0); }
.sr-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Toast ── */
.hp-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: white;
  padding: 12px 24px;
  border-radius: var(--hp-radius-pill);
  font-size: 14px;
  font-family: var(--hp-font-body);
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.hp-toast.visible { opacity: 1; }

/* ── Homepage wrapper ── */
.hp {
  font-family: var(--hp-font-body);
  color: var(--text-body);
}

/* ── Section label ── */
.hp-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--coral);
  font-weight: 500;
  font-family: var(--hp-font-body);
}

/* ── Display headline ── */
.hp-display {
  font-family: var(--hp-font-display);
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.1;
}
.hp-display em {
  color: var(--coral);
  font-style: italic;
}

/* ── Pulsing dot ── */
.hp-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  animation: hpPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hpPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* ── Coral pill button ── */
.hp-btn-coral {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: white;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--hp-radius-pill);
  border: none;
  font-family: var(--hp-font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.35);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.hp-btn-coral::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hp-btn-coral:hover::before { opacity: 1; }
.hp-btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.45), 0 2px 8px rgba(224, 122, 95, 0.2);
}
.hp-btn-coral:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(224, 122, 95, 0.3); }
.hp-btn-coral .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}
.hp-btn-coral:hover .arrow {
  transform: translateX(3px);
}

/* ── Outline button ── */
.hp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--charcoal);
  height: 52px;
  padding: 0 32px;
  border-radius: var(--hp-radius-pill);
  border: 1.5px solid rgba(45, 45, 45, 0.2);
  font-family: var(--hp-font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.hp-btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(224, 122, 95, 0.04);
  transform: translateY(-2px);
}

/* Large variant */
.hp-btn-coral.hp-btn-lg,
.hp-btn-outline.hp-btn-lg {
  height: 56px;
  font-size: 18px;
  padding: 0 40px;
}

/* ── SECTION: Hero ── */
.hp-hero {
  min-height: min(100vh, 800px);
  background: var(--bg-cream);
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}
/* Falling hearts */
.hp-heart {
  position: absolute;
  top: -20px;
  pointer-events: none;
  z-index: 0;
  animation: hpHeartFall linear forwards;
  line-height: 1;
}
@keyframes hpHeartFall {
  to { transform: translateY(calc(100vh + 40px)) rotate(25deg); }
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hp-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.hp-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: heroGlowDrift 12s ease-in-out infinite alternate;
}
.hp-hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 178, 154, 0.06) 0%, transparent 70%);
  top: auto;
  right: auto;
  bottom: -150px;
  left: -100px;
  animation: heroGlowDrift 15s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(1.1); }
}
.hp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding: 60px 0;
  min-height: min(100vh, 800px);
}
.hp-hero-text {
  flex: 1 1 55%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hp-hero-headline {
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.hp-hero-body {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}
.hp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hp-countdown {
  width: fit-content;
  margin-bottom: 20px;
}
.hp-cd-label {
  font-family: var(--hp-font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 8px;
}
.hp-cd-boxes {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hp-cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(45, 45, 45, 0.04);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 8px;
  padding: 6px 10px 4px;
  min-width: 44px;
}
.hp-cd-num {
  font-family: var(--hp-font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.hp-cd-unit {
  font-family: var(--hp-font-body);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(45, 45, 45, 0.4);
  margin-top: 2px;
}
.hp-cd-sep {
  font-size: 18px;
  font-weight: 700;
  color: rgba(45, 45, 45, 0.2);
  margin-top: -10px;
}
.hp-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}
.hp-hero-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--hp-font-body);
  font-weight: 500;
}
.hp-hero-proof-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.hp-hero-proof-check::after {
  content: '';
  width: 5px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-top: -2px;
}
.hp-hero-phones {
  flex: 1 1 42%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 580px;
}

/* ── Phone mockup ── */
.hp-phone {
  width: 270px;
  height: 553px;
  border-radius: 40px;
  position: relative;
  flex-shrink: 0;
  background: #1a1a1a;
  padding: 3px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}
/* Home indicator bar */
.hp-phone-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  z-index: 5;
}
.hp-phone-content {
  position: absolute;
  inset: 3px;
  border-radius: 37px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 24px;
  overflow: hidden;
  z-index: 1;
}
.hp-phone-front {
  position: relative;
  z-index: 2;
}
/* Hero card previews — contains scaled iframes */
#hero-card-preview,
#hero-letters-preview {
  overflow: hidden;
  /* clip-path is more reliable than overflow+border-radius for iframes */
  clip-path: inset(0 round 37px);
}
.hp-phone-back {
  position: absolute;
  left: -36px;
  top: 24px;
  transform: scale(0.85) rotate(-6deg);
  z-index: 1;
}
/* Scratch marks on back phone */
.hp-scratch-marks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hp-scratch-marks span {
  position: absolute;
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  transform: rotate(30deg);
}
.hp-scratch-marks span:nth-child(1) { top: 35%; left: 20%; }
.hp-scratch-marks span:nth-child(2) { top: 50%; left: 40%; width: 60px; }
.hp-scratch-marks span:nth-child(3) { top: 42%; left: 55%; width: 50px; }

/* ── SECTION: Social Proof ── */
.hp-social {
  width: 100%;
  height: 80px;
  background: var(--bg-cream);
  border-top: 1px solid rgba(45, 45, 45, 0.06);
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hp-social-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  width: 100%;
}
.hp-social-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--hp-font-body);
  padding: 0 24px;
}
.hp-social-icon {
  color: var(--coral);
  flex-shrink: 0;
}
.hp-social-divider {
  width: 1px;
  height: 32px;
  background: rgba(45, 45, 45, 0.08);
  flex-shrink: 0;
}
/* Grid icon: four 4px squares */
.hp-icon-grid {
  display: grid;
  grid-template-columns: 4px 4px;
  gap: 2px;
}
.hp-icon-grid span {
  width: 4px;
  height: 4px;
  background: var(--coral);
  border-radius: 1px;
}
/* Phone icon */
.hp-icon-phone {
  width: 12px;
  height: 18px;
  border: 1.5px solid var(--coral);
  border-radius: 3px;
}
/* Link icon */
.hp-icon-link {
  display: flex;
  gap: 0;
}
.hp-icon-link span {
  width: 8px;
  height: 8px;
  border: 2px solid var(--coral);
  border-radius: 50%;
}
.hp-icon-link span:last-child {
  margin-left: -3px;
}

/* ── SECTION: How It Works ── */
.hp-hiw {
  background: linear-gradient(to bottom, var(--bg-cream), var(--bg-cream-dark));
  padding: var(--hp-section-padding);
  position: relative;
}
.hp-hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.hp-hiw-left {
  flex: 0 0 40%;
  max-width: 40%;
  position: sticky;
  top: 120px;
}
.hp-hiw-left .hp-display {
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}
.hp-hiw-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}
.hp-hiw-left .hp-btn-coral {
  margin-top: 8px;
}
.hp-hiw-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step card */
.hp-step {
  background: white;
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.hp-step:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  transform: translateY(-4px);
  border-color: rgba(224, 122, 95, 0.1);
}
.hp-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-step:hover .hp-step-icon {
  transform: scale(1.08);
}
.hp-step-icon .material-symbols-outlined {
  font-size: 26px;
}
.hp-step-body {
  flex: 1;
  min-width: 0;
}
.hp-step-label {
  font-family: var(--hp-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 6px;
}
.hp-step-title {
  font-family: var(--hp-font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.hp-step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SECTION: Template Gallery ── */
.hp-gallery {
  background: var(--bg-cream-dark);
  padding: 80px 24px;
}
.hp-gallery-price { color: var(--text-muted); }
.hp-gallery-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hp-gallery-header .hp-display {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hp-gallery-header p {
  font-size: 15px;
  color: var(--text-muted);
}
.hp-gallery-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.hp-gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 24px 8px;
}
.hp-gallery-scroll::-webkit-scrollbar { display: none; }

/* Gallery card */
.hp-gcard {
  width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
}
.hp-gcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
}
.hp-gcard:not(.hp-gcard-soon):hover {
  border-color: rgba(224,122,95,0.2);
}
.hp-gcard-preview {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Glossy sheen overlay */
.hp-gcard-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
  z-index: 2;
}
.hp-gcard-info {
  padding: 20px;
  background: white;
}
.hp-gcard-name {
  font-family: var(--hp-font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.hp-gcard-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hp-gcard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--coral);
  background: rgba(224, 122, 95, 0.08);
  padding: 4px 10px;
  border-radius: var(--hp-radius-pill);
  font-family: var(--hp-font-body);
  font-weight: 600;
}
/* Trending badge with glow */
.hp-gcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--coral), #d4526e);
  color: white;
  font-size: 10px;
  text-transform: uppercase;
  font-family: var(--hp-font-body);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--hp-radius-pill);
  z-index: 3;
  box-shadow: 0 2px 12px rgba(224,122,95,0.4);
  letter-spacing: 0.05em;
  overflow: hidden;
}
/* Animated glow ring on trending cards */
.hp-gcard:not(.hp-gcard-soon)::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--hp-radius-md);
  background: linear-gradient(135deg, rgba(224,122,95,0.3), rgba(212,82,110,0.15), transparent, rgba(224,168,73,0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hp-gcard:not(.hp-gcard-soon):hover::before {
  opacity: 1;
}
/* Coming soon banner */
.hp-gcard-coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-30deg);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  font-family: var(--hp-font-body);
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 0;
  z-index: 3;
}
/* Dim coming-soon cards */
.hp-gcard-soon {
  opacity: 0.6;
}
.hp-gcard-soon:hover {
  opacity: 0.8;
}

/* Gallery arrows */
.hp-gallery-arrow {
  position: absolute;
  top: 100px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  font-size: 18px;
  color: var(--charcoal);
}
.hp-gallery-arrow:hover {
  background: var(--charcoal);
  color: white;
}
.hp-gallery-arrow.left { left: 0; }
.hp-gallery-arrow.right { right: 0; }
.hp-gallery-arrow.hidden { opacity: 0; pointer-events: none; }

.hp-gallery-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
}
.hp-gallery-footer a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
}
.hp-gallery-footer a:hover { color: var(--coral-dark); }

/* ── SECTION: Phone Demo ── */
.hp-demo {
  background: var(--bg-cream);
  padding: var(--hp-section-padding);
}
.hp-demo-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hp-demo-inner .hp-display {
  font-size: 44px;
  margin-bottom: 12px;
}
.hp-demo-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 60px;
}
.hp-demo-frame {
  position: relative;
  display: inline-block;
}
.hp-demo-phone {
  width: 320px;
  height: 660px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  padding: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.hp-demo-phone::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 45px;
  background: #000;
  z-index: 0;
}
.hp-demo-phone .hp-phone-notch {
  width: 80px;
  top: 14px;
}
.hp-demo-screens {
  position: absolute;
  inset: 3px;
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}
.hp-demo-screen {
  flex-shrink: 0;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  gap: 4px;
  padding: 12px;
}
.hp-demo-screen:first-child {
  padding-top: 20px;
}
.hp-demo-fade {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  border-radius: 0 0 45px 45px;
  z-index: 3;
}
/* Annotations */
.hp-demo-annotation {
  position: absolute;
  font-size: 12px;
  color: var(--text-faint);
  max-width: 140px;
  line-height: 1.4;
  font-family: var(--hp-font-body);
}
.hp-demo-annotation::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(45,45,45,0.1);
}
.hp-demo-annotation.left {
  right: calc(100% + 50px);
  text-align: right;
}
.hp-demo-annotation.left::after {
  left: calc(100% + 8px);
}
.hp-demo-annotation.right {
  left: calc(100% + 50px);
  text-align: left;
}
.hp-demo-annotation.right::after {
  right: calc(100% + 8px);
}

/* ── SECTION: Pricing ── */
.hp-pricing {
  background: var(--bg-cream-dark);
  padding: var(--hp-section-padding);
}
.hp-pricing-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.hp-pricing-inner .hp-display {
  font-size: 44px;
  margin-bottom: 16px;
}
.hp-pricing-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}
.hp-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.hp-price-amount {
  font-family: var(--hp-font-display);
  font-size: 100px;
  color: var(--coral);
  line-height: 1;
}
.hp-price-label {
  font-size: 16px;
  color: var(--text-muted);
}
.hp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto 40px;
  text-align: left;
}
.hp-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--charcoal);
  font-family: var(--hp-font-body);
}
.hp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.hp-stripe-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ── SECTION: Urgency CTA ── */
.hp-urgency {
  background: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
  color: white;
}
.hp-urgency-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.hp-urgency .hp-display {
  color: white;
  font-size: 48px;
  line-height: 1.15;
}
.hp-urgency-body {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 480px;
}

/* ── SECTION: Footer ── */
.hp-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 24px 40px;
  color: white;
  font-family: var(--hp-font-body);
}
.hp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.hp-footer-logo {
  height: 36px;
  width: auto;
}
.hp-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}
.hp-footer-links {
  display: flex;
  gap: 64px;
}
.hp-footer-col h4 {
  font-family: var(--hp-font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hp-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.hp-footer-col a:hover { color: rgba(255,255,255,0.8); transform: translateX(2px); }
.hp-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.15);
}

/* ── Hamburger ── */
.header-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.header-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: all 0.2s ease;
}
.header-nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(45,45,45,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  flex-direction: column;
  gap: 12px;
  z-index: 49;
}
.header-nav-mobile.open { display: flex; }
.header-nav-mobile a {
  font-family: var(--hp-font-body);
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.6;
  text-decoration: none;
  padding: 8px 0;
}
.header-nav-mobile a:hover { opacity: 1; color: var(--coral); }

@media (max-width: 768px) {
  .header-hamburger { display: none !important; }
  .header-nav-mobile { display: none !important; }

  /* Falling hearts — subtler on mobile */
  .hp-heart { font-size: 12px !important; opacity: 0.08 !important; }

  /* Hero background glows — smaller on mobile */
  .hp-hero-glow { width: 300px; height: 300px; }
  .hp-hero-glow-2 { width: 250px; height: 250px; }

  /* Hero */
  .hp-hero { min-height: 0 !important; padding: 0 20px; }
  .hp-hero-inner { flex-direction: column; gap: 24px; padding: 32px 0 40px; text-align: center; min-height: 0 !important; }
  .hp-hero-text { flex: none; max-width: 100%; align-items: center; gap: 20px; }
  .hp-hero-headline { font-size: clamp(38px, 11vw, 60px); }
  .hp-hero-body { text-align: center; font-size: 14px; max-width: 90%; line-height: 1.6; color: var(--text-muted); }
  .hp-hero-buttons { justify-content: center; }
  .hp-hero-proof { justify-content: center; margin-top: 8px; }
  .hp-countdown { margin-bottom: 8px; }
  .hp-cd-num { font-size: 18px; }
  .hp-cd-box { min-width: 38px; padding: 5px 8px 3px; }
  .hp-cd-label { font-size: 10px; }
  .hp-hero-phones { flex: none; min-height: auto; justify-content: center; margin-top: -8px; }
  .hp-phone-back { display: none; }
  .hp-phone { width: 180px; height: 370px; border-radius: 28px; }
  .hp-phone-content { border-radius: 25px; }

  /* How it works */
  .hp-hiw { padding: 60px 20px; }
  .hp-hiw-inner { flex-direction: column; gap: 36px; }
  .hp-hiw-left { flex: none; max-width: 100%; position: static; }
  .hp-hiw-left .hp-display { font-size: clamp(32px, 8vw, 44px) !important; }
  .hp-hiw-left { text-align: center; align-items: center; }
  .hp-hiw-body { text-align: center; }
  .hp-hiw-right { width: 100%; }
  .hp-step { padding: 24px; gap: 16px; }
  .hp-step-icon { width: 48px; height: 48px; border-radius: 14px; }
  .hp-step-icon .material-symbols-outlined { font-size: 22px; }
  .hp-step-title { font-size: 17px; }

  /* Template gallery */
  .hp-gallery { padding: 48px 16px; }
  .hp-gallery-header .hp-display { font-size: clamp(32px, 7vw, 44px) !important; }
  .hp-gallery-arrow { display: none; }
  .hp-gcard { width: 220px; }
  .hp-gcard-preview { height: 170px; }
  .hp-gallery-track { gap: 16px; }

  /* Phone demo */
  .hp-demo-phone { width: 240px; height: 496px; border-radius: 40px; }
  .hp-demo-annotation { display: none; }
  .hp-demo-sub { margin-bottom: 36px; }

  /* Pricing features */
  .hp-features { grid-template-columns: 1fr; }

  /* Footer */
  .hp-footer { padding: 48px 20px 32px; }
  .hp-footer-inner { flex-direction: column; gap: 32px; }
  .hp-footer-links { flex-direction: column; gap: 32px; }

  /* Urgency */
  .hp-urgency { padding: 48px 20px; }
  .hp-urgency .hp-display { font-size: 36px; }
  .hp-urgency-proof { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* (Step card thumbnails removed — using icon approach now) */

/* ═══════════════════════════════════════════════════
   HOMEPAGE — Testimonial / Social Proof
   ═══════════════════════════════════════════════════ */
.hp-testimonial {
  background: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hp-testimonial .hp-display {
  color: #fff;
}
.hp-testimonial-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hp-testimonial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hp-testimonial-glow-1 {
  width: 500px;
  height: 500px;
  top: -20%;
  left: -10%;
  background: rgba(224, 122, 95, 0.08);
}
.hp-testimonial-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  right: -5%;
  background: rgba(129, 178, 154, 0.06);
}
.hp-quote-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 48px 40px 40px;
  margin-top: 56px;
  position: relative;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s ease;
}
.hp-quote-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.hp-quote-mark {
  position: absolute;
  font-family: var(--hp-font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--coral);
  opacity: 0.15;
  pointer-events: none;
}
.hp-quote-mark-open {
  top: -8px;
  left: 36px;
}
.hp-quote-mark-close {
  bottom: -40px;
  right: 36px;
}
.hp-buzz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hp-buzz-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(224, 122, 95, 0.1);
  border: 1px solid rgba(224, 122, 95, 0.15);
  color: var(--coral);
  font-family: var(--hp-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.hp-buzz-tag svg {
  flex-shrink: 0;
}
.hp-cursor {
  display: inline-block;
  color: var(--coral);
  font-weight: 300;
  animation: hpBlink .6s steps(2) infinite;
  margin-left: 2px;
}
@keyframes hpBlink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.hp-quote {
  margin: 0;
  min-height: 100px;
}
.hp-quote p {
  font-family: var(--hp-font-display);
  font-size: clamp(24px, 4vw, 38px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  font-weight: 400;
}
.hp-quote em {
  color: var(--coral);
  font-style: italic;
}
.hp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.hp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hp-stat-num {
  font-family: var(--hp-font-display);
  font-size: 36px;
  color: var(--charcoal);
  line-height: 1;
}
.hp-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--hp-font-body);
  font-weight: 500;
}
.hp-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(45, 45, 45, 0.08);
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — Occasions
   ═══════════════════════════════════════════════════ */
.hp-occasions {
  background: var(--bg-cream);
  padding: 60px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hp-occasions-header {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.hp-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hp-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.hp-marquee-right .hp-marquee-track {
  animation: hpMarqueeRight 40s linear infinite;
}
.hp-marquee-left .hp-marquee-track {
  animation: hpMarqueeLeft 40s linear infinite;
}
@keyframes hpMarqueeRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
@keyframes hpMarqueeLeft {
  0% { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}
.hp-otag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: var(--hp-radius-pill);
  font-family: var(--hp-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hp-otag:hover {
  border-color: rgba(224, 122, 95, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hp-otag-icon {
  font-size: 18px;
  color: var(--coral);
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — Enhanced Urgency CTA
   ═══════════════════════════════════════════════════ */
.hp-urgency .hp-display em {
  color: var(--coral);
  font-style: italic;
}
.hp-urgency-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--hp-font-body);
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — New Sections Responsive
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hp-testimonial { padding: 60px 16px; }
  .hp-quote-card { padding: 36px 24px 28px; }
  .hp-quote-mark { font-size: 80px; }
  .hp-quote-mark-open { left: 20px; }
  .hp-quote-mark-close { right: 20px; bottom: -28px; }
  .hp-occasions { padding: 48px 0; }
  .hp-otag { font-size: 13px; padding: 10px 18px; }
}
@media (max-width: 480px) {
  .hp-step-icon { width: 44px; height: 44px; border-radius: 12px; }
  .hp-step-icon .material-symbols-outlined { font-size: 20px; }
  .hp-hero-headline { font-size: clamp(34px, 10vw, 48px); }
  .hp-hero-body { font-size: 13px; line-height: 1.6; }
  .hp-hero-buttons { flex-direction: column; width: 100%; }
  .hp-hero-buttons .hp-btn-coral,
  .hp-hero-buttons .hp-btn-outline { width: 100%; justify-content: center; }
  .hp-hero-proof { flex-direction: column; gap: 6px; margin-top: 4px; }
  .hp-hero-proof-item { font-size: 11px; }
  .hp-countdown { align-self: center; margin-bottom: 4px; }
  .hp-cd-label { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 4px; }
  .hp-cd-box { min-width: 32px; padding: 3px 6px 2px; }
  .hp-cd-num { font-size: 15px; }
  .hp-cd-unit { font-size: 7px; }
  .hp-cd-sep { font-size: 14px; }
  .hp-phone { width: 160px; height: 330px; border-radius: 26px; }
  .hp-phone-content { border-radius: 23px; }
  .hp-gallery-header .hp-display { font-size: clamp(26px, 7vw, 34px) !important; }
  .hp-gcard { width: 200px; }
  .hp-gcard-preview { height: 150px; }
  .hp-gcard-info { padding: 14px; }
  .hp-gcard-name { font-size: 14px; }
  .hp-gcard-desc { font-size: 12px; }
  .hp-testimonial .hp-display { font-size: clamp(28px, 5vw, 36px) !important; }
  .hp-quote p { font-size: clamp(20px, 4vw, 28px); }
  .hp-occasions-header .hp-display { font-size: clamp(26px, 5vw, 36px) !important; }
  .hp-urgency .hp-display { font-size: 28px; }
  .hp-urgency-body { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — Infinite Gallery Marquee
   ═══════════════════════════════════════════════════ */

.hp-gallery-marquee {
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}
.hp-gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: hpMarquee 45s linear infinite;
}
.hp-gallery-track:hover {
  animation-play-state: paused;
}
@keyframes hpMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Override old gallery scroll styles */
.hp-gallery-scroll { display: none; }
.hp-gallery-arrow { display: none !important; }

/* Gallery card iframe previews */
.hp-gcard-preview {
  clip-path: inset(0);
}
.hp-gcard-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
}

/* Gallery footer with bigger button */
.hp-gallery-footer {
  text-align: center;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hp-gallery-price {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--hp-font-body);
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — Gallery Preview Animations
   ═══════════════════════════════════════════════════ */

/* Recap: number pulses, progress bar fills */
.hp-gp-num {
  animation: gpPulse 2.5s ease-in-out infinite;
  display: inline-block;
}
.hp-gp-fill {
  animation: gpFill 3s ease-in-out infinite;
}
@keyframes gpPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.5; }
}
@keyframes gpFill {
  0%, 100% { width: 20%; }
  50% { width: 80%; }
}

/* Quiz: ? wobbles */
.hp-gp-qmark {
  animation: gpWobble 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes gpWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

/* Map: pin glows, route dashes animate */
.hp-gp-pin {
  animation: gpGlow 2s ease-in-out infinite;
}
.hp-gp-route {
  animation: gpDash 4s linear infinite;
}
@keyframes gpGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(201,169,110,0.6); }
  50% { box-shadow: 0 0 20px rgba(201,169,110,0.9), 0 0 40px rgba(201,169,110,0.3); }
}
@keyframes gpDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

/* Letters: flap opens, letter peeks out */
.hp-gp-flap {
  animation: gpFlap 4s ease-in-out infinite;
}
.hp-gp-letter {
  animation: gpLetterPeek 4s ease-in-out infinite;
}
@keyframes gpFlap {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  35%, 65% { transform: translateX(-50%) scaleY(-0.6); }
}
@keyframes gpLetterPeek {
  0%, 100% { top: 20px; opacity: 0.7; }
  35%, 65% { top: 4px; opacity: 1; }
}

/* Scratch: lines fade, heart reveals */
.hp-gp-reveal {
  animation: gpReveal 4s ease-in-out infinite;
}
.hp-gp-sline {
  animation: gpScratch 4s ease-in-out infinite;
}
.hp-gp-sline:nth-child(3) { animation-delay: 0.3s; }
.hp-gp-sline:nth-child(4) { animation-delay: 0.6s; }
@keyframes gpReveal {
  0%, 25% { opacity: 0; transform: scale(0.8); }
  50%, 75% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.8); }
}
@keyframes gpScratch {
  0%, 20% { opacity: 1; }
  45%, 100% { opacity: 0; transform: translateX(10px); }
}

/* Coupons: fan out */
.hp-gp-coupon:nth-child(1) { animation: gpC1 3.5s ease-in-out infinite; }
.hp-gp-coupon:nth-child(2) { animation: gpC2 3.5s ease-in-out infinite; }
.hp-gp-coupon:nth-child(3) { animation: gpC3 3.5s ease-in-out infinite; }
@keyframes gpC1 { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-14deg) translateY(-4px); } }
@keyframes gpC2 { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-1deg) translateY(-6px); } }
@keyframes gpC3 { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg) translateY(-3px); } }

/* Timeline: dots pulse sequentially */
.hp-gp-dot {
  animation: gpDotPulse 3s ease-in-out infinite;
}
.hp-gp-dot:nth-of-type(2) { animation-delay: 0.4s; }
.hp-gp-dot:nth-of-type(3) { animation-delay: 0.8s; }
.hp-gp-dot:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes gpDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Deck: cards shuffle */
.hp-gp-card:nth-child(1) { animation: gpS1 3s ease-in-out infinite; }
.hp-gp-card:nth-child(2) { animation: gpS2 3s ease-in-out infinite 0.15s; }
.hp-gp-card:nth-child(3) { animation: gpS3 3s ease-in-out infinite 0.3s; }
@keyframes gpS1 { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(10deg) translateX(6px); } }
@keyframes gpS2 { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-2deg) translateX(3px); } }
@keyframes gpS3 { 0%, 100% { transform: none; } 50% { transform: rotate(-4deg) translateX(-2px); } }

/* Trending badge shimmer */
.hp-gcard-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

/* Responsive: slower marquee on mobile */
@media (max-width: 768px) {
  .hp-gallery-track { animation-duration: 30s; }
}

/* ═══════════════════════════════════════════════
   Select Template Page (.st-)
   ═══════════════════════════════════════════════ */

.st-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Header */
.st-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.st-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  background: rgba(224, 122, 95, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.st-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-charcoal);
  margin-bottom: 14px;
  line-height: 1.1;
}
.st-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
}

/* Grid */
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Card */
.st-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 32px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
}
.st-card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2), box-shadow 0.4s ease, opacity 0.5s ease;
  transition-delay: var(--delay, 0s);
}
.st-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
}
.st-card-pressed {
  transform: scale(0.97) !important;
  transition-duration: 0.15s !important;
}

/* Glow ring on hover */
.st-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(224,122,95,0.35), rgba(212,82,110,0.2), transparent, rgba(224,168,73,0.25));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.st-card:hover::before {
  opacity: 1;
}

/* Preview area */
.st-card-preview {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0);
}
/* Glossy sheen */
.st-card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 45%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
  z-index: 2;
}
.st-card-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
}

/* Badge overlays */
.st-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.st-card-badge .material-symbols-outlined {
  font-size: 14px;
  color: var(--color-primary);
}
.st-card-time {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.st-card-time .material-symbols-outlined {
  font-size: 13px;
}

/* Card body */
.st-card-body {
  padding: 22px 24px 24px;
}
.st-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}
.st-card-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Features */
.st-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.st-feature {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(224, 122, 95, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

/* CTA row */
.st-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.st-card-cta .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.st-card:hover .st-card-cta {
  opacity: 1;
  transform: translateX(0);
}
.st-card:hover .st-card-cta .material-symbols-outlined {
  transform: translateX(3px);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .st-page {
    padding: 32px 16px 64px;
  }
  .st-header {
    margin-bottom: 36px;
  }
  .st-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .st-card-preview {
    height: 240px;
  }
  .st-card-cta {
    opacity: 1;
    transform: none;
  }
}
