/* self-hosted UI fonts (latin) */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/fonts/ui/newsreader-f0c28dac.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/newsreader-f0c28dac.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/fonts/ui/public-sans-f631476b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/ui/public-sans-f631476b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* end fonts */
:root {
  --paper: #f6f6f5;
  --card: #ffffff;
  --soft: #ecebe9;
  --ink: #2a221d;
  --muted: #6a5d53;
  --line: #dedcd9;
  --accent: #a8431c;
  --accent-dark: #8a3514;
  --ok: #2f6b3a;
  --err: #a12a1a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 58ch; }
.fine { font-size: .875rem; color: var(--muted); }
.center { text-align: center; }

header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.3rem var(--serif); color: var(--ink); text-decoration: none; }
.logo { width: 32px; height: 32px; }
header nav { display: flex; gap: 22px; }
header nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
header nav a:hover { color: var(--accent); }

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.example { margin: 8px 0 0; }
.example .inputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.example .inputs figure { margin: 0; }
.example .inputs img { border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.example .inputs figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 4px; }
.example .arrow { text-align: center; font-size: 1.4rem; color: var(--muted); margin: 6px 0; }
.example > img { border-radius: 6px; box-shadow: 0 1px 2px rgba(42, 34, 29, .08), 0 12px 32px rgba(42, 34, 29, .12); }
.example > figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }

.tool { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: 8px; }
.step { display: flex; gap: 14px; margin-bottom: 18px; }
.step-body { flex: 1; min-width: 0; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; display: grid; place-items: center; margin-top: 2px; }
.step-title { font: 600 1.05rem/1.4 var(--sans); margin: 3px 0 10px; letter-spacing: 0; }
.drop { border: 2px dashed var(--line); padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.drop.over { border-color: var(--accent); background: var(--soft); }
.drop-hint { font-size: .875rem; color: var(--muted); }
.people { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.people li { position: relative; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.people .pos { position: absolute; top: 6px; left: 6px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; border-radius: 3px; padding: 1px 6px; }
.people .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1rem; cursor: pointer; }
.people input[type=text] { width: 100%; margin-top: 6px; font-size: .9rem; padding: 6px 8px; }
.people .old { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.people .bad { color: var(--err); font-size: .8rem; margin-top: 4px; }
.scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.scenes label { cursor: pointer; }
.scenes input { position: absolute; opacity: 0; }
.scenes span { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; background: var(--paper); font-size: .95rem; }
.scenes input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.scenes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.more { margin-top: 12px; font-size: .95rem; }
.more summary { cursor: pointer; color: var(--muted); }
.layout { display: flex; gap: 18px; margin: 10px 0; }
.note-label { display: block; margin: 6px 0 4px; }
input[type=text], input[type=email], #note, #greet-text, #pay-email { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; font: inherit; background: #fff; color: var(--ink); }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 14px; color: var(--muted); }
.consent input { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 6px; padding: 10px 18px; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
#go { width: 100%; padding: 14px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.error { color: var(--err); font-size: .95rem; margin-top: 10px; }

.busy { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: 8px; }
.bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.result { margin-top: 8px; }
.result > img { border-radius: 6px; border: 1px solid var(--line); }
.result-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.greet { margin: 8px 0 14px; }
.greet label { font-weight: 600; font-size: .95rem; }
.greet-row { display: flex; gap: 8px; margin-top: 6px; }
.greet-row input { flex: 1; min-width: 0; }
.check { font-size: .95rem; }

.band { background: var(--soft); padding: 52px 0; }
.steps { padding-left: 1.2em; max-width: 64ch; }
.steps li { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.split img { border-radius: 6px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.tips { padding-top: 8px; padding-bottom: 56px; }
.tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; max-width: 900px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px; margin: 10px 0 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.plan-main { border-color: var(--ink); }
.price { font: 600 2rem var(--serif); margin: 0 0 8px; }
.price span { font: 400 .95rem var(--sans); color: var(--muted); }
.privacy-sum p, .split p, .split li, .tips p, .faq p, .prose p, .prose li { max-width: 66ch; }
.privacy-sum { padding-top: 52px; padding-bottom: 20px; max-width: 760px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.faq { padding-top: 32px; padding-bottom: 64px; max-width: 820px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.prose { max-width: 760px; padding-top: 36px; padding-bottom: 64px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.crumb { font-size: .875rem; color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: 10px; padding: 0; max-width: 440px; width: calc(100% - 32px); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(42, 34, 29, .45); }
.pay { padding: 24px; }
.pay .btn { width: 100%; margin: 6px 0 12px; }
.pay input { margin: 4px 0 6px; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 36px; font-size: .875rem; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
footer .links a { color: var(--muted); }
.ai-note { max-width: 46em; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 24px; }
  .tips-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  header nav { gap: 14px; }
  header nav a:nth-child(1) { display: none; }
  .tool, .busy { padding: 16px; }
  .step { gap: 10px; }
  .example .inputs { gap: 6px; }
  .greet-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
