/* WizardCloset: the shared thread between every part of a clothing store. */
:root { --site-surface:#181322; --site-inset:#130f1c; }
:root[data-theme="light"] { --site-surface:#fff; --site-inset:#f8f5fc; }
[hidden] { display:none !important; }
section[id], #tour { scroll-margin-top:110px; }
.nav { background:transparent; border:0; backdrop-filter:none; padding:12px 24px; }
.nav .wrap { max-width:1180px; padding:8px 22px; background:var(--glass-2); border:1px solid var(--line-2); border-radius:18px; box-shadow:0 8px 30px -24px var(--shadow); backdrop-filter:blur(20px); }
.nav nav { gap:1.25rem; font-size:.85rem; }
.nav .btn { border-radius:10px; }
.draft .wrap { justify-content:center; font-size:11px; letter-spacing:.01em; padding-block:5px; }
.draft { background:var(--base); border:0; }
.hero { isolation:isolate; padding-top:54px; }
.hero .wrap { max-width:1300px; gap:22px; }
.hero .big { max-width:960px; font-size:clamp(2.7rem,6.2vw,5.25rem); font-weight:700; line-height:1.08; letter-spacing:-.055em; }
.hero .lede { max-width:650px; font-size:clamp(1rem,1.5vw,1.1rem); line-height:1.75; }
.hero .eyebrow { padding:5px 12px; border-radius:8px; font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:600; background:var(--base); }
.hero .eyebrow::before { content:'✦'; color:var(--gold); font-size:13px; }
.hero .cta { margin-top:5px; }
.hero .btn { font-size:.875rem; border-radius:10px; padding:16px 21px; }
.hero .facts { font-size:.75rem; gap:7px 22px; }
.hero .facts li::before { width:3px; height:3px; background:var(--ink-3); }
.hero::before { content:''; position:absolute; z-index:-3; inset:-130px 0 auto; height:900px; background:radial-gradient(ellipse at 50% 12%,var(--aurora-top),transparent 65%); pointer-events:none; opacity:.65; }
.woven-field { position:absolute; z-index:-2; top:-135px; left:0; width:100%; height:950px; pointer-events:none; }
.shop-demo { border:1px solid var(--line-2); border-radius:16px; background:var(--site-surface); box-shadow:0 28px 100px -55px var(--shadow),0 0 80px -45px var(--glow-violet); overflow:hidden; color:var(--ink); font-size:12px; line-height:1.5; }
.role-ribbon { max-width:1180px; margin:46px auto 0; padding:0 24px; display:flex; justify-content:space-between; align-items:center; gap:20px; font-size:11px; color:var(--ink-3); }
.role-ribbon strong { font-weight:500; color:var(--ink-2); }
.role-ribbon i { display:inline-block; width:3px; height:3px; border-radius:50%; background:var(--accent); }
#story { padding-bottom:90px; }
.editorial-head { display:grid; grid-template-columns:1.2fr 1fr; align-items:end; gap:70px; margin-bottom:45px; }
.editorial-head .kicker { margin-bottom:20px; }
.editorial-head .h2 { font-weight:600; font-size:clamp(2.2rem,4.5vw,3.7rem); line-height:1.12; }
.editorial-head > p { font-size:15px; line-height:1.9; color:var(--ink-2); max-width:410px; }
.role-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.role-card { padding:30px 24px 26px; border-right:1px solid var(--line); text-decoration:none; transition:background .2s; }
.role-card:first-child { padding-left:0; }
.role-card:last-child { border-right:0; }
.role-card:hover { background:var(--tint-1); }
.role-number { font:11px ui-monospace,monospace; color:var(--accent); }
.role-card h3 { font-size:19px; letter-spacing:-.035em; margin:23px 0 12px; font-weight:600; }
.role-card p { color:var(--ink-3); font-size:12px; line-height:1.9; }
.role-card .role-link { display:block; margin-top:25px; color:var(--accent); font-weight:500; font-size:11px; }
#more { padding-top:0; }
.thread-story { display:grid; grid-template-columns:1fr 1.05fr; border:1px solid var(--line-2); border-radius:16px; overflow:hidden; background:var(--tint-0); }
.thread-copy { padding:50px 45px; display:grid; align-content:center; gap:23px; }
.thread-copy h2 { font-size:clamp(2rem,3.6vw,2.9rem); font-weight:600; line-height:1.16; letter-spacing:-.045em; }
.thread-copy > p:not(.kicker) { color:var(--ink-2); font-size:13px; line-height:1.9; }
.thread-copy > a { color:var(--accent); text-decoration:none; font-size:12px; font-weight:600; }
.thread-visual { background:var(--site-inset); padding:43px; border-left:1px solid var(--line); position:relative; }
.thread-visual > p { font-size:9px; letter-spacing:.12em; color:var(--ink-3); margin-bottom:24px; }
.thread-steps { margin:0 0 0 23px; padding:23px 0 0 22px; border-left:1px dashed var(--accent-deep); display:grid; gap:24px; list-style:none; }
.thread-steps li { position:relative; font-size:11px; color:var(--ink-2); }
.thread-steps li::before { content:'✓'; position:absolute; left:-32px; top:0; display:grid; place-items:center; width:18px; height:18px; font-size:10px; color:var(--accent); background:var(--site-inset); border:1px solid var(--line-2); border-radius:50%; }
.thread-steps small { display:block; color:var(--ink-3); font-size:10px; margin-top:3px; }
.feature-notes { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; margin-top:45px; }
.feature-notes article { border-top:1px solid var(--line-2); padding-top:21px; }
.feature-notes h3 { font-size:15px; font-weight:600; margin-bottom:10px; letter-spacing:-.02em; }
.feature-notes p { font-size:12px; color:var(--ink-3); line-height:1.85; }
.feature-notes .try { margin-top:18px; font-size:11px; }
.feature-notes .seg button { font-size:10px; }
.feature-notes .addtag { margin-bottom:10px; font-size:9px; }
.faq .h2,.close .h2 { font-weight:600; line-height:1.15; }

@media (max-width:900px) {
 .role-ribbon { justify-content:center; flex-wrap:wrap; gap:12px 22px; font-size:10px; }
 .editorial-head { gap:35px; }
 .role-grid { grid-template-columns:repeat(2,1fr); }
 .role-card { padding:27px; }
 .role-card:first-child { padding-left:27px; }
 .role-card:nth-child(2) { border-right:0; }
 .role-card:nth-child(-n+2) { border-bottom:1px solid var(--line); }
 .thread-copy { padding:32px; }
 .thread-visual { padding:30px; }
}
@media (max-width:620px) {
 .nav { padding:8px 12px; }
 .nav .wrap { padding:7px 12px; border-radius:12px; }
 .nav nav { gap:8px; }
 .nav .brand-name { font-size:clamp(16px,4.5vw,21px); }
 .nav .brand { gap:4px; }
 .nav .brand-mark { width:38px; height:40px; }
 .nav .brand-mark wizard-helper { width:58px; height:58px; left:-10px; top:-10px; }
 .nav .brand-star { width:8px; height:8px; right:-1px; top:5px; }
 .nav .mode { width:2.8rem; }
 .draft .wrap { text-align:center; font-size:9px; padding:5px 15px; }
 .hero { padding-top:39px; }
 .hero .wrap { gap:19px; padding-inline:16px; }
 .hero .eyebrow { font-size:9px; }
 .hero .big { font-size:clamp(2.25rem,8.5vw,3.3rem); }
 .hero .lede { font-size:13px; line-height:1.85; padding-inline:9px; }
 .hero .btn { font-size:11px; padding:13px 15px; }
 .hero .facts { font-size:9px; gap:6px 12px; }
 .hero .facts li:last-child { display:none; }
 .woven-field { height:780px; }
 .role-ribbon { margin-top:29px; gap:9px 17px; padding-inline:30px; }
 .role-ribbon > strong { width:100%; text-align:center; margin-bottom:5px; }
 .role-ribbon i { display:none; }
 #story { padding-bottom:55px; }
 .editorial-head { grid-template-columns:1fr; gap:22px; margin-bottom:29px; }
 .editorial-head .h2 { font-size:2.3rem; }
 .editorial-head > p { font-size:13px; }
 .role-card,.role-card:first-child { padding:22px 15px; }
 .role-card h3 { font-size:16px; margin-top:17px; }
 .role-card p { font-size:11px; }
 .role-card .role-link { font-size:10px; }
 .thread-story { grid-template-columns:1fr; }
 .thread-copy { padding:30px 25px; }
 .thread-visual { border-left:0; border-top:1px solid var(--line); padding:30px 25px; }
 .feature-notes { grid-template-columns:1fr; gap:27px; margin-top:30px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
html[data-motion="paused"] { scroll-behavior:auto; }




/* The theme is a small potion in the footer, away from the main navigation. */
.theme-setting { margin-top:22px; display:grid; justify-items:start; gap:7px; }
.theme-setting-label { color:var(--ink-3); font-size:10px; letter-spacing:.02em; }
.theme-charm { display:inline-flex; align-items:center; gap:8px; position:relative; min-height:58px; padding:5px 15px 5px 7px; border:1px solid var(--line-2); border-radius:10px; background:var(--tint-1); color:var(--ink); cursor:pointer; text-align:left; font:inherit; }
.theme-charm:hover { background:var(--tint-2); border-color:var(--accent-deep); }
.theme-charm-name { display:block; font-size:12px; font-weight:600; }
.theme-charm-hint { display:block; font-size:9px; color:var(--ink-3); margin-top:2px; }
.theme-potion { position:relative; display:block; width:42px; height:48px; flex:none; }
.theme-potion::before { content:''; position:absolute; inset:14px 3px 0; border-radius:50%; background:var(--glow-violet); filter:blur(9px); opacity:.55; transition:background .5s; }
.theme-potion img { position:absolute; width:61px; height:61px; max-width:none; left:-9px; top:-7px; object-fit:contain; transform-origin:50% 72%; }
.theme-potion::after { content:'✦'; position:absolute; right:-3px; top:1px; color:var(--gold); font-size:12px; opacity:0; }
.theme-charm.is-brewing .bottle-form { animation:charm-swish .75s ease-in-out; }
.theme-charm.is-brewing .theme-potion::after { animation:charm-spark .9s ease-out; }
:root[data-theme="light"] .theme-potion::before { background:#dfb976; }
@keyframes charm-swish { 0%,100% { transform:rotate(0); } 23% { transform:rotate(-14deg); } 55% { transform:rotate(11deg); } 78% { transform:rotate(-5deg); } }
@keyframes charm-spark { 0% { opacity:0; transform:translateY(7px) scale(.5); } 35% { opacity:1; } 100% { opacity:0; transform:translateY(-7px) scale(1.15); } }

@media(prefers-reduced-motion:reduce) {
 .theme-charm.is-brewing * { animation:none !important; }
 .theme-potion::before { transition:none; }
 .theme-charm.is-brewing .theme-potion::after { animation:none; }
}


/* Real app screenshots, with text that can be read without the images. */
.screen-tour { width:100%; min-width:0; margin-top:36px; text-align:left; padding:24px; background:var(--panel); border:1px solid var(--line-2); border-radius:18px; box-shadow:0 28px 100px -55px var(--shadow); }
.tour-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.tour-heading h2 { font-size:clamp(1.6rem,3vw,2rem); letter-spacing:-.04em; margin-top:6px; }
.tour-heading > p,.tour-intro { color:var(--ink-2); font-size:13px; }
.tour-intro { margin-top:10px; }
.tour-tabs { display:flex; gap:6px; overflow-x:auto; position:relative; scrollbar-width:thin; padding:14px 3px; margin:12px -3px 6px; }
.tour-tabs button { flex:none; border:1px solid var(--line-2); border-radius:8px; background:var(--panel-2); color:var(--ink-2); font:600 13px/1.4 var(--font); min-height:44px; padding:10px 13px; cursor:pointer; }
.tour-tabs button span { margin-right:5px; font-size:11px; }
.tour-tabs button[aria-selected="true"] { background:var(--accent); color:var(--base); border-color:var(--accent); }
.tour-tabs button:hover { border-color:var(--accent); }
.tour-panel { border-radius:10px; }
.tour-panel figure { margin:0; }
.tour-screen { display:flex; align-items:center; justify-content:center; aspect-ratio:8/5; background:var(--site-inset); border:1px solid var(--line-2); border-radius:10px; overflow:hidden; }
.tour-screen img { width:100%; height:100%; object-fit:contain; }
.tour-screen-phone img { width:auto; max-width:100%; }
.tour-panel figcaption { display:flex; justify-content:space-between; gap:20px; align-items:start; padding:22px 0 20px; }
.tour-copy { max-width:79ch; }
.tour-copy h3 { font-size:21px; letter-spacing:-.03em; margin-bottom:8px; }
.tour-copy p { font-size:14px; color:var(--ink-2); line-height:1.8; }
.tour-copy p.tour-note { margin-top:10px; font-size:12px; color:var(--ink-3); }
.tour-enlarge,.tour-controls button,.zoom-bar button,.motion-control { flex:none; font:600 13px var(--font); min-height:44px; padding:10px 15px; border:1px solid var(--line-2); border-radius:9px; background:var(--panel-2); color:var(--ink); cursor:pointer; }
.tour-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line-2); padding-top:18px; }
.tour-controls p { color:var(--ink-2); font-size:12px; text-align:center; }
.tour-controls button:disabled { opacity:.5; cursor:default; }
.tour-zoom { background:var(--panel); color:var(--ink); width:96vw; max-width:1700px; max-height:94dvh; padding:18px; border:1px solid var(--line-2); border-radius:14px; }
.tour-zoom::backdrop { background:rgba(8,4,16,.85); }
.zoom-bar { display:flex; justify-content:space-between; align-items:center; gap:15px; }
.zoom-bar h2 { font-size:18px; }
#zoom-help { font-size:13px; color:var(--ink-2); margin:10px 0; }
.zoom-window { max-height:calc(94dvh - 138px); overflow:auto; border:1px solid var(--line-2); border-radius:6px; }
.zoom-window img { max-width:none; height:auto; }
.motion-control { margin-top:12px; }
.store-limit { font-size:13px; color:var(--ink-2); margin:12px 0; }
.checkout-preview { border:1px solid var(--line-2); border-radius:14px; padding:24px; display:grid; gap:16px; }
.checkout-preview p { color:var(--ink-2); }
.setup-steps { display:grid; grid-template-columns:1.25fr 1fr; gap:30px; font-size:14px; color:var(--ink-2); }
.setup-steps h3 { color:var(--ink); font-size:16px; margin-bottom:12px; }
.setup-steps ol { padding-left:20px; margin:0; }
.setup-steps li { margin-bottom:12px; }
.setup-steps p+p { margin-top:14px; }
.setup-shot { margin:24px 0 0; }
.setup-shot img { width:100%; height:auto; border:1px solid var(--line-2); border-radius:8px; }
.setup-shot figcaption { color:var(--ink-3); font-size:12px; margin-top:10px; }
.thread-visual { margin:0; display:grid; justify-items:center; gap:18px; }
.thread-visual img { width:260px; height:auto; border-radius:10px; border:1px solid var(--line-2); }
.thread-visual figcaption { font-size:12px; color:var(--ink-2); max-width:30ch; }
.skip-link { position:fixed; top:-80px; left:16px; z-index:100; background:var(--panel); color:var(--ink); padding:12px; border:2px solid var(--accent); border-radius:8px; }
.skip-link:focus { top:12px; }
html[data-motion="paused"] *,html[data-motion="paused"] *::before,html[data-motion="paused"] *::after { animation-play-state:paused !important; }
@media(max-width:700px) {
 .screen-tour { padding:16px; margin-top:24px; }
 .tour-heading > p,.tour-intro { font-size:12px; }
 .tour-panel figcaption { flex-direction:column; gap:14px; }
 .tour-copy p { font-size:13px; }
 .tour-copy h3 { font-size:19px; }
 .tour-controls { flex-wrap:wrap; }
 .tour-controls p { order:-1; flex-basis:100%; }
 .tour-controls button { font-size:12px; }
 .tour-screen-phone { aspect-ratio:520/1125; max-width:300px; margin-inline:auto; }
 .setup-steps { grid-template-columns:1fr; gap:14px; }
 .tour-zoom { padding:12px; }
}

/* Live demo: the real app in its own big window, against a fake in-browser API
   (demo/). It starts tilted back and lies flat as it scrolls into view
   (live-demo.js sets --rx and --sc). Desktop only; phones keep the screenshot
   tour below it. */
.sr-only { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.tour-anchor { width:100%; min-width:0; }
.live-section { display:none; }
@media (min-width:761px) {
  .live-section { --lw:min(1282px, calc(100vw - 48px)); display:block; position:relative; width:var(--lw); margin-left:calc((100% - var(--lw)) / 2); margin-top:clamp(1.5rem,4vw,3rem); text-align:left; }
  #tour-shots { display:none; }
}
.live-skip { position:absolute; left:-9999px; top:auto; }
.live-skip:focus { position:absolute; left:0; top:-52px; z-index:5; padding:8px 12px; border:1px solid var(--line-2); border-radius:8px; background:var(--panel-2); color:var(--ink); font:600 13px var(--font); }
.live-persp { position:relative; perspective:1600px; }
.live-persp::before { content:""; position:absolute; inset:8% 6% -6%; background:radial-gradient(closest-side, rgba(127,73,229,.28), transparent); filter:blur(40px); z-index:-1; pointer-events:none; }
.live-tilt, .phone-tilt { transform-origin:50% 0; transform:rotateX(var(--rx,0deg)) scale(var(--sc,1)); transition:transform .08s linear; will-change:transform; }
html[data-motion="paused"] .live-tilt, html[data-motion="paused"] .phone-tilt { transform:none; }
@media (prefers-reduced-motion: reduce) { .live-tilt, .phone-tilt { transform:none !important; transition:none; } }
.live-window { border-radius:16px; overflow:hidden; background:var(--panel); border:1px solid var(--line-2); box-shadow:0 50px 120px -40px var(--shadow), 0 0 0 1px var(--tint-0) inset; }
.live-bar { display:grid; grid-template-columns:1fr minmax(0,420px) 1fr; align-items:center; gap:12px; height:38px; padding:0 14px; background:var(--tint-0); border-bottom:1px solid var(--line); }
.live-dots { display:flex; gap:7px; }
.live-dots i { width:10px; height:10px; border-radius:50%; background:var(--tint-3); }
.live-title { height:24px; border-radius:8px; background:var(--tint-1); color:var(--ink-3); display:flex; align-items:center; justify-content:center; font:600 12px var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:0 12px; }
.live-badge { justify-self:end; text-align:right; font:700 10.5px var(--font); letter-spacing:.06em; text-transform:uppercase; color:var(--accent); white-space:nowrap; }
.live-view { position:relative; overflow:hidden; background:var(--site-inset, var(--panel)); }
.live-stage { position:absolute; left:0; top:0; width:1280px; height:800px; transform-origin:0 0; }
.live-stage iframe { display:block; width:1280px; height:800px; border:0; background:#f5f6f8; }
.live-poster { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; }
.live-poster[hidden] { display:none; }
.live-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; filter:saturate(.85); opacity:.55; }
.live-poster span { position:relative; margin-bottom:60px; padding:12px 20px; border-radius:999px; background:rgba(16,12,27,.86); color:#fff; font:600 22px var(--font); }
.live-takeover { position:absolute; inset:0; z-index:2; width:100%; height:100%; border:0; padding:0; margin:0; background:transparent; cursor:pointer; display:flex; align-items:flex-start; justify-content:flex-end; }
.live-takeover[hidden] { display:none; }
.live-takeover span { margin:14px; padding:7px 12px; border-radius:999px; background:rgba(16,12,27,.82); color:#fff; font:600 12.5px var(--font); opacity:0; transition:opacity .2s; }
.live-takeover:hover span { opacity:1; }
/* The one control: bottom-left, over the app's empty sidebar corner. */
.live-toggle { position:absolute; left:18px; bottom:18px; z-index:3; min-height:44px; padding:11px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(22,16,36,.9); color:#fff; font:700 13.5px/1.2 var(--font); cursor:pointer; box-shadow:0 10px 30px -8px rgba(0,0,0,.55); backdrop-filter:blur(8px); }
.live-toggle:hover { background:rgba(52,30,94,.95); }
.live-toggle:focus-visible { outline:3px solid #8b5cf6; outline-offset:3px; border-radius:999px; }
.live-toggle[hidden] { display:none; }
.live-toggle:disabled { opacity:.7; cursor:default; }
.live-progress { position:absolute; left:0; right:0; bottom:0; height:3px; z-index:3; background:rgba(127,127,160,.16); pointer-events:none; }
.live-progress i { display:block; height:100%; width:0; background:#8b5cf6; }
@media (prefers-reduced-motion: reduce) { .live-takeover span { transition:none; } }

/* A stable, clipped phone viewport. Its own homepage stays interactive. */
.phone-preview { width:min(300px, 100%); min-width:0; }
.live-phone { overflow:hidden; border-radius:46px; padding:10px; background:#0c0913; border:1px solid var(--line-2); box-shadow:0 40px 80px -30px var(--shadow), inset 0 0 0 2px rgba(255,255,255,.07); }
.live-phone-screen { position:relative; overflow:hidden; isolation:isolate; clip-path:inset(0 round 36px); border-radius:36px; aspect-ratio:390/844; background:var(--panel); }
.phone-loading { position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:24px; background:var(--panel); text-align:center; color:var(--ink-2); font-size:13px; }
.phone-loading a { color:var(--accent); }
.phone-loading button { padding:10px 16px; min-height:44px; border:1px solid var(--line-2); border-radius:8px; color:var(--ink); background:var(--selected); font:600 13px var(--font); cursor:pointer; }
.phone-loading button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.phone-loading[hidden], .phone-loading button[hidden] { display:none; }
.phone-stage { position:absolute; left:0; top:0; width:390px; height:844px; transform-origin:0 0; }
.phone-stage iframe { display:block; width:100%; height:100%; border:0; background:var(--panel); }
