@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #faf7f2; --card: #ffffff; --ink: #2a2622; --muted: #8a8178; --line: #ece5db;
  --accent: #b08d57; --accent-ink: #fff; --ok: #4f7a5a; --warn: #b7791f; --err: #b3443a;
  --radius: 16px; --serif: "Cormorant Garamond", Georgia, serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.6rem; } h2 { font-size: 1.8rem; } h3 { font-size: 1.3rem; }
a { color: var(--ink); }
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 80px; }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; text-decoration: none; }
.brand b { color: var(--accent); font-weight: 600; }
header.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 18px; }
.card.highlight { border-color: var(--accent); box-shadow: 0 6px 30px -12px rgba(176,141,87,.35); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } h1 { font-size: 2.1rem; } .card { padding: 18px; } }
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
label .muted { font-weight: 400; }
input, textarea, select { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px var(--sans); padding: 11px 20px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; transition: .15s; }
button:hover, .btn:hover { opacity: .88; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); }
button.gold, .btn.gold { background: var(--accent); border-color: var(--accent); }
button.wa, .btn.wa { background: #25d366; border-color: #25d366; }
button.small, .btn.small { padding: 6px 13px; font-size: 13px; }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); }
.badge.live { background: #e3efe5; color: var(--ok); } .badge.approved { background: #fbefd9; color: var(--warn); }
.badge.preview { background: #efe9f7; color: #6b4fa0; } .badge.full { background: var(--accent); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.pack-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pack-choice label { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; margin: 0; font-weight: 400; }
.pack-choice input { display: none; }
.pack-choice label:has(input:checked) { border-color: var(--accent); background: #fdf9f2; }
.pack-choice strong { font-family: var(--serif); font-size: 1.35rem; display: block; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.themes label { margin: 0; cursor: pointer; text-align: center; font-weight: 400; }
.themes input { display: none; }
.themes span.sw { display: block; width: 64px; height: 44px; border-radius: 10px; border: 2px solid transparent; margin-bottom: 4px; }
.themes label:has(input:checked) span.sw { border-color: var(--ink); }
.program-row { display: grid; grid-template-columns: 90px 1fr 38px; gap: 8px; margin-bottom: 8px; }
.program-row button { padding: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps li { counter-increment: s; padding-left: 38px; position: relative; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.stat { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs button { background: transparent; color: var(--ink); border-color: var(--line); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hidden { display: none !important; }
.notice { background: #fdf6e8; border: 1px solid #f1dfb8; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.wa-box { white-space: pre-wrap; background: #f3efe8; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.qr-wrap canvas { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 11px 20px;
  border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.err { background: var(--err); }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d8d0c4; border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(18px); }
