/* WebMaxs concept demos: shared styles. Each demo sets its mood with the custom properties on body.
   Glass/blur only on floating elements (nav, drawer, dialog, toast). System fonts only. */
:root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.015em; background: var(--bg, #fff); color: var(--fg, #1d1d1f); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--accent, #f0961e); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* the WebMaxs bar on top of every demo */
.sc-bar { background: #000; color: #f5f5f7; font-size: 13px; text-align: center; padding: 9px 16px; line-height: 1.4; }
.sc-bar a { color: #ffad66; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sc-bar a:hover { text-decoration: underline; }

/* demo nav (floating glass) */
.sc-nav { position: sticky; top: 0; z-index: 40; background: var(--glass, rgba(255,255,255,.72)); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.sc-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.sc-brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; font-size: 17px; }
.sc-nav nav { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; font-size: 14px; }
.sc-nav nav a { text-decoration: none; opacity: .8; min-height: 44px; display: inline-flex; align-items: center; }
.sc-nav nav a:hover { opacity: 1; }
@media (max-width: 760px) { .sc-nav nav .w { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 980px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent, #fff); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong, currentColor); }
.btn:hover { filter: brightness(1.06); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text, var(--accent)); margin-bottom: 10px; }
.h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin-top: 12px; max-width: 38em; }
.muted { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.card .pad { padding: 22px; display: grid; gap: 6px; }
.card h3 { font-size: 21px; }

/* hero */
.hero { position: relative; color: var(--hero-fg, #fff); overflow: hidden; background: var(--hero-bg, #000); }
.hero picture, .hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero .media { position: absolute; inset: 0; }
.hero .shade { position: absolute; inset: 0; background: var(--hero-shade, linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55))); }
.hero .wrap { position: relative; min-height: clamp(520px, 82vh, 820px); display: grid; align-content: end; padding-bottom: clamp(40px, 8vw, 96px); }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); line-height: 1; max-width: 12em; }
.hero p { font-size: clamp(18px, 2.2vw, 24px); margin-top: 14px; max-width: 32em; opacity: .92; }
.hero .btn.ghost { color: var(--hero-fg, #fff); border-color: rgba(255,255,255,.6); }

/* reveal on scroll, off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 980px; background: var(--card); border: 1px solid var(--line); margin-top: 22px; }
.tabs button { font: inherit; font-size: 15px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px; background: none; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); }
[role="tabpanel"][hidden] { display: none; }

/* counters and specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; }
.spec b { display: block; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spec span { color: var(--muted); font-size: 14px; }

/* swatches */
.swatches { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; background: var(--sw); }
.swatches button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* forms (demo only: they never submit) */
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 30px); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong, var(--line)); border-radius: 12px; height: 48px; padding: 0 14px; width: 100%; }
.field textarea { height: auto; min-height: 100px; padding: 12px 14px; }
.field input[type=range] { padding: 0; height: 44px; accent-color: var(--accent); }
.out { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* carousel */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; flex: none; width: min(78vw, 340px); }
.rail-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.rail-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong, var(--line)); background: var(--card); color: var(--fg); font-size: 20px; cursor: pointer; }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 820px) { .bento .b4 { grid-column: span 4; } .bento .b2 { grid-column: span 2; } .bento .b3 { grid-column: span 3; } }

/* products and cart */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: 16px; }
.product { display: grid; gap: 8px; }
.product .ph { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--card); }
.product .ph picture, .product .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.product .ph .alt { opacity: 0; }
.product:hover .ph .alt, .product:focus-within .ph .alt { opacity: 1; }
.product h3 { font-size: 17px; }
.product .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.product .acts button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line-strong, var(--line)); background: var(--bg); color: var(--fg); cursor: pointer; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(92vw, 400px); background: var(--glass, rgba(255,255,255,.86)); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; padding: 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.drawer .line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer .line button, .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong, var(--line)); background: none; color: var(--fg); font-size: 20px; cursor: pointer; }
.drawer header { display: flex; justify-content: space-between; align-items: center; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-accent, #fff); font-size: 12px; font-weight: 700; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; overflow: auto; }
.cart-btn { font: inherit; min-height: 44px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line-strong, var(--line)); background: none; color: var(--fg); cursor: pointer; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { min-width: 48px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.sizes button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent, #fff); }

/* dialog */
dialog.sheet { border: 0; padding: 0; border-radius: 24px; width: min(92vw, 760px); background: var(--bg); color: var(--fg); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
dialog.sheet .in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
dialog.sheet .pad { padding: 24px; display: grid; gap: 12px; align-content: start; }

/* before / after */
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--card); }
.ba .layer { position: absolute; inset: 0; }
.ba .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ba input { position: absolute; inset: auto 0 12px; width: calc(100% - 24px); margin: 0 12px; accent-color: var(--accent); }

/* billing toggle, pricing */
.price { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: rgba(20,20,22,.88); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 18px; border-radius: 14px; font-size: 15px; transition: transform .3s, visibility 0s .3s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s; }

/* WebMaxs CTA band at the end of each demo */
.sc-cta { background: #f5f5f7; color: #1d1d1f; text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.sc-cta h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; }
.sc-cta p { color: #6e6e73; margin: 12px auto 0; max-width: 34em; font-size: 19px; }
.sc-cta .btns { justify-content: center; }
.sc-cta .btn { background: #b9560f; border-color: #b9560f; color: #fff; }
.sc-cta .btn.ghost { background: transparent; color: #b4520f; border-color: #b4520f; }
.sc-foot { background: #f5f5f7; color: #6e6e73; font-size: 12px; text-align: center; padding: 0 16px 28px; }
.sc-foot a { color: #1d1d1f; }

/* demo building blocks */
picture[hidden] { display: none !important; }
.h3 { font-size: clamp(24px, 3vw, 32px); }
.pad-v { display: grid; align-content: center; gap: 10px; padding-block: 12px; }
.panels { margin-top: 24px; }
.grid2 { align-items: center; }
.grid2 > article.card { align-self: stretch; }
.grid2.model .card, .plan-card { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.grid2.model .card picture, .grid2.model .card img { width: 100%; height: 100%; object-fit: cover; }
.plan-card { padding: 22px; color: var(--fg); }
.plan-card picture, .plan-card img { width: 100%; height: 100%; object-fit: contain; }
.plan { width: 100%; height: auto; max-height: 100%; }
.card > picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bento .card { display: flex; flex-direction: column; }
.bento .card > picture { flex: 1; display: block; min-height: 200px; }
.bento .card > picture img { aspect-ratio: auto; height: 100%; min-height: 200px; }
.tilet { display: grid; align-content: end; min-height: 220px; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--accent-text, var(--accent)); border-bottom: 2px solid var(--accent-text, var(--accent)); transform: rotate(-45deg); }
.small-facts { gap: 12px; }
.card.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card .pad .btn { margin-top: 10px; justify-self: start; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 8px; border-radius: 980px; border: 1px solid var(--line); background: var(--card); }
.chips span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 760px; }
.faq details { padding: 4px 20px; }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; }
.faq details p { padding-bottom: 16px; }

/* CSS dashboard (SaaS) */
.dash { margin-top: 28px; padding: clamp(14px, 2.4vw, 24px); border-radius: 24px; background: linear-gradient(180deg, #0f1726, #0a0f19); border: 1px solid var(--line); display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpis div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.kpis span { font-size: 13px; color: var(--muted); }
.kpis b { font-size: clamp(24px, 3vw, 32px); font-variant-numeric: tabular-nums; }
.charts { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(76,141,255,.25)); transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) { .js .dash.rv .bars i { transform: scaleY(.1); transition: transform .9s cubic-bezier(.2,.8,.2,1); } .js .dash.rv.in .bars i { transform: none; } }
.donut { width: 160px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); display: grid; place-items: center; }
.donut span { width: 70%; aspect-ratio: 1; border-radius: 50%; background: #0b111c; display: grid; place-content: center; text-align: center; font-size: 26px; font-weight: 700; }
.donut small { font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) { .charts { grid-template-columns: 1fr; justify-items: center; } .bars { width: 100%; } }

/* hotel */
.offer { margin: 0; padding: 12px 20px; text-align: center; font-size: 15px; background: var(--accent); color: var(--on-accent); }
.offer a { color: inherit; font-weight: 600; }
.offer .muted { color: inherit; opacity: .8; }
.bookbar { position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; align-items: end; padding: 18px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.bookbar .btn { height: 48px; }
.gal { position: relative; }
.gal picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map { position: relative; min-height: 320px; border-radius: 24px; border: 1px solid var(--line); background-color: #ece6dc; background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px), radial-gradient(circle at 70% 60%, #b9d3d6 0 26%, transparent 27%); background-size: 32px 32px, 32px 32px, 100% 100%; display: grid; place-items: center; text-align: center; color: #3b352d; }
.map .pin { position: absolute; left: 66%; top: 22%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.map p { background: rgba(255,255,255,.85); padding: 10px 16px; border-radius: 12px; }

/* restaurant */
.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 760px; }
.menu li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu li div { display: grid; gap: 2px; }
.menu .p { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-text); font-weight: 600; }

/* clinic */
.steps { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.steps li { display: grid; gap: 2px; }

/* quick view media */
.qv-media { aspect-ratio: 1; border-radius: 0; }
.qv-media picture, .qv-media img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .drawer, .toast, .product .ph img, #paint img { transition: none; } }
