/* Site-wide finish: one typeface, quiet imagery, no eyebrow labels. Loaded last on every page. */

/* One font everywhere, including JS-rendered templates. Icon-font elements keep their glyph font. */
html, body,
body *:not(.hs-wordmark):not(.couture):not(.couture *):not(.ink-and-olive, .ink-and-olive *):not([class^="ti-"]):not([class*=" ti-"]):not([class^="flaticon"]):not([class*=" flaticon"]) {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }

/* Eyebrows / kickers removed: decorative labels above headings that repeat the heading. */
.kicker, .nx-kicker:not(.ink-and-olive *), .studio-kicker, .suite-kicker, .business-kicker,
.ed-eyebrow, .ed-opening-eyebrow, .hw-eyebrow, .ex-eyebrow,
.cover-copy > span:first-child, .cover-copy > small,
.vellum-number, .business-chapter, .suite-chapter, .hw-topline, .sf-topline { display: none !important; }

/* Minimal, premium image grade: softer saturation, gentle contrast. Logos and SVG art untouched. */
img:not([src$=".svg"]):not([src*="logo"]), video, picture img {
  filter: saturate(.82) contrast(1.04) brightness(1.01);
}

/* Brand book: softly rounded cards (16-24 px), pill buttons and fields. */
.studio :is(.studio-button, .studio-pill, .studio-login, .filter-toggle, .carousel-arrow) { border-radius: 999px !important; }
.studio :is(.collection-card, .step, .price-card, .experience-price-card, .occasion-card, .fc-frame, .lh-card) { border-radius: 24px; overflow: hidden; }
.studio :is(input, select, textarea) { border-radius: 12px; }

/* Visible keyboard focus everywhere. */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Template filters: off-canvas drawer, closed until "Filters" is pressed (native popover: Esc + outside click close it). */
.studio .discovery { grid-template-columns: minmax(0, 1fr) !important; }
.studio .discovery > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
.collection-tools > label:first-of-type { flex: 1; }
.filter-toggle { min-height: 44px; padding: 0 20px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.discovery-sidebar[popover] {
  position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); height: 100dvh; max-height: none; margin: 0;
  padding: 24px; border: 0; border-right: 1px solid var(--studio-line, #e3e5de); background: var(--surface, #faf8f2); color: inherit;
  overflow-y: auto; translate: -100% 0;
  transition: translate .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}
.discovery-sidebar[popover]:popover-open { translate: 0 0; }
@starting-style { .discovery-sidebar[popover]:popover-open { translate: -100% 0; } }
.discovery-sidebar[popover]::backdrop { background: rgba(18, 20, 16, .35); }
.discovery-sidebar[popover] .filter-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.discovery-sidebar[popover] .filter-heading h2 { flex: 1; font-size: 18px; }
.filter-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.discovery-sidebar[popover] fieldset { display: block !important; border: 0; margin: 0 0 24px; }
.discovery-sidebar[popover] legend { margin-bottom: 10px; font-weight: 600; }
.discovery-sidebar[popover] fieldset div { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; overflow: visible; }
.discovery-sidebar[popover] fieldset button { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .discovery-sidebar[popover] { transition: none; } }

/* Brand: momentsiz (brand book v1.0). Purple #7016D8, pink #F52D91, celebration orange #FF9238, blue #3548ED on ink #191527 / cloud #F8F6FC.
   Purple is 7.5:1 on white, so it carries small text and links. Pink (3.7:1) and orange stay on large type, sparks and decoration.
   Fills behind white labels stop at #C21C7A (5.6:1) so button text keeps WCAG AA. */
:root {
  --brand: #7016D8; --brand-rgb: 112, 22, 216;
  --brand-pink: #F52D91; --brand-orange: #FF9238; --brand-blue: #3548ED;
  --brand-strong: #7016D8; --brand-hover: #5A10B0; --brand-deep: #3E0A80;
  --brand-tint: #F3ECFD; --brand-soft: rgba(var(--brand-rgb), .12);
  --brand-ink: #191527; --brand-muted: #615C6E; --brand-cloud: #F8F6FC;
  --brand-gradient: linear-gradient(100deg, #F52D91 0%, #7016D8 55%, #3548ED 100%);
  --brand-fill: linear-gradient(115deg, #7016D8 0%, #A3179F 50%, #C21C7A 100%);
  --brand-radius: 16px;
  --lux-ink: var(--brand-ink); --lux-accent: var(--brand);
  --studio-ink: var(--brand-ink); --olive: var(--brand-strong); --olive-deep: var(--brand-ink); --gold: var(--brand-orange);
  --cinema-paper: var(--brand-ink); --cinema-accent: var(--brand-strong); --cinema-muted: var(--brand-muted); --studio-muted: var(--brand-muted);
  --primary: var(--brand-strong); --teal: var(--brand-strong); --teal-dark: var(--brand-hover); --teal-deep: var(--brand-deep); --teal-tint: var(--brand-tint);
  --action: var(--brand-strong); --action-hover: var(--brand-hover); --action-text: #fff;
}
.editor-page { --primary: var(--brand-strong); --studio-ink: var(--brand-ink); }
/* Neutral foundation: white pages, cloud surfaces (replaces the old warm cream papers). */
:root, .studio { --lux-paper: #FFFFFF; --studio-paper: #FFFFFF; --studio-bg: #FFFFFF; --rs-paper: var(--brand-cloud); --surface: #FFFFFF; --surface-soft: var(--brand-cloud); --cinema-ink: var(--brand-cloud); --cinema-panel: #FFFFFF; --cinema-line: #E7E3F0; }
body.studio { color: var(--brand-ink); background: #FFFFFF; }
.studio-header { background-color: rgba(255, 255, 255, .86) !important; background-image: none !important; }
body.studio h1:not(.ws *) { font-weight: 800; letter-spacing: -.03em; }
body.studio h2:not(.ws *) { font-weight: 700; }
:focus-visible { outline-color: var(--brand); }
::selection, body.studio ::selection { background: var(--brand-strong); color: #fff; }
.ui-scroll-progress { background: var(--brand-gradient) !important; }
.occasion-icon { color: var(--brand) !important; }
/* Large display headings carry the pink-purple-blue brand gradient (every stop clears 3:1 for large text). */
.studio :is(h1, h2) { color: var(--brand-ink); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.studio .mz-hero h1 { background: none; -webkit-text-fill-color: currentColor; }
.studio footer a:not([class]) { color: inherit; }
/* momentsiz wordmark (assets/momentsiz-logo.svg): min 120 px wide per the brand book, 25% clear space from the link padding. */
.studio-logo, .editor-page .ed-bar .studio-logo { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; }
.studio-logo::before { content: none !important; }
.studio-logo .logo-img { display: block; width: auto; height: 38px; }
.studio-footer .studio-logo .logo-img { height: 46px; }
@media (max-width: 767px) { .studio-logo .logo-img { height: 34px; } }
[data-page=home] .carousel-pagination .carousel-dot { background: rgba(var(--brand-rgb), .3); }
[data-page=home] .carousel-pagination .carousel-dot:is(.is-active, [aria-current="true"]) { background: var(--brand); }

/* Primary actions: orange-to-black gradient fill; hover slides toward black, press darkens. */
.studio-links .studio-pill, .studio-button:not(.light):not(.lime) { background: var(--brand-fill) !important; background-size: 200% 100% !important; background-position: 0 0 !important; border-color: transparent !important; color: #fff !important; transition: background-position .5s ease, box-shadow .3s, transform .35s; }
.studio-links .studio-pill:hover, .studio-button:not(.light):not(.lime):hover { background-position: 100% 0 !important; box-shadow: 0 12px 24px -16px rgba(var(--brand-rgb), .6); }
.studio-links .studio-pill:active, .studio-button:not(.light):not(.lime):active { filter: brightness(.88); }

/* Motion: short, purposeful feedback on interactive elements (100–300ms, ease-out). */
.studio a, .studio button, .studio input, .studio select, .studio textarea {
  transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out, transform .2s ease-out, box-shadow .2s ease-out;
}
.studio-button:hover, .studio-pill:hover, .filter-toggle:hover { transform: translateY(-1px); }
.studio-button:active, .studio-pill:active, .filter-toggle:active { transform: translateY(0) scale(.98); }
.collection-card, .occasion-grid a, .pricing-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease-out; }
.collection-card:hover, .occasion-grid a:hover, .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(var(--brand-rgb), .45); }
.collection-card img, .occasion-grid a img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.collection-card:hover img, .occasion-grid a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .collection-card:hover, .occasion-grid a:hover, .pricing-card:hover, .collection-card:hover img, .occasion-grid a:hover img { transform: none; }
}

/* Selected filters and focused fields in the brand colour (they were green). */
.studio .collection-selector button[aria-pressed="true"],
.studio .discovery-sidebar button[aria-pressed="true"],
.studio .studio-filter[aria-pressed="true"] { background: var(--brand-strong) !important; color: #fff !important; border-color: var(--brand-strong) !important; }
.studio :is(.collection-tools input, .collection-tools select, .studio-form input, .studio-form select, .studio-form textarea):focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); }

/* Template showroom: bar and footer stay fixed; only the theme scrolls between them, so nothing covers it. */
.studio .premium-showroom { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; padding: 0; border: 0; }
.premium-showroom[open] { display: flex; flex-direction: column; overflow: hidden; }
.premium-showroom-bar { position: static !important; flex: none; }
.premium-showroom-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; width: 100%; max-width: none !important; padding-inline: max(0px, calc((100% - 1100px) / 2)); }
.premium-showroom-footer { flex: none; padding: 10px 15px !important; border-top: 1px solid var(--studio-line, #e2d8c9); }

/* Preview chrome kept to one slim row top and bottom so the theme gets the space. */
.studio .premium-showroom-bar {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important; grid-template-areas: 'back title modes favorite' !important;
  gap: 8px 12px !important; padding: 6px clamp(10px, 2vw, 20px) !important;
}
.studio .premium-showroom-bar button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.studio .premium-showroom .showroom-name { justify-self: start !important; text-align: left !important; font-size: 12px !important; }
.studio .premium-showroom-modes { gap: 2px !important; }
.studio .premium-showroom-modes button { min-height: 36px !important; padding: 6px 12px !important; font-size: 13px; }
.studio .premium-showroom .showroom-heart { min-width: 36px !important; padding-inline: 8px !important; font-size: 16px !important; }
.studio .premium-showroom-content { padding-inline: 0 !important; }
.studio .premium-showroom-footer { gap: 8px !important; padding: 6px 12px !important; }
.studio .premium-showroom-footer :is(button, a) { min-height: 36px !important; padding: 6px 14px !important; font-size: 13px !important; }
.studio .premium-showroom-footer > span { font-size: 12px; opacity: .7; }
@media (max-width: 760px) {
  .studio .premium-showroom-bar { grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: 'back title favorite' 'modes modes modes' !important; }
  .studio .premium-showroom-footer > span, .studio .premium-showroom-footer .showroom-detail { display: none; }
}
/* Template-fixed bottom bars sit above the preview footer instead of under it. */
.premium-showroom .hw-nav { bottom: calc(49px + 14px); }
/* Card "experience" arrow was #222 on near-black; brand square with white arrow. */
.studio .card-experience { background: var(--brand-strong) !important; color: #fff !important; }
.studio .card-experience:hover { background: var(--brand-hover) !important; }
/* UI/UX floor: readable sizes, AA contrast, comfortable measure, 44px tap areas. */
.studio :is(.occasion-note, .footer-heading, .discovery-sidebar legend, .collection-selector legend, .step > span) { font-size: 12px !important; }
.studio .experience-price-meta b { color: var(--brand-strong) !important; }
.studio main p { max-width: 72ch; }
.studio .carousel-dot { position: relative; }
.studio .carousel-dot::after { content: ''; position: absolute; inset: -18px -6px; }
.studio .detail-hint { margin-inline: auto; color: var(--studio-muted) !important; }
/* 404: the primary path forward and a way home, side by side (H3 user control). */
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Editor chrome inside the live preview (section tools) in the brand colour, not the old green. */
.section-hover-tools button { border-color: rgba(var(--brand-rgb), .45) !important; color: var(--brand-strong) !important; }
/* Full-bleed home bands keep the header's 20px mobile gutter (they used 18px, 2px off the logo line). */
@media (max-width: 767px) {
  [data-page=home] :is(.home-discovery, .collection-section, .studio-steps), [data-page=collection] .collection-section { padding-inline: 20px; }
}
/* Catalogue grid (create + occasion pages): 601px-tall cards in three columns made the page 2,500px+ at desktop
   and a single 7,000px column on phones. Smaller cards show more designs per screen; filters stay the way to narrow. */
.studio .discovery .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 32px 20px !important; }
.studio .discovery .collection-card-top h3 { font-size: 22px !important; line-height: 1.15; }
@media (max-width: 1099px) { .studio .discovery .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 767px) {
  .studio .discovery .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
  .studio .discovery .discovery-results { padding-inline: 16px; }
  .studio .discovery .collection-card-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .studio .discovery .collection-card-top h3 { min-width: 0; font-size: 18px !important; line-height: 1.2; overflow-wrap: anywhere; }
  .studio .discovery .collection-card .card-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .studio .discovery .collection-card .card-bottom > * { justify-content: center; text-align: center; }
}
/* Phone card carousels (js/card-carousel.js): Swiper core layout plus the same 44px arrows and dots as the home carousel. */
.card-carousel { position: relative; overflow: hidden; }
.card-carousel .swiper-wrapper { display: flex !important; gap: 0 !important; grid-template-columns: none !important; }
.card-carousel .swiper-slide { flex-shrink: 0; height: auto; }
.card-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.card-carousel-controls .carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--studio-line, #e2e4df); background: transparent; color: var(--brand); font-size: 18px; cursor: pointer; }
.card-carousel-controls .carousel-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-carousel-controls .carousel-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.card-carousel-controls .carousel-pagination { display: flex; align-items: center; gap: 8px; }
.card-carousel-controls .carousel-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--brand-rgb), .3); cursor: pointer; transition: width .3s, background .3s; }
.card-carousel-controls .carousel-dot::after { content: ''; position: absolute; inset: -18px -6px; }
.card-carousel-controls .carousel-dot.is-active { width: 24px; border-radius: 10px; background: var(--brand); }
/* How it works: the three steps sit on one row at every width; phones swipe the row (scroll-snap) instead of stacking 700px of cards. */
[data-page=home] .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px !important; }
[data-page=home] .step { padding-block: 20px; }
[data-page=home] .step h3 { font-size: clamp(20px, 2.2vw, 26px) !important; margin: 14px 0 8px !important; }
[data-page=home] .step p { font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) {
  [data-page=home] .step-grid { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px !important; padding-top: 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  [data-page=home] .step { scroll-snap-align: start; }
  [data-page=home] .step::before { left: 0; } /* the -5px offset was clipped by the scroller */
}



/* Install prompt (js/install.js): a small card at the bottom; full width on phones, bottom-right on desktop. */
.mz-install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(112, 22, 216, .14); border-radius: 20px; background: #fff; color: #191527; font-family: 'Manrope', system-ui, sans-serif; box-shadow: 0 24px 60px -24px rgba(25, 21, 39, .45); opacity: 0; transform: translateY(16px); transition: opacity .25s ease-out, transform .25s ease-out; }
.mz-install.is-in { opacity: 1; transform: none; }
.mz-install img { flex: none; width: 44px !important; height: 44px !important; max-width: none; border-radius: 12px; filter: none; }
.mz-install > div:first-of-type { flex: 1; min-width: 160px; }
.mz-install strong { display: block; font-size: 15px; font-weight: 800; }
.mz-install span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #615C6E; }
.mz-install-actions { display: flex; gap: 8px; margin-left: auto; }
.mz-install button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(112, 22, 216, .22); border-radius: 999px !important; background: #fff; color: #191527; font: 700 14px 'Manrope', system-ui, sans-serif; cursor: pointer; }
.mz-install .mz-install-go { border-color: transparent; background: linear-gradient(115deg, #7016D8 0%, #A3179F 50%, #C21C7A 100%); color: #fff; }
.mz-install button:focus-visible { outline: 3px solid #F52D91; outline-offset: 2px; }
@media (min-width: 768px) { .mz-install { left: auto; right: 24px; bottom: 24px; width: 420px; } }
@media (prefers-reduced-motion: reduce) { .mz-install { transition: none; } }
