

:root {
  --bg: #fbf8f3;
  --ink: #1c1917;
  --muted: #6b625b;
  --red: #9f1d1d;
  --red-2: #b3261e;
  --gold: #c9a24a;
  --line: #ebe2d6;
  --card: #ffffff;
  --radius: 16px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 28px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(159, 29, 29, .25); }
.btn--primary:hover { background: #861717; }
.btn--primary:disabled { opacity: .7; cursor: progress; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--serif); text-decoration: none; }
.brand__mark svg { width: 30px; height: 30px; fill: var(--red); stroke: #fff; stroke-width: 1.6; display: block; }
.top__nav { display: flex; gap: 22px; font-size: 14px; }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }
.top__by { color: var(--ink) !important; font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; text-align: center; }
.hero__glow { position: absolute; left: 50%; top: -340px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(179, 38, 30, .16), rgba(201, 162, 74, .2), rgba(47, 93, 78, .14), rgba(179, 38, 30, .16)); filter: blur(70px); pointer-events: none; }
.hero__in { position: relative; max-width: 820px; }
.hero__title { font-size: clamp(38px, 6.4vw, 72px); letter-spacing: -.015em; }
.hero__title em { font-style: italic; color: var(--red); }
.hero__sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 20px auto 30px; }
.finder { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 50px rgba(28, 25, 23, .08); }
.finder input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; font: 500 17px var(--sans); color: var(--ink); }
.samples { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--red); color: var(--red); }
.hero__trust { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* status */
.status { max-width: 520px; padding: 8px 0 30px; }
.steps { list-style: none; padding: 20px 24px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { position: relative; padding: 8px 0 8px 32px; color: var(--muted); }
.steps li::before { content: ''; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.is-active { color: var(--ink); font-weight: 600; }
.steps li.is-active::before { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--red); }
.steps__count { font-weight: 400; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { max-width: 620px; margin: 0 auto 30px; padding: 14px 18px; border-radius: 12px; background: #fdecec; color: #7f1d1d; border: 1px solid #f5c2c2; text-align: center; }

/* result */
.result { padding-bottom: 40px; }
.toolbar { position: sticky; top: 64px; z-index: 15; background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.toolbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.toolbar__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.toolbar__info strong { font: 600 18px var(--serif); }
.toolbar__info span { font-size: 13px; color: var(--muted); }
.themes { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.theme-btn { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 999px; padding: 8px 13px; font: 500 14px var(--sans); cursor: pointer; color: var(--muted); }
.theme-btn i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.theme-btn.is-on { background: var(--ink); color: #fff; }
.toolbar__acts { display: flex; gap: 8px; }
.frame { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(28, 25, 23, .10); padding: 0; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6f2ec; }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dccfc0; }
.frame__bar em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 10px; background: #fff; border-radius: 999px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watermark { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 600; text-decoration: none; background: rgba(28, 25, 23, .82); color: #fff; padding: 6px 12px; border-radius: 999px; }

/* ---------- the guide (same CSS as the exported section) ---------- */
.gg-guide { --gg-bg: #fbf6ee; --gg-ink: #2a1714; --gg-muted: #7a625a; --gg-accent: #b3261e; --gg-gold: #b8892f; --gg-card: #fff; --gg-line: #ecdcc8; --gg-font: Georgia, 'Times New Roman', serif; background: var(--gg-bg); color: var(--gg-ink); padding: 56px 20px; transition: background .4s, color .4s; }
.gg-theme-nordic { --gg-bg: #f6f7f5; --gg-ink: #1d2420; --gg-muted: #66706a; --gg-accent: #2f5d4e; --gg-gold: #9aa79f; --gg-card: #fff; --gg-line: #e1e5e2; --gg-font: 'Helvetica Neue', Arial, sans-serif; }
.gg-theme-midnight { --gg-bg: #0e1424; --gg-ink: #f4efe3; --gg-muted: #a9adbd; --gg-accent: #d9b25f; --gg-gold: #d9b25f; --gg-card: #161e33; --gg-line: #26304a; --gg-font: Georgia, 'Times New Roman', serif; }
.gg-guide * { box-sizing: border-box; }
.gg-wrap { max-width: 1200px; margin: 0 auto; }
.gg-top { text-align: center; margin-bottom: 28px; }
.gg-kicker { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gg-accent); border: 1px solid var(--gg-line); border-radius: 99px; padding: 6px 14px; margin-bottom: 14px; }
.gg-top h2 { font-family: var(--gg-font); font-size: clamp(30px, 5vw, 52px); line-height: 1.08; margin: 0 0 10px; color: var(--gg-ink); font-weight: 600; }
.gg-top p { color: var(--gg-muted); max-width: 620px; margin: 0 auto; font-size: 16px; line-height: 1.55; }
.gg-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 36px; padding: 2px; }
.gg-nav a { white-space: nowrap; text-decoration: none; color: var(--gg-ink); border: 1px solid var(--gg-line); background: var(--gg-card); border-radius: 99px; padding: 8px 14px; font-size: 14px; }
.gg-nav a:hover { border-color: var(--gg-accent); color: var(--gg-accent); }
.gg-sec { margin: 0 0 48px; scroll-margin-top: 90px; }
.gg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--gg-line); padding-bottom: 10px; margin-bottom: 18px; }
.gg-head h3 { font-family: var(--gg-font); font-size: clamp(22px, 3vw, 30px); margin: 0; color: var(--gg-ink); font-weight: 600; }
.gg-head p { margin: 0; color: var(--gg-muted); font-size: 14px; }
.gg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gg-card { display: flex; flex-direction: column; text-decoration: none; color: var(--gg-ink); background: var(--gg-card); border: 1px solid var(--gg-line); border-radius: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.gg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .10); }
.gg-img { display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.gg-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gg-name { font-size: 14px; line-height: 1.35; margin: 12px 12px 6px; max-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gg-price { margin-top: auto; padding: 0 12px 14px; font-weight: 700; color: var(--gg-accent); font-size: 15px; }
.gg-price s { color: var(--gg-muted); font-weight: 400; margin-left: 4px; }
@media (max-width: 900px) { .gg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gg-guide { padding: 40px 14px; } .gg-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; } }

/* how / pricing / faq */
.how, .pricing, .faq { padding: 90px 0 0; }
.how__grid, .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how__grid article, .plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.how__grid b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font: 600 16px var(--serif); margin-bottom: 16px; }
.how__grid h3, .plan h3 { font-size: 22px; margin-bottom: 8px; }
.how__grid p { margin: 0; color: var(--muted); }
.plan { position: relative; display: flex; flex-direction: column; }
.plan__price { font: 600 40px var(--serif); margin: 6px 0 14px; }
.plan__price small { font: 400 14px var(--sans); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.plan--main { border: 2px solid var(--red); box-shadow: 0 20px 50px rgba(159, 29, 29, .12); }
.plan__tag { position: absolute; top: -12px; left: 28px; background: var(--gold); color: #1c1917; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.foot { margin-top: 100px; border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* modal */
.modal { width: min(640px, 100% - 28px); border: 0; border-radius: 20px; padding: 32px; color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(28, 25, 23, .55); backdrop-filter: blur(3px); }
.modal h2 { font-size: 28px; margin: 0 0 10px; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal__x { position: absolute; top: 12px; right: 12px; }
.modal__x button { border: 0; background: #f3eee7; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.unlock label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.unlock__row { display: flex; gap: 8px; }
.unlock__row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 500 15px var(--sans); }
.unlock__msg { min-height: 22px; font-size: 14px; margin: 8px 0 14px !important; }
.unlock__msg.is-bad { color: #b91c1c; }
.modal__buy { display: flex; gap: 10px; flex-wrap: wrap; }
.install { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.install li { padding: 3px 0; }
.modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; background: #faf7f2; margin-bottom: 14px; resize: vertical; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: .3s; z-index: 50; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 860px) {
  .how__grid, .plans { grid-template-columns: 1fr; }
  .top__nav a:not(.top__by) { display: none; }
  .toolbar { position: static; }
  .toolbar__in { gap: 10px; }
  .themes { order: 3; width: 100%; justify-content: space-between; }
  .theme-btn { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 44px; }
  .finder { flex-direction: column; border-radius: 18px; }
  .finder input { padding: 14px 12px; text-align: center; }
  .finder .btn { width: 100%; }
  .toolbar { top: 64px; }
  .toolbar__acts { width: 100%; }
  .toolbar__acts .btn { flex: 1; padding: 11px 14px; }
  .frame { width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .modal { padding: 24px 18px; }
  .unlock__row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* editing */
.edit-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.edit-hint b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2a1714; color: #fff; font-size: 14px; line-height: 1; vertical-align: -4px; }
.edit-hint__reset { border: 0; background: none; color: var(--accent, #b3261e); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.gg-edit { outline: none; border-radius: 10px; cursor: text; transition: box-shadow .2s; }
.gg-edit:hover { box-shadow: 0 0 0 2px var(--gg-line); }
.gg-edit:focus { box-shadow: 0 0 0 2px var(--gg-accent); }
#guide .gg-card { position: relative; }
.gg-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gg-line); background: var(--gg-card); color: var(--gg-ink); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); opacity: .85; transition: opacity .2s, transform .2s, background .2s, color .2s; }
.gg-x:hover, .gg-x:focus-visible { opacity: 1; background: var(--gg-accent); color: #fff; transform: scale(1.08); outline: none; }

/* cross-link to PixPass */
.cross { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cross p { margin: 0; color: var(--muted); font-size: 15px; }
.cross b { color: var(--ink); }
@media (max-width: 640px) { .cross { flex-direction: column; align-items: stretch; } }
