/* Huddle's website, in the app's own look (app/src/theme/tokens.ts): lavender ground, violet
   accent, Nunito, and pastel cards in each person's colour. Light only, like the app. Shared by
   every page; the home page adds home.css. */

:root {
  --ground: #F5F4FA;
  --surface: #FFFFFF;
  --ink: #1E1B2E;
  --muted: #5F5B70;
  --line: #E6E1F3;
  --violet: #6A4DE8;
  --violet-deep: #4F33C9;
  --violet-soft: #EEE8FF;
  --late: #D23C6E;
  --done: #1F7A4D;
  --mint: #DDF6E9;
  --peach: #FFE8DC;
  --sky: #E1ECFF;
  --lemon: #FFF4CC;
  --lilac: #EEE8FF;
  --rose: #FFE0EA;
  --shadow-card: 0 10px 28px rgba(30, 27, 46, 0.14);
  --shadow-soft: 0 3px 12px rgba(30, 27, 46, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* A jump to a section lands below the sticky top bar. */
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: var(--violet-deep); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* The top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 250, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.groups { display: flex; gap: 8px; margin-left: 12px; }
.groups a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 9px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 800; color: var(--muted); text-decoration: none; box-shadow: var(--shadow-soft); transition: color 0.15s, transform 0.15s var(--ease-out); }
.groups a:hover { color: var(--ink); transform: translateY(-1px); }
.groups svg { width: 20px; height: 20px; }
.top .soon { margin-left: auto; }
@media (max-width: 860px) { .groups { display: none; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 16px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform 0.15s var(--ease-out), box-shadow 0.15s; }
.pill:active { transform: scale(0.97); }
.pill.dark { background: var(--ink); color: #FFFFFF; }
.pill.light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.pill.violet { background: var(--violet); color: #FFFFFF; }
.pill.small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.pill .apple { width: 16px; height: 16px; fill: currentColor; }
.pill[aria-disabled='true'] { cursor: default; }
.pill[aria-disabled='true']:active { transform: none; }

/* Type and layout shared by every page */
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { border-top: 2px solid var(--line); padding: 32px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--violet-deep); }
footer .small { width: 100%; font-size: 13px; color: var(--muted); }
footer .small a { font-weight: 700; text-decoration: underline; }

/* Text pages: privacy, support */
.page { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.page h1 { font-size: clamp(40px, 6vw, 56px); }
.page .updated { color: var(--muted); font-size: 15px; margin: 10px 0 34px; }
.page h2 { font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.page p { font-size: 17px; margin: 0 0 12px; }
.contact { margin: 30px 0 10px; background: var(--surface); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact div { flex: 1; min-width: 220px; }
.contact b { display: block; font-size: 19px; font-weight: 900; }
.contact span { color: var(--muted); }
details { background: var(--surface); border-radius: 20px; padding: 0 20px; margin: 0 0 10px; box-shadow: var(--shadow-soft); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 17px; font-weight: 900; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--violet); font-size: 22px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 6px; }

/* Joining by invite */
.join { max-width: 520px; margin: 0 auto; padding: 32px 16px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.invite-card { width: 100%; background: var(--surface); border-radius: 30px; padding: 30px 24px 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.invite-card .kind { width: 64px; height: 64px; border-radius: 20px; background: var(--violet-soft); display: grid; place-items: center; }
.invite-card .kind svg { width: 42px; height: 42px; }
.invite-card .who { color: var(--muted); font-size: 16px; }
.invite-card h1 { font-size: clamp(32px, 8vw, 42px); }
.invite-card .count { color: var(--muted); font-size: 15px; }
.code { display: flex; align-items: center; gap: 10px; background: var(--ground); border-radius: 18px; padding: 10px 10px 10px 18px; margin-top: 8px; }
.code span { font-size: 20px; font-weight: 900; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.join .steps { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0; }
.join .actions { justify-content: center; width: 100%; }
.join .actions .pill { flex: 1; min-width: 220px; }
.skeleton { width: 60%; height: 22px; border-radius: 8px; background: linear-gradient(90deg, var(--line), var(--ground), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
