@font-face { font-family: "UI Sans"; src: url("/fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "UI Serif"; src: url("/fonts/PlayfairDisplay.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #1c1a17;
  --muted: #6d665c;
  --line: #e3dccd;
  --accent: #d9482b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3db;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 8px 28px rgba(28, 26, 23, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171512; --surface: #201d19; --ink: #f2ede4; --muted: #a39b8f; --line: #36312a;
    --accent: #f06a4d; --accent-soft: #3a211b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "UI Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font: 800 22px/1 "UI Serif", serif; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero { padding: 28px 0 8px; text-align: center; }
.hero h1 { font: 800 clamp(34px, 5.4vw, 60px)/1.05 "UI Serif", serif; margin: 0 auto 14px; max-width: 15em; letter-spacing: -0.015em; }
.hero p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 38em; margin: 0 auto; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

.maker { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 32px; padding: 34px 0 56px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step { margin-bottom: 22px; }
.step > label, .step > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.step .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
input[type="text"], input[type="date"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.style-card { border: 2px solid var(--line); border-radius: 10px; padding: 0; background: var(--bg); cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: inherit; }
.style-card[aria-pressed="true"] { border-color: var(--accent); }
.style-card .thumb { aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.style-card .thumb svg { display: block; width: 100%; height: auto; }
.style-card span { display: block; font-size: 12.5px; padding: 6px 8px; font-weight: 600; }
.swatches { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }

.buy { margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 15px 18px; font: 700 17px/1 "UI Sans", sans-serif; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(217, 72, 43, 0.28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.price-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.price-note b { color: var(--ink); }

.preview-wrap { position: sticky; top: 16px; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.preview .frame { margin: 0 auto; max-width: 620px; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 18px 50px rgba(0,0,0,.18); background: #fff; user-select: none; -webkit-user-select: none; }
.preview .frame svg { display: block; width: 100%; height: auto; }
.preview .cap { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

section.band { padding: 56px 0; border-top: 1px solid var(--line); }
section.band h2 { font: 800 clamp(26px, 3.4vw, 38px)/1.1 "UI Serif", serif; margin: 0 0 24px; text-align: center; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .big { font: 800 34px/1 "UI Serif", serif; color: var(--accent); margin-bottom: 10px; }
.included { columns: 2; column-gap: 36px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.included li { break-inside: avoid; padding: 7px 0 7px 30px; position: relative; }
.included li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--accent); font-weight: 800; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.years { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto; }
.years a { text-decoration: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--surface); }
.years a:hover { border-color: var(--ink); }

footer.bottom { padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.bottom a { margin-right: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: 15px; z-index: 10; max-width: calc(100% - 32px); }
.legal { max-width: 760px; margin: 0 auto; padding: 20px 0 60px; }
.legal h1 { font: 800 40px/1.1 "UI Serif", serif; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: var(--ink); }

.downloads { display: grid; gap: 10px; margin-top: 14px; }
.dl-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.dl-row .sz { font-weight: 700; font-size: 15px; }
.dl-row .btns { display: flex; gap: 8px; }
.dl-row button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: 600 14px "UI Sans", sans-serif; cursor: pointer; }
.dl-row button:hover { border-color: var(--ink); }

@media (max-width: 880px) {
  .maker { grid-template-columns: 1fr; gap: 20px; }
  .preview-wrap { position: static; order: -1; }
  .preview { padding: 14px; }
  .steps3 { grid-template-columns: 1fr; }
  .included { columns: 1; }
  nav { display: none; }
}
