:root {
  --wine: #4A1526;
  --wine-2: #6B2238;
  --rasp: #E2346E;
  --milk: #FFF7EE;
  --paper: #FFFFFF;
  --ink: #1C1315;
  --muted: #6E5D61;
  --line: #EADBD3;
  --soft: #F7E9E1;
  --yellow: #FFE34D;
  --ok: #1F7A4D;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 16px/1.55 'Archivo', system-ui, -apple-system, sans-serif;
}
a { color: var(--wine); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.hand { font-family: 'Caveat', cursive; font-weight: 700; }

/* hero */
.hero { background: var(--wine); color: var(--milk); padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero h1 { font-size: clamp(30px, 8vw, 46px); margin: 14px 0 12px; }
.hero h1 mark { background: none; color: var(--ink); position: relative; z-index: 0; padding: 0 .1em; }
.hero h1 mark::before { content: ''; position: absolute; inset: .12em -.05em .02em; background: var(--yellow); transform: skew(-4deg) rotate(-1.5deg); z-index: -1; border-radius: 3px; }
.hero p { margin: 0 0 12px; font-size: 17px; max-width: 34em; opacity: .95; }
.family { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.family li { background: rgba(255,247,238,.12); border: 1px solid rgba(255,247,238,.25); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.family li b { font-weight: 700; }
.deadline { margin-top: 22px; display: inline-block; background: var(--milk); color: var(--wine); border-radius: 12px; padding: 10px 16px; font-weight: 700; transform: rotate(-1.5deg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.deadline .hand { font-size: 24px; color: var(--rasp); margin-left: 4px; }

/* steps */
.steps { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: -28px 0 8px; position: relative; }
.step { background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: 0 6px 20px rgba(74,21,38,.08); font-size: 14px; }
.step b { display: block; font-size: 22px; color: var(--rasp); line-height: 1; margin-bottom: 6px; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { display: flex; gap: 12px; align-items: center; } .step b { margin: 0; } }

/* categories */
.section-title { margin: 36px 0 6px; font-size: 24px; color: var(--wine); }
.section-lead { margin: 0 0 16px; color: var(--muted); }
.cat { background: var(--paper); border-radius: var(--radius); margin: 14px 0; box-shadow: 0 2px 10px rgba(74,21,38,.05); overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.cat-head .ico { font-size: 22px; }
.cat-head h3 { font-size: 19px; }
.cat-head .cnt { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--rasp); white-space: nowrap; }
.cat-lead { margin: 0 18px 6px; color: var(--muted); font-size: 14px; }
.items { list-style: none; margin: 0; padding: 4px 8px 10px; }
.item label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.item label:hover { background: var(--soft); }
.item input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: 0 0 auto; width: 24px; height: 24px; border: 2px solid #C9B3AA; border-radius: 7px; margin-top: 1px; display: grid; place-items: center; background: #fff; transition: all .15s; }
.box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: all .15s; }
.item input:checked + .box { background: var(--rasp); border-color: var(--rasp); }
.item input:checked + .box svg { opacity: 1; transform: none; }
.item input:focus-visible + .box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.item .txt { flex: 1; min-width: 0; }
.item .nm { font-weight: 600; }
.item .nt { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.item.prio label { background: #FFF4C7; margin: 4px 0; }
.item.prio .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--wine); color: var(--milk); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.item.closed label { cursor: default; opacity: .55; }
.item.closed label:hover { background: none; }
.item.closed .box { background: var(--soft); border-color: var(--line); }
.item .done { display: block; font-size: 13px; color: var(--ok); font-weight: 700; margin-top: 2px; }

/* personal */
.card { background: var(--paper); border-radius: var(--radius); padding: 20px 18px; margin: 14px 0; box-shadow: 0 2px 10px rgba(74,21,38,.05); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFCF9; color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(226,52,110,.15); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 0; font-size: 15px; }
.check input { position: absolute; opacity: 0; }
.check input:checked + .box { background: var(--wine); border-color: var(--wine); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check.big { font-weight: 700; font-size: 16px; }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: 14px; padding: 15px 24px; cursor: pointer; background: var(--rasp); color: #fff; text-decoration: none; transition: transform .1s, background .15s; }
.btn:hover { background: #C92960; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; padding: 10px 16px; }
.btn.ghost:hover { background: var(--soft); }
.err { background: #FDE8EE; color: #9B1C47; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 12px 0; display: none; }
.err.show { display: block; }

/* sticky bar */
.bar { position: sticky; bottom: 0; z-index: 5; background: rgba(255,247,238,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.bar .wrap { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.bar .sel { font-weight: 700; }
.bar .sel span { color: var(--rasp); }
.bar .btn { padding: 11px 18px; font-size: 15px; }

/* thank you */
.thanks { text-align: center; padding: 48px 0 24px; }
.thanks .heart { font-size: 54px; }
.thanks h2 { font-size: 30px; color: var(--wine); margin: 8px 0 10px; }
.thanks ul { text-align: left; background: var(--paper); border-radius: var(--radius); padding: 16px 18px 16px 36px; margin: 18px 0; }
.thanks li { margin: 4px 0; }

footer { color: var(--muted); font-size: 13px; padding: 28px 0 40px; text-align: center; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
