:root {
  --p: #7C3AED; --p-d: #6D28D9; --p-l: #F5F3FF; --p-2: #EDE9FE; --pink: #EC4899;
  --ink: #111827; --text: #374151; --muted: #6B7280; --line: #E5E7EB; --gray: #F9FAFB; --r: 12px;
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.55 "Inter", system-ui, sans-serif; color: var(--text); background: #fff; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
a { color: var(--p); }
button { font: inherit; color: inherit; cursor: pointer; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 2px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--gray); }
.btn-p { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--p); color: #fff; font-weight: 700; font-size: 16px; transition: background .2s, box-shadow .2s; }
.btn-p:hover { background: var(--p-d); box-shadow: 0 10px 24px -10px rgba(124,58,237,.6); }
.btn-o { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--p); border-radius: 12px; background: #fff; color: var(--p); font-weight: 700; transition: background .2s, color .2s; }
.btn-o:hover { background: var(--p); color: #fff; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--p); color: var(--p); }
.chip .i { width: 16px; height: 16px; }
.link { background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--p); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 22px var(--head); color: var(--ink); text-decoration: none; }
.logo .i { color: var(--p); width: 24px; height: 24px; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; }
.links a:hover { background: var(--gray); }
.links a.on { color: var(--p); font-weight: 700; box-shadow: inset 0 -2px 0 var(--p); border-radius: 0; }
.nav-r { display: flex; gap: 2px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge[hidden] { display: none; }

/* hero */
.hero { min-height: 40vh; display: flex; align-items: center; background: linear-gradient(120deg, #F3E8FF, #FDF2F8); padding: 40px 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.sub { font-size: 19px; margin: 12px 0 22px; max-width: 520px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; color: var(--ink); }
.trust .i { width: 18px; height: 18px; color: var(--p); }
.hero-art svg { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }

/* builder layout */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; padding-top: 48px; padding-bottom: 64px; }
#design { grid-column: 1; grid-row: 1; } #amount { grid-column: 1; grid-row: 2; } #personal { grid-column: 1; grid-row: 3; } #delivery { grid-column: 1; grid-row: 4; }
.summary { grid-column: 2; grid-row: 1 / 6; }
.step { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); min-width: 0; }
#delivery { border-bottom: 0; margin-bottom: 0; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 20px; }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p); color: #fff; font-size: 15px; }

/* designs */
.designs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; }
.dz { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.dz .th { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; box-shadow: 0 4px 10px -4px rgba(17,24,39,.25); }
.dz .th svg { width: 100%; height: 100%; display: block; }
.dz:hover .th { transform: translateY(-2px); }
.dz[aria-checked="true"] { color: var(--p); }
.dz[aria-checked="true"] .th { outline-color: var(--p); }
.preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0; padding: 28px 16px; border-radius: 16px; background: var(--gray); }
.flip { position: relative; width: 400px; max-width: 100%; aspect-ratio: 8 / 5; perspective: 1200px; }
.face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; transition: transform .7s cubic-bezier(.3,.7,.2,1); box-shadow: 0 24px 40px -18px rgba(76,29,149,.45); }
.face svg { width: 100%; height: 100%; display: block; }
.back { transform: rotateY(180deg); background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.flip.flipped .front { transform: rotateY(-180deg); }
.flip.flipped .back { transform: rotateY(0); }
.back .to { font: 700 18px var(--head); color: var(--ink); }
.back .m { flex: 1; margin: 0; font-size: 15px; font-style: italic; color: var(--text); overflow: hidden; overflow-wrap: anywhere; }
.back .fr { font-size: 14px; color: var(--muted); }
.back .code { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); font: 600 13px ui-monospace, monospace; color: var(--muted); }
.back .code b { color: var(--p); font-family: var(--head); }
.pv-tools { display: flex; align-items: center; gap: 12px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #C4B5FD; border-radius: 14px; background: var(--p-l); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.drop.over { background: var(--p-2); border-color: var(--p); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .i { width: 28px; height: 28px; color: var(--p); }
.drop small { color: var(--muted); }
.drop:focus-within { outline: 3px solid var(--p); outline-offset: 2px; }

/* amounts */
.amounts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.amt { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 700 18px var(--head); color: var(--ink); transition: border-color .15s, background .15s; }
.amt:hover { border-color: #C4B5FD; }
.amt[aria-checked="true"] { border-color: var(--p); background: var(--p-l); color: var(--p); }
.custom { margin-top: 18px; max-width: 360px; }
.custom label { font-weight: 600; font-size: 14px; color: var(--ink); }
.money { position: relative; margin-top: 6px; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 700 18px var(--head); color: var(--muted); }
.money input { width: 100%; min-height: 52px; padding: 0 14px 0 36px; border: 1.5px solid var(--line); border-radius: 12px; font: 600 18px var(--head); }
.money input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.money input[aria-invalid="true"] { border-color: #DC2626; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hint.bad { color: #DC2626; font-weight: 600; }
.bulk { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* fields */
.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.fields .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
input:not([type=checkbox]):not([type=file]), textarea, select { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
input[aria-invalid="true"] { border-color: #DC2626; }
.msg { position: relative; margin-top: 14px; }
.msg textarea { min-height: 110px; resize: vertical; }
.counter { justify-self: end; font-size: 12px; font-weight: 500; color: var(--muted); }
.counter.max { color: #DC2626; }

/* delivery */
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.toggle button { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.toggle button .i { width: 26px; height: 26px; color: var(--muted); }
.toggle b { display: block; color: var(--ink); }
.toggle small { color: var(--muted); }
.toggle button[aria-checked="true"] { border-color: var(--p); background: var(--p-l); }
.toggle button[aria-checked="true"] .i { color: var(--p); }
.pane[hidden] { display: none; }
.when { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.when legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.seg button[aria-pressed="true"] { border-color: var(--p); background: var(--p-l); color: var(--p); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0; font-weight: 500; }
.check input, .pack input { width: 20px; height: 20px; accent-color: var(--p); flex: none; }
.email-pv { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.em-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 16px; background: var(--gray); font-size: 13px; color: var(--muted); }
.em-head span:last-child { font-weight: 600; color: var(--ink); }
.em-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; text-align: center; background: linear-gradient(180deg, #fff, #FDF2F8); }
.em-card { width: 220px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px -10px rgba(76,29,149,.4); }
.em-card svg { display: block; width: 100%; height: auto; }
.em-body p { margin: 0; max-width: 360px; overflow-wrap: anywhere; }
.em-btn { padding: 10px 20px; border-radius: 999px; background: var(--p); color: #fff; font-weight: 700; font-size: 14px; }
.pack { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.pack:has(input:checked) { border-color: var(--pink); background: #FDF2F8; }
.pk-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #FCE7F3; color: var(--pink); }
.pack b { display: block; }
.pack small { font-weight: 400; color: var(--muted); }
.eta { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 15px; }
.eta .i { color: var(--p); }
.mock { position: relative; height: 230px; border-radius: 16px; background: var(--gray); overflow: hidden; }
.envelope { position: absolute; left: 50%; top: 56%; width: 300px; height: 150px; margin-left: -150px; border-radius: 8px; background: #F5F0E6; box-shadow: 0 16px 30px -16px rgba(0,0,0,.35); }
.envelope::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 49.5%, #E7DFD0 50%) , linear-gradient(200deg, transparent 49.5%, #EDE5D6 50%); }
.mock.premium .envelope { background: #EC4899; }
.mock.premium .envelope::before { background: linear-gradient(90deg, transparent 46%, #FDE68A 46% 54%, transparent 54%); }
.mock-card { position: absolute; left: 50%; top: 18px; width: 240px; margin-left: -120px; transform: rotate(-6deg); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 30px -14px rgba(76,29,149,.5); }
.mock-card svg { display: block; width: 100%; height: auto; }

/* summary */
.summary { align-self: start; position: sticky; top: 92px; }
.sum { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -24px rgba(17,24,39,.25); }
.sum > summary { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; list-style: none; cursor: default; }
.sum > summary::-webkit-details-marker { display: none; }
.sum h2 { font-size: 20px; margin-right: auto; }
.s-total-mini, .sum .chev { display: none; }
.s-body { padding: 16px 22px 22px; display: grid; gap: 14px; }
.s-card { border-radius: 12px; overflow: hidden; }
.s-card svg { display: block; width: 100%; height: auto; }
.sum dl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.trunc { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.sub-row b { font: 800 26px var(--head); color: var(--ink); }
.err { margin: 0; color: #DC2626; font-size: 14px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pay li { display: grid; place-items: center; min-width: 52px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font: 800 11px "Inter"; color: var(--ink); }
.pay .visa { color: #1A1F71; font-style: italic; font-size: 13px; }
.pay .mc { position: relative; }
.pay .mc i { position: absolute; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: #EB001B; left: 14px; }
.pay .mc i + i { left: 22px; background: #F79E1B; opacity: .9; }
.pay .pp { color: #003087; font-style: italic; }
.disc { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* balance */
.sec { padding: 64px 0; }
.gray { background: var(--gray); }
.bal { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.bal h2 { font-size: 30px; }
.bal-row { display: flex; gap: 10px; margin-top: 6px; }
.bal-row input { font: 600 18px ui-monospace, monospace; letter-spacing: .06em; }
.bal-out:empty { display: none; }
.bal-out { margin-top: 16px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bal-out.bad { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.bal-out .big { font: 800 34px var(--head); color: var(--p); }
.bal-out .ok-s { display: inline-flex; align-items: center; gap: 6px; color: #15803D; font-weight: 600; font-size: 14px; }
.bal-out table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.bal-out td { padding: 8px 0; border-top: 1px solid var(--line); }
.bal-out td:last-child { text-align: right; font-weight: 600; }

/* faq */
.center-h { text-align: center; font-size: 30px; margin-bottom: 28px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.faq details[open] { border-color: #C4B5FD; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 14px 20px; cursor: pointer; list-style: none; font: 700 16px var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--p); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 20px 18px; }

/* corporate */
.corp { background: var(--p-l); padding: 56px 0; }
.corp-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: center; }
.corp h2 { font-size: 28px; }
.corp p { margin: 8px 0 0; }
.corp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.corp li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.corp li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 4px; }
.foot b { color: var(--ink); }
.demo { font-size: 12px; }

.mbar { display: none; }

/* dialog */
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 16px; padding: 0; color: var(--text); box-shadow: 0 40px 80px rgba(17,24,39,.35); }
.dlg::backdrop { background: rgba(17,24,39,.5); }
.dlg-x { position: absolute; top: 10px; right: 10px; }
.dlg-body { padding: 28px; display: grid; gap: 12px; }
.dlg-body h3 { font-size: 22px; margin-right: 44px; }
.dlg-body p { margin: 0; }
.ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #DCFCE7; color: #15803D; }
.ok .i { width: 28px; height: 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; transition: opacity .25s, transform .25s; z-index: 120; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .links { display: none; }
  .nav-r { margin-left: auto; }
  .buy { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .corp-in { grid-template-columns: 1fr 1fr; }
  .corp-in .btn-o { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; width: 100%; }
  .buy { display: block; }
  .summary { position: static; margin-bottom: 40px; }
  .sum > summary { cursor: pointer; padding: 16px 18px; min-height: 60px; }
  .sum[open] > summary { padding-bottom: 0; }
  .s-total-mini { display: block; font: 800 18px var(--head); color: var(--p); }
  .sum .chev { display: block; transition: transform .2s; }
  .sum[open] .chev { transform: rotate(180deg); }
  .bal { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 80px; }
  .wrap { padding: 0 16px; }
  .nav-in { height: 60px; }
  .hero { padding: 28px 0; }
  .sub { font-size: 17px; }
  .buy { padding-top: 32px; }
  .step h2 { font-size: 21px; }
  .designs { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 120px; overflow-x: auto; }
  .preview-wrap { padding: 20px 10px; }
  .amounts { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .amt { font-size: 16px; min-height: 50px; }
  .fields.two { grid-template-columns: 1fr; }
  .toggle { grid-template-columns: 1fr; }
  .bal-row { flex-direction: column; }
  .corp-in { grid-template-columns: 1fr; gap: 18px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17,24,39,.12); }
  .mbar small { display: block; font-size: 12px; color: var(--muted); }
  .mbar b { font: 800 22px var(--head); color: var(--ink); }
  .mbar .btn-p { flex: 1; max-width: 220px; }
  .toast { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
