* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--k-font-body); color: var(--k-ink); background: var(--k-bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--k-lilac); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.display { font-family: var(--k-font-display); letter-spacing: -.02em; line-height: 1.05; }
.grad-text { background: var(--k-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--k-surface); box-shadow: var(--k-shadow-1); font-weight: 700; font-size: 13px; color: var(--k-ink-2); }
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--k-grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 14px; }
.section-head p { color: var(--k-ink-2); font-size: 18px; margin: 0; }

/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.hdr.scrolled { background: color-mix(in srgb, var(--k-bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--k-line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--k-font-display); font-weight: 800; font-size: 22px; text-decoration: none; }
.logo svg { width: 26px; height: auto; }
.hdr nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 15px; }
.hdr nav a { text-decoration: none; color: var(--k-ink-2); transition: color .2s; }
.hdr nav a:hover { color: var(--k-ink); }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--k-surface); box-shadow: var(--k-shadow-1); display: grid; place-items: center; }
.theme-btn svg { width: 20px; height: 20px; }
.pill-btn { height: 44px; padding: 0 20px; border-radius: 99px; background: var(--k-ink); color: var(--k-bg); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: transform .2s var(--k-ease); }
.pill-btn:hover { transform: translateY(-2px); }
@media (max-width: 900px) { .hdr nav { display: none; } .hdr .wrap { gap: 12px; } .hdr .spacer { margin-left: auto; } }

/* store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { position: relative; text-decoration: none; height: 62px; padding: 0 22px 0 16px; border-radius: 18px; background: var(--k-ink); color: var(--k-bg); display: inline-flex; align-items: center; gap: 12px; text-align: left; box-shadow: var(--k-shadow-2); transition: transform .25s var(--k-spring), box-shadow .25s; }
.store:hover { transform: translateY(-3px); box-shadow: var(--k-shadow-3); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .7; font-weight: 700; line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.store.mine { background: var(--k-grad); color: #fff; box-shadow: var(--k-glow); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px 0 60px; display: flex; align-items: center; overflow: hidden; background:
  radial-gradient(1000px 600px at 85% 10%, color-mix(in srgb, var(--k-pink) 26%, transparent), transparent 60%),
  radial-gradient(800px 600px at 0% 100%, color-mix(in srgb, var(--k-lilac) 24%, transparent), transparent 60%),
  radial-gradient(600px 400px at 50% 50%, color-mix(in srgb, var(--k-lemon) 14%, transparent), transparent 70%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; cursor: crosshair; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.hero-copy { pointer-events: none !important; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); margin: 22px 0 22px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--k-ink-2); max-width: 520px; margin: 0 0 32px; }
.hero .hint { margin-top: 26px; font-size: 14px; color: var(--k-ink-3); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hero .hint b { color: var(--k-primary); font-variant-numeric: tabular-nums; }
.hint .tap { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--k-ink-3); position: relative; }
.hint .tap::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--k-primary); animation: tap 1.6s infinite; }
@keyframes tap { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

/* phone mockup */
.phone { width: 320px; aspect-ratio: 390 / 844; border-radius: 48px; padding: 10px; background: #120c16; box-shadow: 0 50px 100px -20px rgba(42, 30, 46, .45), 0 30px 60px -30px rgba(0, 0, 0, .4), inset 0 0 0 2px #2c2233; position: relative; flex: none; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 16px; background: #000; z-index: 3; }
.phone .scr { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--k-bg); position: relative; }
.phone iframe { width: 390px; height: 844px; border: 0; transform-origin: 0 0; position: absolute; top: 0; left: 0; }
.hero-phone { justify-self: center; position: relative; perspective: 1200px; }
.hero-phone .phone { transition: transform .5s var(--k-ease); will-change: transform; }
.badge { position: absolute; background: var(--k-surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--k-shadow-3); display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; z-index: 4; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.badge small { display: block; font-weight: 700; font-size: 11px; color: var(--k-ink-3); }
.badge .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.badge.b1 { top: 18%; left: -90px; }
.badge.b2 { bottom: 16%; right: -70px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero .hint { justify-content: center; }
  .badge.b1 { left: -40px; } .badge.b2 { right: -30px; }
}
@media (max-width: 520px) { .phone { width: 270px; border-radius: 42px; } .phone .scr { border-radius: 33px; } .badge { transform: scale(.85); } .badge.b1 { left: -24px; } .badge.b2 { right: -18px; } .store { width: 100%; justify-content: center; } }

/* marquee */
.marquee { overflow: hidden; padding: 22px 0; background: var(--k-ink); color: var(--k-bg); transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marq 32s linear infinite; font-family: var(--k-font-display); font-size: 22px; font-weight: 700; }
.marquee .track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee .track span::after { content: ""; width: 14px; height: 16px; border-radius: 50%; background: var(--k-grad); }
@keyframes marq { to { transform: translateX(-50%); } }

/* how it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how-phone { position: sticky; top: calc(50vh - 300px); display: grid; place-items: center; }
.how-phone .phone { width: 300px; }
.how-phone .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--k-grad); filter: blur(80px); opacity: .35; z-index: -1; transition: background .6s; }
.steps { display: grid; gap: 0; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.step.on { opacity: 1; }
.step .n { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-family: var(--k-font-display); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 20px; box-shadow: var(--k-shadow-2); }
.step h3 { font-family: var(--k-font-display); font-size: clamp(28px, 3vw, 40px); margin: 0 0 14px; line-height: 1.1; }
.step p { font-size: 18px; color: var(--k-ink-2); margin: 0; max-width: 440px; }
.step ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.step li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k-primary); }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how-phone { position: sticky; top: 76px; z-index: 2; }
  .how-phone .phone { width: 200px; }
  .step { min-height: auto; padding: 40px 0; opacity: 1; text-align: center; align-items: center; }
  .step ul { justify-items: center; }
}

/* configurator */
.cfg { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.cfg-stage { border-radius: var(--k-r-xl); min-height: 560px; position: relative; display: grid; place-items: center; overflow: hidden; transition: background .6s var(--k-ease); box-shadow: var(--k-shadow-1); }
.cfg-stage .bal { width: min(300px, 70%); filter: drop-shadow(0 40px 40px rgba(42, 30, 46, .25)); animation: bigfloat 6s ease-in-out infinite; transition: transform .5s var(--k-spring); }
.cfg-stage .bal svg { width: 100%; height: auto; }
.cfg-stage .bal.pulse { animation: inflate .55s var(--k-spring), bigfloat 6s ease-in-out .55s infinite; }
@keyframes bigfloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes inflate { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.cfg-stage .size-tag { position: absolute; left: 20px; bottom: 20px; background: var(--k-surface); padding: 10px 14px; border-radius: 14px; font-weight: 800; box-shadow: var(--k-shadow-2); }
.cfg-stage .ruler { position: absolute; right: 26px; top: 15%; bottom: 15%; width: 2px; background: repeating-linear-gradient(to bottom, var(--k-ink-3) 0 2px, transparent 2px 10px); opacity: .5; }
.cfg-panel { padding: 34px; border-radius: var(--k-r-xl); background: var(--k-surface); box-shadow: var(--k-shadow-2); display: flex; flex-direction: column; }
.cfg-panel h3 { font-family: var(--k-font-display); font-size: 26px; margin: 0 0 4px; }
.cfg-panel .lbl { font-weight: 800; font-size: 14px; margin: 24px 0 12px; display: flex; justify-content: space-between; }
.cfg-panel .lbl span { color: var(--k-ink-3); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.sw { width: 46px; height: 46px; border-radius: 50%; position: relative; box-shadow: inset 0 -8px 12px rgba(0, 0, 0, .15), var(--k-shadow-1); transition: transform .25s var(--k-spring); }
.sw:hover { transform: translateY(-3px); }
.sw[aria-pressed="true"] { transform: scale(1.1); }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--k-ink); }
.seg { display: flex; padding: 5px; border-radius: 99px; background: var(--k-surface-2); }
.seg button { flex: 1; height: 44px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--k-ink-2); transition: all .25s var(--k-ease); }
.seg button[aria-pressed="true"] { background: var(--k-surface); color: var(--k-ink); box-shadow: var(--k-shadow-1); }
.txt { width: 100%; height: 52px; border-radius: 16px; border: 2px solid var(--k-line); background: var(--k-surface-2); padding: 0 16px; font: inherit; font-weight: 700; font-size: 16px; color: var(--k-ink); outline: 0; transition: border-color .2s; }
.txt:focus { border-color: var(--k-lilac); }
.cfg-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.price small { display: block; color: var(--k-ink-3); font-weight: 700; font-size: 13px; }
.price b { font-family: var(--k-font-display); font-size: 34px; }
.cta { height: 58px; padding: 0 28px; border-radius: 99px; background: var(--k-grad); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--k-glow); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform .25s var(--k-spring); }
.cta:hover { transform: translateY(-3px) scale(1.02); }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } .cfg-stage { min-height: 380px; } .cfg-panel { padding: 24px; } }

/* gallery */
.gallery { display: flex; gap: 34px; overflow-x: auto; padding: 30px max(16px, calc((100vw - 1180px) / 2)) 50px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; display: grid; gap: 18px; justify-items: center; }
.gallery .phone { width: 270px; transition: transform .4s var(--k-ease); }
.gallery figure:hover .phone { transform: translateY(-8px); }
.gallery figcaption { text-align: center; }
.gallery figcaption b { display: block; font-family: var(--k-font-display); font-size: 18px; }
.gallery figcaption span { color: var(--k-ink-3); font-weight: 700; font-size: 14px; }
.gal-nav { display: flex; gap: 10px; justify-content: center; }
.gal-nav button { width: 50px; height: 50px; border-radius: 50%; background: var(--k-surface); box-shadow: var(--k-shadow-2); display: grid; place-items: center; }
.gal-nav svg { width: 22px; height: 22px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { padding: 28px; border-radius: var(--k-r-lg); background: var(--k-surface); box-shadow: var(--k-shadow-1); position: relative; overflow: hidden; transition: transform .35s var(--k-spring), box-shadow .35s; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--k-shadow-3); }
.feat .num { font-family: var(--k-font-display); font-size: 52px; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.feat h4 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--k-ink-2); font-size: 15px; }
.feat .orb { position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; opacity: .18; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev { padding: 28px; border-radius: var(--k-r-lg); background: var(--k-surface); box-shadow: var(--k-shadow-1); display: flex; flex-direction: column; gap: 14px; }
.rev .stars { color: #FFB020; letter-spacing: 2px; }
.rev p { margin: 0; font-size: 16px; flex: 1; }
.rev .who { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.rev .who i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; }
.rev .who small { display: block; color: var(--k-ink-3); font-weight: 700; }
.demo-tag { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--k-surface-2); color: var(--k-ink-3); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--k-surface); border-radius: 22px; box-shadow: var(--k-shadow-1); overflow: hidden; }
.faq summary { list-style: none; padding: 22px 26px; font-weight: 800; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 34px; height: 34px; border-radius: 50%; background: var(--k-surface-2); display: grid; place-items: center; font-size: 22px; flex: none; transition: transform .3s var(--k-spring), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--k-primary); color: #fff; }
.faq .ans { padding: 0 26px 22px; color: var(--k-ink-2); }
.faq .ans ol { margin: 8px 0 0; padding-left: 20px; }

/* download */
.dl { border-radius: 44px; padding: 80px 60px; background: var(--k-grad); color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; box-shadow: var(--k-glow); }
.dl h2 { font-size: clamp(34px, 4.6vw, 58px); margin: 0 0 16px; }
.dl p { font-size: 18px; opacity: .92; margin: 0 0 30px; max-width: 520px; }
.dl .store { background: #fff; color: #2A1E2E; }
.dl .store.mine { background: #2A1E2E; color: #fff; box-shadow: var(--k-shadow-3); }
.qr-card { background: #fff; color: #2A1E2E; border-radius: 28px; padding: 22px; text-align: center; justify-self: center; box-shadow: var(--k-shadow-3); transform: rotate(3deg); }
.qr-card #qr { width: 180px; height: 180px; margin: 0 auto 12px; }
.qr-card #qr img, .qr-card #qr canvas { width: 100% !important; height: auto !important; }
.qr-card b { display: block; }
.qr-card small { color: #6B5A6E; font-weight: 700; }
.dl .deco { position: absolute; opacity: .25; pointer-events: none; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; padding: 50px 24px; text-align: center; border-radius: 32px; } .dl p { margin-left: auto; margin-right: auto; } .dl .stores { justify-content: center; } }

/* footer */
.foot { padding: 50px 0 60px; color: var(--k-ink-3); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* modal */
dialog { border: 0; padding: 0; border-radius: 32px; width: min(480px, calc(100% - 32px)); background: var(--k-surface); color: var(--k-ink); box-shadow: var(--k-shadow-3); }
dialog::backdrop { background: rgba(21, 15, 26, .55); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .4s var(--k-spring); }
@keyframes dlg { from { transform: translateY(30px) scale(.96); opacity: 0; } }
.mdl { padding: 32px; position: relative; }
.mdl .x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--k-surface-2); font-size: 22px; line-height: 1; }
.mdl .art { width: 80px; margin-bottom: 10px; }
.mdl h3 { font-family: var(--k-font-display); font-size: 24px; margin: 0 0 8px; line-height: 1.15; }
.mdl p { color: var(--k-ink-2); margin: 0 0 16px; }
.mdl ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.mdl ol li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.mdl ol li::before { content: counter(s); width: 28px; height: 28px; border-radius: 10px; background: var(--k-surface-2); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.mdl .status { padding: 12px 16px; border-radius: 16px; background: var(--k-surface-2); font-weight: 700; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.mdl .status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k-lemon); flex: none; }
.mdl .status.ok::before { background: var(--k-success); }
.mdl .cta { width: 100%; justify-content: center; }
.mdl .cta[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.mdl .mqr { width: 150px; margin: 0 auto 16px; }
.mdl .mqr img, .mdl .mqr canvas { width: 100% !important; height: auto !important; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; background: var(--k-ink); color: var(--k-bg); padding: 14px 22px; border-radius: 99px; font-weight: 800; z-index: 100; transition: all .35s var(--k-spring); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--k-ease), transform .8s var(--k-ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

main, .foot { overflow-x: clip; }
