:root { --bg: #0c0c12; --panel: #15151e; --panel2: #1c1c28; --line: #2a2a3a; --text: #f3f2f8; --dim: #a3a2b5; --accent: #8b5cf6; --accent2: #22d3ee; --ok: #34d399; --bad: #fb7185; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; margin-right: auto; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 5px; }
.brand i::before, .brand i::after { content: ""; background: rgba(255, 255, 255, 0.9); border-radius: 2px; grid-row: span 2; }
.nav a.link { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a.link:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { filter: brightness(1.1); }
.btn.big { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.06; margin: 0 auto 18px; max-width: 880px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--dim); font-size: 19px; max-width: 660px; margin: 0 auto 28px; }
.hero .note { font-size: 14px; margin-top: 14px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 10px; }
.shots figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.shots figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--dim); }
.shots-note { text-align: center; color: var(--dim); font-size: 14px; margin: 0 0 20px; }
section { padding: 54px 0; }
h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; letter-spacing: -0.01em; text-align: center; }
.sub { color: var(--dim); text-align: center; max-width: 640px; margin: 0 auto 34px; }
.steps, .uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 25%, transparent); color: #d8c8ff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 25%, transparent); color: #d8c8ff; margin-bottom: 8px; }
.price { font-size: 38px; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; color: var(--dim); font-size: 15px; flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.fine { color: var(--dim); font-size: 13.5px; text-align: center; margin-top: 18px; }
.cta { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 40px 22px; }
.cta p { color: var(--dim); max-width: 560px; margin: 0 auto 20px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); }
/* sign in */
.auth { max-width: 400px; margin: 50px auto; }
.auth h1 { font-size: 28px; margin: 0 0 6px; }
.auth p { color: var(--dim); margin: 0 0 20px; }
label { display: block; font-size: 14px; color: var(--dim); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.msg { min-height: 22px; margin: 12px 0 0; font-size: 14.5px; color: var(--bad); }
.msg.ok { color: var(--ok); }
.auth .btn { width: 100%; margin-top: 18px; }
.swap { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--dim); }
.swap a { color: #c4b1ff; }
/* the studio */
.studio { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
.make { position: sticky; top: 16px; }
.make h2, .side h2 { text-align: left; font-size: 19px; margin: 0 0 4px; }
.make textarea { min-height: 120px; resize: vertical; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kinds button, .counts button { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); color: var(--dim); font: inherit; font-size: 13.5px; cursor: pointer; }
.kinds button.on, .counts button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.counts { display: flex; gap: 6px; flex-wrap: wrap; }
.counts button:disabled { opacity: 0.35; cursor: default; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--dim); font-size: 14.5px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.left { margin-top: 16px; font-size: 14px; color: var(--dim); }
.bar { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.w0 { width: 0; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--dim); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--panel); border-color: var(--line); color: var(--text); }
.batch { margin-bottom: 30px; }
.batch-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.batch-head b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-head span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pic { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pic.fav { border-color: #f5c84b; }
.pic img { width: 100%; cursor: zoom-in; background: var(--panel2); }
.pic .ph { aspect-ratio: 3 / 2; display: grid; place-items: center; color: var(--dim); font-size: 14px; padding: 14px; text-align: center; }
.pic .ph.tall { aspect-ratio: 2 / 3; } .pic .ph.sq { aspect-ratio: 1; }
.pic .ph.making { background: linear-gradient(100deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.pic .row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.pic .row span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic .row button, .pic .row a { border: 0; background: transparent; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; padding: 3px 6px; border-radius: 6px; text-decoration: none; }
.pic .row button:hover, .pic .row a:hover { background: var(--panel2); color: var(--text); }
.pic.fav .star { color: #f5c84b; }
.empty { color: var(--dim); text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--dim); font-size: 13.5px; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { font-size: 14.5px; }
.view { position: fixed; inset: 0; background: rgba(5, 5, 10, 0.92); display: grid; place-items: center; padding: 24px; z-index: 10; cursor: zoom-out; }
.view[hidden] { display: none; }
.view img { max-width: 100%; max-height: 100%; border-radius: 10px; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .steps, .uses, .plans, .shots { grid-template-columns: 1fr; } .studio { grid-template-columns: 1fr; } .make { position: static; } .stats { grid-template-columns: 1fr 1fr; } .nav a.link { display: none; } }
/* ---- v2: fuller pages ---- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 26px; }
.pills span { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 14px; }
.demo { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 18px; margin-top: 40px; text-align: left; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 15.5px; margin-bottom: 14px; }
.demo-bar b { color: var(--dim); font-weight: 500; white-space: nowrap; }
.demo-bar span { flex: 1; min-width: 0; }
.demo-bar i { font-style: normal; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g4 figure, .g2 figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel2); }
.g4 figcaption, .g2 figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g4 img { width: 100%; }
.kind { margin-top: 34px; }
.kind-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.kind-head h3 { margin: 0; font-size: 20px; }
.kind-head q { color: var(--dim); font-size: 15px; quotes: "“" "”"; }
.g4.tall img { aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs .card ul { margin: 10px 0 0; padding-left: 20px; color: var(--dim); font-size: 15px; }
.vs .card li { padding: 3px 0; }
.vs .card.good { border-color: var(--accent); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--dim); font-size: 15.5px; }
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0 46px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; color: var(--dim); font-size: 14.5px; }
.foot b { display: block; color: var(--text); margin-bottom: 10px; font-size: 14px; }
.foot a { display: block; color: var(--dim); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--text); }
.foot p { margin: 8px 0 0; max-width: 300px; }
.doc { max-width: 760px; margin: 0 auto; padding: 30px 0 50px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .when { color: var(--dim); margin: 0 0 8px; }
.doc .draft { border: 1px solid #6b5a1e; background: rgba(245, 200, 75, 0.08); color: #f1d98a; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin: 16px 0 26px; }
.doc h2 { text-align: left; font-size: 21px; margin: 30px 0 8px; }
.doc p, .doc li { color: #cfcede; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc a { color: #c4b1ff; }
.codebox { display: flex; gap: 8px; margin: 8px 0 4px; }
.codebox input { text-transform: lowercase; font-weight: 600; letter-spacing: 0.02em; }
.hint { color: var(--dim); font-size: 13.5px; margin: 6px 0 0; }
.danger { margin-top: 16px; }
.danger summary { cursor: pointer; color: var(--dim); font-size: 14px; }
.danger .btn { border-color: #6b2b3a; color: #ffb3c0; margin-top: 10px; }
.optional { color: var(--dim); font-weight: 400; }
@media (max-width: 860px) { .g4 { grid-template-columns: 1fr 1fr; } .vs { grid-template-columns: 1fr; } .foot { grid-template-columns: 1fr 1fr; } }

.planbox { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.planbox a { color: var(--dim); font-size: 14px; }
.planbox .hint, .planbox .msg { margin: 0; }
