/* Whatsnr. The tokens below are whatsnr.eu's design-tokens.css, copied as they
 * are: dark is the source design, light is paper-toned rather than inverted,
 * and both live in one block through light-dark(). With no data-theme the page
 * follows the device; the account's own choice sets data-theme. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;

  /* surfaces */
  --bg-base:       light-dark(#faf8f3, #05050d);
  --bg-glass:      light-dark(rgba(255, 254, 250, 0.80), rgba(6, 6, 14, 0.80));
  --bg-glass-deep: light-dark(rgba(255, 254, 250, 0.94), rgba(5, 5, 12, 0.94));
  --bg-raised:     light-dark(rgba(20, 18, 30, 0.04),    rgba(255, 255, 255, 0.04));
  --bg-raised-hi:  light-dark(rgba(20, 18, 30, 0.08),    rgba(255, 255, 255, 0.08));

  /* borders */
  --border-subtle: light-dark(rgba(20, 18, 30, 0.06), rgba(255, 255, 255, 0.05));
  --border-glass:  light-dark(rgba(20, 18, 30, 0.10), rgba(255, 255, 255, 0.08));
  --border-mid:    light-dark(rgba(20, 18, 30, 0.48), rgba(255, 255, 255, 0.13));
  --border-bright: light-dark(rgba(20, 18, 30, 0.57), rgba(255, 255, 255, 0.22));

  /* text */
  --text-primary:   light-dark(#16161e,                #eeeef4);
  --text-secondary: light-dark(rgba(22, 22, 30, 0.79), rgba(238, 238, 244, 0.50));
  --text-dim:       light-dark(rgba(22, 22, 30, 0.71), rgba(238, 238, 244, 0.26));
  --text-micro:     light-dark(rgba(22, 22, 30, 0.62), rgba(238, 238, 244, 0.14));

  /* accents */
  --accent-amber:        light-dark(#a2490a,                  #f59e0b);
  --accent-amber-soft:   light-dark(rgba(180, 83, 9, 0.10),   rgba(245, 158, 11, 0.08));
  --accent-amber-border: light-dark(rgba(180, 83, 9, 0.35),   rgba(245, 158, 11, 0.40));
  --accent-success:      light-dark(#046b4e,                  #6ee7b7);
  --accent-danger:       light-dark(#b91c1c,                  #ff8a8a);
  --accent-link:         light-dark(#1d4ed8,                  #8ab4ff);
  --accent-link-hover:   light-dark(#1e40af,                  #c7d8ff);

  --vignette-strong: light-dark(rgba(250, 248, 243, 0.14), rgba(5, 5, 13, 0.14));

  --shadow-pop: light-dark(0 12px 32px rgba(20, 18, 30, 0.16),
                           0 12px 40px rgba(0, 0, 0, 0.55));

  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --button-primary-bg: var(--text-primary);
  --button-primary-fg: var(--bg-base);

  --radius-sheet: 22px;
  --radius-card:  16px;
  --radius-chip:  999px;
  --radius-btn:   13px;

  /* WNR's own: the gutter, safe areas included, and the one measure. */
  --gutter: clamp(20px, 5vw, 56px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --measure: 34rem;
}

[data-theme="light"] { color-scheme: light; }
[data-theme="dark"]  { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg-base); -webkit-text-size-adjust: 100%; }

body.wn-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: var(--accent-link); }
a:hover { color: var(--accent-link-hover); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

.wn-icon { width: 20px; height: 20px; flex: none; }

/* The field --------------------------------------------------------------- */

.wn-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wn-field__grid {
  position: absolute;
  inset: -1px;
  background-image:
    radial-gradient(circle at 50% 38%, transparent 0 9%, var(--border-subtle) 9% calc(9% + 1px), transparent calc(9% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 22%, var(--border-subtle) 22% calc(22% + 1px), transparent calc(22% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 37%, var(--border-glass) 37% calc(37% + 1px), transparent calc(37% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 54%, var(--border-subtle) 54% calc(54% + 1px), transparent calc(54% + 1px)),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0 35%, transparent 75%);
}

.wn-field__sweep {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 150vmax;
  height: 150vmax;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 78%, var(--accent-amber-soft) 92%, light-dark(rgba(180, 83, 9, 0.18), rgba(245, 158, 11, 0.20)) 100%);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 0 30%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 55%);
  animation: wn-sweep 7s linear infinite;
}

.wn-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  opacity: 0;
  animation: wn-blip 7s ease-out infinite;
}
.wn-blip--18-30 { left: 18%; top: 30%; animation-delay: 5.1s; }
.wn-blip--74-22 { left: 74%; top: 22%; animation-delay: 0.9s; }
.wn-blip--64-68 { left: 64%; top: 68%; animation-delay: 2.6s; }
.wn-blip--28-76 { left: 28%; top: 76%; animation-delay: 3.9s; }
.wn-blip--86-52 { left: 86%; top: 52%; animation-delay: 1.8s; }

.wn-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, var(--vignette-strong) 100%);
}

@keyframes wn-sweep { to { rotate: 360deg; } }
@keyframes wn-blip {
  0%, 100% { opacity: 0; scale: 0.6; }
  4% { opacity: 1; scale: 1.3; }
  30% { opacity: 0.35; scale: 1; }
  60% { opacity: 0; }
}

/* The bar ----------------------------------------------------------------- */

.wn-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + var(--safe-top)) var(--gutter) 14px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.wn-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.wn-wordmark:hover { color: var(--text-primary); }

.wn-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  transform: translateY(-3px);
  animation: wn-pulse 2.4s ease-in-out infinite;
}

@keyframes wn-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-amber); opacity: 1; }
  50% { box-shadow: 0 0 14px var(--accent-amber); opacity: 0.7; }
}

.wn-signout { margin: 0; }

/* Type -------------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.wn-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wn-pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.wn-title {
  margin: 0;
  font-size: clamp(64px, 19vw, 132px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.wn-heading {
  margin: 0;
  font-size: clamp(36px, 10vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.wn-dot, .wn-accent { color: var(--accent-amber); }

.wn-lede {
  margin: 18px 0 0;
  max-width: 30rem;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.45;
}
.wn-lede strong { color: var(--text-primary); font-weight: 500; overflow-wrap: anywhere; }

/* Secondary rather than dim: whatsnr.eu keeps its dimmest steps for
 * decoration, and this is something people read. */
.wn-fine {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.wn-fine a { color: inherit; }

/* Buttons ----------------------------------------------------------------- */

.wn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-glass);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.wn-button:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-button:active { transform: scale(0.98); }
.wn-button[disabled] { cursor: progress; opacity: 0.75; }

.wn-button--primary {
  border-color: transparent;
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
}
.wn-button--primary:hover {
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
  box-shadow: 0 0 0 4px var(--accent-amber-soft), 0 0 28px light-dark(rgba(180, 83, 9, 0.18), rgba(245, 158, 11, 0.22));
}

.wn-button--large { min-height: 56px; padding: 14px 24px; font-size: 17px; border-radius: 16px; }
.wn-button--small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.wn-button--block { width: 100%; }
.wn-button--quiet { min-height: 36px; padding: 6px 12px; font-size: 14px; }

.wn-hero .wn-button--large { align-self: flex-start; margin-top: 36px; }

/* Front door -------------------------------------------------------------- */

.wn-hero { justify-content: center; padding-top: 8vh; }
.wn-hero .wn-lede { font-size: clamp(18px, 4.6vw, 22px); }

/* Home -------------------------------------------------------------------- */

.wn-home .wn-heading { overflow-wrap: anywhere; }

.wn-card {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wn-card + .wn-card { margin-top: 12px; }
.wn-card h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.wn-card p { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
.wn-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
}
.wn-card__links { font-size: 14px; }
.wn-card__links a { color: var(--text-primary); text-underline-offset: 3px; }
.wn-sep { margin: 0 8px; color: var(--text-dim); }

/* Posts ------------------------------------------------------------------- */

.wn-near { margin-top: 32px; }

.wn-near__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.wn-near__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.wn-near__count, .wn-near__empty {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wn-posts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wn-post article {
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: wn-rise 0.5s ease both;
}
.wn-post:nth-child(2) article { animation-delay: 0.05s; }
.wn-post:nth-child(3) article { animation-delay: 0.1s; }
.wn-post:nth-child(n+4) article { animation-delay: 0.15s; }

.wn-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.wn-post__category {
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wn-post__when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.wn-post__title {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.wn-post__desc {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.wn-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.wn-post__location, .wn-post__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wn-post .wn-icon { width: 15px; height: 15px; color: var(--accent-amber); }

.wn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.wn-tag {
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  background: var(--bg-raised-hi);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wn-near + .wn-card { margin-top: 28px; }

/* Developers -------------------------------------------------------------- */

.wn-dev .wn-heading { font-size: clamp(32px, 9vw, 48px); }

.wn-section { margin-top: 36px; }
.wn-section h2, .wn-fresh h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.wn-section > p { margin: 14px 0 8px; color: var(--text-secondary); font-size: 15px; }

.wn-alert {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent-danger);
  color: var(--accent-danger);
  font-size: 15px;
}

.wn-fresh {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  animation: wn-rise 0.5s ease both;
}
.wn-fresh h2 { color: var(--accent-amber); }
.wn-fresh p { margin: 0 0 12px; color: var(--text-secondary); font-size: 15px; }

.wn-snippet {
  margin: 0;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-deep);
  overflow: hidden;
}
.wn-snippet figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}
.wn-snippet pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre;
}
.wn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wn-copy:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-copy .wn-icon { width: 14px; height: 14px; }

.wn-keys { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wn-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}
.wn-key form { margin: 0; }
.wn-key__text { display: flex; flex-direction: column; min-width: 0; }
.wn-key__text strong { font-weight: 600; overflow-wrap: anywhere; }
.wn-key__meta { color: var(--text-secondary); font-size: 13px; }
.wn-key__meta code, .wn-dev .wn-fine code { font-family: var(--font-mono); font-size: 12px; }

.wn-newkey { margin-top: 16px; }
.wn-newkey label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 14px; }
.wn-newkey__row { display: flex; gap: 8px; }
.wn-newkey input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-mid);
  background: var(--bg-raised);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.wn-newkey input:focus-visible { outline-offset: 1px; }

.wn-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 15px;
}
.wn-rules b { color: var(--text-primary); font-weight: 600; }

/* Install ----------------------------------------------------------------- */

.wn-install {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border-mid);
  background: var(--bg-raised);
  animation: wn-rise 0.5s ease both;
}
.wn-install__icon { color: var(--accent-amber); display: grid; }
.wn-install__text { display: flex; flex-direction: column; flex: 1; font-size: 14px; color: var(--text-secondary); }
.wn-install__text strong { color: var(--text-primary); font-weight: 600; }
.wn-install__text b { color: var(--text-primary); font-weight: 600; }
.wn-inline-icon .wn-icon { width: 15px; height: 15px; vertical-align: -2px; }

.wn-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.wn-close:hover { background: var(--bg-raised-hi); }

/* The invitation ---------------------------------------------------------- */

.wn-invite { justify-content: center; text-align: left; padding-bottom: 0; }
.wn-invite .wn-lede { font-size: 17px; margin-top: 14px; }
.wn-invite .wn-fine { margin: 0 0 calc(20px + var(--safe-bottom)); }

.wn-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.wn-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-amber-border);
  animation: wn-ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.wn-orb__ring:nth-child(2) { animation-delay: 1.2s; }
.wn-orb__ring:nth-child(3) { animation-delay: 2.4s; }

.wn-orb__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 25%, light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.10)), transparent 60%),
    var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  box-shadow: 0 0 40px light-dark(rgba(180, 83, 9, 0.16), rgba(245, 158, 11, 0.22)), var(--shadow-pop);
  transition: background 0.4s ease, color 0.4s ease, scale 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.wn-orb__icon { position: absolute; width: 40px; height: 40px; transition: opacity 0.3s ease, scale 0.4s ease; }
.wn-orb__icon--done { opacity: 0; scale: 0.4; }

.wn-invite[data-phase="waiting"] .wn-orb__core { animation: wn-breathe 1.4s ease-in-out infinite; }
.wn-invite[data-phase="waiting"] .wn-orb__ring { animation-duration: 1.6s; }

.wn-invite[data-phase="done"] .wn-orb__core {
  background: light-dark(rgba(4, 107, 78, 0.10), rgba(110, 231, 183, 0.10));
  border-color: var(--accent-success);
  color: var(--accent-success);
  scale: 1.06;
}
.wn-invite[data-phase="done"] .wn-orb__ring { border-color: var(--accent-success); }
.wn-invite[data-phase="done"] .wn-orb__icon--ready { opacity: 0; scale: 0.4; }
.wn-invite[data-phase="done"] .wn-orb__icon--done { opacity: 1; scale: 1; }
.wn-invite[data-phase="done"] .wn-orb__icon--done path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: wn-draw 0.5s 0.15s ease forwards;
}

@keyframes wn-ring {
  0% { scale: 0.6; opacity: 0.9; }
  100% { scale: 1.5; opacity: 0; }
}
@keyframes wn-breathe { 50% { scale: 0.94; } }
@keyframes wn-draw { to { stroke-dashoffset: 0; } }
@keyframes wn-rise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.wn-invite__ask, .wn-invite__done { animation: wn-rise 0.6s ease both; }
.wn-invite__done:focus { outline: none; }

.wn-benefits {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.wn-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
  animation: wn-rise 0.6s ease both;
}
.wn-benefits li:nth-child(1) { animation-delay: 0.08s; }
.wn-benefits li:nth-child(2) { animation-delay: 0.16s; }
.wn-benefits li:nth-child(3) { animation-delay: 0.24s; }
.wn-benefits .wn-icon { color: var(--accent-amber); margin-top: 1px; }
.wn-benefits b { color: var(--text-primary); font-weight: 600; }

/* On a phone the ask stays in reach: the actions are pinned to the bottom of
 * the screen while the reasons scroll under them. */
.wn-invite__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 24px var(--gutter) calc(4px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg-base) 26px);
}

.wn-status {
  min-height: 1.25em;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}
.wn-status:empty { min-height: 0; margin: 0; }
.wn-status[data-tone="error"] { color: var(--accent-danger); }

.wn-later {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.wn-later:hover { color: var(--text-primary); }

.wn-invite .wn-fine { text-align: center; }
.wn-invite__done { padding-bottom: calc(32px + var(--safe-bottom)); }
.wn-invite__done .wn-button { margin-top: 32px; }

/* Messages ---------------------------------------------------------------- */

.wn-message { justify-content: center; }
.wn-message .wn-button { align-self: flex-start; margin-top: 28px; }

/* Wider screens ----------------------------------------------------------- */

@media (min-width: 48rem) {
  main { padding-top: 64px; }
  .wn-invite { text-align: center; align-items: center; }
  .wn-invite .wn-eyebrow { justify-content: center; }
  .wn-invite .wn-lede { margin-left: auto; margin-right: auto; }
  .wn-benefits { text-align: left; }
  .wn-invite__actions { position: static; width: 100%; max-width: 24rem; margin: 28px auto 0;
                        padding: 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wn-field__sweep, .wn-blip { display: none; }
}

/* The new key is one long word: wrapped, so all of it can be seen and checked. */
.wn-fresh .wn-snippet pre { white-space: pre-wrap; word-break: break-all; }
