/* NightIn website — same dark palette as the extension's sidebar. */
:root {
  --bg: #0b0b10;
  --bg-2: #0f0f16;
  --surface: #16161f;
  --surface-2: #1f1f2a;
  --surface-3: #282836;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-text: #a5b4fc;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --ok: #22c55e;
  --radius: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--accent-text); }
a:hover { color: #c7d2fe; }

img, svg { display: block; }

h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Soft indigo light behind the top of a page. */
.glow {
  position: relative;
  isolation: isolate;
}
.glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -120px 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(420px 260px at 85% 30%, rgba(168, 85, 247, 0.12), transparent 70%);
  pointer-events: none;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.nav a:not(.btn):hover { color: var(--text); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand { font-size: 16px; }
.footer-brand .brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer.slim { margin-top: 0; padding: 24px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible, .faq summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
/* "Add to Chrome" before the store listing exists (assets/site.js). */
.btn[aria-disabled="true"] {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-2);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* --- Landing: hero --- */
.hero {
  padding: 88px 0 24px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 14px;
}
.eyebrow .dot {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.05;
  margin: 0 auto 22px;
  max-width: 880px;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.actions-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* --- Landing: product mockup --- */
.mock {
  margin: 64px auto 0;
  max-width: 960px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 40px 120px -40px rgba(99, 102, 241, 0.45), 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-url {
  flex: 1;
  max-width: 360px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 24px;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-body { display: grid; grid-template-columns: 1fr 260px; }
.mock-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 28% 40%, rgba(129, 140, 248, 0.55), transparent 70%),
    radial-gradient(50% 60% at 75% 65%, rgba(236, 72, 153, 0.28), transparent 70%),
    linear-gradient(160deg, #1e1b4b, #0b0b10 75%);
}
/* The photos (a movie still, the two webcams) fill their boxes; the
   gradients underneath show until they load. */
.mock-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-video .mock-photo { object-position: 60% 40%; }
.mock-video::after { /* letterbox vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 40%);
}
.synced {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.synced::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.mock-title {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 46px;
  font-weight: 700;
  font-size: 15px;
}
.mock-title small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.mock-controls {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-2);
}
.mock-controls svg { width: 16px; height: 16px; flex: none; }
.mock-progress {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.mock-progress::before {
  content: "";
  position: absolute;
  inset: 0 41% 0 0;
  border-radius: 2px;
  background: var(--accent);
}
.mock-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 59%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.mock-reactions {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 26px;
}
.mock-reactions span { animation: float-up 3.2s ease-in-out infinite; }
.mock-reactions span:nth-child(2) { animation-delay: 1.1s; }
@keyframes float-up {
  0%, 100% { transform: translateY(6px); opacity: 0.55; }
  50% { transform: translateY(-6px); opacity: 1; }
}
.mock-side {
  border-left: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  background: var(--bg-2);
}
.mock-cam {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, #6366f1, #312e81 60%, #1e1b4b);
  display: grid;
  place-items: center;
}
.mock-cam .cam-feed { object-position: 50% 30%; }
.mock-cam .name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  font-weight: 600;
}
.mock-cam .self {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #a855f7, #4338ca);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.mock-activity { color: var(--muted); font-size: 12px; text-align: center; }
.mock-msg { max-width: 92%; background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: 7px 10px; }
.mock-msg b { display: block; font-size: 11px; color: var(--accent-text); }
.mock-msg.me { align-self: flex-end; background: var(--accent); border-radius: 12px 12px 4px 12px; }
.mock-msg.me b { color: #e0e7ff; }
.mock-input {
  margin-top: auto;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 32px;
  padding: 0 12px;
}

/* --- Landing: sections --- */
section.block { padding: 104px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-text);
}
.icon svg { width: 22px; height: 22px; }

.steps-grid { counter-reset: step; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}
.chip small {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chip.more { font-weight: 500; color: var(--muted); border-style: dashed; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0; padding: 0 20px 18px; }

.cta {
  margin-top: 104px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  padding: 64px 24px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(99, 102, 241, 0.35), transparent 70%),
    var(--surface);
}
.cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); }
.cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

/* --- Join page --- */
.join-main {
  display: grid;
  place-items: center;
  padding: 56px 0;
}
.join-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px 30px 30px;
  text-align: center;
  box-shadow: 0 40px 100px -40px rgba(99, 102, 241, 0.5), 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.join-card img.logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.join-card h1 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
.join-card p { color: var(--muted); margin: 0 0 22px; }
.join-card .code {
  display: inline-block;
  font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.2em;
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.5);
  background: var(--accent-soft);
  color: #e0e7ff;
  margin-bottom: 20px;
}
.join-card .steps {
  text-align: left;
  margin: 0 0 26px;
  padding: 16px;
  list-style: none;
  display: grid;
  gap: 14px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.join-card .steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.join-card .steps .step-num { flex: none; width: 26px; height: 26px; font-size: 13px; margin: 0; box-shadow: none; }
.join-card .actions { display: grid; gap: 10px; }
.join-card .fine { font-size: 13px; margin: 20px 0 0; }
.spinner {
  width: 36px;
  height: 36px;
  margin: 4px auto 20px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* --- Text pages (privacy, 404) --- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 0;
}
.prose h1 { font-size: clamp(32px, 4.6vw, 44px); margin: 0 0 8px; }
.prose .updated { color: var(--muted); margin: 0 0 36px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose li + li { margin-top: 6px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.9em; }
.prose .table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
.prose.center { text-align: center; padding-top: 120px; }

/* --- Welcome page (opened after install) --- */
.welcome { display: grid; place-items: center; padding: 56px 20px 72px; }
.welcome-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 40px 36px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--surface);
  text-align: center;
}
.welcome-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 12px 32px -8px var(--accent-glow);
}
.welcome-badge svg { width: 26px; height: 26px; }
.welcome-card h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 34px); }
.welcome-lead { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.welcome-steps { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; text-align: left; }
.welcome-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.welcome-steps b { display: block; color: var(--text); }
.welcome-steps span { color: var(--muted); font-size: 15px; }
.welcome-steps span b { display: inline; }
.welcome-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-text) !important;
  font-weight: 700;
  font-size: 14px !important;
}
.kbd {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  vertical-align: -5px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
}
.kbd svg { width: 14px; height: 14px; }
.welcome-cta { width: 100%; }
.welcome-help { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* --- Uninstall page (/bye) --- */
.bye { max-width: 680px; padding-bottom: 72px; }
.bye-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.reasons { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.reasons legend { margin-bottom: 14px; padding: 0; color: var(--text); font-size: 18px; font-weight: 700; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reason {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.reason:hover { border-color: var(--border-strong); background: var(--surface-2); }
/* The radio stays in the page for keyboards and screen readers, unseen. */
.reason input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.reason-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.reason-icon svg { width: 18px; height: 18px; }
.reason-check {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.reason-check svg { width: 12px; height: 12px; }
.reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.reason:has(input:checked) .reason-icon { background: var(--accent); color: #fff; }
.reason:has(input:checked) .reason-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.reason:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.bye label.comment { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.bye .optional { color: var(--muted); font-size: 13px; font-weight: 500; }
.bye textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.bye textarea::placeholder { color: var(--muted); }
.bye textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.bye .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.bye .form-status { color: var(--muted); font-size: 14px; }
.bye button.btn { min-width: 140px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.bye button.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.bye-thanks h2 { margin: 0 0 8px; }
.bye-thanks p { margin: 0 0 20px; }

/* --- Small screens --- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr 210px; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 8px; }
  .grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .bye-card { padding: 20px; }
  .welcome { padding-top: 32px; }
  .welcome-card { padding: 32px 20px 24px; }
  .mock { margin-top: 44px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-left: 0; border-top: 1px solid var(--border); }
  .mock-cam { display: none; }
  .mock-title { bottom: 40px; font-size: 13px; }
  section.block { padding-top: 80px; }
  .join-main { padding: 28px 0; }
  .join-card { padding: 28px 20px 22px; border-radius: 20px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 3s; }
  .mock-reactions span { animation: none; }
  .btn, .card, .reason, .reason-icon, .reason-check { transition: none; }
}

/* --- Account page (/account) --- */
.account-card { text-align: center; }
.account-muted { margin: 0; color: var(--muted); }
.account-google { width: 100%; }
.account-google svg { width: 18px; height: 18px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 12px 32px -8px var(--accent-glow);
}
.account-card h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 30px); overflow-wrap: anywhere; }
.account-status {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}
.account-status.ok { border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }
.account-status.error { border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
.account-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.account-link:hover { text-decoration: underline; }
.account-field { margin: 24px 0 0; text-align: left; }
.account-field label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.account-row { display: flex; gap: 8px; }
.account-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
.account-row input:focus { outline: none; border-color: var(--accent); }
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.account-danger {
  padding: 0;
  border: 0;
  background: none;
  color: #f87171;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.account-danger:hover { text-decoration: underline; }
.account-error { margin: 16px 0 0; color: #f87171; font-size: 14px; }
.account-dialog {
  max-width: 420px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}
.account-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.account-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.account-dialog p { margin: 0 0 20px; color: var(--muted); }
.account-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.account-danger-btn { background: #dc2626; box-shadow: none; }
.account-danger-btn:hover { background: #b91c1c; }
