:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* Layout: full-bleed rain canvas behind a single-column storefront — hero with product + buy box, features, reviews, FAQ, footer. Single dark theme by choice. */
:root {
  --ink: #07040c;
  --night: #120a1f;
  --panel: #1a0f2c;
  --line: #3a2459;
  --violet: #9b5cff;
  --orchid: #d6b8ff;
  --text: #efe7fb;
  --muted: #a99bc0;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--orchid); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--display); font-weight: 900; letter-spacing: .18em; font-size: 15px; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 22px; align-items: center; }
nav a.link { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a.link:hover { color: var(--text); }
.cart-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.cart-btn:hover { border-color: var(--violet); }
.count { background: var(--violet); color: var(--ink); border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { nav a.link { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
.hero > * { min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--orchid); font-weight: 700; }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 9vw, 104px); line-height: .92; margin: 14px 0 20px; letter-spacing: -.02em; text-wrap: balance;
  background: linear-gradient(180deg, var(--text) 30%, var(--violet) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 28px; }

.buy { background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; max-width: 460px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ship { color: var(--muted); font-size: 14px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 22%, transparent); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.qty button { background: none; border: 0; color: var(--text); width: 40px; height: 48px; font-size: 20px; cursor: pointer; }
.qty output { width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.add { flex: 1; min-width: 180px; background: var(--violet); color: var(--ink); border: 0; border-radius: 12px; height: 50px; font: 700 15px var(--display); letter-spacing: .04em; cursor: pointer; box-shadow: 0 0 32px color-mix(in srgb, var(--violet) 55%, transparent); transition: transform .15s, box-shadow .15s; }
.add:hover { transform: translateY(-1px); box-shadow: 0 0 48px color-mix(in srgb, var(--violet) 75%, transparent); }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* product visual */
.visual { position: relative; aspect-ratio: 4/5; max-width: 100%; display: grid; place-items: center; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 55%, transparent), transparent 65%); filter: blur(20px); }
.box { position: relative; width: 62%; aspect-ratio: 3/4; border-radius: 14px; background: linear-gradient(160deg, #2a1647, #0d0717 70%); border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(214,184,255,.25); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; transform: rotate(-4deg); animation: float 6s ease-in-out infinite; }
.box .mark { font-family: var(--display); font-weight: 900; letter-spacing: .2em; font-size: clamp(12px, 2.2vw, 17px); color: var(--orchid); }
.box .drop { width: 46%; aspect-ratio: 1; align-self: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, var(--orchid), var(--violet)); box-shadow: 0 0 40px var(--violet); }
.box .sub { font-size: 11px; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-12px); } }

@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-block: 40px; gap: 24px; } .visual { order: -1; max-height: 380px; } }

/* sections */
section { padding-block: 64px; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); margin: 0 0 32px; line-height: 1.1; text-wrap: balance; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: color-mix(in srgb, var(--night) 80%, transparent); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.feature h3 { font-family: var(--display); font-size: 17px; margin: 0 0 8px; color: var(--orchid); }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { border-left: 2px solid var(--violet); padding: 4px 0 4px 18px; min-width: 0; }
.review p { margin: 0 0 10px; }
.review .who { color: var(--muted); font-size: 14px; }
.stars { color: var(--violet); letter-spacing: .15em; }
.note { color: var(--muted); font-size: 13px; margin-top: 20px; }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; max-width: 760px; }
details { background: color-mix(in srgb, var(--night) 80%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* cart drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--night); border-left: 1px solid var(--line); z-index: 20; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; transform: translateX(100%); transition: transform .3s ease; }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(7,4,12,.6); z-index: 15; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer h2 { font-size: 22px; margin: 0; }
.x { background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }
.lines { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 12px; }
.line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.line small { color: var(--muted); display: block; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; font-size: 13px; padding: 0; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--panel); border: 1px solid var(--violet); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 30; font-weight: 600; max-width: calc(100% - 32px); }

/* home + product card */
section { scroll-margin-top: 80px; }
.home-hero { padding-block: 88px 64px; display: grid; justify-items: start; }
#home h1 { font-size: clamp(34px, 10vw, 120px); overflow-wrap: anywhere; }
.cta { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0 32px; text-decoration: none; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 20px; }
.product { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.product:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 0 40px color-mix(in srgb, var(--violet) 35%, transparent); }
.thumb { aspect-ratio: 4/5; max-width: 100%; border-radius: 12px; background: linear-gradient(160deg, #2a1647, #0d0717 70%); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px; }
.thumb .mark { align-self: flex-start; font-family: var(--display); font-weight: 900; letter-spacing: .2em; font-size: 36px; color: var(--orchid); }
.thumb .drop { width: 40%; aspect-ratio: 1; margin-bottom: 30%; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, var(--orchid), var(--violet)); box-shadow: 0 0 40px var(--violet); }
.pinfo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pname { font-family: var(--display); font-weight: 700; font-size: 20px; }
.pprice { color: var(--muted); font-variant-numeric: tabular-nums; }
.view { color: var(--orchid); font-weight: 700; font-size: 14px; }
.back { display: inline-block; margin-top: 28px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--text); }

/* auth gate */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--violet) 20%, var(--ink)), var(--ink) 70%); }
.gate.hidden { display: none; }
.card { width: 100%; max-width: 420px; background: var(--night); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px color-mix(in srgb, var(--violet) 25%, transparent); }
.card .logo { font-size: 18px; }
.card h2 { font-family: var(--display); font-size: 24px; margin: 0; }
.tabs { display: flex; gap: 6px; background: color-mix(in srgb, var(--panel) 60%, transparent); border-radius: 10px; padding: 4px; }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; font: 600 14px var(--body); border-radius: 8px; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--violet); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input { background: color-mix(in srgb, var(--ink) 70%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; }
.field input:focus { outline: none; border-color: var(--violet); }
.err { color: #ff9bd1; font-size: 13px; margin: 0; min-height: 1.2em; }
.who { color: var(--muted); font-size: 13px; margin-right: 6px; }
.signout { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); cursor: pointer; }
.signout:hover { color: var(--text); border-color: var(--violet); }

@media (prefers-reduced-motion: reduce) { .box { animation: none; } .drawer { transition: none; } }

/* CS product image */
.cs-photo { width: 100%; aspect-ratio: 1/1; max-width: 460px; border-radius: 20px; background: url('/product.jpg') center/cover no-repeat; box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--violet) 35%, transparent); }
.thumb--cs { background: url('/product.jpg') center/cover no-repeat; padding: 0; }

[hidden]{display:none!important} button:disabled{opacity:.5;cursor:wait} body.signed-out{overflow:hidden}
.account-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.orders{display:grid;gap:16px}.order-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px}
.order-card h3{margin:0 0 8px}.order-card p{margin:8px 0;color:var(--muted)}
.order-card code,.recovery-code{display:block;overflow-wrap:anywhere;padding:16px;background:var(--ink);border-radius:10px;margin:12px 0}
.account-link{color:var(--orchid);text-decoration:none}.account-link:hover{text-decoration:underline}
.recovery-box{border:1px solid var(--violet);background:var(--night);padding:24px;border-radius:16px;margin:24px 0}
.link-button{background:none;border:0;color:var(--orchid);text-decoration:underline;cursor:pointer;font:inherit}
#account h1{font-size:clamp(32px,7vw,64px);line-height:1.2}#account{padding-block:48px}
.gate{overflow:auto}.card{margin:auto}.err{overflow-wrap:anywhere}.checkout-note{margin:0;color:var(--muted);font-size:13px}
.product-thumb{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
@media(max-width:620px){.bar{flex-wrap:wrap}nav{gap:10px;flex-wrap:wrap}.who{max-width:140px;overflow:hidden;text-overflow:ellipsis}.card{padding:22px}}
