/* Storefront, builder and owner pages. */
:root { --deep: #4a1d2c; --card: #7b2230; --red: #a8323a; --gold: #c9973f; --gold2: #f3d58a; --ivory: #fbf1e6; --peach: #f6e4d4; --ink: #4a2622; --line: #ead6bd;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; --script: 'Pinyon Script', cursive; --sans: 'Jost', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ivory); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5rem; color: var(--red); }
p { margin: 0 0 .8rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.script { font-family: var(--script); color: var(--gold); font-size: 1.7rem; line-height: 1.2; }
.kicker { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.top { position: sticky; top: 0; z-index: 50; background: rgba(74, 29, 44, .96); color: #fbeee0; backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.logo { font-family: var(--serif); font-size: 1.25rem; color: #fbeee0; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--gold2); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 0; background: #c8442f; color: #fff; font: 500 .95rem var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(200, 68, 47, .7); }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-gold { background: linear-gradient(135deg, #b8862b, #f3d58a 50%, #c9973f); color: #3b1a10; box-shadow: none; }
.btn-line { background: transparent; color: inherit; border: 1px solid currentColor; box-shadow: none; }
.btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .85rem; }
.btn-wa { background: #1f9e54; box-shadow: none; }
.btn-dark { background: var(--deep); box-shadow: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- storefront ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 30%, #5a1a2a, #2a0a12 65%); color: #fbeee0; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='84' viewBox='0 0 64 84'%3E%3Cg fill='none' stroke='%23e2b45a' stroke-opacity='.25' stroke-width='1.4'%3E%3Cpath d='M30 74C9 70 5 49 15 34C24 21 43 19 47 32C51 45 39 51 33 45C28 40 33 33 38 35'/%3E%3Cpath d='M30 74C40 58 46 42 47 32'/%3E%3Ccircle cx='23' cy='54' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.hero .garl { position: absolute; top: 0; left: 0; right: 0; max-width: 1120px; margin: 0 auto; pointer-events: none; opacity: .95; }
.hero .garl svg { transform: scale(.72); transform-origin: 50% 0; }
.hero .wrap { position: relative; display: grid; gap: 2rem; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.hero h1 { color: #fbeee0; font-size: clamp(2.3rem, 9vw, 3.8rem); }
.hero h1 em { font-family: var(--script); font-style: normal; color: var(--gold2); font-weight: 400; display: block; font-size: .8em; margin-top: .2rem; }
.hero .lead { font-size: 1.1rem; color: #f0d9c4; max-width: 34rem; }
.hero .acts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero .price { display: inline-block; margin-top: 1rem; color: var(--gold2); font-size: .95rem; }
.phone { position: relative; width: 300px; height: 620px; margin: 0 auto; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #2a1418, #120708); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 2px #5a3a2a; }
.phone .screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--deep); position: relative; }
.phone iframe { width: 390px; height: 836px; border: 0; transform: scale(.718); transform-origin: 0 0; display: block; }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #120708; z-index: 2; }
.ptabs { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.ptabs button { border: 1px solid rgba(243, 213, 138, .5); background: transparent; color: #fbeee0; border-radius: 999px; padding: .4rem .9rem; font: .85rem var(--sans); cursor: pointer; min-height: 38px; }
.ptabs button[aria-pressed=true] { background: var(--gold2); color: var(--deep); }
section.band { padding: 64px 0; }
.center { text-align: center; }
.steps { display: grid; gap: 1rem; margin-top: 2rem; counter-reset: s; }
.steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.2rem 1.2rem 4rem; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--gold2); font-family: var(--serif); }
.steps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--red); }
.steps code { background: var(--peach); padding: .1rem .4rem; border-radius: 6px; font-size: .9rem; }
.fmts { display: grid; gap: 1.4rem; margin-top: 2rem; }
.fmt-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.fmt-card .art-box { position: relative; height: 240px; overflow: hidden; background: var(--peach); }
.fmt-card .art-box svg { position: absolute; left: 50%; transform: translateX(-50%); width: 110%; max-width: none; }
.fmt-card .body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.fmt-card h3 { font-size: 1.5rem; }
.fmt-card p { font-size: .95rem; flex: 1; }
.fmt-card .acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2rem; }
.feat div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; font-size: .92rem; }
.feat b { display: block; color: var(--red); font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--red); }
.foot { background: var(--deep); color: #f0d9c4; padding: 34px 0 40px; font-size: .9rem; }
.foot a { color: var(--gold2); }

/* shop: theme try-out, theme cards, openings */
.try { text-align: center; }
.sw-row { display: flex; justify-content: center; gap: 10px; margin-top: 1.2rem; flex-wrap: wrap; }
.sw-row button { width: 44px; height: 44px; padding: 3px; border-radius: 50%; border: 1px solid rgba(243, 213, 138, .35); background: none; cursor: pointer; }
.sw-row button[aria-pressed=true] { border: 2px solid var(--gold2); padding: 2px; }
.sw-row i { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; }
.sw-row i img { display: none; }
.try-name { font-family: var(--serif); font-size: 1.2rem; color: var(--gold2); margin: .6rem 0 0; }
.try-tip { font-size: .85rem; color: #e8cfb8; max-width: 330px; margin: .8rem auto 0; }
.try-tip .linkish { color: var(--gold2); min-height: 0; padding: 0 .2rem; font-size: .85rem; }
.sub-lead { max-width: 560px; margin: 0 auto; opacity: .85; }
.themes { display: grid; gap: 1.2rem; margin-top: 2rem; text-align: left; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px -30px rgba(60, 20, 20, .5); }
.tthumb { display: block; padding: 0; border: 0; cursor: pointer; height: 230px; position: relative; overflow: hidden; }
.tthumb span { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tthumb span::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 18px; margin-left: -9px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.18) 45%, rgba(255,255,255,.18) 55%, transparent); }
.tthumb:hover span { transform: scale(1.04); }
.thumb-med { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; max-width: none; margin: -125px 0 0 -125px; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.tcard .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.tcard .region { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; font-weight: 500; }
.tcard h3 { font-size: 1.6rem; margin: .1rem 0 .3rem; }
.tcard p { font-size: .95rem; flex: 1; }
.tcard .acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.dark-band { background: radial-gradient(ellipse at 50% 0%, #4a1420, #22070e 70%); color: #f0d9c4; }
.dark-band h2 { color: #fbeee0; }
.opens { display: grid; gap: 1rem; margin-top: 2rem; text-align: left; }
.opens div { border: 1px solid rgba(243, 213, 138, .3); border-radius: 18px; padding: 1.1rem 1.2rem; }
.opens b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--gold2); margin-bottom: .2rem; }
.opens span { font-size: .95rem; }
.tpick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tpick label { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; background: #fff; }
.tpick input { position: absolute; opacity: 0; }
.tpick .tthumb { height: 110px; pointer-events: none; }
.tpick .thumb-med { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
.tpick b { display: block; padding: .5rem .7rem .1rem; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--red); }
.tpick small { display: block; padding: 0 .7rem .6rem; font-size: .78rem; opacity: .75; }
.tpick label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.tpick label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.f > .colsel, .colsel { display: flex; align-items: center; gap: .5rem; }
.colsel i { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 0 1px #d9c49b; }

/* ---------- builder ---------- */
.warn { background: #fff1c2; border-bottom: 1px solid #e3c35a; color: #5a3a08; font-size: .9rem; padding: .6rem 16px; text-align: center; }
.layout { display: grid; gap: 2rem; padding-top: 1.6rem; padding-bottom: 8rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.1rem; margin-bottom: 1.2rem; }
.card > h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.card > h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: var(--gold2); display: grid; place-items: center; font-size: .85rem; font-family: var(--sans); flex: none; }
.hint { font-size: .88rem; opacity: .75; margin: -.4rem 0 1rem; }
.fmt-pick { display: grid; gap: .6rem; }
.fmt-pick label { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; cursor: pointer; }
.fmt-pick label:has(input:checked) { border-color: var(--gold); background: #fff8ec; box-shadow: 0 0 0 2px var(--gold) inset; }
.fmt-pick .ic { width: 54px; height: 54px; flex: none; border-radius: 12px; overflow: hidden; background: var(--peach); display: grid; place-items: center; }
.fmt-pick .ic svg { width: 100%; height: 100%; }
.fmt-pick b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--red); }
.fmt-pick small { font-size: .85rem; opacity: .8; }
.fmt-pick input, .chips input { accent-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chip { display: inline-block; border: 1px solid #d9c49b; border-radius: 999px; padding: .45rem .95rem; font-size: .92rem; cursor: pointer; background: #fffdf8; }
.chips label:has(input:checked) .chip { background: var(--deep); color: #fbeee0; border-color: var(--deep); }
.chips label:has(input:focus-visible) .chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.grp { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; font-weight: 500; }
.f { display: block; margin-bottom: 1rem; }
.f > span { display: block; font-size: .95rem; font-weight: 500; margin-bottom: .25rem; }
.f > span i { font-weight: 400; opacity: .65; font-style: normal; }
input[type=text], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=password], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: .65rem .8rem; border-radius: 12px; border: 1px solid #d9c49b; background: #fffdf8; color: var(--ink); min-height: 48px; }
textarea { min-height: 88px; resize: vertical; }
::placeholder { color: #bba98a; }
.two { display: grid; gap: 0 1rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.ev-item { border: 1px dashed #d9c49b; border-radius: 16px; padding: .9rem; margin-bottom: .8rem; position: relative; }
.ev-item .rm { position: absolute; right: .6rem; top: .6rem; }
.linkish { background: none; border: 0; color: var(--red); text-decoration: underline; font: inherit; cursor: pointer; padding: .3rem; min-height: 36px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; margin: .8rem 0; }
.photos figure { margin: 0; background: var(--peach); border-radius: 12px; padding: 6px; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.photos input { min-height: 38px; padding: .3rem .5rem; font-size: 14px; margin-top: 6px; }
.photos .linkish { font-size: .85rem; }
.slug-row { display: flex; align-items: stretch; border: 1px solid #d9c49b; border-radius: 12px; overflow: hidden; background: #fffdf8; }
.slug-row span { padding: .65rem .2rem .65rem .8rem; color: #8a6a5a; white-space: nowrap; font-size: .95rem; display: flex; align-items: center; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.slug-row input { border: 0; border-radius: 0; padding-left: 0; }
.slug-msg { font-size: .88rem; min-height: 1.3em; margin-top: .3rem; }
.ok { color: #1f7a45; } .bad { color: #a3192b; }
.save-bar { position: sticky; bottom: 0; z-index: 20; background: linear-gradient(transparent, var(--ivory) 30%); padding: 1.2rem 0 1rem; }
.save-bar .btn { width: 100%; }
.err { color: #a3192b; font-size: .95rem; margin: .6rem 0 0; }
.pay { text-align: center; }
.pay .amt { font-family: var(--serif); font-size: 2.6rem; color: var(--red); margin: 0; }
.pay .code { font-family: var(--sans); letter-spacing: .15em; background: #fff8ec; border: 1px dashed var(--gold); display: inline-block; padding: .2rem .7rem; border-radius: 8px; font-weight: 600; }
.pay img { width: 200px; height: 200px; margin: 1rem auto .3rem; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; display: block; }
.pay .acts { display: grid; gap: .7rem; margin-top: 1rem; }
.pay .small, .small { font-size: .88rem; opacity: .8; }
.links { background: #fff8ec; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; margin: 1rem 0; text-align: left; word-break: break-all; font-size: .92rem; }
.links b { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .4rem; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; }
.badge.paid { background: #dff3e5; color: #1f6a3c; } .badge.draft { background: #fff1c2; color: #7a5a08; }
table.rs { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.rs th, table.rs td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tot { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.tot span { background: var(--peach); border-radius: 10px; padding: .3rem .7rem; font-size: .9rem; }

/* live preview: floating thumbnail on phones, sticky phone on wide screens */
.pv { position: fixed; right: 10px; bottom: 92px; z-index: 60; width: 92px; cursor: zoom-in; }
.pv .phone { width: 100%; height: 186px; border-radius: 18px; padding: 4px; }
.pv .phone .screen { border-radius: 15px; }
.pv .phone .notch { display: none; }
.pv iframe { pointer-events: none; }
.pv .cap { position: absolute; top: -28px; left: 0; right: 0; text-align: center; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; background: var(--deep); color: var(--gold2); border-radius: 999px; padding: .25rem; }
.pv .tools { display: none; }
.pv.full { inset: 0; width: auto; background: rgba(20, 5, 8, .9); display: grid; place-items: center; cursor: default; padding: 56px 16px 16px; }
.pv.full .phone { width: min(92vw, 360px); height: min(80vh, 740px); padding: 8px; border-radius: 34px; }
.pv.full .phone .screen { border-radius: 27px; }
.pv.full iframe { pointer-events: auto; }
.pv.full .cap { display: none; }
.pv.full .tools { display: flex; gap: .5rem; position: absolute; top: 10px; right: 12px; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 70px; }
  .hero .garl { left: auto; right: max(0px, calc(50% - 560px)); width: 470px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .fmts { grid-template-columns: repeat(3, 1fr); }
  .themes, .opens { grid-template-columns: repeat(3, 1fr); }
  .tpick { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: repeat(4, 1fr); }
  .layout { grid-template-columns: 1fr 360px; align-items: start; }
  .two { grid-template-columns: 1fr 1fr; }
  .pv, .pv.full { position: sticky; top: 80px; right: auto; bottom: auto; width: auto; background: none; padding: 0; cursor: default; display: block; }
  .pv .phone, .pv.full .phone { width: 340px; height: 700px; padding: 10px; border-radius: 42px; }
  .pv .phone .screen { border-radius: 33px; }
  .pv iframe { pointer-events: auto; }
  .pv .phone .notch { display: block; }
  .pv .cap { position: static; margin-bottom: .7rem; font-size: .72rem; padding: .35rem; }
  .pv .tools { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; }
  .pv .tools .x { display: none; }
}

/* ---------- owner ---------- */
.orders { display: grid; gap: .8rem; }
.order { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: grid; gap: .3rem; }
.order h3 { font-size: 1.2rem; margin: 0; }
.order .meta { font-size: .88rem; opacity: .85; }
.order .acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
