:root {
  --ink: #1c1410;
  --ink-soft: #3a3028;
  --muted: #6b5e52;
  --paper: #f4eee4;
  --paper-2: #ebe3d4;
  --card: #fffaf2;
  --line: #d7ccba;
  --gold: #b8882e;
  --gold-deep: #8c6418;
  --wine: #6b2a22;
  --focus: #1c1410;
  --ok: #2c5a3e;
  --warn: #8a3b16;
  --soon: #6b2a22;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 20, 16, 0.08);
  --sans: "Avenir Next", "Segoe UI", "Noto Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 32px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.top { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 20; }
.top .wrap, .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: 0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font-size: 1.05rem; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.hide-m { }
@media (max-width: 720px) {
  .hide-m { display: none; }
  body { font-size: 16px; }
}

.hero, .seo, .tool-sec, .band { padding: 36px 0 12px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; max-width: 18ch; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
.kicker { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.note { font-size: 0.92rem; color: var(--muted); }
.banner {
  background: #efe4c9;
  border: 1px solid #e0cfa0;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.tool-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 22px 0 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
@media (max-width: 860px) { .tool-panel { grid-template-columns: 1fr; } }
.drop {
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: var(--paper);
  min-height: 260px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.drop img { width: 100%; height: 260px; object-fit: cover; display: block; }
.drop .empty { text-align: center; padding: 24px; color: var(--muted); }
.file-btn { display: inline-block; margin-top: 10px; }
.file-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.file-btn span, .btn, button.btn, a.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: 650 0.95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary, button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:disabled, button.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.gold { background: var(--gold-deep); color: #fffaf2; }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.scenes label {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: block;
}
.scenes label:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.scenes input { accent-color: var(--ink); margin-right: 6px; }
.scenes strong { display: block; font-size: 0.95rem; }
.scenes span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.consents { display: grid; gap: 8px; margin: 10px 0; font-size: 0.92rem; }
.consents label { display: flex; gap: 8px; align-items: flex-start; }
textarea, .prompt-out, input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: 0.92rem/1.5 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
.prompt-out { min-height: 160px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #efe4c9;
  color: var(--soon);
  font-size: 0.95rem;
}
.status[data-kind="warn"] { background: #f3e0d4; color: var(--warn); }
.status[data-kind="info"] { background: var(--paper-2); color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.card h3 { margin-top: 0; }
.prose p, .prose li { max-width: 46em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--ink-soft); }

.prompt-block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 18px 0 28px; }
.prompt-block pre {
  white-space: pre-wrap;
  background: var(--paper);
  border-radius: 12px;
  padding: 12px;
  font: 0.88rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-x: auto;
}
.placeholder-frame {
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--paper-2) 12px 24px);
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 16px;
  margin: 10px 0 0;
}

.native-ad { padding: 8px 0 20px; }
.ad-host { min-height: 140px; }
@media (max-width: 700px) { .ad-host { min-height: 180px; } }
.native-ad[aria-hidden="true"] .ad-host { min-height: 0; }

footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
footer .links a { color: var(--ink-soft); text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer .official { margin-top: 8px; color: var(--ink-soft); }

.layout-sketch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(280px, 100%);
  margin: 12px auto 0;
}
.layout-sketch i {
  display: block;
  height: 120px;
  border-radius: 12px;
  background: #e8dcc6;
  border: 1px solid #d3c4a8;
  position: relative;
}
.layout-sketch i::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 18%;
  height: 28%;
  border-radius: 50%;
  background: #d2c2a3;
}
.layout-sketch i.lion { background: #efe4c9; }
.layout-caption { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* Pricing */
.pricing-sec { padding: 28px 0 8px; }
.pricing-sec h2 { margin-top: 0.4em; }
.pricing-lead { color: var(--ink-soft); max-width: 46em; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 12px; }
.packs[hidden] { display: none; }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.pack.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.pack-label { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.pack-price { margin: 0; font: 700 2.1rem/1.1 var(--serif); color: var(--ink); }
.pack-credits { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.95rem; }
.pack ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--muted); font-size: 0.9rem; }
.pack .btn { margin-top: auto; text-align: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; font: inherit; cursor: pointer; }
.status[data-kind="ok"] { background: #dfeadf; color: var(--ok); }
.claim-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.claim-form input { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: 0.95rem var(--sans); background: var(--paper); color: var(--ink); }
.result { grid-column: 1 / -1; margin: 0; display: grid; gap: 10px; justify-items: start; }
.result img { max-height: 640px; width: auto; border-radius: 14px; border: 1px solid var(--line); }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f3ebdf;
    --ink-soft: #d9cdbd;
    --muted: #b1a493;
    --paper: #17120f;
    --paper-2: #221b16;
    --card: #1f1915;
    --line: #3a3029;
    --gold: #d1a54d;
    --gold-deep: #e0b55e;
    --wine: #f0a38f;
    --focus: #f3ebdf;
    --ok: #9fd3ae;
    --warn: #f2b38f;
    --soon: #f0c9a8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .banner { background: #2a2119; border-color: #4a3a26; }
  .status { background: #2a2119; }
  .status[data-kind="warn"] { background: #3a231a; }
  .status[data-kind="ok"] { background: #1c2c22; }
  .scenes label:has(input:checked) { background: #2a221c; }
  .file-btn span, .btn, button.btn, a.btn { background: var(--ink); color: #17120f; }
  .btn.secondary, button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn.gold { background: var(--gold); color: #17120f; }
  .layout-sketch i { background: #2a221c; border-color: #4a3a2c; }
  .layout-sketch i::after { background: #3b3027; }
  .layout-sketch i.lion { background: #33281d; }
}
.drop img[hidden] { display: none; }
