@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
/* Secret Santa — soft illustrated holiday style.
   Pale mint paper with outlined stars, sage actions, a chunky soft serif, and
   outlined hand-drawn illustrations that all share one ink color. */
:root {
  --paper: #F3F8EA;
  --page: #E6F0D8;
  --card: #FFFFFF;
  --sage: #5E7B57;
  --sage-dk: #4C6646;
  --sage-lt: #DCEACB;
  --ink: #4A4541;
  --muted: #625C57;
  --red: #E85555;
  --red-lt: #FDE3E1;
  --gold: #F8DC5B;
  --line: #D9E6C8;
  --ok: #3F7D46;
  --warn: #8A6A00;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); line-height: 1.6; font-size: 17px; min-height: 100vh;
  display: flex; flex-direction: column;
  background-color: var(--page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='%23C6DAB0' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M40 30l4.5 9.2 10.1 1.5-7.3 7.1 1.7 10-9-4.7-9 4.7 1.7-10-7.3-7.1 10.1-1.5z'/%3E%3Cpath d='M160 120l3.4 6.9 7.6 1.1-5.5 5.3 1.3 7.6-6.8-3.6-6.8 3.6 1.3-7.6-5.5-5.3 7.6-1.1z'/%3E%3Cpath d='M70 160l2.6 5.3 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z'/%3E%3C/g%3E%3C/svg%3E");
}
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }

/* ---------- header ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(18px, 5vw, 56px); }
.top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 800; font-size: 22px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.top .brand svg { width: 46px; height: 36px; }
#nav { display: flex; gap: 8px; align-items: center; }

/* ---------- layout ---------- */
main { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; flex: 1; }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 26px; line-height: 1.2; margin: 44px 0 14px; font-weight: 750; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 4px; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.nowrap { white-space: nowrap; }

/* ---------- hero card (landing + empty dashboard) ---------- */
.hero { width: min(1180px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin: 0 0 40px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(74, 69, 65, .35), 0 0 0 1px rgba(255,255,255,.6) inset;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 72px) 0;
}
@media (max-width: 860px) { .hero-card { grid-template-columns: 1fr; } }
.hero-copy { padding-bottom: clamp(40px, 7vw, 110px); position: relative; z-index: 1; }
.display {
  font-family: var(--serif); font-size: clamp(42px, 6vw, 70px); line-height: 1.04; font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 13ch;
}
.lede { font-size: clamp(17px, 1.8vw, 20px); max-width: 38ch; color: var(--muted); margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { align-self: end; position: relative; z-index: 1; margin-bottom: -2px; }
.hero-art svg { width: 108%; height: auto; max-width: 620px; margin-left: auto; margin-right: -4%; }
/* faint tree line + snow along the bottom of the card */
.hero-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background:
    linear-gradient(transparent 70px, #FFFFFF 70px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='80'%3E%3Cg fill='%23DCEACB'%3E%3Cpath d='M28 8l18 30h-8l14 22h-10l12 16H6l12-16H8l14-22h-8z'/%3E%3Cpath d='M98 26l13 22h-6l10 16h-7l9 12H76l9-12h-7l10-16h-6z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 150px 80px;
}

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }
.how .step { background: var(--card); border-radius: 22px; padding: 22px 22px 24px; border: 2px solid var(--line); }
.how .step svg { width: 76px; height: 82px; margin-bottom: 8px; }
.wide { width: min(1180px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); padding: 0 clamp(0px, 3vw, 40px); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 24px; margin: 14px 0; }
.group-card { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.group-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.group-card .mini { flex: none; width: 44px; height: 54px; }
.group-card .body { flex: 1; min-width: 0; }
details.card summary { cursor: pointer; font-weight: 800; font-family: var(--serif); font-size: 19px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 800; margin: 18px 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; background: #FCFEF8; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(94, 123, 87, .15); }
textarea { min-height: 92px; resize: vertical; }
.radio { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 2px solid var(--line); border-radius: 14px; padding: 14px; margin: 8px 0; cursor: pointer; background: #fff; }
.radio:has(input:checked) { border-color: var(--sage); background: #F6FAF0; }
.radio input { margin-top: 6px; accent-color: var(--sage); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px;
  padding: 12px 22px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none;
  background: var(--sage); color: #fff; box-shadow: 0 4px 0 var(--sage-dk); transition: transform .08s, box-shadow .08s, background-color .15s;
}
.btn:hover { background: #557050; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sage-dk); }
.btn.big { font-size: 19px; padding: 16px 30px; border-radius: 14px; }
.btn.big svg { width: 26px; height: 26px; }
.btn.secondary { background: #fff; color: var(--sage-dk); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn.secondary:hover { border-color: var(--sage); background: #fff; }
.btn.link { background: none; color: var(--sage-dk); padding: 6px 8px; box-shadow: none; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn.link:active { transform: none; }
.btn.danger { background: #fff; color: var(--red); border: 2px solid #F3C4C0; box-shadow: none; }
.btn.danger:hover { background: var(--red-lt); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- codes, pills, lists ---------- */
.code {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(32px, 6vw, 46px); letter-spacing: .1em; font-weight: 800;
  padding: 18px; text-align: center; color: var(--ink); border-radius: 16px; background: #FFFBEA; border: 2.5px dashed #E8C93C;
}
.pill { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #EEF3E6; color: var(--muted); vertical-align: middle; }
.pill.ok { background: #DDEFD9; color: var(--ok); }
.pill.warn { background: #FFF2C7; color: var(--warn); }
.pill.brand { background: var(--red-lt); color: #C23D3D; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 2px dotted var(--line); }
.list li:last-child { border-bottom: 0; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps span { height: 8px; flex: 1; border-radius: 8px; background: var(--line); }
.steps span.on { background: var(--sage); }
.error { color: #C23D3D; font-size: 15px; font-weight: 700; margin-top: 12px; min-height: 1em; }
.notice { background: #FFF6D6; border: 2px solid #F1DC8C; color: #6B5300; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }

/* ---------- confirmations ---------- */
.reveal { text-align: center; padding: 36px 22px; }
.reveal .emoji { font-size: 46px; line-height: 1; margin-bottom: 10px; }

/* ---------- the unwrap ---------- */
.present { max-width: 420px; margin: 12px auto 0; }
.box {
  position: relative; display: block; width: 100%; height: 230px; cursor: pointer; font: inherit; color: #fff;
  border: 3px solid var(--ink); border-radius: 14px;
  background-color: #F26464;
  background-image: radial-gradient(circle, #fff 0 6px, transparent 7px), radial-gradient(circle, #fff 0 4px, transparent 5px);
  background-size: 70px 70px, 70px 70px; background-position: 10px 14px, 46px 48px;
  box-shadow: 0 8px 0 rgba(74,69,65,.15);
  overflow: hidden;
}
.box::before, .box::after { content: ""; position: absolute; background: var(--gold); border: 3px solid var(--ink); transition: transform .5s cubic-bezier(.6,-0.3,.4,1), opacity .5s; }
.box::before { left: calc(50% - 20px); top: -4px; bottom: -4px; width: 40px; border-top: 0; border-bottom: 0; }
.box::after { top: calc(50% - 20px); left: -4px; right: -4px; height: 40px; border-left: 0; border-right: 0; }
.box .bow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: var(--sage); border: 3px solid var(--ink); padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 18px; transition: opacity .3s; }
.box.opening::before { transform: translateY(-110%); opacity: 0; }
.box.opening::after { transform: translateX(110%); opacity: 0; }
.box.opening .bow { opacity: 0; }
.box.opening { transition: opacity .35s .35s, transform .35s .35s; opacity: 0; transform: scale(.96); }
.giftee {
  position: relative; background: #FFFDF5; border: 3px solid var(--ink); border-radius: 20px; padding: 26px 26px 24px; text-align: left;
  box-shadow: 0 8px 0 rgba(74,69,65,.12); animation: tagIn .45s ease-out both;
}
.giftee .mini { position: absolute; right: 18px; top: -30px; width: 64px; height: 78px; }
.giftee .to { font-size: 15px; color: var(--muted); margin: 0; font-weight: 700; }
.giftee .name { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; font-weight: 800; color: #D94848; margin: 4px 0 16px; }
.giftee dl { margin: 0; }
.giftee dt { font-weight: 800; font-size: 15px; margin-top: 12px; }
.giftee dd { margin: 2px 0 0; }
@keyframes tagIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- footer ground ---------- */
.ground { height: 120px; margin-top: auto; background:
  linear-gradient(transparent 76px, #FFFFFF 76px),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='90'%3E%3Cg fill='%23CFE2BA'%3E%3Cpath d='M30 10l20 32h-9l15 24h-11l13 18H2l13-18H4l15-24h-9z'/%3E%3Cpath d='M118 30l14 24h-7l11 18h-8l10 13H88l10-13h-8l11-18h-7z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 180px 90px; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 10; }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* keep the header on one line on phones */
.btn, .top .brand { white-space: nowrap; }
@media (max-width: 480px) {
  .top { padding: 14px 14px; }
  .top .brand { font-size: 18px; gap: 6px; }
  .top .brand svg { width: 36px; height: 30px; }
  #nav { gap: 2px; }
  #nav .btn { padding: 9px 14px; font-size: 15px; }
  .cta .btn { width: 100%; }
}

/* delete group */
.danger-zone { border-color: #F3C4C0; margin-top: 28px; }
.danger-zone h3 { color: #B83A3A; }
.btn.danger-solid { background: #D94848; color: #fff; box-shadow: 0 4px 0 #A83434; }
.btn.danger-solid:hover { background: #C43E3E; }


/* =================== UI upgrade =================== */

/* sticky, frosted header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(230, 240, 216, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 6px 20px -12px rgba(74, 69, 65, .35); }
.btn.link { min-height: 40px; }

/* page transitions + loading */
#app.enter { animation: viewIn .32s cubic-bezier(.2,.7,.3,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.skel { padding-top: 8px; }
.sk { border-radius: 16px; background: linear-gradient(90deg, #E3EDD6 25%, #F4F9EC 50%, #E3EDD6 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin-bottom: 14px; }
.sk-title { height: 44px; width: 55%; }
.sk-line { height: 18px; width: 75%; margin-bottom: 26px; }
.sk-card { height: 110px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* hero: falling snow + one orchestrated entrance */
.hero-card .snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.snow i { position: absolute; top: -12px; left: var(--l); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #CFE2BA; opacity: .9; animation: fall var(--t) linear var(--dl) infinite; }
@keyframes fall { to { transform: translate(var(--dx), 720px); } }
.intro .display, .intro .lede, .intro .cta { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.intro .lede { animation-delay: .12s; }
.intro .cta { animation-delay: .24s; }
.intro .hero-art { animation: settle .9s cubic-bezier(.2,.8,.25,1.15) .18s both; transform-origin: 60% 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }

/* inner-page illustration */
main { position: relative; }
.side-art { display: none; }
@media (min-width: 760px) { .side-art { display: block; float: right; width: 190px; margin: -6px -8px 8px 20px; } }
@media (min-width: 1240px) { .side-art { float: none; position: absolute; right: -270px; top: 40px; width: 260px; margin: 0; } }

/* page heads, back links */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--sage-dk); font-weight: 800; text-decoration: none; padding: 6px 0; margin-bottom: 4px; }
.back:hover { text-decoration: underline; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.page-head p { margin: 0; }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--line); margin: 22px 0 8px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; font-weight: 800; color: var(--muted); text-decoration: none; white-space: nowrap; border-radius: 12px 12px 0 0; transition: color .15s, background-color .15s; }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--sage); animation: grow .25s ease-out; }
@keyframes grow { from { transform: scaleX(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.tab .count { font-size: 13px; padding: 0 8px; border-radius: 999px; background: #EAF1E0; color: var(--muted); }
.tab .badge { font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; }
.panel { animation: viewIn .25s ease-out both; }

/* members */
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: 15px; background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 35% 28%); border: 2px solid #fff; box-shadow: 0 0 0 1.5px hsl(var(--h) 40% 75%); }
.btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card.highlight { border-color: #F1DC8C; background: #FFFCEB; }
@media (max-width: 560px) { .list li { flex-wrap: wrap; } .btns { width: 100%; justify-content: flex-start; } }

/* empty states */
.empty { text-align: center; padding: 34px 20px; background: var(--card); border: 2px dashed var(--line); border-radius: 20px; margin: 14px 0; }
.empty svg { width: 96px; height: 104px; margin: 0 auto 6px; }
.group-card .mini svg { width: 100%; height: 100%; }

/* progress tracker */
.tracker { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 22px 0 6px; }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tracker li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 4px; border-radius: 4px; background: var(--line); z-index: 0; }
.tracker li.done + li::before { background: linear-gradient(90deg, var(--sage), var(--sage)) no-repeat left / 100% 100%, var(--line); animation: fillLine .5s ease-out calc(var(--i) * .12s) both; }
@keyframes fillLine { from { background-size: 0 100%, auto; } }
.tracker .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; background: #fff; color: var(--muted); border: 3px solid var(--line); transition: all .3s; }
.tracker li.done .dot { background: var(--sage); border-color: var(--sage); color: #fff; animation: pop .35s cubic-bezier(.3,1.6,.5,1) calc(var(--i) * .12s) both; }
.tracker li.now .dot { border-color: var(--sage); color: var(--sage-dk); box-shadow: 0 0 0 0 rgba(94,123,87,.45); animation: ring 1.8s ease-out infinite; }
.tracker .lbl { font-size: 14px; font-weight: 700; color: var(--muted); }
.tracker li.done .lbl, .tracker li.now .lbl { color: var(--ink); }
@keyframes pop { from { transform: scale(.4); } to { transform: none; } }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(94,123,87,0); } 100% { box-shadow: 0 0 0 0 rgba(94,123,87,0); } }
@media (max-width: 480px) { .tracker .lbl { font-size: 12px; } .tracker .dot { width: 30px; height: 30px; } .tracker li + li::before { top: 14px; } }

/* confetti */
.confetti { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 30; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; animation: burst var(--d) cubic-bezier(.15,.7,.35,1) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  45% { transform: translate(calc(var(--x) * .7), var(--y)) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--x), 320px) rotate(var(--r)); opacity: 0; }
}

/* button feedback */
.btn.copied { background: #3F7D46; color: #fff; border-color: #3F7D46; box-shadow: 0 4px 0 #2F5F35; }
.btn .tick { display: inline-block; animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
.btn:disabled[aria-busy=true]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
#toast { display: inline-flex; gap: 8px; align-items: center; }
#toast span { color: var(--gold); }

/* footer */
.site-foot { background: #fff; text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px 26px; }
.site-foot strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
}

@media (max-width: 480px) {
  .tab { padding: 10px 10px; font-size: 15px; }
  .page-head h1 { font-size: 30px; }
}
.pill { white-space: nowrap; }
@media (min-width: 760px) { .side-art { background: var(--paper); border-radius: 24px; overflow: hidden; padding-top: 12px; box-shadow: 0 18px 40px -24px rgba(74,69,65,.35); } .side-art svg { margin-bottom: -2px; } }

/* gift-ready toggle */
.toggle { display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; font-weight: 400; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: #DCE6D0; border: 2px solid #C9D9B6; transition: background-color .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.toggle input:checked + .switch { background: var(--sage); border-color: var(--sage); }
.toggle input:checked + .switch::after { transform: translateX(22px); }
.toggle input:focus-visible + .switch { outline: 3px solid var(--sage); outline-offset: 3px; }
.meter { height: 10px; border-radius: 999px; background: #EAF1E0; overflow: hidden; margin: 6px 0 12px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #9CCB86, var(--sage)); border-radius: 999px; transition: width .6s ease; }

/* anonymous threads */
.threads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .threads { grid-template-columns: 1fr; } }
.thread { display: flex; flex-direction: column; margin: 0; }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 260px; min-height: 90px; overflow-y: auto; padding: 10px 2px; margin: 6px 0 10px; border-top: 2px dotted var(--line); }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.4; animation: viewIn .25s ease-out both; }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--sage); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #FFF6D6; border: 1.5px solid #F1DC8C; border-bottom-left-radius: 4px; }
.empty-thread { margin: auto 0; text-align: center; }
.composer { display: flex; gap: 8px; margin-top: auto; }
.composer input { flex: 1; min-width: 0; }
.composer .btn { padding: 10px 16px; }

/* ---------- questionnaire ---------- */
.qform { padding-top: 18px; }
.qprogress { position: sticky; top: 76px; z-index: 5; background: #fff; padding: 6px 0 10px; margin-bottom: 4px; }
.qprogress .meter { margin: 0 0 6px; }
.qsec { border: 0; padding: 0; margin: 22px 0 0; }
.qsec legend { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 21px; padding: 0; margin-bottom: 2px; }
.qhint { margin: 0 0 8px; }
.qgrid { display: grid; gap: 4px 18px; }
.qgrid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .qgrid.two { grid-template-columns: 1fr; } }
.q { margin: 8px 0; }
.q label, .q .qlabel { display: block; font-weight: 800; font-size: 15px; margin: 6px 0 6px; }
.req { color: #C23D3D; }
.seg, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { gap: 0; display: inline-flex; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.chip { margin: 0; font-weight: 700; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; transition: all .15s; user-select: none; }
.seg .chip span { border: 0; border-radius: 0; padding: 10px 18px; }
.seg .chip + .chip span { border-left: 2px solid var(--line); }
.chip:hover span { background: #F3F8EA; }
.chip input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; animation: pop .25s cubic-bezier(.3,1.6,.5,1); }
.chip input:focus-visible + span { outline: 3px solid var(--sage); outline-offset: 2px; }
.qsec-this-or-that .qgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.notice.upgrade { margin-top: 18px; }

/* ---------- AI gift guide ---------- */
.guide { margin: 6px 0 16px; padding: 18px 18px 14px; border-radius: 16px; background: #fff; border: 2px dashed #E8C93C; }
.guide-loading { color: var(--muted); font-weight: 700; }
.spark { color: #E0B92C; display: inline-block; animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.35) rotate(20deg); opacity: .6; } }
.guide-head { display: flex; align-items: center; gap: 8px; }
.guide-head h4 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 19px; }
.guide-summary { margin: 8px 0 10px; font-size: 17px; }
.ideas { list-style: none; counter-reset: idea; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.ideas li { counter-increment: idea; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 11px 12px 11px 46px; position: relative; border-radius: 12px; background: #F6FAF0; animation: viewIn .35s ease-out both; }
.ideas li:nth-child(2) { animation-delay: .06s; } .ideas li:nth-child(3) { animation-delay: .12s; } .ideas li:nth-child(4) { animation-delay: .18s; } .ideas li:nth-child(5) { animation-delay: .24s; }
.ideas li::before { content: counter(idea); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ideas p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.price { flex: none; font-weight: 800; font-size: 14px; color: var(--sage-dk); background: #E3EED7; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tip { font-size: 15px; margin: 10px 0 4px; }
.fine { font-size: 13px; margin: 6px 0 0; }
.answers { margin-top: 6px; }
.answers summary { cursor: pointer; font-weight: 800; color: var(--sage-dk); }
.answers h4 { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.qgrid.three { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.seg { flex-wrap: nowrap; max-width: 100%; }
.seg .chip span { padding: 10px 14px; white-space: nowrap; }

/* Santa's Circles logo */
.top .brand img { display: block; height: 52px; width: auto; }
@media (max-width: 480px) { .top .brand img { height: 34px; } }

/* =====================================================================
   SANTA'S CIRCLES BRAND — matches the logo: coral, chunky rounded type,
   soft-cornered blocks, and the circle motif from the dot on the "i".
   ===================================================================== */
@font-face { font-family: "Rubik"; src: url("/fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
:root {
  --coral: #F26464;          /* logo color: backgrounds, big type, decoration */
  --coral-strong: #CC3F3F;   /* buttons + links: 4.8:1 with white */
  --coral-deep: #A33131;
  --blush: #FDEDE8;
  --blush-2: #FFF7F4;
  --sage: var(--coral-strong);
  --sage-dk: var(--coral-deep);
  --sage-lt: #FBD9D2;
  --red: var(--coral);
  --red-lt: #FDE2DD;
  --ink: #3A2626;
  --muted: #6E534F;
  --line: #F4D6CF;
  --paper: var(--blush-2);
  --page: var(--blush);
  --ok: #2F7A52;
  --serif: "Rubik", ui-rounded, system-ui, sans-serif;
  --sans: "Rubik", ui-rounded, system-ui, sans-serif;
  font-family: var(--sans);
}
body {
  background-color: var(--blush);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%23F6CBC1' stroke-width='2'%3E%3Ccircle cx='40' cy='44' r='9'/%3E%3Ccircle cx='172' cy='120' r='5'/%3E%3Ccircle cx='96' cy='190' r='13'/%3E%3C/g%3E%3Cg fill='%23F8D6CE'%3E%3Ccircle cx='200' cy='30' r='4'/%3E%3Ccircle cx='120' cy='96' r='3'/%3E%3Ccircle cx='24' cy='150' r='5'/%3E%3C/g%3E%3C/svg%3E");
  font-weight: 400;
}
h1, h2, h3, .display, .tag-title, legend, .giftee .name, .code, details.card summary {
  font-family: "Rubik", ui-rounded, sans-serif; font-variation-settings: normal; letter-spacing: -0.015em;
}
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
.qsec legend { font-family: "Rubik", sans-serif; font-weight: 800; font-variation-settings: normal; }
.guide-head h4 { font-family: "Rubik", sans-serif; font-weight: 800; }

/* header */
.top { background: rgba(253, 237, 232, .86); }
.top .btn.link { color: var(--coral-strong); }

/* hero: a bold coral block, like the logo */
.hero-card { background: var(--coral); box-shadow: 0 30px 60px -28px rgba(163, 49, 49, .55); }
.display {
  color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: .95; font-size: clamp(38px, 5.2vw, 64px); max-width: 15ch;
}
.lede { color: #fff; font-weight: 600; opacity: .95; }
.hero .btn { background: #fff; color: var(--coral-strong); box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.hero .btn:hover { background: #FFF1EE; }
.hero .btn.secondary { background: transparent; color: #fff; border: 2.5px solid rgba(255, 255, 255, .85); box-shadow: none; }
.hero .btn.secondary:hover { background: rgba(255, 255, 255, .12); }
.hero-card::after {
  background:
    linear-gradient(transparent 70px, #FFFFFF 70px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='80'%3E%3Cg fill='%23FFFFFF' fill-opacity='.28'%3E%3Cpath d='M28 8l18 30h-8l14 22h-10l12 16H6l12-16H8l14-22h-8z'/%3E%3Cpath d='M98 26l13 22h-6l10 16h-7l9 12H76l9-12h-7l10-16h-6z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 150px 80px;
}
.snow i { background: #fff; box-shadow: none; opacity: .75; }

/* footer ground: blush trees */
.ground { background:
  linear-gradient(transparent 76px, #FFFFFF 76px),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='90'%3E%3Cg fill='%23F6CBC1'%3E%3Cpath d='M30 10l20 32h-9l15 24h-11l13 18H2l13-18H4l15-24h-9z'/%3E%3Cpath d='M118 30l14 24h-7l11 18h-8l10 13H88l10-13h-8l11-18h-7z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 180px 90px; }

/* blocks: soft-cornered like the logo letters */
.card { border-radius: 18px; border-color: var(--line); }
.how .step { border-radius: 18px; border-color: var(--line); }
.how .step h3 { font-weight: 800; }
.btn { border-radius: 12px; font-weight: 700; }
.btn.secondary { color: var(--coral-strong); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn.secondary:hover { border-color: var(--coral); }
.back { color: var(--coral-strong); }
.tab .count { background: #FBE3DD; }
.pill { background: #F6E9E5; }
.pill.ok { background: #DDF0E4; color: #2F7A52; }
.pill.brand { background: #FDE2DD; color: var(--coral-strong); }
.code { color: var(--coral-strong); background: #fff; border: 3px dashed var(--coral); border-radius: 14px; }
.steps span.on, .tracker li.done .dot { background: var(--coral-strong); border-color: var(--coral-strong); }
.tracker li.now .dot { border-color: var(--coral-strong); color: var(--coral-strong); }
.tracker li.done + li::before { background: linear-gradient(90deg, var(--coral-strong), var(--coral-strong)) no-repeat left / 100% 100%, var(--line); }
.meter { background: #FBE3DD; }
.meter span { background: linear-gradient(90deg, var(--coral), var(--coral-strong)); }
.giftee .name { color: var(--coral-strong); font-weight: 900; }
.ideas li { background: var(--blush-2); }
.ideas li::before { background: var(--coral-strong); }
.price { background: #FDE2DD; color: var(--coral-deep); }
.bubble.me { background: var(--coral-strong); }
.side-art { background: var(--coral) !important; }
.empty { border-color: var(--line); }
.radio:has(input:checked) { background: var(--blush-2); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px rgba(242, 100, 100, .18); }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select { background: #fff; }
.avatar { border-color: #fff; }
.site-foot strong { color: var(--coral-strong); }
#toast { background: var(--ink); }
#toast span { color: var(--coral); }
.display { text-wrap: balance; }
