/* template-preview — marketing UI for QR template concepts */

.tp-body {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(800px 400px at -5% 40%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
  min-height: 100vh;
}

.tp-skip {
  position: absolute;
  left: -9999px;
}
.tp-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
}

.tp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tp-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.tp-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
  background: transparent;
}

.tp-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tp-brand__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tp-brand__sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .tp-nav {
    display: flex;
  }
}

.tp-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.tp-nav a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #1e1b4b;
}

.tp-nav a.tp-nav__cta {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.tp-nav a.tp-nav__cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

.tp-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(12, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

@media (min-width: 768px) {
  .tp-nav-toggle {
    display: none;
  }
}

.tp-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 60;
}

.tp-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tp-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(12, 18, 32, 0.08);
  padding: 5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(110%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 70;
}

.tp-mobile-panel.is-open {
  transform: translateX(0);
}

.tp-mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 14px;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}

.tp-mobile-panel a:hover {
  background: rgba(79, 70, 229, 0.07);
  color: #1e1b4b;
}

body.tp-nav-open {
  overflow: hidden;
}

/* Hero */
.tp-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.tp-hero--hub {
  text-align: center;
  padding-top: 3rem;
}

.tp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.tp-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tp-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.78);
}

.tp-hero--hub .tp-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

/* Theme hero gradients */
.tp-theme--hunt .tp-hero__surface {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 40%, #fed7aa 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(251, 146, 60, 0.25);
  box-shadow: 0 20px 60px rgba(234, 88, 12, 0.12);
}
.tp-theme--hunt .tp-hero__badge {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(251, 146, 60, 0.4);
  color: #9a3412;
}

.tp-theme--portfolio .tp-hero__surface {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 45%, #ddd6fe 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12);
}
.tp-theme--portfolio .tp-hero__badge {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.tp-theme--invitation .tp-hero__surface {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(244, 63, 94, 0.22);
  box-shadow: 0 20px 60px rgba(244, 63, 94, 0.1);
}
.tp-theme--invitation .tp-hero__badge {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(244, 63, 94, 0.35);
  color: #be123c;
}

.tp-theme--anonymous .tp-hero__surface {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 45%, #ddd6fe 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(109, 40, 217, 0.2);
  box-shadow: 0 24px 70px rgba(91, 33, 182, 0.12);
}
.tp-theme--anonymous .tp-hero__badge {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(109, 40, 217, 0.35);
  color: #5b21b6;
}

.tp-theme--card .tp-hero__surface {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.12);
}
.tp-theme--card .tp-hero__badge {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.tp-theme--menu .tp-hero__surface {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #fde68a 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 60px rgba(217, 119, 6, 0.12);
}
.tp-theme--menu .tp-hero__badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(245, 158, 11, 0.4);
  color: #b45309;
}

.tp-theme--video .tp-hero__surface {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 45%, #fecaca 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.1);
}
.tp-theme--video .tp-hero__badge {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.tp-theme--wifi .tp-hero__surface {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}
.tp-theme--wifi .tp-hero__badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}

.tp-theme--customize .tp-hero__surface {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 45%, #f5d0fe 100%);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(192, 38, 211, 0.22);
  box-shadow: 0 20px 60px rgba(162, 28, 175, 0.1);
}
.tp-theme--customize .tp-hero__badge {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(192, 38, 211, 0.35);
  color: #a21caf;
}

.tp-theme--hub .tp-hero__surface {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #eef2ff 100%);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}
.tp-theme--hub .tp-hero__badge {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
  border-color: rgba(99, 102, 241, 0.25);
  color: #4338ca;
}

/* Main content */
.tp-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.tp-section-title {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #0f172a;
}

.tp-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.tp-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.tp-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

/* Hub grid cards */
.tp-hub-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .tp-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .tp-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12);
}

.tp-hub-card__art {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.tp-hub-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.tp-hub-card__body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tp-hub-card__body p {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.tp-hub-card__link {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #4f46e5;
}

/* Phone mock */
.tp-mock-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.tp-phone {
  width: min(320px, 100%);
  border-radius: 2rem;
  border: 3px solid #1e293b;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 0.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.tp-phone__notch {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.tp-phone__notch span {
  width: 88px;
  height: 22px;
  background: #0f172a;
  border-radius: 999px;
}

.tp-phone__screen {
  border-radius: 1.35rem;
  overflow: hidden;
  background: #f8fafc;
  min-height: 380px;
}

/* Embed output/*.php scan previews inside the phone mock (qr-hunt, etc.) */
.tp-phone--output {
  width: min(390px, 100%);
}

.tp-phone__screen--iframe {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tp-phone__iframe {
  flex: 1;
  width: 100%;
  min-height: 28rem;
  height: 36rem;
  max-height: min(70vh, 40rem);
  border: 0;
  display: block;
  background: #fff;
}

.tp-mock-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
}

.tp-mock-caption a {
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.tp-mock-caption a:hover {
  text-decoration: underline;
}

.tp-phone__bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

/* Mock QR pattern */
.tp-fake-qr {
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  border-radius: 0.5rem;
  background:
    repeating-linear-gradient(0deg, #0f172a 0, #0f172a 4px, #fff 4px, #fff 8px),
    repeating-linear-gradient(90deg, #0f172a 0, #0f172a 4px, #fff 4px, #fff 8px);
  background-blend-mode: multiply;
  opacity: 0.9;
}

.tp-steps {
  display: grid;
  gap: 1rem;
  counter-reset: tpstep;
}

@media (min-width: 768px) {
  .tp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tp-step {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 3rem;
}

.tp-step::before {
  counter-increment: tpstep;
  content: counter(tpstep);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-step h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.tp-step p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.tp-cta {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(49, 46, 129, 0.35);
}

.tp-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.tp-cta p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  opacity: 0.92;
  line-height: 1.55;
}

.tp-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

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

.tp-btn--light {
  background: #fff;
  color: #312e81;
}

.tp-btn--light:hover {
  filter: brightness(1.05);
}

.tp-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.tp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tp-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.6);
  margin-top: 2rem;
}

.tp-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.tp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tp-footer a {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
}

.tp-footer a:hover {
  color: #4f46e5;
}

/* Inner mock blocks */
.tp-mock-pad {
  padding: 1rem;
}

.tp-mock-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}

.tp-mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  flex-shrink: 0;
}

.tp-mock-price {
  margin-left: auto;
  font-weight: 900;
  color: #0f172a;
}

.tp-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-pill--live {
  background: #fee2e2;
  color: #b91c1c;
}

.tp-pill--rsvp {
  background: #d1fae5;
  color: #047857;
}

/* Hub card art backgrounds */
.tp-art-hunt {
  background: linear-gradient(135deg, #ffedd5, #fb923c);
}
.tp-art-portfolio {
  background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
}
.tp-art-invitation {
  background: linear-gradient(135deg, #ffe4e6, #fb7185);
}
.tp-art-anonymous {
  background: linear-gradient(135deg, #ede9fe, #a78bfa);
}
.tp-art-card {
  background: linear-gradient(135deg, #d1fae5, #34d399);
}
.tp-art-menu {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
}
.tp-art-video {
  background: linear-gradient(135deg, #fee2e2, #f87171);
}
.tp-art-wifi {
  background: linear-gradient(135deg, #dbeafe, #60a5fa);
}
.tp-art-customize {
  background: linear-gradient(135deg, #fae8ff, #e879f9);
}
