:root {
  --bg: #f8faff;
  --surface: #ffffff;
  --text: #18213a;
  --muted: #68748a;
  --primary: #6757f5;
  --primary-dark: #5140dd;
  --primary-soft: #eeeaff;
  --accent: #ff6b8b;
  --highlight: #24c9b8;
  --border: #e8ecf5;
  --shadow: 0 18px 50px rgba(54, 47, 112, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(103, 87, 245, 0.38);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(232, 236, 245, 0.9);
  background: rgba(248, 250, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #8b7dff);
  box-shadow: 0 8px 20px rgba(103, 87, 245, 0.3);
  font-size: 1rem;
  font-weight: 900;
}

.brand-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button) {
  color: #4c5670;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--primary);
}

.nav-user {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.logout-form {
  margin: 0;
}

.nav-link-button {
  padding: 0;
  border: 0;
  color: #4c5670;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}

.nav-link-button:hover {
  color: var(--primary);
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(103, 87, 245, 0.23);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 15px 30px rgba(103, 87, 245, 0.3);
  transform: translateY(-2px);
}

.button:disabled,
.button:disabled:hover {
  background: #9188e8;
  box-shadow: none;
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

form[aria-busy="true"] {
  cursor: wait;
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.button-danger,
.button-danger:hover {
  color: #fff;
  background: #b42318;
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.2);
}

.button-danger:hover {
  background: #8f1c14;
}

.button-danger:disabled,
.button-danger:disabled:hover {
  background: #c97972;
  box-shadow: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.menu-button span:not(.sr-only) {
  width: 100%;
  height: 2px;
  display: block;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.notice {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(36, 201, 184, 0.28);
  border-radius: 14px;
  color: #176e65;
  background: #eafaf7;
  font-size: 0.88rem;
}

.notice > span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--highlight);
  font-weight: 900;
}

.notice p {
  margin: 0;
}

.notice:focus,
.form-alert:focus {
  outline: 3px solid rgba(103, 87, 245, 0.38);
  outline-offset: 3px;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: radial-gradient(rgba(103, 87, 245, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to right, #000, transparent 48%);
  content: "";
}

.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.65;
}

.hero-blob-one {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -80px;
  background: rgba(255, 107, 139, 0.2);
}

.hero-blob-two {
  width: 460px;
  height: 460px;
  right: 16%;
  bottom: -280px;
  background: rgba(36, 201, 184, 0.16);
}

.hero-inner {
  padding-block: 72px 82px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow:not(.eyebrow-plain) {
  padding: 8px 12px;
  border: 1px solid #ded8ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  max-width: 700px;
  margin: 24px 0 20px;
  font-size: clamp(2.8rem, 5.4vw, 4.75rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.hero-proof {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-proof strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 0.62rem;
  font-weight: 800;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--accent);
}

.avatar-stack span:nth-child(2) {
  background: var(--highlight);
}

.avatar-stack span:nth-child(3) {
  background: #ffad4d;
}

.hero-card-wrap {
  position: relative;
  padding: 28px;
}

.hero-card-wrap::before {
  position: absolute;
  z-index: -1;
  inset: -18px 22px 6px -10px;
  border-radius: 42% 58% 44% 56% / 48% 38% 62% 52%;
  background: linear-gradient(135deg, #e9e5ff, #ffe8ee);
  transform: rotate(-4deg);
  content: "";
}

.spotlight-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 70px rgba(57, 44, 126, 0.18);
  transform: rotate(1.8deg);
}

.spotlight-topline,
.spotlight-footer,
.poll-footer,
.poll-meta {
  display: flex;
  align-items: center;
}

.spotlight-topline,
.spotlight-footer {
  justify-content: space-between;
}

.demo-label {
  width: fit-content;
  padding: 6px 10px;
  display: inline-flex;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spotlight-author {
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.avatar-violet { background: linear-gradient(145deg, #6757f5, #9488ff); }
.avatar-pink { background: linear-gradient(145deg, #ff6b8b, #ff9aae); }
.avatar-mint { background: linear-gradient(145deg, #12aa9c, #42d8c9); }
.avatar-orange { background: linear-gradient(145deg, #f99535, #ffc05d); }

.spotlight-card h2 {
  margin: 0 0 22px;
  font-size: 1.48rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.spotlight-options {
  display: grid;
  gap: 10px;
}

.spotlight-options > span {
  position: relative;
  z-index: 0;
  min-height: 47px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
}

.spotlight-options i {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: var(--primary-soft);
}

.spotlight-options b {
  font-weight: 700;
}

.spotlight-options em {
  color: var(--primary);
  font-style: normal;
  font-weight: 850;
}

.spotlight-footer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(54, 47, 112, 0.15);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.chip-top {
  top: 0;
  right: 2px;
  transform: rotate(5deg);
}

.chip-bottom {
  bottom: 2px;
  left: -6px;
  transform: rotate(-4deg);
}

.chip-bottom span {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--highlight);
}

.polls-section,
.how-section {
  padding-block: 88px;
}

.polls-section {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.live-note {
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.74rem;
  font-weight: 700;
}

.live-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.14);
}

.poll-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.poll-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(54, 47, 112, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.poll-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  border-radius: 0 0 0 100%;
  background: var(--card-tint, var(--primary-soft));
  opacity: 0.7;
  content: "";
}

.poll-card:hover {
  border-color: #d9d3ff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.poll-card-pink { --card-tint: #fff0f4; }
.poll-card-mint { --card-tint: #e9faf8; }
.poll-card-orange { --card-tint: #fff6e9; }

.poll-meta {
  gap: 10px;
}

.poll-meta > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.poll-meta strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.poll-meta small {
  color: var(--muted);
  font-size: 0.7rem;
}

.icon-button {
  margin-left: auto;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.poll-card h3 {
  min-height: 58px;
  margin: 22px 0 18px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.option-preview {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.option-preview li {
  min-height: 42px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: #4f5b73;
  background: #fbfcff;
  font-size: 0.8rem;
}

.option-preview li span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.68rem;
  font-weight: 800;
}

.poll-footer {
  margin-top: 20px;
  gap: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.poll-footer a {
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.poll-owner-actions {
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.poll-owner-actions a {
  color: #a12017;
  font-size: 0.76rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.centered-heading {
  display: block;
  text-align: center;
}

.step-grid {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.step-grid li {
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.step-grid li > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
}

.step-grid li:nth-child(2) > span { background: var(--accent); }
.step-grid li:nth-child(3) > span { background: var(--highlight); }

.step-grid h3 {
  margin: 3px 0 6px;
  font-size: 1rem;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-section {
  padding-bottom: 88px;
}

.demo-banner {
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(130deg, #5948e6, #7969f7 65%, #8e7fff);
  box-shadow: 0 20px 48px rgba(103, 87, 245, 0.25);
}

.demo-banner .demo-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.demo-banner h2 {
  margin: 13px 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.demo-banner p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.button-light,
.button-light:hover {
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-footer {
  justify-self: start;
}

.brand-footer .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px 9px 9px 3px;
  font-size: 0.8rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.footer-inner .copyright {
  justify-self: end;
}

.error-page {
  min-height: calc(100vh - 154px);
  padding-block: 72px;
  display: grid;
  place-items: center;
}

.auth-page {
  position: relative;
  min-height: calc(100vh - 76px);
  padding-block: 70px 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.auth-decoration {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.auth-decoration-one {
  width: 360px;
  height: 360px;
  top: -170px;
  right: -100px;
  background: rgba(255, 107, 139, 0.16);
}

.auth-decoration-two {
  width: 420px;
  height: 420px;
  bottom: -280px;
  left: -180px;
  background: rgba(36, 201, 184, 0.12);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.auth-intro h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.auth-intro h1 span {
  color: var(--primary);
}

.auth-intro > p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.auth-benefits {
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 13px;
  list-style: none;
  color: #4f5b73;
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-benefits span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--highlight);
  font-size: 0.72rem;
}

.auth-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(54, 47, 112, 0.14);
}

.auth-card-heading {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #8b7dff);
  box-shadow: 0 9px 24px rgba(103, 87, 245, 0.28);
  font-weight: 900;
}

.auth-card-heading h2 {
  margin: 0 0 2px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.auth-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 750;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce1ec;
  border-radius: 12px;
  color: var(--text);
  background: #fbfcff;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(103, 87, 245, 0.11);
}

.input-wrap {
  position: relative;
}

.input-wrap > span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--primary);
  font-weight: 800;
  transform: translateY(-50%);
}

.input-wrap input {
  padding-left: 35px;
}

.form-field small {
  color: var(--muted);
  font-size: 0.68rem;
}

.field-error {
  margin: 0;
  color: #c23c5c;
  font-size: 0.72rem;
  font-weight: 650;
}

.has-error input {
  border-color: rgba(194, 60, 92, 0.55);
  background: #fff9fa;
}

.form-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #ffd5df;
  border-radius: 11px;
  color: #9c2944;
  background: #fff4f6;
  font-size: 0.77rem;
  font-weight: 650;
}

.form-alert-success {
  border-color: #c9eee9;
  color: #176e65;
  background: #effbf9;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
  text-underline-offset: 3px;
}

.privacy-note {
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
  text-align: center;
}

.error-card {
  max-width: 620px;
  padding: 64px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  color: var(--primary);
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.error-card h1 {
  margin: 4px 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.error-card p {
  max-width: 440px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed #cfd5e5;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state > span {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.4rem;
  font-weight: 900;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 6px;
  color: var(--muted);
}

.empty-state .button {
  margin-top: 20px;
}

.hero-compact {
  min-height: 590px;
}

.hero-guide {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(57, 44, 126, 0.15);
}

.hero-guide ol {
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.hero-guide li {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
}

.hero-guide li > strong {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
}

.hero-guide li:nth-child(2) > strong { background: var(--accent); }
.hero-guide li:nth-child(3) > strong { background: var(--highlight); }

.hero-guide li > span {
  display: grid;
}

.hero-guide b {
  font-size: 0.9rem;
}

.hero-guide small {
  color: var(--muted);
  font-size: 0.72rem;
}

.pagination {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pagination a {
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary);
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
}

.pagination a:last-child {
  justify-self: end;
}

.form-page,
.detail-page,
.listing-page {
  min-height: calc(100vh - 76px);
  padding-block: 72px 90px;
}

.delete-page {
  min-height: calc(100vh - 154px);
  padding-block: 72px 90px;
}

.delete-layout {
  max-width: 760px;
}

.delete-card {
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid #f0c5c1;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.delete-card h1 {
  margin: 14px 0 22px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.delete-card blockquote {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-left: 4px solid #b42318;
  border-radius: 0 12px 12px 0;
  background: #fff6f5;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.delete-card > p {
  margin: 0;
  color: var(--muted);
}

.delete-actions,
.owner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delete-actions {
  margin-top: 30px;
}

.owner-actions {
  margin-top: 24px;
  padding-top: 20px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.form-page {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 88% 8%, rgba(255, 107, 139, 0.12), transparent 30%), var(--bg);
}

.form-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.78fr);
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
}

.form-page-intro {
  position: sticky;
  top: 148px;
}

.form-page-intro h1,
.listing-heading h1,
.detail-card h1 {
  letter-spacing: -0.055em;
}

.form-page-intro h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
}

.form-page-intro h1 span {
  color: var(--primary);
}

.form-page-intro p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.form-card,
.detail-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.poll-form {
  display: grid;
  gap: 24px;
}

.form-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid #dce1ec;
  border-radius: 12px;
  color: var(--text);
  background: #fbfcff;
  outline: 0;
}

.form-field textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(103, 87, 245, 0.11);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.options-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.options-fieldset legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 750;
}

.options-fieldset > p {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.7rem;
}

.option-fields {
  display: grid;
  gap: 12px;
}

.option-field {
  display: grid;
  gap: 6px;
}

.option-field label {
  font-size: 0.75rem;
  font-weight: 700;
}

.option-field > div {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.option-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dce1ec;
  border-radius: 11px;
  color: var(--text);
  background: #fbfcff;
  outline: 0;
}

.option-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(103, 87, 245, 0.11);
}

.remove-option {
  border: 1px solid #ffd5df;
  border-radius: 11px;
  color: #b73756;
  background: #fff7f9;
  font-size: 1.3rem;
  cursor: pointer;
}

.remove-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.secondary-button {
  margin-top: 13px;
  padding: 9px 12px;
  border: 1px solid #d9d3ff;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.poll-submit {
  width: 100%;
}

.detail-layout {
  max-width: 820px;
}

.detail-layout > .notice {
  margin: 0 0 18px;
}

.detail-meta {
  margin-bottom: 28px;
}

.detail-card h1 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.vote-form {
  display: grid;
  gap: 18px;
}

.vote-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.vote-form legend {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.vote-choices {
  display: grid;
  gap: 12px;
}

.vote-choice {
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.vote-choice:hover {
  border-color: #d9d3ff;
  background: #f8f6ff;
}

.vote-choice:has(input:focus-visible) {
  outline: 3px solid rgba(103, 87, 245, 0.38);
  outline-offset: 3px;
}

.vote-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(103, 87, 245, 0.09);
}

.vote-choice input {
  position: absolute;
  opacity: 0;
}

.vote-choice-marker {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid #cbd2e2;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #fff;
}

.vote-choice input:checked + .vote-choice-marker {
  border-color: var(--primary);
  background: var(--primary);
}

.poll-results {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.results-heading,
.result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.results-heading > span {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-list {
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.result-label {
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.result-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-label strong {
  color: var(--primary-dark);
}

.result-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f7;
}

.result-track > span {
  width: var(--result-width);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #8b7dff);
}

.result-list small {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.vote-limit-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
  background: #f7f8fc;
  font-size: 0.72rem;
}

.notice-warning {
  border-color: #f0dfb0;
  color: #775513;
  background: #fff9e8;
}

.notice-warning > span {
  background: #d9a72e;
}

.notice-error {
  border-color: #f2c6d1;
  color: #8b2941;
  background: #fff3f6;
}

.notice-error > span {
  background: var(--accent);
}

.back-link {
  margin-top: 24px;
  display: inline-block;
}

.listing-heading {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.listing-heading h1 {
  margin: 7px 0 6px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.listing-heading p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .form-page-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-page-intro {
    position: static;
    text-align: center;
  }

  .form-page-intro p {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero-guide {
    padding: 22px;
  }

  .form-page,
  .detail-page,
  .listing-page {
    min-height: auto;
    padding-block: 52px 72px;
  }

  .form-page-intro h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .form-card,
  .detail-card {
    padding: 24px 20px;
  }

  .listing-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-heading .button {
    width: 100%;
  }

  .pagination {
    gap: 8px;
    font-size: 0.72rem;
  }

  .pagination a {
    padding: 8px 9px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-proof {
    justify-content: center;
  }

  .hero-card-wrap {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro > p {
    margin-inline: auto;
  }

  .auth-benefits {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .auth-card {
    width: min(100%, 520px);
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    padding: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: 11px 8px;
  }

  .nav-user {
    padding: 11px 8px;
  }

  .logout-form {
    padding: 11px 8px;
  }

  .hero-inner {
    padding-block: 54px 68px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-card-wrap {
    padding: 18px 6px;
  }

  .spotlight-card {
    padding: 22px;
    transform: none;
  }

  .chip-top {
    right: -5px;
  }

  .chip-bottom {
    left: -4px;
  }

  .polls-section,
  .how-section {
    padding-block: 68px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .centered-heading {
    align-items: center;
  }

  .poll-grid {
    grid-template-columns: 1fr;
  }

  .poll-card h3 {
    min-height: 0;
  }

  .demo-banner {
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-footer,
  .footer-inner .copyright {
    justify-self: center;
  }

  .auth-page {
    min-height: auto;
    padding-block: 52px 72px;
  }

  .auth-layout {
    gap: 34px;
  }

  .auth-intro h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .auth-card {
    padding: 24px 20px;
  }

  .delete-page {
    padding-block: 44px 64px;
  }

  .delete-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delete-actions .button,
  .delete-actions .secondary-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .spotlight-card {
    padding: 18px;
  }

  .floating-chip {
    display: none;
  }

  .poll-card {
    padding: 20px;
  }
}

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