:root {
  --ivory: #faf7f2;
  --ivory-soft: #f3ece3;
  --ivory-card: #fffdf9;
  --maroon: #5c1a28;
  --maroon-deep: #3d1219;
  --pink: #e8759a;
  --pink-soft: #f4a5bb;
  --pink-bg: rgba(232, 117, 154, 0.1);
  --gold: #b8943f;
  --gold-soft: #d4b76a;
  --text: #2a1818;
  --muted: #6b5b5b;
  --border: rgba(92, 26, 40, 0.1);
  --shadow: 0 20px 50px rgba(61, 18, 25, 0.08);
  --shadow-lg: 0 32px 80px rgba(61, 18, 25, 0.14);
  --radius: 18px;
  --price: 1499;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}




.section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--maroon-deep);
  margin-bottom: 12px;
}

.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img { height: 40px; width: auto; }

.nav { display: none; align-items: center; gap: 22px; }

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

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

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, #7a2438 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(92, 26, 40, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid rgba(92, 26, 40, 0.25);
}

.btn-outline:hover { background: var(--pink-bg); }

.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 117, 154, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--border);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 600;
  color: var(--maroon);
  font-size: 15px;
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 959px) {
  .header-actions .btn-text-hide { display: none; }
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(232, 117, 154, 0.12), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(184, 148, 63, 0.08), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--ivory) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--maroon-deep);
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { display: flex; justify-content: center; }

.hero-phone {
  width: min(76vw, 268px);
  aspect-ratio: 390 / 844;
  height: auto;
  position: relative;
  pointer-events: none;
  user-select: none;
  margin: 0 auto;
}

.hero-phone-frame {
  border-radius: 36px;
}

.hero-phone-screen {
  inset: 9px !important;
  border-radius: 30px !important;
  background: #fff;
  overflow: hidden;
}

.hero-phone-screen .phone-iframe-scaler {
  border-radius: 30px;
  overflow: hidden;
  clip-path: none;
  -webkit-clip-path: none;
}

.hero-phone-frame,
.modal-phone-frame,
.phone-frame {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  border: 4px solid var(--maroon-deep);
  background: #111;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-phone-frame::before,
.modal-phone-frame::before,
.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  z-index: 4;
  pointer-events: none;
}

.phone-screen,
.hero-phone-screen,
.modal-phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  z-index: 1;
  isolation: isolate;
}

.phone-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(35, 20, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.hero-phone-screen .phone-screen-overlay {
  display: none;
}

.phone-screen-overlay img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.phone-screen-overlay span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.phone-iframe-scaler {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  clip-path: inset(0 round 28px);
  -webkit-clip-path: inset(0 round 28px);
}

.phone-iframe-scaler iframe {
  border: 0;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-phone .phone-iframe-scaler iframe,
.phone-iframe-scaler iframe.is-hero-preview {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: 30px;
}

.modal-phone-screen .phone-iframe-scaler iframe,
.phone-iframe-scaler iframe.is-modal-demo {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.phone-iframe-scaler iframe::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .phone-screen-overlay { height: 72px; padding: 0 16px; }
  .phone-screen-overlay img { height: 28px; }
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .hero-phone {
    width: clamp(240px, 17vw, 280px);
    margin: 0;
  }
}

/* Page hero (templates / partner) */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--ivory-soft));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--maroon-deep);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Stats */
.stats {
  padding: 28px 0;
  border-block: 1px solid var(--border);
  background: var(--ivory-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat { text-align: center; padding: 16px 10px; }

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--pink-bg);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--maroon-deep);
  margin-bottom: 4px;
}

.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }

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

/* Catalog */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--ivory-card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.tpl-card {
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tpl-card.is-hidden { display: none; }

.tpl-card-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 14px;
  align-items: start;
  flex: 1;
}

.tpl-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.tpl-preview-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
  padding-top: 2px;
}

.tpl-phone {
  width: 100px;
  height: 200px;
  border-radius: 22px;
  border: 2.5px solid var(--maroon-deep);
  background: #111;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

.tpl-phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  z-index: 2;
}

.tpl-phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 17px;
  background: center / cover no-repeat;
  animation: preview-pan 14s ease-in-out infinite alternate;
}

@keyframes preview-pan {
  0% { background-position: center 0%; background-size: cover; }
  100% { background-position: center 85%; background-size: cover; }
}

.save-badge {
  display: inline-block;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 148, 63, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  white-space: nowrap;
}

.tpl-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1.15;
  margin-bottom: 4px;
}

.tpl-category { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.tpl-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.tpl-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 6px;
  flex-shrink: 0;
}

.tpl-actions .btn,
.card-actions .btn {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 520px) {
  .tpl-card-inner {
    grid-template-columns: 88px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .tpl-phone {
    width: 80px;
    height: 160px;
  }

  .tpl-pricing {
    margin-bottom: 10px;
  }

  .card-actions,
  .tpl-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .card-actions .btn,
  .tpl-actions .btn {
    width: 100%;
    flex: none;
    white-space: nowrap;
    font-size: 11px;
    padding: 10px 10px;
  }
}

.old-price { font-size: 14px; color: var(--muted); text-decoration: line-through; }

.current-price { font-size: 1.25rem; font-weight: 700; color: var(--maroon); }

.view-more-wrap { text-align: center; margin-top: 36px; }

@media (min-width: 640px) {
  .catalog { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tpl-card-inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 0;
    align-items: stretch;
  }
  .tpl-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 16px 10px;
    background: linear-gradient(180deg, var(--ivory-soft), var(--ivory-card));
  }
  .tpl-phone { width: 118px; height: 236px; margin: 0 auto; }
  .tpl-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .tpl-actions,
  .card-actions { gap: 12px; }
  .tpl-actions .btn,
  .card-actions .btn { font-size: 12px; flex: 1 1 calc(50% - 6px); }
}

@media (min-width: 1024px) {
  .catalog { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 1280px) {
  .catalog.catalog-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step {
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), #7a2438);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--maroon-deep);
  margin-bottom: 8px;
}

.step p { font-size: 14px; color: var(--muted); }

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

/* Included */
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.included-item {
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}

.included-item .icon { font-size: 22px; margin-bottom: 8px; }

.included-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon-deep);
}

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

/* Partner teaser */
.partner-teaser {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  display: grid;
  gap: 24px;
  align-items: center;
}

.partner-teaser h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.partner-teaser p { opacity: 0.88; font-size: 15px; line-height: 1.65; }

.partner-teaser .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

@media (min-width: 768px) {
  .partner-teaser { grid-template-columns: 1.4fr auto; padding: 48px 40px; }
}

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

.faq-item {
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--maroon-deep);
}

.faq-q span:last-child {
  font-size: 20px;
  color: var(--pink);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-q span:last-child { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.is-open .faq-a { max-height: 220px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #6b2235 50%, var(--maroon) 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 48px 24px;
  margin: 0 20px;
  max-width: 1160px;
  margin-inline: auto;
}

.cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.88;
  margin-bottom: 24px;
  max-width: 480px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand img { height: 36px; margin-bottom: 12px; }

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.65;
}

.footer-links h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--maroon); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Legal pages */
.legal-page {
  padding-bottom: 48px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 56px;
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.legal-meta {
  background: var(--ivory-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.legal-meta p {
  margin: 0 0 4px;
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--maroon-deep);
  margin: 36px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 1.25rem;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text);
}

.legal-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.legal-content a:hover {
  color: var(--maroon-deep);
}

/* Modal */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 24, 24, 0.65);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  background: var(--ivory-card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--maroon);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-preview {
  padding: 48px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--ivory-soft), var(--ivory-card));
}

.modal-phone {
  width: min(86vw, 330px);
  height: min(64vh, 580px);
  flex-shrink: 0;
  margin: 0 auto;
}

.modal-details {
  padding: 8px 24px 28px;
  overflow-y: auto;
  min-height: 0;
}

.modal-actions .btn { width: 100%; }

/* Urgency slider */
.modal-urgency {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(92, 26, 40, 0.06), rgba(184, 148, 63, 0.1));
  border: 1px solid rgba(184, 148, 63, 0.22);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.urgency-track {
  position: relative;
  width: 100%;
  min-height: 24px;
}

.urgency-msg {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon-deep);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  line-height: 1.4;
}

.urgency-msg.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Order process */
.modal-process {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-process-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--maroon-deep);
  margin-bottom: 16px;
}

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-steps li:not(.process-arrow) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ivory-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

.process-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(92, 26, 40, 0.08);
  font-size: 14px;
}

.process-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  padding: 2px 0;
}

/* Trust strip */
.modal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(92, 26, 40, 0.04);
  border: 1px solid var(--border);
}

.trust-item {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item span {
  color: var(--gold);
  font-size: 11px;
}

.modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--maroon-deep);
  margin-bottom: 6px;
}

.modal-category { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

.modal-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.modal-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.modal-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}

.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions .btn { width: 100%; }

@media (min-width: 768px) {
  .modal-panel {
    grid-template-columns: minmax(260px, 0.92fr) 1.08fr;
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
  }
  .modal-preview {
    padding: 40px 20px 24px;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-phone {
    width: clamp(260px, 24vw, 340px);
    height: min(82vh, 720px);
    max-height: 82vh;
  }
  .modal-details {
    padding: 36px 28px 28px 8px;
    overflow-y: auto;
    max-height: 92vh;
    max-height: 92dvh;
  }
  .modal-features { grid-template-columns: 1fr 1fr; }
  .trust-item { flex: 1 1 auto; }
}

@media (max-width: 767px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-preview {
    padding: 44px 16px 12px;
  }
  .modal-phone {
    width: min(86vw, 330px);
    height: 700px;
  }
  .modal-details {
    padding: 12px 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    overflow-y: visible;
  }
  .modal-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top, 0px));
    right: 8px;
    z-index: 10001;
  }
}

/* Partner Studio */
.partner-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.partner-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.partner-benefit {
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.partner-benefit strong {
  display: block;
  color: var(--maroon-deep);
  margin-bottom: 6px;
  font-size: 15px;
}

.partner-benefit span { font-size: 14px; color: var(--muted); }

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

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.partner-item:hover { border-color: rgba(92, 26, 40, 0.25); }

.partner-item.is-at-limit {
  opacity: 0.55;
  pointer-events: none;
}

.partner-item.is-selected {
  border-color: var(--maroon);
  background: rgba(92, 26, 40, 0.04);
}

.partner-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--maroon);
  flex-shrink: 0;
}

.partner-item-thumb {
  width: 44px;
  height: 78px;
  border-radius: 10px;
  border: 2px solid var(--maroon-deep);
  background: center / cover no-repeat;
  flex-shrink: 0;
}

.partner-item-info { flex: 1; min-width: 0; }

.partner-item-info strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: var(--maroon-deep);
}

.partner-item-info span { font-size: 13px; color: var(--muted); }

.partner-cart {
  position: sticky;
  bottom: 0;
  background: var(--ivory-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.partner-cart h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--maroon-deep);
  margin-bottom: 16px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--muted);
}

.cart-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon-deep);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.discount-badge {
  display: none;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(184, 148, 63, 0.15);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.discount-badge.is-visible { display: block; }

.cart-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.partner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .partner-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .partner-cart { position: sticky; top: 96px; bottom: auto; }
}
