@import url('../css/mobile-scroll.css');
/* Public controls use fill/colour feedback, without clipped focus outlines. */
:is(.site-header,.route-page,#site-footer,.template-dialog) :is(a,button,[role="button"],summary):focus{outline:none!important}
.template-card .template-preview{border:0;outline:none}
.template-card .template-preview:focus-visible{background:var(--card-color)}
.template-dialog .preview-image.is-placeholder{background:color-mix(in srgb,var(--preview-swatch,var(--pink)) 80%,var(--surface));box-shadow:none}
/* Card placeholders share the real grid, cover ratio and text spacing. */
.template-skeleton{pointer-events:none;--card-dark:var(--tag);--card-color:var(--tag)}
.template-skeleton .template-surface{background:var(--tag)}
.template-skeleton .template-surface::before,.template-skeleton .template-surface::after,.template-skeleton .template-info::before{display:none}
.template-skeleton .template-info{backdrop-filter:none;-webkit-backdrop-filter:none}
.template-skeleton .skeleton-line{display:block;height:10px;width:90%;margin-block:2px;border-radius:4px;background:color-mix(in srgb,var(--muted) 15%,var(--surface))}
.template-skeleton .skeleton-title{height:20px;width:48%;margin:0}
.template-skeleton .skeleton-description{width:65%}
.template-skeleton .skeleton-id{width:32%;height:14px;margin:0}
.skeleton-fill,.template-surface.is-cover-loading::before{background:linear-gradient(100deg,var(--tag) 20%,color-mix(in srgb,var(--muted) 14%,var(--surface)) 45%,var(--tag) 70%);background-size:240% 100%;animation:template-skeleton-shimmer 1.6s ease-in-out infinite}
.template-surface.is-cover-loading::before{top:0;z-index:1;transform:none}
.template-surface.is-cover-loading>.template-cover{opacity:0}
@keyframes template-skeleton-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.skeleton-fill,.template-surface.is-cover-loading::before{animation:none}}
/* Subtly separate the sticky navigation from content after scrolling. */
.site-header{box-shadow:0 4px 16px transparent;transition:box-shadow .2s ease}
.site-header.is-scrolled{box-shadow:0 4px 16px rgb(24 32 48 / 8%)}
[data-appearance="dark"] .site-header.is-scrolled{box-shadow:0 4px 16px rgb(0 0 0 / 18%)}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}
/* Disable native touch highlighting, including nested SVG artwork. */
html{-webkit-tap-highlight-color:rgba(0,0,0,0)}
*,*::before,*::after{-webkit-tap-highlight-color:inherit}
.template-copy-id{border:0;background:transparent;color:inherit;font:inherit;font-size:11px;cursor:inherit;margin-top:12px;opacity:.65;padding:0}.template-copy-id:only-child{display:block;margin-top:0}
.managed-banners{position:relative;margin-block:50px;overflow:hidden;border-radius:24px}.managed-banners>img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover}.managed-banners>div:not(.managed-banner-controls){display:none}.managed-banners[data-layout="split"]{display:grid;grid-template-columns:1fr 1fr;background:var(--accent-soft);align-items:center}.managed-banners[data-layout="split"]>img{grid-column:2;aspect-ratio:1.5;grid-row:1}.managed-banners[data-layout="split"]>div:not(.managed-banner-controls){display:block;grid-column:1;grid-row:1;padding:30px}.managed-banners h2{font-size:28px;margin:0 0 16px}.managed-banner-controls{display:flex;gap:8px;position:absolute;bottom:12px;right:12px}.managed-banner-controls button{border:0;border-radius:20px;background:var(--surface);color:var(--ink);padding:9px 15px;cursor:pointer}.managed-benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:28px;padding-block:45px 75px}.managed-benefits h3{font-size:18px}.managed-benefits p{font-size:13px;line-height:1.8;opacity:.7}.benefit-icon .icon,.highlight-icon .icon{display:inline-block;width:var(--highlight-glyph-size);height:var(--highlight-glyph-size);vertical-align:middle}.content-error{padding:30px;grid-column:1/-1}.feature-rail a[hidden]{display:none}
@media(max-width:600px){.managed-banners[data-layout="split"]{display:flex;flex-direction:column}.managed-banners[data-layout="split"]>img{aspect-ratio:1.5}.managed-banners[data-layout="split"]>div:not(.managed-banner-controls){padding:24px 24px 55px}.managed-banners>img{aspect-ratio:2/1}.managed-benefits{gap:15px}}

/* The page control floats over the viewport without reserving a gutter. */
:root{scrollbar-width:none;scrollbar-gutter:auto}
:root::-webkit-scrollbar{display:none;width:0;height:0}
.page-scrollbar[hidden]{display:none}
.page-scrollbar{--pink:var(--accent,#ED3457);position:fixed;z-index:45;top:20vh;top:20dvh;right:0;width:20px;height:60vh;height:60dvh;touch-action:none;user-select:none;cursor:pointer;outline-offset:-3px}
.template-dialog{scrollbar-width:none}
.template-dialog::-webkit-scrollbar{display:none;width:0;height:0}
.preview-chrome .dialog-scrollbar{position:absolute;right:0}
.page-scrollbar-track{position:absolute;top:0;bottom:0;right:5px;width:4px;border-radius:999px;background:color-mix(in srgb,var(--muted) 20%,transparent)}
.page-scrollbar-progress{position:absolute;inset:0 0 auto;height:var(--scroll-progress,0%);border-radius:inherit;background:color-mix(in srgb,var(--pink) 45%,transparent);pointer-events:none}
.page-scrollbar-thumb{position:absolute;top:0;left:-1px;width:6px;min-height:28px;border-radius:999px;background:var(--pink);box-shadow:0 0 9px color-mix(in srgb,var(--pink) 25%,transparent);cursor:grab;transition:background .2s,box-shadow .2s}
.page-scrollbar:is(:hover,:focus-visible,.is-dragging) .page-scrollbar-thumb{box-shadow:0 0 12px color-mix(in srgb,var(--pink) 55%,transparent)}
.page-scrollbar.is-dragging,.page-scrollbar.is-dragging .page-scrollbar-thumb{cursor:grabbing}
.page-scrollbar:focus-visible{outline:2px solid var(--pink)!important;border-radius:999px}
@media(forced-colors:active){.page-scrollbar-track{background:CanvasText}.page-scrollbar-progress{background:Highlight}.page-scrollbar-thumb{background:Highlight;border:1px solid Canvas}}

/* Both carousel forms occupy the same opening slot and keep separate slide lists. */
#overview>.showroom-hero[hidden],.hero-image-carousel[hidden],.showroom-media [hidden],.hero-carousel-controls [hidden]{display:none!important}
.showroom-copy h1 .hero-title-line{display:block;color:var(--ink)}
.showroom-copy h1 .hero-title-accent{display:block;color:var(--pink)}
.showroom-copy>p{white-space:pre-line;overflow-wrap:anywhere}
.showroom-copy h1{overflow-wrap:anywhere}
.showroom-hero{position:relative}
.hero-custom-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;animation:hero-slide-in .45s ease both}
.showroom-media[data-artwork=image]{mask-image:none}
.hero-carousel-controls{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:12px}
.hero-carousel-controls>button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--tag);color:var(--ink);font-size:23px;line-height:1}
.hero-carousel-controls>button:hover{color:var(--pink)}
.hero-carousel-dots{display:flex;gap:8px;align-items:center}
.hero-carousel-dots button{width:9px;height:9px;padding:0;border:0;border-radius:99px;background:var(--muted);opacity:.4}
.hero-carousel-dots button[aria-current=true]{width:25px;background:var(--pink);opacity:1}
.hero-image-carousel{position:relative;margin-block:24px 0;border-radius:14px;background:transparent;overflow:hidden;isolation:isolate}
.hero-image-stage{aspect-ratio:3/1;touch-action:pan-y}
.hero-image-stage :is(.banner-image,.banner-reference){display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.hero-image-stage .swiper-slide{height:100%}
.hero-image-carousel .skitter-effect-layer{position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none}
.hero-image-carousel .skitter-tile{position:absolute;overflow:hidden;transform-origin:center;will-change:transform,opacity;line-height:0}
.hero-image-stage .swiper-slide{width:100%}
.hero-image-carousel .hero-carousel-controls{left:50%;right:auto;bottom:16px;transform:translateX(-50%);gap:4px;background:color-mix(in srgb,var(--surface) 75%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:4px 6px;border-radius:5px;color:var(--accent-ink);text-shadow:none;box-shadow:0 2px 12px #0000000d}
.hero-image-carousel .hero-carousel-controls>button{background:transparent;border:0;color:inherit;opacity:.75}
.hero-image-carousel .hero-carousel-count{display:inline-grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:.35em;flex:none;width:max(64px,calc(var(--counter-digits,2)*2ch + 2em));min-width:64px;text-align:center;white-space:nowrap;font-size:13px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5}
.hero-image-carousel .hero-carousel-current{text-align:right}.hero-image-carousel .hero-carousel-total{text-align:left}.hero-image-carousel .hero-carousel-separator{text-align:center}
.hero-image-carousel .hero-carousel-controls button:is(:hover,:focus-visible){opacity:1;color:var(--pink)}
/* Form one shares one continuous surface with the content below it. */
#overview[data-carousel-layout=image]{display:flow-root;background:radial-gradient(ellipse at 12% 0%,#eaf3ed33,transparent 52%),radial-gradient(ellipse at 90% 0%,#f7eee433,transparent 54%),#f8f9fb}
[data-appearance=dark] #overview[data-carousel-layout=image]{background:#151a25}
#overview[data-carousel-layout=image]>:is(.template-gallery,.managed-benefits-surface){background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.banner-type-tabs{display:flex;gap:10px;margin:16px 0}
@keyframes hero-slide-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:600px){.hero-carousel-controls{bottom:14px}.showroom-hero .hero-carousel-controls{left:24px;transform:none}.hero-image-carousel{margin-top:16px;border-radius:9px}.hero-image-carousel .hero-carousel-controls{bottom:8px;gap:2px;padding:3px 5px}.hero-image-carousel .hero-carousel-count{width:max(56px,calc(var(--counter-digits,2)*2ch + 2em));min-width:56px;font-size:12px}.hero-image-carousel .hero-carousel-controls>button{width:24px;height:24px;font-size:18px}.banner-type-tabs .button{padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.hero-custom-image{animation:none}}

/* Keep the benefits above the sticky hero, with an opaque full-width surface. */
.managed-benefits-surface{position:relative;z-index:1;isolation:isolate;background:#fff}
[data-appearance="dark"] .managed-benefits-surface{background:#151a25}
/* Feature highlights share the active brand accent in both appearances. */
.managed-benefits{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px;padding-block:40px 48px}
.managed-benefits article{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0;text-align:center}
.managed-benefits .benefit-icon{display:grid;place-items:center;width:var(--highlight-circle-size);height:var(--highlight-circle-size);flex:0 0 var(--highlight-circle-size);border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);line-height:1}

.managed-benefits h3{margin:0;color:#697180;font-size:14px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.managed-benefits p{display:none}
[data-appearance="dark"] .managed-benefits h3{color:var(--muted)}
@media(max-width:600px){.managed-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px;padding-block:32px 40px}.managed-benefits article{gap:12px}.managed-benefits h3{font-size:13px}}
/* Preserve the official artwork without inheriting generic icon strokes or skew. */
.brand{--accent:var(--pink);transform:none;color:var(--ink);line-height:0}
.brand .brand-logo{display:block;width:144px;height:36px;stroke:none}
.tags li.feature-more{position:relative}
.feature-more a{display:flex;align-items:center;gap:6px}
.feature-more a svg{width:14px;height:14px;flex:none}
.feature-more a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.tags li.feature-more:is(:hover,:focus-within){color:var(--pink)}
.preview-color{flex-wrap:wrap}
.preview-color-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.preview-color-option{display:inline-flex;align-items:center;gap:10px}
.preview-color-option,.preview-color>.feature-more{position:relative;display:inline-flex;padding:8px 11px;border-radius:7px;background:var(--tag);color:#4e5868;font-size:13px;line-height:1.5}
[data-appearance="dark"] :is(.preview-color-option,.preview-color>.feature-more){color:#c4cedf}
.preview-color>.feature-more:is(:hover,:focus-within){color:var(--pink)}
@media(max-width:600px){.brand .brand-logo{width:120px;height:30px}}
@media(forced-colors:active){.brand .brand-logo path{fill:CanvasText}}

/* Prelaunch templates keep details available while demo access is closed. */
.preview-demo-actions[hidden]{display:none}
#preview-demo-status.is-coming-soon{margin:24px 0 0;color:var(--pink);font-size:16px;line-height:1.7}
.template-card .template-coming-soon{position:relative;margin:0;padding:8px 12px;border-radius:8px;background:var(--surface);color:var(--pink);font-size:12px;font-weight:400;line-height:1.5;text-align:center;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.template-card:hover .template-coming-soon,body.keyboard-navigation .template-card:focus-within .template-coming-soon{opacity:1;visibility:visible}
.template-card.is-coming-soon{cursor:pointer}

/* Lift parameters and benefits with a slower return after hover. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  #features .feature-copy :is(.tags,.feature-highlights)>li,
  #overview .managed-benefits article,
  .template-dialog .preview-fact .tags>li,
  .template-dialog .preview-color-option,
  .template-dialog .preview-color>.feature-more{--hover-lift-duration:.48s;translate:0 0;transition:translate var(--hover-lift-duration) ease}
  #features .feature-copy .tags.scroll-reveal>li{
    transition:opacity .5s ease calc(var(--reveal-delay,0ms) + var(--tag-delay,0ms) + 80ms),transform .6s cubic-bezier(.22,1,.36,1) calc(var(--reveal-delay,0ms) + var(--tag-delay,0ms) + 80ms),translate var(--hover-lift-duration) ease;
  }
  #features .feature-copy :is(.tags,.feature-highlights)>li:is(:hover,:focus-within),
  #overview .managed-benefits article:hover,
  .template-dialog .preview-fact .tags>li:is(:hover,:focus-within),
  .template-dialog .preview-color-option:hover,
  .template-dialog .preview-color>.feature-more:is(:hover,:focus-within){--hover-lift-duration:.24s;translate:0 -5px}
}
.template-card .template-identity p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
}
/* A blurred copy sits behind the sharp artwork and shares its source. */
#features .feature-art{position:relative;isolation:isolate}
#features .feature-art img:not(.feature-art-shadow){position:relative;z-index:1}
#features .feature-art .feature-art-shadow{
  position:absolute;inset:0;z-index:0;width:100%;height:100%;
  object-fit:contain;filter:blur(16px);opacity:.3;
  transform:translateY(14px) scale(.98);pointer-events:none;user-select:none;
}
[data-appearance="dark"] #features .feature-art .feature-art-shadow{opacity:.4}
/* Avoid re-filtering the moving page through large or repeated glass layers. */
@media(max-width:900px),(pointer:coarse){
  .site-header{background:var(--surface)}
  .site-header,.template-info,.template-preview,.template-device,.template-dialog::backdrop,.template-dialog .preview-close{backdrop-filter:none;-webkit-backdrop-filter:none}
  #overview>.template-gallery{background:var(--page-bg);backdrop-filter:none;-webkit-backdrop-filter:none}
  .template-info{background:color-mix(in srgb,var(--card-color) 85%,transparent)}
  .scroll-reveal,.hero-art.scroll-reveal,.feature-art.scroll-reveal,.tags.scroll-reveal li{opacity:1;transform:none;transition:none}
  #overview .hero-wizard,#overview .showroom-copy,#overview .showroom-marquee-tilt,#overview .hero-coins{translate:none}
}

/* Managed page content stays hidden until the live database has loaded. */
:root[data-content-state=loading] [data-page]{visibility:hidden}
:root[data-content-state=loading] #overview:not([hidden]){visibility:visible}
:root[data-content-state=loading] #overview>*{visibility:hidden}
:root[data-content-state=loading] #overview>.showroom-hero{visibility:visible}
:root[data-content-state=loading] #overview>.showroom-hero>*{visibility:hidden}
.showroom-marquees:not([data-load-state=ready]){visibility:hidden;opacity:0}
#overview[data-hero-first-ready=false]>.template-gallery{visibility:hidden}
.showroom-media:not([data-artwork=image]):has(.showroom-marquees:not([data-load-state=ready])) .marquee-toggle{visibility:hidden;opacity:0;pointer-events:none}
.showroom-marquees:is([data-load-state=waiting],[data-load-state=loading]){opacity:0}
.showroom-marquees[data-load-state=ready]{visibility:visible;opacity:1;animation:hero-materials-reveal .85s ease both}
.showroom-media:has(.showroom-marquees[data-load-state=ready]) .marquee-toggle{animation:hero-materials-reveal .85s ease both}
@keyframes hero-materials-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.showroom-marquees[data-load-state=ready],.showroom-media:has(.showroom-marquees[data-load-state=ready]) .marquee-toggle{animation:none;transition:none}}
:root[data-content-state=error] [data-page]>:not(.content-error){display:none!important}
#overview .template-card.home-recommendation-enter{opacity:0}
#overview .template-card.home-recommendation-enter.is-recommendation-visible{animation:home-recommendation-reveal .7s ease var(--recommendation-delay,0ms) both}
#overview .template-cover{transition:opacity .45s ease}
@keyframes home-recommendation-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#overview .template-card.home-recommendation-enter{opacity:1;animation:none}#overview .template-cover{transition:none}}

/* Keep recommendation positions fixed while decoded covers fade into view. */
#overview>.template-gallery{opacity:0;pointer-events:none;transition:opacity .7s ease}
#overview>.template-gallery[data-recommendations-ready=true]{opacity:1;pointer-events:auto}
#overview .gallery-heading,#overview .template-card.home-recommendation-enter{transform:none}
@media(prefers-reduced-motion:reduce){#overview>.template-gallery{transition:none}}
