:root {
  --green: #123d2f;
  --green-2: #1d5a45;
  --red: #b3262e;
  --red-2: #8f1d24;
  --gold: #c9a24a;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #1c1b19;
  --muted: #5f5a52;
  --line: #e7dfcf;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 61, 47, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.15; color: var(--green); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.7em; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 18px 16px;
}
.brand { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--green); text-decoration: none; }
.brand-mark { color: var(--gold); }
.top-cta { font-weight: 600; text-decoration: none; color: var(--red); }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--red); margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0.6em 0 0; }
.center { text-align: center; }

.hero-art { position: relative; height: 470px; overflow: hidden; padding: 12px; }
.fan {
  position: absolute; width: 56%; border-radius: 12px; box-shadow: var(--shadow);
  border: 6px solid var(--paper); background: var(--paper);
}
.fan-1 { left: 0; top: 40px; transform: rotate(-8deg); }
.fan-2 { left: 22%; top: 0; z-index: 2; }
.fan-3 { right: 4%; top: 50px; transform: rotate(8deg); }
.fan-1 { left: 4%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; text-decoration: none; transition: transform 0.08s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line); margin-top: 10px; }
.btn-ghost:hover { border-color: var(--green-2); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.maker {
  max-width: 1120px; margin: 0 auto; padding: 0 16px 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start;
}
.card-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.style {
  position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden;
  background: var(--cream); cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.style img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.style span { display: block; padding: 7px 9px; font-size: 0.86rem; font-weight: 600; }
.style[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 38, 46, 0.15); }
.style[aria-checked="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 0.85rem;
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--green); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field input, .field select {
  font: inherit; font-weight: 400; color: var(--ink); padding: 11px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(29, 90, 69, 0.15); }
.headline-preview { margin: 18px 0 14px; color: var(--muted); }
.headline-preview strong { color: var(--green); font-family: Fraunces, Georgia, serif; font-size: 1.1rem; }
.form-error { color: var(--red); font-weight: 600; margin: 0 0 12px; }

.maker-result { position: sticky; top: 16px; text-align: center; }
.snow { font-size: 2.6rem; color: var(--green-2); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); overflow: hidden; margin: 14px 0 6px; }
.bar-fill { height: 100%; width: 2%; background: linear-gradient(90deg, var(--green-2), var(--gold)); transition: width 0.8s ease; }
.empty-sample { width: 70%; margin: 6px auto 4px; border-radius: 10px; opacity: 0.9; box-shadow: var(--shadow); }
#previewImg { width: 100%; height: auto; border-radius: 10px; margin-bottom: 16px; background: var(--cream); }
.actions { margin-top: 4px; }
.paid-note { font-weight: 600; color: var(--green-2); margin: 0 0 10px; }

.how, .gallery, .faq { max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 58px; position: relative; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery-grid img { border-radius: 10px; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--green); }
.faq p { margin: 10px 0 2px; color: var(--muted); }

.foot { text-align: center; padding: 28px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); }
.foot a { color: var(--muted); }

.legal { max-width: 760px; margin: 0 auto; padding: 8px 16px 56px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding-bottom: 36px; }
  .hero-art { height: 360px; max-width: 460px; width: 100%; margin: 0 auto; }
  .maker { grid-template-columns: 1fr; }
  .maker-result { position: static; }
  .maker-result.is-empty { display: none; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .styles { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .hero-art { height: 300px; }
  .card-panel { padding: 18px; }
  .top-cta { display: none; }
}
