:root {
  --bg: #0b0b12; --bg2: #13131d; --card: #171724; --line: #2a2a3c; --fg: #f6f3ff; --mut: #a9a5c0;
  --pink: #ff2e63; --orange: #ff9f1c; --violet: #6b3bff; --green: #19c37d;
  --disp: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; --txt: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--txt); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 24px; font: 700 16px/1 var(--txt);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s; color: #fff; background: #2a2a3c; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff5e3a); box-shadow: 0 10px 30px rgba(255,46,99,.35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(255,46,99,.5); }
.btn-ghost { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.muted { color: var(--mut); }
.logo { font: 800 20px var(--disp); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: url(/favicon.svg) center/cover; display: inline-block; }

/* ---------- landing ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11,11,18,.72); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.hero { padding: 48px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(107,59,255,.35), transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 600px; height: 600px; left: -250px; bottom: -300px; background: radial-gradient(circle, rgba(255,46,99,.25), transparent 60%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; }
h1 { font: 800 clamp(38px, 6vw, 64px)/1.02 var(--disp); letter-spacing: -.035em; margin: 18px 0 18px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 19px); color: #d6d2ea; max-width: 560px; margin: 0 0 26px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--mut); }
.trust span::before { content: '✓ '; color: var(--green); font-weight: 800; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 9/18.5; margin: 0 auto; border-radius: 44px; padding: 12px; background: #050508;
  box-shadow: 0 0 0 2px #2a2a3c, 0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(255,46,99,.18); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; display: block; background: #000; pointer-events: none; }
.phone a { position: absolute; inset: 0; border-radius: 44px; }
.phone-tag { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #14101c; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
section.blk { padding: 64px 0; }
h2 { font: 800 clamp(30px, 4vw, 42px)/1.08 var(--disp); letter-spacing: -.03em; margin: 0 0 14px; }
.sec-sub { color: var(--mut); margin: 0 0 32px; font-size: 17px; max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--pink), var(--orange)); font: 800 18px var(--disp); margin-bottom: 14px; }
.step h3, .feat h3 { margin: 0 0 6px; font: 700 18px var(--disp); }
.step p, .feat p { margin: 0; color: var(--mut); font-size: 15px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feat .ico { font-size: 26px; margin-bottom: 8px; }
.occasions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 18px; justify-content: center; }
.price { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.price.rec { border: 2px solid var(--pink); box-shadow: 0 20px 60px rgba(255,46,99,.18); }
.price .badge { position: absolute; top: -13px; left: 28px; background: var(--pink); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.price h3 { margin: 0; font: 700 20px var(--disp); }
.price .amt { font: 800 44px/1 var(--disp); letter-spacing: -.03em; margin: 14px 0 4px; }
.price .amt small { font-size: 16px; color: var(--mut); font-weight: 600; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.price li { padding-left: 26px; position: relative; color: #dcd8ee; font-size: 15px; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price li.no { color: #6f6b85; } .price li.no::before { content: '—'; color: #6f6b85; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--mut); margin: 10px 0 0; }
.final-cta { text-align: center; background: linear-gradient(135deg, #2b1257, #5b0f2e); border-radius: 28px; padding: 56px 24px; }
.final-cta p { color: #e7defa; margin: 0 0 24px; }
footer { padding: 40px 0 60px; color: var(--mut); font-size: 14px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  section.blk { padding: 48px 0; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; transform: translateY(140%); transition: transform .3s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

/* ---------- editor ---------- */
.ed-top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,18,.85); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.ed-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; max-width: 720px; }
.ed { max-width: 720px; margin: 0 auto; padding: 20px 16px 140px; }
.ed-intro h1 { font-size: clamp(30px, 6vw, 40px); margin: 6px 0 6px; }
.ed-intro p { margin: 0 0 18px; color: var(--mut); }
.ed-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-bottom: 14px; }
.ed-card h2 { font: 800 21px/1.2 var(--disp); letter-spacing: -.01em; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ed-card h2 small { font: 500 13px var(--txt); color: var(--mut); }
.fld { display: block; margin-bottom: 14px; }
.fld:last-child { margin-bottom: 0; }
.fld > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #dcd8ee; }
.fld > span small { color: var(--mut); font-weight: 500; }
input[type=text], input[type=email], input[type=date], input[type=url], input[type=password], textarea, select {
  width: 100%; background: #0f0f18; color: var(--fg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; font: 16px var(--txt); outline: none; transition: border-color .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); }
input[type=date] { color-scheme: dark; min-height: 50px; }
textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-stat { display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-bottom: 10px; }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1.5px solid var(--line); background: #0f0f18; color: var(--fg); padding: 11px 16px; border-radius: 999px; font: 600 15px var(--txt); cursor: pointer; }
.chips button[aria-checked=true] { border-color: var(--pink); background: rgba(255,46,99,.14); }
.hint { font-size: 13px; color: var(--mut); margin-top: 6px; }
.hint.ok { color: var(--green); } .hint.bad { color: #ff7b7b; }
.counter { text-align: right; font-size: 12px; color: var(--mut); margin-top: 4px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.ph { background: #0f0f18; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ph-img { position: relative; aspect-ratio: 4/5; background: #222 center/cover no-repeat; }
.ph-img .ph-tools { position: absolute; top: 6px; right: 6px; left: 6px; display: flex; justify-content: space-between; }
.ph-tools button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; }
.ph-tools .grp { display: flex; gap: 4px; }
.ph-n { position: absolute; bottom: 6px; left: 8px; font: 800 13px var(--disp); background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; }
.ph input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; padding: 11px 10px; background: transparent; }
.ph-add { border: 2px dashed #3a3a52; border-radius: 16px; aspect-ratio: 4/5; display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--mut); font-weight: 600; font-size: 14px; background: transparent; padding: 10px; }
.ph-add b { display: block; font-size: 34px; color: var(--pink); line-height: 1; margin-bottom: 6px; }
.ph-add.busy { opacity: .6; pointer-events: none; }
.ed-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(11,11,18,1) 60%, rgba(11,11,18,0)); }
.ed-bottom .in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.ed-bottom .btn { flex: 1; }
.err { background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.35); color: #ffb4b4; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 12px; }
.banner { background: rgba(25,195,125,.12); border: 1px solid rgba(25,195,125,.35); padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-size: 15px; }

/* preview overlay */
.ov { position: fixed; inset: 0; z-index: 60; background: #07070b; }
.ov .nr-story { bottom: calc(76px + env(safe-area-inset-bottom)); }
.ov .nr-frame { height: 100%; width: min(100vw, calc((100dvh - 76px) * 9 / 16)); border-radius: 0; }
.pv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(76px + env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; background: #0b0b12; border-top: 1px solid var(--line); }
.pv-bar .btn { flex: 1; max-width: 260px; }

/* checkout sheet */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,10,.7); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { position: relative; width: min(560px, 100%); max-height: 94dvh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-in { border-radius: 26px; } }
.sheet h3 { font: 800 24px/1.15 var(--disp); margin: 0 0 6px; letter-spacing: -.02em; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer; }
.plans { display: grid; gap: 10px; margin: 16px 0; }
.plan { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; background: #0f0f18; }
.plan input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; }
.plan.on { border-color: var(--pink); background: rgba(255,46,99,.08); }
.plan .pl-t { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan .pl-t em { font-style: normal; font-size: 11px; background: var(--pink); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; font-weight: 800; letter-spacing: .03em; }
.plan .pl-d { font-size: 13px; color: var(--mut); margin-top: 2px; }
.plan .pl-p { margin-left: auto; font: 800 20px var(--disp); white-space: nowrap; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 16px; }
.methods button { border: 1.5px solid var(--line); background: #0f0f18; color: var(--fg); border-radius: 14px; padding: 13px; font: 700 15px var(--txt); cursor: pointer; }
.methods button[aria-checked=true] { border-color: var(--pink); background: rgba(255,46,99,.08); }
.secure { font-size: 13px; color: var(--mut); text-align: center; margin-top: 12px; }
.pix-qr { display: block; width: 240px; height: 240px; margin: 16px auto; background: #fff; border-radius: 14px; padding: 10px; image-rendering: pixelated; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 13px; }
.copy-row .btn { padding: 12px 16px; font-size: 14px; flex: none; }
.wait { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 18px 0 6px; font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; background: #23233a; border-radius: 8px; overflow: hidden; margin: 18px 0 8px; }
.progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--orange)); transition: width .3s; }
.done-qr { display: block; margin: 14px auto; width: 200px; height: 200px; border-radius: 12px; }
.done-grid { display: grid; gap: 10px; margin-top: 14px; }
.small { font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #fff; color: #111; padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* legal */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 80px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: #d6d2ea; }
