/* Warm paper look: cream background, white cards with hairline borders, green buttons and muted earthy accents */
:root {
  --bg: #faf8f3;
  --sand: #f5f0e6;
  --surface: #ffffff;
  --surface-2: #f4f1e9;
  --tint: #fcfbf6;
  --chip: #f1eee6;
  --text: #1a1915;
  --body: #3d392f;
  --muted: #6b6659;
  --faint: #8a8272;
  --line: #e7e1d1;
  --line-soft: #eee9dc;
  --line-strong: #dcd4c2;
  --ink: #1a1915;
  --ink-hover: #33302a;
  --red: #a8402f;
  --red-strong: #8a3324;
  --red-fill: #a8402f;
  --red-fill-hover: #8a3324;
  --red-soft: #f7e9e4;
  --green: #2f6136;
  --green-soft: #e6efe4;
  --green-fill: #3f7a46;
  --green-fill-hover: #2f6136;
  --gold: #a8761f;
  --gold-soft: #faedd7;
  --danger-soft: #f7e9e4;
  --blue: #2f5683;
  --blue-soft: #e5edf6;
  --plum: #6b3f78;
  --plum-soft: #f1e8f3;
  --ring: 0 0 0 3px rgb(26 25 21 / 0.12);
  --shadow-sm: 0 1px 2px rgb(26 25 21 / 0.03);
  --shadow: 0 1px 2px rgb(26 25 21 / 0.03), 0 18px 32px -26px rgb(26 25 21 / 0.5);
  --shadow-lg: 0 1px 2px rgb(26 25 21 / 0.04), 0 30px 60px -40px rgb(26 25 21 / 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--body);
  font: 16px/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { color: var(--text); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); line-height: 1; }
h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 600; }

::selection { background: var(--gold-soft); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap-wide { padding: 0 28px; } }

/* A soft sand wash behind the top of the page */
.snow { position: absolute; top: 0; left: 0; right: 0; height: 560px; pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, var(--sand), var(--bg));
}

/* Top bar: logo on the left, page links in the middle, your account on the right */
.topbar { padding: 22px 0 16px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topnav { display: none; gap: 26px; font-size: 0.925rem; }
.topnav a { color: #4e4a40; text-decoration: none; }
.topnav a:hover { color: var(--text); }
.topbar-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (min-width: 900px) {
  .topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topnav { display: flex; }
}
.topbar .brand { text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; display: inline-flex; gap: 9px; align-items: center; }
.logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--red-fill); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(138 51 36 / 0.25);
}
.logo svg { width: 17px; height: 17px; }

.topbar-account { display: flex; align-items: center; min-height: 36px; }
.account-pill {
  display: inline-flex; align-items: center; height: 36px; padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.account-me { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding-right: 10px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.account-me:hover .account-name { text-decoration: underline; text-underline-offset: 3px; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-out { height: 100%; padding: 0 12px; border: 0; border-left: 1px solid var(--line-soft); border-radius: 0 999px 999px 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.account-out:hover { color: var(--red); background: var(--danger-soft); }
.account-me:focus-visible, .account-out:focus-visible { outline: none; box-shadow: var(--ring); }

/* Hero */
.hero { padding: 40px 0 32px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.hero .accent { color: var(--red); }
@media (min-width: 640px) { .hero { padding: 64px 0 44px; } }

/* Landing page: centred hero and sections, like a product page */
.hero-center { text-align: center; padding-top: 48px; }
.hero-center h1 { font-size: clamp(2.75rem, 6.4vw, 5.1rem); max-width: 14em; margin: 0 auto; }
.hero-center > p:not(.eyebrow-pill) { margin: 24px auto 0; max-width: 36em; font-size: 1.125rem; }
.actions.hero-actions { justify-content: center; margin-top: 32px; }
.hero-center .hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--faint); }
@media (min-width: 640px) { .hero-center { padding: 88px 16px 56px; } }

.eyebrow-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.825rem; font-weight: 500; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks svg { width: 15px; height: 15px; color: var(--green-fill); flex-shrink: 0; }

.section { padding: 56px 16px 0; }
@media (min-width: 720px) { .section { padding: 96px 28px 0; } }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
.section-head p:not(.eyebrow-pill) { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }
.landing #account { margin-top: 8px; }

/* A mock of a participant's page after the draw */
.preview { margin: 8px auto 0; max-width: 980px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg), 0 1px 2px rgb(26 25 21 / 0.03); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.preview-bar span { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.preview-bar p { margin: 0 0 0 10px; font-size: 0.825rem; font-weight: 500; color: var(--muted); }
.preview-body { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 760px) { .preview-body { grid-template-columns: 1.1fr 1fr; padding: 24px; gap: 20px; } }
.preview-reveal { display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.preview-reveal .preview-facts { color: #d8cfbd; font-size: 0.9rem; margin: 0; }
.preview-side { display: grid; gap: 16px; }
.preview-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--tint); }
.preview-card ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 0.95rem; }
.preview-card .chat { max-height: none; padding: 0; }
.preview-card .bubble { margin: 0; font-size: 0.925rem; }
.preview-label { margin: 0 0 10px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }

/* Feature grid */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 28px; }
.feature h3 { margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line-soft); font-size: 1.1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; color: var(--text); font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--faint); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.faq details p { margin: -6px 0 20px; color: var(--muted); max-width: 40em; }

/* Closing call to action */
.cta-band { text-align: center; padding: 56px 24px; border-radius: 18px; background: var(--sand); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; margin: 0; }
.cta-band p { color: var(--muted); font-size: 1.05rem; margin: 12px auto 28px; max-width: 30em; }

/* Inside a group: where you are, who you are, and the group's pages */
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .sep { color: var(--line-strong); }
.crumbs .crumb-group { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 500; white-space: nowrap; }
.crumbs + .hero { padding: 18px 0 28px; }
.crumbs + .hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.05; margin-bottom: 14px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.badge.role { background: var(--surface); color: var(--body); border-color: var(--line); }

.subnav {
  position: sticky; top: 8px; z-index: 5;
  margin: -8px 0 20px; padding: 4px;
  background: rgb(241 238 230 / 0.85); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line); border-radius: 12px;
}
.subnav-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-where { display: none; padding: 4px 10px 6px; font-size: 0.8rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav.stuck { box-shadow: var(--shadow); }
.subnav.stuck .subnav-where { display: block; }
/* cards a link scrolls to land below the sticky tabs, not under them */
.card[id] { scroll-margin-top: 100px; }
.subnav a {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; min-height: 40px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.925rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.subnav a:hover { color: var(--text); background: rgb(255 255 255 / 0.6); }
.subnav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(26 25 21 / 0.06), 0 0 0 1px var(--line); }
.subnav a:focus-visible { outline: none; box-shadow: var(--ring); }
@media (max-width: 440px) {
  .subnav a { padding: 9px 10px; font-size: 0.9rem; }
  .subnav a > span { display: none; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
@media (max-width: 520px) { .card { padding: 20px; } }

.stack > * + * { margin-top: 18px; }

/* Forms */
label { display: block; color: var(--text); font-weight: 500; font-size: 0.875rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 0.875rem; font-weight: 400; }

input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 13px;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #c9c0aa; }
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); color: var(--muted); }

.org-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.person-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
.person-row + .person-row { margin-top: 8px; }
@media (max-width: 560px) {
  .person-row { grid-template-columns: 1fr auto; }
  .person-row input[type="email"] { grid-column: 1; grid-row: 2; }
  .person-row { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
}

/* Buttons: green by default, never black */
.btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  min-height: 42px;
  cursor: pointer;
  background: var(--green-fill);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgb(47 97 54 / 0.7);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { background: var(--green-fill-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(63 122 70 / 0.25); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: linear-gradient(#fff, #f1efea); color: var(--text); box-shadow: 0 1px 2px rgb(26 25 21 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.secondary:focus-visible, .btn.ghost:focus-visible { box-shadow: 0 0 0 1px var(--line-strong), var(--ring); }
.btn.ghost { background: transparent; color: var(--muted); padding: 8px 10px; min-height: 36px; box-shadow: none; }
.btn.ghost:hover { color: var(--red); background: var(--danger-soft); }
.btn.green { background: var(--green-fill); color: #fff; box-shadow: 0 10px 22px -14px rgb(47 97 54 / 0.7); }
.btn.green:hover { background: var(--green-fill-hover); }
.btn.green:focus-visible { box-shadow: 0 0 0 3px rgb(63 122 70 / 0.25); }
.btn.danger { background: var(--red-fill); color: #fff; box-shadow: 0 10px 22px -14px rgb(168 64 47 / 0.7); }
.btn.danger:hover { background: var(--red-fill-hover); }
.btn.danger:focus-visible { box-shadow: 0 0 0 3px rgb(168 64 47 / 0.25); }

/* Cards that do something you can't undo, like deleting the group */
.card.danger { background: var(--danger-soft); border-color: rgb(168 64 47 / 0.28); box-shadow: none; }
.card.danger > summary { cursor: pointer; color: var(--red-strong); font-weight: 600; }
.card.danger > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(168 64 47 / 0.25); border-radius: 6px; }
.card.danger > p { margin: 12px 0 16px; color: var(--red-strong); max-width: 40em; }

.btn.big { padding: 14px 26px; font-size: 1rem; font-weight: 600; border-radius: 11px; }
.btn.small { padding: 6px 12px; min-height: 32px; font-size: 0.85rem; border-radius: 8px; }

/* buttons sit on the right unless a page says otherwise */
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* Alerts and badges */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; border: 1px solid transparent; }
.alert.error { background: var(--danger-soft); color: var(--red-strong); border-color: rgb(168 64 47 / 0.18); }
.alert.ok { background: var(--green-soft); color: var(--green); border-color: rgb(63 122 70 / 0.18); }
.alert.info { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
[hidden] { display: none !important; }

.badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line-soft); color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
/* a light colour per kind of pill in the people list, so they're easy to tell apart at a glance */
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.gold { background: var(--gold-soft); color: #7f5614; border-color: transparent; }
.badge.plum { background: var(--plum-soft); color: var(--plum); border-color: transparent; }
/* who you are in a group, so organising and taking part are easy to tell apart */
.badge.organizer { background: var(--gold-soft); color: #7f5614; border-color: transparent; }
.badge.participant { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.facts > span { padding: 5px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.facts strong { color: var(--text); font-weight: 600; }

.note { white-space: pre-wrap; background: var(--surface-2); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 4px var(--radius-sm) var(--radius-sm) 4px; }

/* People lists */
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.people li:first-child { border-top: 0; }
.people .who { flex: 1 1 200px; min-width: 0; }
.people .who strong { display: block; font-weight: 600; }
.people .who .group-link { display: block; font-weight: 600; color: var(--text); text-decoration: none; }
.people .who .group-link:hover { text-decoration: underline; }
.people .who span { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.people .who .match { display: block; margin-top: 2px; color: var(--red); font-weight: 500; }
.people .status { display: flex; gap: 6px; flex-wrap: wrap; }
.people.drawn li > form, .people.drawn li > .alert { flex: 1 1 100%; }
.people.drawn .status > :empty { display: none; }
/* After the draw: name, then a column per kind of pill, then the buttons, lined up across every row */
@media (min-width: 720px) {
  .people.drawn { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto) auto; column-gap: 8px; }
  .people.drawn li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
  .people.drawn .status { display: contents; }
  .people.drawn .status > * { justify-self: start; }
  .people.drawn .status > :empty { display: block; }
  .people.drawn .actions { justify-content: flex-end; margin-left: 4px; }
  .people.drawn li > form, .people.drawn li > .alert { grid-column: 1 / -1; }
}
.people.group-cards { display: grid; gap: 12px; margin-bottom: 20px; }
.people.group-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; }
/* Group pictures: a rounded square, or a 🎁 tile when there isn't one */
.group-pic { display: block; flex-shrink: 0; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.group-pic.sm { width: 48px; height: 48px; border-radius: 11px; }
.group-pic.lg { width: 88px; height: 88px; border-radius: 18px; box-shadow: var(--shadow); }
.hero > .group-pic.lg { margin-bottom: 18px; }
.empty-pic { display: grid; place-items: center; font-size: 1.4rem; }
.group-pic.lg.empty-pic { font-size: 2.2rem; }
.picture-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.picture-row .stack { flex: 1 1 220px; }

.people .group-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; text-align: right; }
.people .group-side .status, .people .group-side .actions { justify-content: flex-end; }
/* on a group card the pills stay top right and the buttons drop into the bottom right corner */
.people.group-cards li { align-items: stretch; }
.people.group-cards li > a, .people.group-cards li > .group-pic, .people.group-cards .who { align-self: center; }
.people.group-cards .group-side { justify-content: space-between; gap: 14px; }
.people.group-cards .group-side .actions { margin: 0 -8px -8px 0; }
@media (max-width: 520px) {
  .people.group-cards .group-side .actions { margin: 0; }
  .people .group-side { align-items: flex-start; margin-left: 0; text-align: left; }
  .people .group-side .status, .people .group-side .actions { justify-content: flex-start; }
}

.next-step { margin-top: 16px; padding: 16px; background: var(--green-soft); border: 1px solid rgb(63 122 70 / 0.15); border-radius: var(--radius-sm); }
.next-step p:last-child { margin-bottom: 0; }
.next-step .btn { margin-top: 4px; }



/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 56px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; color: var(--muted); font-size: 0.95rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px;
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.8rem;
}
.steps strong { color: var(--text); }
@media (min-width: 680px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 54px 16px 16px; }
  .steps li::before { top: 16px; }
}

/* Reveal card */
.reveal {
  position: relative;
  border-radius: 16px;
  padding: 44px 20px;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.reveal::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 0%, rgb(168 64 47 / 0.45), transparent 70%);
}
.reveal > * { position: relative; }
.reveal .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 500; color: #d8cfbd; margin-bottom: 8px; }
.reveal .name { color: #fff; font-size: clamp(2.4rem, 7vw, 3.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 4px 0 14px; }
.reveal strong { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.wish { white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-style: italic; }

/* Chat */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; padding: 4px; background: var(--chip); border: 1px solid var(--line-soft); border-radius: 12px; }
.tab { font: inherit; font-weight: 500; font-size: 0.925rem; border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 38px; transition: background-color 0.15s, color 0.15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(26 25 21 / 0.06), 0 0 0 1px var(--line); }
.tab:focus-visible { outline: none; box-shadow: var(--ring); }

.chat { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px 8px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; }
.bubble time { display: block; font-size: 0.72rem; opacity: 0.65; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.chat-form textarea { min-height: 48px; height: 48px; }

.footer { color: var(--faint); font-size: 0.85rem; text-align: center; padding: 28px 0 40px; border-top: 1px solid var(--line-soft); margin-top: 20px; }
.site-footer { text-align: left; margin-top: 96px; padding: 40px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-inner .brand { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; display: inline-flex; gap: 9px; align-items: center; }
.footer-inner p { margin: 12px 0 0; max-width: 28em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* A group page's top with a picture: the picture big, with the pills and name over it */
.hero.cover {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(260px, 42vw, 380px); margin: 18px 0 24px; padding: 0;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.crumbs + .hero.cover { padding: 0; }
.cover-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; }
.cover-fill { position: absolute; inset: -40px; z-index: -3; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(1.1); opacity: 0.85; }
/* darkens the bottom so white text stays readable on any picture */
.hero.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgb(26 25 21 / 0.82) 0%, rgb(26 25 21 / 0.45) 45%, rgb(26 25 21 / 0) 75%);
}
.cover-body { width: 100%; padding: 24px; color: #f4efe4; }
@media (min-width: 640px) { .cover-body { padding: 32px; } }
.hero.cover h1, .crumbs + .hero.cover h1 { color: #fff; margin-bottom: 12px; text-shadow: 0 1px 12px rgb(0 0 0 / 0.25); }
.hero.cover p { color: #eee7da; }
.hero.cover .badges { margin-bottom: 14px; }
.hero.cover .badge { background: rgb(255 255 255 / 0.92); border-color: transparent; color: var(--text); }
.hero.cover .badge.green { background: var(--green-soft); color: var(--green); }
.hero.cover .badge.organizer { background: var(--gold-soft); color: #7f5614; }
.hero.cover .badge.participant { background: var(--blue-soft); color: var(--blue); }
/* the facts are one frosted bar split by thin lines, so they don't look like the badges above */
.hero.cover .facts {
  display: inline-flex; flex-wrap: wrap; gap: 0; margin-bottom: 0;
  background: rgb(26 25 21 / 0.45); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 12px; overflow: hidden;
  color: #e9e2d4; font-size: 0.875rem;
}
.hero.cover .facts > span { background: none; border: 0; border-radius: 0; padding: 8px 14px; }
.hero.cover .facts > span + span { border-left: 1px solid rgb(255 255 255 / 0.18); }
.hero.cover .facts strong { color: #fff; }
