/* Tajny Mikołaj: site styles.
   Night forest + snow. One bold moment (the envelope draw in the hero), everything
   else quiet. Palette is shared with the e-mails (scripts/make_email_art.py). */

:root {
  --pine: #0f3d2e;        /* night forest: hero, footer */
  --pine-deep: #0a2a20;
  --spruce: #2d7a57;      /* trees, secondary green */
  --spruce-light: #3f9a6f;
  --holly: #c8102e;       /* primary actions, wax seals */
  --holly-dark: #a10d25;
  --candle: #e8b54a;      /* stars, warm highlights */
  --frost: #f5f9f7;       /* page background: cool snow, not cream */
  --snow: #ffffff;
  --ink: #13251d;
  --ink-soft: #4b5f55;
  --line: #d9e5df;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 80px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 24px; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: 20px; color: var(--ink-soft); margin-top: 12px; max-width: 46ch; }

/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 17px/1 var(--font-body);
  padding: 15px 26px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--holly { background: var(--holly); color: #fff; box-shadow: 0 8px 22px rgba(200, 16, 46, .32); }
.btn--holly:hover { background: var(--holly-dark); }
.btn--candle { background: var(--candle); color: var(--pine-deep); }
.btn--candle:hover { background: #f1c560; }
.btn--large { font-size: 19px; padding: 19px 32px; }
.btn--small { font-size: 15px; padding: 10px 18px; }

.brand {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700; font-size: 24px; text-decoration: none;
}
.brand--light { color: #fff; }
.brand::before { content: "★ "; color: var(--candle); }
.link-light { color: #d6e9df; text-underline-offset: 4px; }
.link-light:hover { color: #fff; }

/* --- hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(232, 181, 74, .14), transparent 60%),
    linear-gradient(180deg, var(--pine-deep) 0%, var(--pine) 70%);
  color: #fff;
  padding-bottom: 250px;
}
.nav { display: flex; align-items: center; gap: 24px; padding-block: 22px; position: relative; z-index: 2; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: #cfe3d9; text-decoration: none; font-size: 16px; }
.nav__links a:hover { color: #fff; }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: clamp(24px, 6vw, 72px);
}
.hero__grid > *, .portal__grid > * { min-width: 0; }
.hero__lead { font-size: 21px; color: #d6e9df; margin-top: 22px; max-width: 34ch; }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 15px; color: #a9c8b9; }

/* falling snow: two layers of radial dots drifting down */
.snowfall, .snowfall::after {
  position: absolute; inset: -200px 0 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90px 120px, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 160px 60px, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 230px 170px, rgba(255,255,255,.7) 50%, transparent 52%);
  background-size: 260px 200px;
  animation: snow 14s linear infinite;
  opacity: .55;
}
.snowfall::after { content: ""; inset: 0; background-size: 380px 300px; animation-duration: 22s; opacity: .7; }
@keyframes snow { to { transform: translateY(200px); } }

/* --- forest band (hero bottom, footer, simple pages) ------------------------- */
.forest { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none; overflow: hidden; }
.forest__tree, .forest__star {
  position: absolute; bottom: 14px; left: var(--x);
  height: var(--h); width: calc(var(--h) * .72); transform: translateX(-50%);
}
.forest__tree--a { color: #1f5c43; }
.forest__tree--b { color: var(--spruce); }
.forest__tree--c { color: #184d38; }
.forest__star {
  color: var(--candle); width: 22px; height: 22px;
  bottom: calc(14px + var(--h) - 13px);
  filter: drop-shadow(0 0 8px rgba(232, 181, 74, .8));
}
.forest__snow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; fill: var(--frost); }

/* --- the envelope demo (the one bold moment) ---------------------------------- */
.demo {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-l);
  padding: 28px;
  backdrop-filter: blur(4px);
  text-align: center;
}
.demo__envelopes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.demo__envelopes li { grid-column: span 2; }
.demo__envelopes li:nth-child(4) { grid-column: 2 / span 2; }

.envelope {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 0; border-radius: 10px; padding: 0; cursor: default;
  background: linear-gradient(160deg, #fffaf0, #f3e9d6);
  color: var(--ink); font: 600 17px/1.2 var(--font-body);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  overflow: hidden;
  transition: transform .25s ease;
}
.envelope__flap {
  position: absolute; inset: 0 0 auto; height: 56%;
  background: linear-gradient(180deg, #efe2c8, #e6d5b4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .45s ease;
}
.envelope__name { position: absolute; left: 0; right: 0; bottom: 12px; }
.envelope__seal {
  position: absolute; left: 50%; top: 56%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--holly); color: var(--candle);
  display: grid; place-items: center;
  box-shadow: 0 2px 0 var(--holly-dark), inset 0 0 0 3px rgba(255,255,255,.12);
  transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.envelope__seal svg { width: 14px; height: 14px; }
.envelope__card {
  position: absolute; inset: 12% 10% auto; padding: 8px 6px;
  background: #fff; border-radius: 6px;
  display: grid; gap: 2px;
  opacity: 0; transform: translateY(40%);
  transition: transform .45s ease .1s, opacity .25s ease .1s;
}
.envelope__card small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.envelope__card strong { font-family: var(--font-display); font-size: 20px; color: var(--holly); }

.demo.is-drawn .envelope { cursor: pointer; }
.demo.is-drawn .envelope:hover { transform: translateY(-3px); }
.demo.is-drawn .envelope__seal { transform: scale(1); }
.envelope.is-open .envelope__flap { transform: rotateX(180deg); }
.envelope.is-open .envelope__seal { transform: scale(0); }
.envelope.is-open .envelope__name { opacity: 0; }
.envelope.is-open .envelope__card { transform: translateY(0); opacity: 1; }

.demo.is-shuffling .envelope { animation: shuffle .7s ease; }
.demo.is-shuffling li:nth-child(2n) .envelope { animation-delay: .06s; }
.demo.is-shuffling li:nth-child(3n) .envelope { animation-delay: .12s; }
@keyframes shuffle {
  25% { transform: translate(-10px, -8px) rotate(-6deg); }
  50% { transform: translate(8px, -14px) rotate(5deg); }
  75% { transform: translate(-4px, -4px) rotate(-2deg); }
}

.demo__status { margin: 22px auto 16px; color: #d6e9df; font-size: 16px; min-height: 2.6em; max-width: 34ch; }

/* --- how it works: steps on a string of lights ---------------------------------- */
.how { padding-block: 110px 90px; text-align: center; }
.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  position: relative;
}
.steps::before { /* the garland wire connecting the bulbs */
  content: ""; position: absolute; left: 16%; right: 16%; top: 22px; height: 26px;
  border-bottom: 2px solid #9fb8ab; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.step { position: relative; }
.step__bulb {
  position: relative; z-index: 1;
  width: 50px; height: 50px; margin: 0 auto 20px; border-radius: 50% 50% 46% 46%;
  display: grid; place-items: center;
  font: 700 20px/1 var(--font-display); color: #fff;
  background: var(--holly);
  box-shadow: 0 0 0 6px var(--frost), 0 0 26px rgba(200, 16, 46, .45);
}
.step:nth-child(2) .step__bulb { background: var(--candle); color: var(--pine-deep); box-shadow: 0 0 0 6px var(--frost), 0 0 26px rgba(232, 181, 74, .6); }
.step:nth-child(3) .step__bulb { background: var(--spruce); box-shadow: 0 0 0 6px var(--frost), 0 0 26px rgba(45, 122, 87, .5); }
.step p { color: var(--ink-soft); margin: 10px auto 0; max-width: 30ch; }

/* --- participant portal ------------------------------------------------------ */
.portal { background: var(--snow); border-block: 1px solid var(--line); padding-block: 96px; }
.portal__grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px;
  background: var(--spruce);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); /* a tiny tree instead of a tick */
}

.phone {
  width: 100%; max-width: 360px; margin-inline: auto;
  background: var(--pine-deep); border-radius: 44px; padding: 14px;
  box-shadow: 0 30px 60px rgba(15, 61, 46, .28);
}
.phone__screen { background: var(--frost); border-radius: 32px; padding: 26px 20px; font-size: 15px; }
.phone__event { font-weight: 600; color: var(--ink-soft); text-align: center; }
.phone__reveal {
  margin: 14px 0 20px; padding: 18px; text-align: center;
  background: var(--pine); color: #fff; border-radius: var(--radius-m);
}
.phone__reveal small { display: block; color: #b9d3c6; }
.phone__reveal strong { font: 600 32px/1.2 var(--font-display); color: var(--candle); }
.phone__heading { font-weight: 700; margin: 14px 0 8px; }
.phone__wishes { margin: 0; padding: 0 0 0 20px; color: var(--ink); }
.phone__chat { display: grid; gap: 8px; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; justify-self: start; max-width: 90%; }
.bubble--mine { background: #e3f1ea; border-color: #cfe5da; border-radius: 14px 14px 4px 14px; justify-self: end; }

/* --- pricing ----------------------------------------------------------------- */
.pricing { padding-block: 110px 40px; text-align: center; }
.pricing .lead { margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 28px; margin-top: 48px; text-align: left; }
.plan { border-radius: var(--radius-l); padding: 34px 32px; display: flex; flex-direction: column; }
.plan--family { background: var(--snow); border: 1px solid var(--line); }
.plan--company { background: var(--pine); color: #fff; position: relative; overflow: hidden; }
.plan--company::after { /* a single pine peeking in from the corner */
  content: ""; position: absolute; right: -18px; bottom: -10px; width: 120px; height: 160px;
  background: var(--spruce); opacity: .35;
  clip-path: polygon(50% 0, 72% 38%, 62% 38%, 86% 70%, 72% 70%, 100% 100%, 0 100%, 28% 70%, 14% 70%, 38% 38%, 28% 38%);
}
.plan__price { font: 600 56px/1 var(--font-display); margin-top: 18px; }
.plan--company .plan__price { color: var(--candle); }
.plan__limit { color: var(--ink-soft); margin-top: 6px; }
.plan--company .plan__limit { color: #b9d3c6; }
.plan--company .ticks li::before { background: var(--candle); }
.plan .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.plan .ticks { margin-bottom: 32px; }
.pricing__note { margin: 28px auto 0; color: var(--ink-soft); font-size: 16px; max-width: 52ch; }

/* --- faq --------------------------------------------------------------------- */
.faq { padding-block: 90px 120px; max-width: 820px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/0.8 var(--font-display); color: var(--holly); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }

/* --- footer -------------------------------------------------------------------- */
.footer { position: relative; background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); color: #fff; padding-bottom: 250px; text-align: center; overflow: hidden; }
.footer__inner { padding-top: 96px; display: grid; justify-items: center; gap: 30px; }
.footer__inner h2 { max-width: 18ch; }
.footer__meta { color: #a9c8b9; font-size: 15px; }
.footer .forest__snow { fill: #fff; }

/* --- simple pages (coming soon, 404) ------------------------------------------- */
.page-simple { background: var(--pine); }
.simple {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; align-content: center; justify-items: center; gap: 20px;
  padding: 40px var(--gutter) 280px; text-align: center; color: #fff;
}
.simple p { color: #d6e9df; max-width: 40ch; }
.simple .brand { margin-bottom: 20px; }
.simple .forest__snow { fill: #fff; }

/* --- responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero__grid, .portal__grid { grid-template-columns: 1fr; gap: 44px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: minmax(0, 420px); }
  .hero, .footer { padding-bottom: 170px; }
  .forest { height: 170px; }
  .forest__tree { height: calc(var(--h) * .6); width: calc(var(--h) * .43); }
  .forest__star { bottom: calc(14px + var(--h) * .6 - 13px); }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .nav .btn { display: none; } /* the hero CTA is right below */
  .hero__actions { gap: 16px; }
  .demo { padding: 20px 14px; }
  .demo__envelopes { gap: 10px; }
  .envelope { font-size: 15px; }
  .hero__grid > *, .portal__grid > * { min-width: 0; }
.hero__lead { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snowfall, .snowfall::after { animation: none; }
  .demo.is-shuffling .envelope { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==== app pages: wizard, organizer panel, portal ================================= */
.page-app { background: var(--frost); }
.app-header {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--pine-deep), var(--pine));
  height: 132px;
}
.app-header__inner { padding-block: 22px; position: relative; z-index: 1; text-align: center; }
.app-header__trees .forest__tree { bottom: -6px; }
.app { max-width: 760px; padding-block: 0 80px; margin-top: -36px; position: relative; z-index: 1; display: grid; gap: 20px; }

.card {
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 1px 0 rgba(15, 61, 46, .04), 0 12px 32px rgba(15, 61, 46, .06);
}
.card h1 { font-size: clamp(30px, 4.6vw, 42px); }
.card h2 { font-size: 26px; }
.card .lead { margin-bottom: 8px; }
.card--center { text-align: center; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 14px 0; }
.loading { text-align: center; padding: 60px 0; color: var(--ink-soft); }

/* forms */
.card--form { display: grid; gap: 18px; }
.card--form > .btn { justify-self: start; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend, .plan-choice legend { font-weight: 600; font-size: 16px; }
.field small, .plan-choice small { color: var(--ink-soft); font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid #c9d8d0; border-radius: var(--radius-s);
  padding: 11px 13px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(45, 122, 87, .18); }
textarea { resize: vertical; }
.plan-choice { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.plan-choice label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.plan-choice label:has(input:checked) { border-color: var(--spruce); background: #eef6f2; }
.plan-choice input { width: auto; accent-color: var(--holly); }
.more summary { cursor: pointer; color: var(--spruce); font-weight: 600; }
.more[open] summary { margin-bottom: 14px; }
.more > .field { margin-top: 16px; }
.form-error, .notice { padding: 12px 16px; border-radius: var(--radius-s); }
.form-error, .notice--error { background: #fdecef; color: #8c0b20; }
.notice--info { background: #eef6f2; color: var(--pine); }

.btn--ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1.5px #b9cec3; }
.btn--ghost:hover { background: #eef6f2; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.icon-btn { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.icon-btn:hover { color: var(--holly); background: #fdecef; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 15px; color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* organizer panel */
.panel-head { display: grid; gap: 10px; }
.panel-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.badge--draft { background: #fff4dc; color: #7a5b13; }
.badge--paid { background: #e3f1ea; color: var(--pine); }
.badge--drawn { background: var(--pine); color: var(--candle); }
.badge--mail-sent { background: #e3f1ea; color: var(--pine); }
.badge--mail-pending { background: #fff4dc; color: #7a5b13; }
.badge--mail-failed { background: #fdecef; color: #8c0b20; }
.badge--mail-none { display: none; }
.save-link { margin-top: 6px; padding: 14px 16px; background: #fff8e8; border-radius: var(--radius-s); display: grid; gap: 10px; font-size: 15px; }
.save-link__row { display: flex; gap: 10px; }
.copy-input { font-size: 14px; padding: 8px 10px; color: var(--ink-soft); }
.save-link__row .btn { white-space: nowrap; }
.card h2 + .muted { margin-top: 6px; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: step; }
.stepper li { counter-increment: step; text-align: center; font-size: 15px; color: var(--ink-soft); padding-top: 34px; position: relative; }
.stepper li::before {
  content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #e1ebe6; color: var(--ink-soft); font-weight: 700; font-size: 14px;
}
.stepper li.is-current { color: var(--ink); font-weight: 600; }
.stepper li.is-current::before { background: var(--holly); color: #fff; box-shadow: 0 0 14px rgba(200, 16, 46, .45); }
.stepper li.is-done::before { content: "✓"; background: var(--spruce); color: #fff; }

.counter { color: var(--ink-soft); font-size: 15px; }
.counter--full { color: var(--holly); font-weight: 600; }
.people { list-style: none; margin: 14px 0 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people__name { font-weight: 600; }
.people__email { color: var(--ink-soft); font-size: 15px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.people__actions { display: flex; gap: 14px; margin-left: auto; }
.add-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; margin-top: 16px; align-items: center; }
.add-row--pair { grid-template-columns: 1fr auto 1fr auto; }
.people li .add-row { margin: 0; width: 100%; grid-template-columns: auto 1fr auto auto; }
.paste { margin-top: 16px; }
.paste summary { cursor: pointer; color: var(--spruce); font-weight: 600; font-size: 16px; }
.paste[open] { display: grid; gap: 10px; }
.paste .btn { justify-self: start; }
.card--pay, .card--draw { display: grid; gap: 14px; justify-items: start; }
.card--pay .plan-choice { width: 100%; }
.confirm { display: grid; gap: 12px; padding: 16px; background: #fff8e8; border-radius: var(--radius-s); width: 100%; }
.confirm__row { display: flex; gap: 10px; flex-wrap: wrap; }
.dev-only { border: 1.5px dashed #b9cec3; box-shadow: none; }

@media (max-width: 640px) {
  .field-row, .add-row, .add-row--pair { grid-template-columns: 1fr; }
  .people li .add-row { grid-template-columns: 1fr; }
  .save-link__row { flex-direction: column; }
  .app-header { height: 110px; }
  .app-header__trees .forest__tree { height: calc(var(--h) * .6); width: calc(var(--h) * .43); }
}

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10;
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 12px 32px rgba(10, 42, 32, .25);
  animation: toast-in .25s ease;
}
.toast__close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; padding: 2px 6px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* participant portal */
.facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.fact { background: #eef6f2; border-radius: var(--radius-s); padding: 10px 16px; display: grid; }
.fact small { color: var(--ink-soft); font-size: 13px; }
.fact strong { font: 600 20px/1.2 var(--font-display); color: var(--pine); }
.org-message { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--holly); font: italic 400 19px/1.5 var(--font-display); color: #33433b; }
.org-message cite { display: block; font: 500 14px/1.4 var(--font-body); color: var(--ink-soft); margin-top: 4px; }

.reveal { background: linear-gradient(180deg, var(--pine-deep), var(--pine)); border: 0; color: #fff; text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 36px; }
.envelope--big { width: min(340px, 100%); cursor: pointer; font-size: 22px; }
.envelope--big .envelope__seal { width: 52px; height: 52px; margin: -26px 0 0 -26px; transform: scale(1); }
.envelope--big .envelope__seal svg { width: 24px; height: 24px; }
.envelope--big .envelope__card { inset: 14% 8% auto; padding: 16px 10px; }
.envelope--big .envelope__card small { font-size: 14px; }
.envelope--big .envelope__card strong { font-size: 38px; line-height: 1.1; }
.envelope--big:not(.is-open):hover { transform: translateY(-4px) rotate(-1deg); }
.envelope--big.is-open { cursor: default; }
.reveal__hint { color: #d6e9df; }

.wishlist-text { white-space: pre-line; margin-top: 12px; }
.wishlist-links { margin: 12px 0 0; padding-left: 20px; }
.wishlist-links a { color: var(--spruce); overflow-wrap: anywhere; }
.stack { display: grid; gap: 14px; margin-top: 14px; justify-items: start; }
.stack textarea, .stack .field { width: 100%; }

.chat { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; margin: 14px 0; padding: 4px; }
.chat .bubble time { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #eef6f2; font-size: 15px; }
.chip--me { background: var(--pine); color: #fff; }
.card--quiet { background: transparent; box-shadow: none; display: grid; gap: 8px; justify-items: start; }
.own-cta { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 40px 0 10px; }
.own-cta h2 { font-size: 30px; }

/* legal pages, footers, consent */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2c3d34; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a, .legal-note a, .consent a { color: var(--spruce); }
.legal__updated { margin-top: 28px; font-size: 14px; }
.legal__back { text-align: center; }
.legal-note { font-size: 14px; color: var(--ink-soft); }
.footer__links { display: flex; gap: 18px; justify-content: center; font-size: 15px; }
.footer__links a { color: #cfe3d9; }
.app-footer { display: flex; gap: 18px; justify-content: center; padding: 0 16px 40px; font-size: 14px; }
.app-footer a { color: var(--ink-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--holly); }
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; margin-inline: auto; max-width: 640px;
  background: var(--snow); color: var(--ink); border-radius: var(--radius-m); padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(10, 42, 32, .3); display: grid; gap: 12px; font-size: 15px;
}
.consent-banner a { color: var(--spruce); }
.consent-banner__row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.nav__lang { color: #cfe3d9; font-size: 15px; text-decoration: none; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.nav__lang:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .nav__lang { margin-left: auto; } .nav .btn { margin-left: 0; } }
