/* HoHo additions on top of styles.css (the family site's look): the public product's own screens. */
:root { --font-display: "Fredoka", "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
main { padding-block: 58px 20px; }
#app { display: grid; gap: 26px; min-width: 0; }
.center-text { text-align: center; }
.center-row { justify-content: center; }

/* top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 0; }
.topbar:empty { display: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--cream); text-decoration: none; }
.brand-mark { font-size: 1.3rem; }
select { font: inherit; color: var(--cream); background: var(--night); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; max-width: 100%; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; color: var(--muted); font-size: 0.85rem; padding-top: 10px; }
.privacy summary { cursor: pointer; color: var(--gold); }
.privacy p { max-width: 60ch; margin-top: 6px; }

/* landing */
.landing-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; }
.landing-hero .row { margin-top: 8px; }
.hero-wreath { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; justify-self: center; }
.hero-wreath .wreath { animation: spin 90s linear infinite; }
.hw-av { position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 6px 14px rgba(0,0,0,.4); animation: bobav 3.2s ease-in-out infinite; }
.hw-av svg, .hw-hub svg { display: block; width: 100%; height: 100%; }
@keyframes bobav { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
.hw-hub { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--paper), 0 8px 18px rgba(0,0,0,.4); }
@media (max-width: 640px) { .landing-hero { grid-template-columns: 1fr; text-align: center; } .landing-hero .hero { justify-items: center; } .landing-hero .row { justify-content: center; } .hero-wreath { max-width: 260px; grid-row: 1; } }

.how, .features { display: grid; gap: 18px; }
.steps, .onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.onboard-steps { grid-template-columns: 1fr; max-width: 420px; width: 100%; justify-self: center; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: color-mix(in srgb, var(--night-2) 78%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; animation: rise .5s ease-out backwards; }
.step:nth-child(2) { animation-delay: .1s; } .step:nth-child(3) { animation-delay: .2s; }
.step h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.step h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--berry); color: #fff; font-size: 0.9rem; vertical-align: 2px; }
.step p { color: var(--muted); }
.step-pic { height: 92px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: var(--night); overflow: hidden; position: relative; }
.step-av { width: 56px !important; height: 56px !important; }
.step-av.small { width: 40px !important; height: 40px !important; position: absolute; right: 18%; bottom: 12px; }
.pic-people .step-av:nth-child(2) { transform: translateY(-8px); }
.mini-tag { width: 92px; height: 62px; background: var(--paper); clip-path: polygon(16% 0, 84% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); position: relative; display: grid; align-content: end; gap: 6px; padding: 0 12px 12px; transform: rotate(-6deg); }
.mini-eyelet { position: absolute; top: 7px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 3px var(--gold-deep); }
.mini-tag-line { height: 6px; border-radius: 3px; background: #e6d3bb; } .mini-tag-line.short { width: 60%; }
.pic-sleigh-art { width: 150px; animation: glide 4s ease-in-out infinite; }
.pic-sleigh-art svg, .pic-gift svg { display: block; width: 100%; }
.pic-gift { width: 34px; position: absolute; right: 14px; bottom: 10px; }
.pic-gift .lid { width: 112%; margin: 0 -6% -5%; }
@keyframes glide { 0%, 100% { transform: translate(-8px, 2px); } 50% { transform: translate(8px, -4px); } }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: color-mix(in srgb, var(--night-2) 60%, transparent); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.feature h3 { margin: 0; font-family: var(--font-display); font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }
.feature-icon { font-size: 1.4rem; }
.my-draw { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--night); color: var(--cream); text-decoration: none; }
.my-draw .chip { grid-row: 1 / span 2; grid-column: 2; }

/* onboarding */
.onboard { display: grid; gap: 18px; justify-items: center; }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.dot.on { background: var(--gold); transform: scale(1.25); }

/* wizard */
.wizard { display: grid; gap: 18px; }
.wizard-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wizard-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.ws-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--cream); font-size: 0.78rem; }
.wizard-steps li.on { border-color: var(--gold); color: var(--cream); }
.wizard-steps li.on .ws-num { background: var(--gold); color: var(--ink); }
.wizard-steps li.done .ws-num { background: var(--pine); }
@media (max-width: 520px) { .wizard-steps li:not(.on) .ws-name { display: none; } .wizard-steps li:not(.on) { padding-right: 5px; } }
.wizard-nav { justify-content: space-between; }
.wizard-nav .btn-primary:only-child { margin-left: auto; }
.money { display: flex; gap: 8px; } .money input { flex: 1; min-width: 0; } .money select { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ab-chip { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; }
.ab-chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.chip-green { background: #e2f0e4 !important; color: #1f5b3c !important; }
.narrow-panel { max-width: 480px; width: 100%; justify-self: center; box-sizing: border-box; }
.note.warn { color: var(--gold); }
.progress { height: 8px; border-radius: 4px; background: var(--night); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--berry), var(--gold)); transition: width .25s; }

.people-list { display: grid; gap: 10px; }
.person-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--night); }
.person-card.new { animation: rise .35s ease-out backwards; }
.person-av { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 3px var(--paper); position: relative; background: none; }
.person-av svg { display: block; width: 100%; height: 100%; }
.person-av::after { content: "✎"; position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 0.8rem; box-shadow: 0 0 0 2px var(--night); }
.person-fields { display: grid; gap: 8px; min-width: 0; }
.person-line { display: flex; gap: 8px; } .person-line input { flex: 1; min-width: 0; font-weight: 700; }
.partner { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); flex-wrap: wrap; }
.partner select { flex: 1; min-width: 120px; padding: 6px 8px; font-size: 0.88rem; }

.ready .members .ready-member { grid-template-columns: 1fr auto; }
@media (max-width: 640px) { .ready .members .ready-member { grid-template-columns: 1fr; } }
.member-actions { justify-content: flex-end; }
@media (max-width: 640px) { .member-actions { justify-content: flex-start; } .member-actions .btn { flex: 1; } }

/* avatar builder */
dialog.ab { width: min(520px, calc(100vw - 24px)); max-height: min(88dvh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--night-2); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
dialog.ab::backdrop { background: rgba(4, 14, 10, .7); backdrop-filter: blur(3px); }
dialog.ab[open] { animation: popsheet .3s ease-out; }
@keyframes popsheet { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.ab-head { display: flex; gap: 14px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.ab-preview { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--gold); }
.ab-preview svg { display: block; width: 100%; height: 100%; }
.ab-head-text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.ab-head-text h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.ab-rows { overflow-y: auto; padding: 12px 16px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.ab-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.ab-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--night); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.ab-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold); }
.ab-pick { width: 56px; height: 56px; padding: 0; border-radius: 50%; overflow: hidden; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--line); background: none; }
.ab-pick svg { display: block; width: 100%; height: 100%; }
.ab-pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold); }
.ab-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* gift ideas (shown once a shop provider is switched on) */
.ideas { border-top: 2px dashed #e6d3bb; padding-top: 12px; display: grid; gap: 8px; }
.idea-list { display: grid; gap: 8px; }
.idea { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; padding: 6px; border-radius: 12px; background: #f6e4cb; }
.idea img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .hero-wreath .wreath, .hw-av, .pic-sleigh-art, .step, .person-card.new, dialog.ab[open] { animation: none; } }

/* ---------- email option ---------- */
.mail-toggle { display: grid; gap: 6px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: var(--cream); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--night); border: 1px solid var(--line); position: relative; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .switch-track { background: var(--pine); border-color: var(--pine); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.mail-privacy { margin: 0; }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; width: 100%; box-sizing: border-box; }
.composer .row { flex-wrap: wrap; }
.mail-summary:empty { display: none; }
.mail-status { font-size: 0.8rem; }
.mail-status.done { color: #9be0b4; }
.mail-status.failed { color: #ffb4a8; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.mail-one { display: contents; }
.mail-ask { flex-wrap: wrap; gap: 8px; width: 100%; }
.mail-ask input { flex: 1 1 200px; min-width: 0; }
.mail-ask .error { width: 100%; margin: 0; }

/* ---------- owner stats ---------- */
.stats { display: grid; gap: 18px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-tile { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--night-2) 78%, transparent); }
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--cream); }
.stat-sub { font-size: .75rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.stat-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { padding: 7px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); text-align: right; }
.stat-table th:first-child, .stat-table tbody th { text-align: left; font-weight: 600; color: var(--cream); }
.stat-table thead th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.chart { display: grid; gap: 6px; }
.cols { position: relative; height: 180px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; border-bottom: 1px solid var(--line); }
.col { position: relative; height: 100%; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: default; }
.col:hover .col-bar, .col:focus-visible .col-bar { background: var(--cream); }
.col-bar { width: 100%; max-width: 22px; margin: 0 auto; background: var(--gold); border-radius: 4px 4px 0 0; }
.col-label { position: absolute; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--cream); white-space: nowrap; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }
.cols-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 10px; font-size: .88rem; }
.hbar-track { height: 14px; }
.hbar-fill { display: block; height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar-value { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Landing: questions, language links ---------- */
.faq { display: grid; gap: 14px; }
.faq-list { display: grid; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.faq-item { background: color-mix(in srgb, var(--night-2) 78%, transparent); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; list-style-position: outside; }
.faq-item p { color: var(--muted); margin: 8px 0 0; }
.lang-links { display: flex; flex-wrap: wrap; gap: 4px 12px; flex-basis: 100%; order: 3; }
.lang-links a { color: var(--muted); text-decoration: none; }
.lang-links a:hover, .lang-links a:focus-visible { color: var(--gold); text-decoration: underline; }

/* ---------- "Organise your own draw" ---------- */
.own-draw { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px auto 0; padding: 12px 16px; max-width: 520px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.own-draw p { margin: 0; color: var(--muted); }
.own-draw[hidden] { display: none; }
.idea-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #fbf1e2; font-size: 1.5rem; }
.idea b { color: var(--berry-deep, #a3242f); padding-right: 6px; }
.support-link { color: var(--gold); text-decoration: none; order: 4; }
.support-link:hover, .support-link:focus-visible { text-decoration: underline; }

/* ---------- Feedback ---------- */
.feedback-link { color: var(--muted); text-decoration: none; order: 4; }
.feedback-link:hover, .feedback-link:focus-visible { color: var(--gold); text-decoration: underline; }
dialog.fb { display: block; max-width: min(460px, calc(100vw - 24px)); }
.fb-body { padding: 22px; display: grid; gap: 12px; }
.fb-body h2 { margin: 0; font-family: var(--font-display); }
.fb-form { display: grid; gap: 12px; }
.fb-faces { display: flex; gap: 8px; }
.fb-face { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line); background: color-mix(in srgb, var(--night) 60%, transparent); font-size: 1.6rem; cursor: pointer; transition: transform .15s, border-color .15s; }
.fb-face:hover { transform: translateY(-2px); }
.fb-face[aria-checked="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, transparent); }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-actions { justify-content: flex-end; }
.fb-thanks { font-size: 1.1rem; margin: 6px 0; }
.fb-list { display: grid; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--night) 50%, transparent); }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: .85rem; }
.fb-mood { font-size: 1.2rem; }
.fb-del { margin-left: auto; }
.fb-text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
