:root {
  --brand-blue: #6477e8;
  --brand-blue-soft: #8b8cf6;
  --brand-blue-deep: #4f5fd5;
  --brand-blue-dark: #4f5fd5;
  --brand-blue-pale: #eef2ff;
  --brand-blue-shadow: rgba(100, 119, 232, 0.24);
  --deep: #4f5fd5;
  --green: #8b8cf6;
  --fresh: #6477e8;
  --mint: #e0f2fe;
  --primary-pale: #eef2ff;
  --success: #16a34a;
  --success-soft: #bbf7d0;
  --cream: #fff7ed;
  --cream-light: #fffbf3;
  --coral: #fb7185;
  --yellow: #facc15;
  --blue: #6477e8;
  --lavender: #c4b5fd;
  --ink: #111827;
  --muted: #52627a;
  --footer-navy: #101a2e;
  --line: #e5e7eb;
  --paper: #fffbf3;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(139, 140, 246, 0.35);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--deep);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.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;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, #fff3c4 0%, #fffaf0 48%, #e6f5ff 100%);
  border-top: 12px solid #2f2f2f;
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 62px;
  border-radius: 999px;
  padding: 0 1.65rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #1f2937;
  font-weight: 750;
}

.nav-links a:not(.button) {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
}

.nav-signin {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.nav-signin:hover {
  background: rgba(255, 255, 255, 0.45);
}

.nav-links .button-primary {
  min-height: 58px;
  border-radius: 999px;
  padding: 0.85rem 1.65rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.section-mint {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.game-type-section {
  padding: 78px 0 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.12), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(196, 181, 253, 0.16), transparent 28%),
    #fbf4e9;
}

.game-type-heading {
  max-width: 950px;
  margin: 0 auto 3rem;
  text-align: center;
}

.game-type-eyebrow {
  display: inline-flex;
  margin: 0 0 0.65rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  color: #d94670;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-type-heading h2 {
  max-width: 980px;
  margin-inline: auto;
  color: #0f172a;
  font-size: clamp(2.65rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.game-type-heading p:not(.game-type-eyebrow) {
  max-width: 820px;
  margin: 0 auto;
  color: #52627a;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
}

.game-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.game-type-card {
  --card-accent: #fb7185;
  --card-blob: rgba(251, 113, 133, 0.78);
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 34px;
  padding: 2.25rem 2.15rem;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.09);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.game-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.game-type-card-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.05rem;
  align-items: center;
  margin-top: 3.55rem;
}

.game-type-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.game-type-card p {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  color: #52627a;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.42;
}

.game-type-line {
  position: absolute;
  left: 2.15rem;
  top: 2.1rem;
  z-index: 1;
  width: 7.4rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--card-accent);
}

.game-type-blob {
  position: absolute;
  right: -1.2rem;
  top: -1.35rem;
  z-index: 0;
  width: 8.3rem;
  height: 7.4rem;
  border-bottom-left-radius: 7rem;
  border-top-right-radius: 2rem;
  background: var(--card-blob);
}

.game-type-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  color: var(--card-accent);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  font-size: 1.65rem;
  font-weight: 950;
}

.game-type-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  border: 1px solid rgba(203, 213, 225, 0.58);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.game-type-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.game-type-peach {
  --card-accent: #fb6b64;
  --card-blob: #fb827f;
  background: linear-gradient(145deg, #fffaf5 0%, #ffe8e0 100%);
}

.game-type-mint {
  --card-accent: #43cc82;
  --card-blob: #a7e5bd;
  background: linear-gradient(145deg, #fbfff9 0%, #e2f9ee 100%);
}

.game-type-lavender {
  --card-accent: #8456f6;
  --card-blob: #bda4f2;
  background: linear-gradient(145deg, #fffafd 0%, #eee6fb 100%);
}

.game-type-sky {
  --card-accent: #55b9f6;
  --card-blob: #9bd0f2;
  background: linear-gradient(145deg, #fbffff 0%, #e7f6fb 100%);
}

.game-type-orange {
  --card-accent: #fb923c;
  --card-blob: #fdba74;
  background: linear-gradient(145deg, #fffaf2 0%, #fff0d6 100%);
}

.game-type-youth {
  --card-accent: #facc15;
  --card-blob: #ddd6fe;
  background: linear-gradient(145deg, #fffdf6 0%, #f7eefb 100%);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 5.85rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 1.3rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.24rem;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.auth-card h1,
.game-top h1,
.tool-panel h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.lead {
  max-width: 710px;
  color: #374151;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button-primary:hover {
  filter: saturate(1.04) brightness(0.98);
  box-shadow: 0 18px 34px rgba(100, 119, 232, 0.3);
}

.button-primary:focus-visible {
  outline: 3px solid rgba(139, 140, 246, 0.35);
  outline-offset: 3px;
}

.button-secondary {
  color: var(--deep);
  background: white;
  border: 1px solid #bae6fd;
}

.button-coral {
  color: #7f1d1d;
  background: #ffe4e6;
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 0.95rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 60px;
  background:
    radial-gradient(circle at 12% 20%, rgba(250, 204, 21, 0.32), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.24), transparent 24%),
    linear-gradient(140deg, #f0f9ff 0%, #fff7ed 52%, #eff6ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.demo-card,
.tool-panel,
.game-shell,
.auth-card,
.pricing-card,
.dashboard-card,
.sample-card,
.use-card,
.step-card,
.faq-item {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.demo-card {
  position: relative;
  padding: 1rem;
}

.demo-top,
.game-top,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  color: var(--deep);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 950;
}

.secret-card {
  position: relative;
  display: grid;
  min-height: 172px;
  place-items: center;
  margin: 1rem 0;
  border: 2px dashed rgba(14, 165, 233, 0.22);
  border-radius: var(--radius);
  color: var(--deep);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.94), rgba(255, 247, 237, 0.95)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(56, 189, 248, 0.06) 12px 24px);
  overflow: hidden;
}

.secret-word {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 950;
  text-align: center;
}

.hidden-label {
  color: var(--deep);
  font-size: 1.4rem;
  font-weight: 950;
}

.clue-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.clue-bubble,
.guess-card {
  min-height: 92px;
  border-radius: var(--radius);
  padding: 0.85rem;
}

.clue-bubble {
  background: #e0f2fe;
}

.guess-card {
  background: #f5f3ff;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-word {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.35rem;
  font-weight: 950;
}

.correct {
  color: #14532d;
  background: #bbf7d0;
}

.demo-controls,
.host-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-card,
.sample-card,
.step-card,
.dashboard-card,
.pricing-card {
  padding: 1.2rem;
}

.card-mint {
  background: #f0fdf4;
}

.card-cream {
  background: #fff7ed;
}

.card-blue {
  background: #eff6ff;
}

.card-pink {
  background: #fff1f2;
}

.card-yellow {
  background: #fefce8;
}

.card-lavender {
  background: #f5f3ff;
}

.example-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}

.word-chip {
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.flow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.flow-pill {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid var(--line);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.setup-flow-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0 96px;
  background:
    radial-gradient(circle at 14% 10%, rgba(250, 204, 21, 0.12), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(196, 181, 253, 0.14), transparent 30%),
    #fffbf3;
}

.setup-flow-heading {
  max-width: 900px;
  margin: 0 auto 3.4rem;
  text-align: center;
}

.setup-flow-eyebrow {
  display: inline-flex;
  margin: 0 0 0.75rem;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 999px;
  padding: 0.44rem 1.05rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.setup-flow-heading h2 {
  max-width: 900px;
  margin-inline: auto;
  color: #0f172a;
  font-size: clamp(2.7rem, 5.7vw, 4.9rem);
  line-height: 0.98;
}

.setup-flow-heading p:not(.setup-flow-eyebrow) {
  max-width: 820px;
  margin: 0 auto;
  color: #52627a;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  font-weight: 850;
}

.setup-flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.setup-flow-grid::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 49%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.16), rgba(56, 189, 248, 0.22), rgba(196, 181, 253, 0.16));
}

.setup-step-card {
  --setup-accent: #fb7185;
  --setup-soft: rgba(251, 113, 133, 0.13);
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 34px;
  padding: 2.05rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 248, 0.92)),
    white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.setup-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 76px rgba(15, 23, 42, 0.14);
}

.setup-step-lower {
  margin-top: 44px;
}

.setup-top-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg, var(--setup-accent), #8b5cf6);
}

.setup-blob {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 9rem;
  height: 9rem;
  border-radius: 56% 44% 0 0;
  background: var(--setup-soft);
  transform: rotate(-18deg);
}

.setup-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-top: 1.25rem;
  border-radius: 22px;
  color: white;
  background: var(--setup-accent);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  font-size: 2rem;
  font-weight: 950;
}

.setup-step-badge {
  position: absolute;
  top: 4rem;
  right: 2rem;
  z-index: 1;
  display: inline-flex;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: #0f172a;
  background: #f3edff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.setup-step-card h3 {
  position: relative;
  z-index: 1;
  margin: 2.4rem 0 1.1rem;
  color: #0f172a;
  font-size: clamp(2.25rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.setup-step-card > p {
  position: relative;
  z-index: 1;
  color: #52627a;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.48;
}

.setup-mock {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.setup-word-list {
  padding: 1.15rem;
}

.setup-mock-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  color: #6d28d9;
  background: #fef3c7;
  font-size: 0.82rem;
  font-weight: 950;
}

.setup-pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.setup-pill-row span,
.setup-settings p,
.setup-settings > div {
  border-radius: 999px;
  padding: 0.72rem 0.75rem;
  color: #0f172a;
  background: #f5f3ff;
  font-weight: 900;
  text-align: center;
}

.setup-word-list small {
  display: inline-flex;
  margin-top: 0.25rem;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  color: var(--deep);
  background: var(--mint);
  font-weight: 900;
}

.setup-settings {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
}

.setup-settings > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #e0f2fe;
}

.setup-settings p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  text-align: left;
  background: #fffbeb;
}

.setup-settings p span {
  color: #64748b;
}

.setup-password-preview {
  display: grid;
  gap: 1.05rem;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid rgba(100, 119, 232, 0.18);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.3rem);
  color: #0f172a;
  background:
    radial-gradient(circle at 15% 8%, rgba(187, 247, 208, 0.32), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(96, 165, 250, 0.14), transparent 32%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(100, 119, 232, 0.1);
}

.setup-password-preview > * {
  min-width: 0;
  width: 100%;
}

.setup-password-preview-top,
.setup-password-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.setup-password-preview-top span {
  min-width: 0;
  color: #52627a;
  font-weight: 950;
}

.setup-password-preview-top strong {
  flex: 0 1 auto;
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  color: #3942a6;
  background: #eef2ff;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.setup-password-word {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 2px dashed rgba(100, 119, 232, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.setup-password-word span,
.setup-password-pair span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.setup-password-word strong {
  color: #0f172a;
  font-size: clamp(2.15rem, 4.8vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.035em;
}

.setup-password-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.setup-password-pair div {
  display: grid;
  gap: 0.35rem;
  border-radius: 20px;
  padding: 0.9rem 1rem;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.66);
}

.setup-password-pair strong {
  color: #0f172a;
  font-size: 1.2rem;
}

.setup-password-result {
  border-radius: 22px;
  padding: 0.85rem 1rem;
  color: #14532d;
  background: #ecfdf5;
  font-weight: 950;
}

.setup-password-result strong {
  font-size: 0.95rem;
}

.setup-step-coral {
  --setup-accent: #fb7185;
  --setup-soft: rgba(251, 113, 133, 0.13);
}

.setup-step-blue {
  --setup-accent: #8b8cf6;
  --setup-soft: rgba(139, 140, 246, 0.14);
}

.setup-step-green {
  --setup-accent: #8b8cf6;
  --setup-soft: rgba(139, 140, 246, 0.14);
}

.benefits-section {
  padding: 84px 0 98px;
  background:
    radial-gradient(circle at 9% 8%, rgba(196, 181, 253, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.1), transparent 30%),
    #fffbf3;
}

.benefits-heading {
  max-width: 980px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.benefits-eyebrow {
  display: inline-flex;
  margin: 0 0 0.75rem;
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  color: #db4770;
  background: #ffe5e7;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.benefits-heading h2 {
  margin-inline: auto;
  color: #0f172a;
  font-size: clamp(2.55rem, 5.4vw, 4.65rem);
  line-height: 1;
}

.benefits-heading p:not(.benefits-eyebrow) {
  max-width: 860px;
  margin: 0 auto;
  color: #0f172a;
  font-size: clamp(1.02rem, 1.7vw, 1.26rem);
  font-weight: 850;
}

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.benefits-feature-card,
.benefit-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.benefits-feature-card:hover,
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.14);
}

.benefits-feature-card {
  min-height: 600px;
  padding: 2.05rem;
  background: linear-gradient(145deg, #ffe6dc 0%, #fff0ea 100%);
}

.benefit-card {
  min-height: 178px;
  padding: 2rem 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.78);
}

.benefits-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefits-top-bar {
  position: absolute;
  inset: 0 2rem auto;
  height: 8px;
  border-radius: 0 0 999px 999px;
  background: var(--benefit-accent, #fb7185);
}

.benefits-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: #0f172a;
  background: var(--benefit-accent, #fb7185);
  font-size: 1.5rem;
  font-weight: 950;
}

.benefits-coral {
  --benefit-accent: #ff6b5e;
  color: white;
  width: 66px;
  height: 66px;
  border-radius: 20px;
}

.benefits-label {
  position: absolute;
  top: 1.75rem;
  right: 1.8rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.43rem 0.82rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.benefits-feature-card h3 {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 3.6rem 0 1.35rem;
  color: #0f172a;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  line-height: 0.98;
}

.benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 1.7rem 0 0.5rem;
  color: #0f172a;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.08;
}

.benefits-feature-card p,
.benefit-card p {
  position: relative;
  z-index: 1;
  color: #52627a;
  font-weight: 850;
  line-height: 1.48;
}

.benefits-feature-card p {
  max-width: 620px;
  font-size: 1.18rem;
}

.benefit-card p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1rem;
}

.benefits-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.benefits-tags span {
  border-radius: 999px;
  padding: 0.48rem 0.86rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.benefits-dots {
  position: absolute;
  right: 1.85rem;
  bottom: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, 7px);
  gap: 5px;
}

.benefits-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7185;
}

.benefits-dots span:nth-child(2),
.benefits-dots span:nth-child(5) {
  background: #facc15;
}

.benefits-dots span:nth-child(3),
.benefits-dots span:nth-child(4) {
  background: #86efac;
}

.benefits-dots span:nth-child(6) {
  background: #93c5fd;
}

.benefits-floaters {
  position: absolute;
  inset: 7rem 2.2rem auto auto;
  display: grid;
  gap: 0.7rem;
  justify-items: end;
  color: #5b21b6;
  font-weight: 950;
}

.benefits-floaters span {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.benefits-floaters span:nth-child(1) {
  transform: rotate(-6deg);
}

.benefits-floaters span:nth-child(2) {
  transform: translateX(-1.3rem) rotate(5deg);
}

.benefits-floaters span:nth-child(3) {
  color: var(--deep);
  background: var(--mint);
  transform: translateX(0.4rem);
}

.benefit-yellow {
  --benefit-accent: #facc15;
  background: linear-gradient(145deg, #fffbf0, #fff8e5);
}

.benefit-blue {
  --benefit-accent: #8b8cf6;
  background: linear-gradient(145deg, #f8ffff, #edf7fb);
}

.benefit-green {
  --benefit-accent: #8b8cf6;
  background: linear-gradient(145deg, #fffaf0, #fff8ed);
}

.sample-showcase-section {
  padding: 78px 0 90px;
  background:
    radial-gradient(circle at 18% 8%, rgba(196, 181, 253, 0.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(96, 165, 250, 0.1), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #fbfaff 100%);
}

.sample-showcase-heading {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.sample-showcase-eyebrow {
  margin: 0 0 0.7rem;
  color: #52627a;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
}

.sample-showcase-heading h2 {
  max-width: 880px;
  margin-inline: auto;
  color: #0f172a;
  font-size: clamp(2.6rem, 5.8vw, 4.65rem);
  line-height: 0.98;
}

.sample-showcase-heading p:not(.sample-showcase-eyebrow) {
  max-width: 780px;
  margin: 0 auto;
  color: #52627a;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 850;
}

.sample-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 1.2rem;
  align-items: stretch;
}

.sample-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(100, 119, 232, 0.16);
  border-radius: 30px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.sample-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sample-row-icon {
  display: grid;
  place-items: center;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.66);
}

.sample-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  color: #3942a6;
  background: #eef2ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.sample-feature-card h3 {
  margin: 1rem 0 0.7rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.02;
}

.sample-feature-card p {
  max-width: 440px;
  color: #52627a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.42;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 1.35rem;
}

.sample-tags span {
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  color: #3942a6;
  background: #eef2ff;
  font-size: 0.82rem;
  font-weight: 950;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.sample-primary,
.sample-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sample-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.sample-secondary {
  color: #0f172a;
  background: #fffef5;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.sample-primary:hover,
.sample-secondary:hover,
.sample-row:hover {
  transform: translateY(-2px);
}

.password-preview-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: stretch;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 24px;
  padding: clamp(1rem, 2vw, 1.35rem);
  color: #0f172a;
  background:
    radial-gradient(circle at 18% 10%, rgba(187, 247, 208, 0.34), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(96, 165, 250, 0.16), transparent 34%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(100, 119, 232, 0.12);
}

.password-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.password-preview-top span {
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-preview-top strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  color: #3942a6;
  background: #eef2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.password-preview-word {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 2px dashed rgba(100, 119, 232, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  text-align: center;
}

.password-preview-word span {
  align-self: end;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.password-preview-word strong {
  align-self: start;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.password-preview-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.password-preview-flow span {
  display: grid;
  gap: 0.15rem;
  border-radius: 16px;
  padding: 0.78rem 0.8rem;
  background: #f8fafc;
}

.password-preview-flow small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.password-preview-flow strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.password-preview-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-radius: 18px;
  padding: 0.75rem 0.85rem;
  background: #ecfdf5;
}

.password-preview-result span {
  color: #14532d;
  font-weight: 950;
}

.password-preview-result strong {
  color: #166534;
  font-size: 0.9rem;
}

.sample-list {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.sample-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 18px;
  padding: 0.75rem 0.85rem;
  overflow: hidden;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.sample-row.selected {
  border-color: rgba(100, 119, 232, 0.44);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(100, 119, 232, 0.12);
}

.sample-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 950;
}

.sample-row-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
}

.sample-row-text strong {
  font-size: 1.05rem;
}

.sample-row-text small {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 850;
}

.pricing-section {
  padding: 82px 0 96px;
  background:
    radial-gradient(circle at 12% 10%, rgba(196, 181, 253, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #faf7ff 100%);
}

.pricing-heading {
  max-width: 860px;
  margin: 0 auto 2.7rem;
  text-align: center;
}

.pricing-eyebrow {
  margin: 0 0 0.7rem;
  color: #52627a;
  font-size: 0.95rem;
  font-weight: 950;
}

.pricing-heading h2 {
  max-width: 920px;
  margin-inline: auto;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.pricing-heading p:not(.pricing-eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: #52627a;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 850;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  width: min(1040px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.pricing-plan {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  border-radius: 34px;
  padding: 2rem;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.pricing-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.14);
}

.pricing-free {
  border: 1px solid rgba(229, 231, 235, 0.95);
  color: #0f172a;
  background: #fffdf7;
}

.pricing-paid {
  border: 3px solid #facc15;
  color: white;
  background: linear-gradient(145deg, #17203f 0%, #111827 42%, #1e1b4b 100%);
}

.pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  color: #6d28d9;
  background: #ede9fe;
  font-weight: 950;
}

.pricing-badge-yellow {
  color: #111827;
  background: #fde68a;
}

.pricing-plan h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.75rem;
}

.pricing-price {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: clamp(4rem, 8vw, 5.5rem);
  font-weight: 950;
  line-height: 0.95;
}

.pricing-coming {
  margin: 0.4rem 0 1rem;
  color: white;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 950;
  line-height: 1;
}

.pricing-copy {
  margin-bottom: 2rem;
  color: #64748b;
  font-size: 1.15rem;
}

.pricing-paid .pricing-copy {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-features {
  display: grid;
  gap: 1rem;
  margin: auto 0 1.6rem;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.35;
}

.pricing-paid .pricing-features li {
  color: rgba(255, 255, 255, 0.94);
}

.pricing-features span {
  color: #7c3aed;
  font-weight: 950;
}

.pricing-paid .pricing-features span {
  color: #fde68a;
}

.pricing-cta {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.pricing-free-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  border: 0;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.pricing-free-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.04) brightness(0.98);
  box-shadow: 0 18px 34px rgba(100, 119, 232, 0.3);
}

.pricing-paid-cta {
  border: 0;
  color: white;
  background: #7c3aed;
  opacity: 0.9;
  cursor: not-allowed;
}

.hero {
  padding: clamp(3.5rem, 5vw, 4.75rem) 0 clamp(3.75rem, 5.5vw, 5rem);
  background:
    radial-gradient(circle at 13% 18%, rgba(250, 204, 21, 0.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.22), transparent 27%),
    radial-gradient(circle at 88% 72%, rgba(251, 113, 133, 0.18), transparent 27%),
    linear-gradient(135deg, #fff7d6 0%, #fffdf7 45%, #eaf7ff 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.92fr);
  gap: clamp(3rem, 4.6vw, 4rem);
}

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

.hero-eyebrow {
  display: inline-flex;
  margin: 0 0 1.15rem;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  color: #d94670;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 1.05rem;
  color: #0f172a;
  font-size: clamp(3.35rem, 5.55vw, 5.2rem);
  line-height: 0.98;
}

.hero .lead {
  max-width: 620px;
  color: #52627a;
  font-size: clamp(1.1rem, 1.65vw, 1.32rem);
  font-weight: 850;
  line-height: 1.42;
}

.hero-support {
  max-width: 600px;
  margin-bottom: 0;
  color: #334155;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 700;
}

.hero-microcopy {
  margin: 1rem 0 0;
  color: #52627a;
  font-size: 0.96rem;
  font-weight: 850;
}

.hero-actions {
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.hero-actions .button {
  min-height: 50px;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
}

.hero-actions .button-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.hero-demo-card {
  position: relative;
  width: min(100%, 560px);
  justify-self: end;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  padding: 1rem;
  background:
    radial-gradient(circle at 90% 8%, rgba(253, 230, 138, 0.82) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.94));
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
}

.hero-demo-top {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.hero-demo-live,
.hero-demo-category,
.hero-demo-timer {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 950;
}

.hero-demo-live {
  color: #7c2d12;
  background: #ffedd5;
}

.hero-demo-category {
  color: #3942a6;
  background: var(--brand-blue-pale);
}

.hero-demo-timer {
  color: #7c2d12;
  background: #fef3c7;
}

.hero-game-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 26px;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 12%, rgba(139, 140, 246, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(250, 204, 21, 0.14), transparent 28%),
    linear-gradient(155deg, #eef2ff 0%, #fff7ed 52%, #f5f3ff 100%);
}

.hero-stage {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 272px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 119, 232, 0.16);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 38%),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
  text-align: center;
}

.hero-stage-screen {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.6vw, 0.9rem);
  box-sizing: border-box;
  text-align: center;
  animation: heroStageIn 420ms ease both;
}

.hero-stage-heading,
.hero-stage-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-stage-heading {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.85rem;
  color: #3942a6;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.05em;
}

.hero-stage-screen strong {
  max-width: 100%;
  color: #0f172a;
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-stage-clue strong {
  color: #3942a6;
  animation: clueCardIn 420ms ease both;
}

.hero-stage-reveal strong {
  color: #0f172a;
  font-size: clamp(2.25rem, 4.9vw, 3.75rem);
  animation: answerReveal 480ms ease both;
}

.hero-stage-screen .passwordHeroText {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: normal;
  margin-inline: auto;
  text-align: center;
  text-wrap: nowrap;
  white-space: nowrap;
  word-break: normal;
}

.hero-stage-screen .passwordHeroText > span {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
}

.hero-stage-screen .hero-secret-word.short-word {
  font-size: clamp(3rem, 6vw, 4.6rem);
}

.hero-stage-screen .hero-secret-word.medium-word {
  font-size: clamp(2.45rem, 4.7vw, 3.55rem);
}

.hero-stage-screen .hero-secret-word.long-word {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.hero-stage-screen .hero-secret-word.extra-long-word {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.hero-stage-score strong {
  color: #422006;
  font-size: clamp(3rem, 6vw, 5rem);
  animation: heroScorePop 520ms ease both;
}

.hero-stage-screen p,
.hero-stage-screen small {
  margin: 0;
  color: #52627a;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 850;
}

.hero-stage-result {
  color: #166534;
  background: var(--success-soft);
  padding: 0.55rem 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: 0;
  animation: scoreRowPop 420ms ease both;
}

.hero-stage-sparkle {
  position: absolute;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0.7;
  pointer-events: none;
}

.hero-stage-sparkle-one {
  right: 17%;
  top: 23%;
  animation: heroSparkle 2.8s ease-in-out infinite;
}

.hero-stage-sparkle-two {
  left: 16%;
  bottom: 31%;
  background: var(--brand-blue-soft);
  animation: heroSparkle 3.2s ease-in-out infinite 400ms;
}

.hero-team-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.hero-team {
  display: grid;
  gap: 0.12rem;
  min-height: 54px;
  align-content: center;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 16px;
  padding: 0.48rem 0.52rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.hero-team span {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-team strong {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
}

.hero-team.active {
  border-color: rgba(100, 119, 232, 0.4);
  color: #3942a6;
  background: rgba(238, 242, 255, 0.9);
  box-shadow: 0 10px 20px rgba(100, 119, 232, 0.12);
}

.hero-team.scored {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.7);
  background: #fffbeb;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.16);
}

.hero-sparkle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #facc15;
  opacity: 0.75;
}

.hero-sparkle-one {
  right: 13%;
  top: 22%;
  animation: heroSparkle 2.8s ease-in-out infinite;
}

.hero-sparkle-two {
  left: 9%;
  bottom: 23%;
  background: var(--brand-blue-soft);
  animation: heroSparkle 3.2s ease-in-out infinite 400ms;
}

.hero-confetti {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.2rem;
  opacity: 0;
  transform: translateY(10px) rotate(0deg);
}

.hero-confetti-one {
  right: 20%;
  top: 44%;
  background: var(--brand-blue-soft);
}

.hero-confetti-two {
  left: 24%;
  top: 45%;
  background: var(--yellow);
}

.hero-confetti.show {
  animation: confettiPop 700ms ease-out;
}

.hero-demo-controls {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.hero-demo-controls .button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0.58rem 0.65rem;
  font-size: 0.86rem;
}

.hero-demo-controls .button-primary {
  animation: heroNextPulse 4s ease-in-out infinite;
}

.hero-sample-button {
  width: auto;
  min-width: 220px;
  padding: 0.9rem 1.55rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

@keyframes heroScorePop {
  50% {
    transform: scale(1.08);
  }
}

@keyframes heroSparkle {
  50% {
    transform: translateY(-6px) scale(1.25);
    opacity: 1;
  }
}

@keyframes heroStageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes answerReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes clueCardIn {
  from {
    opacity: 0.6;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scoreRowPop {
  50% {
    transform: scale(1.03);
  }
}

@keyframes secretThinking {
  50% {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(100, 119, 232, 0.14);
  }
}

@keyframes clueSpark {
  50% {
    transform: scale(1.9);
    opacity: 0.45;
  }
}

@keyframes confettiPop {
  0% {
    opacity: 0;
    transform: translateY(12px) rotate(0deg) scale(0.8);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) rotate(80deg) scale(1.15);
  }
}

@keyframes heroNextPulse {
  0%,
  70%,
  100% {
    box-shadow: 0 14px 28px var(--brand-blue-shadow);
  }
  82% {
    box-shadow: 0 18px 34px rgba(100, 119, 232, 0.3);
  }
}

.builder-layout,
.dashboard-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tool-panel {
  padding: 1.2rem;
}

.sticky-panel {
  position: sticky;
  top: 94px;
}

.progress-list {
  display: grid;
  gap: 0.7rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0.72rem;
  background: #f9fafb;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.progress-item.active {
  color: white;
  background: var(--deep);
}

.create-wizard-section {
  min-height: calc(100vh - 76px);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 214, 102, 0.2), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(100, 119, 232, 0.13), transparent 30%),
    radial-gradient(circle at 78% 84%, rgba(110, 231, 183, 0.1), transparent 30%),
    #fffbf3;
}

.builder-wizard-container {
  display: grid;
  place-items: start center;
}

.builder-wizard-card {
  width: min(100%, 1160px);
  border-color: rgba(100, 119, 232, 0.16);
  padding: clamp(1rem, 2vw, 1.45rem);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
}

.builder-wizard-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.builder-back-link {
  flex: 0 0 auto;
}

.builder-wizard-header h2 {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.builder-wizard-header p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: #52627a;
  font-weight: 850;
}

.builder-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.builder-progress .progress-item {
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(100, 119, 232, 0.12);
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.builder-progress .progress-item span {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.builder-progress .progress-item.complete {
  color: #3942a6;
  background: #eef2ff;
}

.builder-main {
  min-width: 0;
}

.builder-wizard-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}

.builder-helper {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.builder-step-card {
  display: grid;
  min-height: min(560px, calc(100vh - 230px));
  align-content: start;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 92% 12%, rgba(139, 140, 246, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.builder-step-card h1 {
  max-width: 680px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.02;
}

.builder-title-editor {
  display: inline-flex;
  width: min(100%, 520px);
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 22px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 20px rgba(100, 119, 232, 0.06);
}

.builder-title-editor input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid rgba(100, 119, 232, 0.22);
  padding: 0.12rem 0 0.22rem;
  color: #0f172a;
  background: transparent;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
  outline: none;
}

.builder-title-editor input:focus-visible {
  border-color: rgba(100, 119, 232, 0.68);
}

.builder-title-editor span {
  color: #6477e8;
  font-size: 1.1rem;
  font-weight: 950;
}

.builder-step-card .lead {
  max-width: 640px;
  margin: 0.55rem 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
}

.builder-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.builder-option {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 119, 232, 0.16);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  text-align: center;
}

.builder-option strong {
  font-size: 0.96rem;
  font-weight: 950;
}

.builder-option span {
  display: none;
  font-size: 0.9rem;
  color: #52627a;
  font-weight: 800;
  line-height: 1.38;
}

.builder-option.selected {
  border-color: rgba(100, 119, 232, 0.56);
  color: #fff;
  background: linear-gradient(135deg, #6477e8, #8b8cf6);
  box-shadow: 0 18px 36px rgba(100, 119, 232, 0.16);
}

.builder-add-word {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1rem;
}

.builder-word-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  border-radius: 24px;
  padding: 0.85rem;
  background: rgba(238, 242, 255, 0.48);
}

.builder-word-entry textarea,
.builder-add-word input,
.builder-custom-field input {
  border-color: rgba(100, 119, 232, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.builder-custom-field {
  max-width: 420px;
  margin-top: 1rem;
}

.builder-custom-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.builder-info {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #6477e8;
  background: #eef2ff;
  cursor: help;
  font-size: 0.78rem;
  font-weight: 950;
}

.builder-validation {
  margin: 0.85rem 0 0;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
}

.builder-save-message {
  margin: 0.85rem 0 0;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  color: #166534;
  background: var(--success-soft);
  font-weight: 900;
}

.builder-word-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.builder-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 0.78rem;
  color: #3942a6;
  background: #eef2ff;
  font-weight: 900;
}

.builder-empty-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 850;
}

.builder-word-chip button {
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #3942a6;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 950;
}

.advanced-panel {
  margin-top: 1rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.52);
}

.advanced-panel summary {
  cursor: pointer;
  color: #3942a6;
  font-weight: 950;
}

.advanced-panel .word-table,
.advanced-panel .grid {
  margin-top: 0.85rem;
}

.builder-simple-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.builder-note {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 18px;
  padding: 1rem;
  color: #3942a6;
  background: #eef2ff;
  font-weight: 850;
}

.builder-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.builder-preview {
  border-radius: 26px;
  padding: 1rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(139, 140, 246, 0.16), transparent 28%),
    linear-gradient(155deg, #eef2ff 0%, #fff7ed 58%, #f5f3ff 100%);
}

.builder-preview-stage {
  min-height: 285px;
}

.builder-live-preview {
  position: sticky;
  top: 92px;
  display: grid;
  align-content: start;
  min-height: min(560px, calc(100vh - 230px));
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    radial-gradient(circle at 86% 10%, rgba(250, 204, 21, 0.15), transparent 30%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.82));
  box-shadow: 0 22px 44px rgba(100, 119, 232, 0.12);
}

.builder-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.builder-live-top .eyebrow {
  margin: 0;
}

.builder-live-top .hero-demo-category {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-live-preview h3 {
  margin: 1.25rem 0 0.85rem;
  color: #0f172a;
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  line-height: 1.05;
}

.builder-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.builder-preview-stats span {
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  color: #3942a6;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
}

.builder-live-card {
  display: grid;
  gap: 0.85rem;
  border-radius: 24px;
  padding: clamp(1rem, 2vw, 1.25rem);
  background:
    radial-gradient(circle at 15% 16%, rgba(139, 140, 246, 0.14), transparent 30%),
    radial-gradient(circle at 90% 6%, rgba(253, 224, 71, 0.28), transparent 30%),
    linear-gradient(155deg, #eef2ff 0%, #fff7ed 58%, #f5f3ff 100%);
}

.builder-live-stage {
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 2px dashed rgba(100, 119, 232, 0.18);
  border-radius: 22px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.builder-live-stage span {
  color: #6477e8;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.builder-live-stage small {
  color: #52627a;
  font-weight: 900;
}

.builder-live-stage strong {
  max-width: 100%;
  color: #0f172a;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.builder-hidden-word {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #3942a6;
  background: #eef2ff;
  font-weight: 950;
}

.builder-live-card p {
  margin: 0;
  color: #52627a;
  font-weight: 850;
}

.builder-launch-summary {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 1rem;
  border-radius: 22px;
  padding: 0.95rem;
  background: #eef2ff;
}

.builder-launch-summary span,
.builder-launch-summary small {
  color: #52627a;
  font-weight: 900;
}

.builder-launch-summary strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.builder-sort-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.builder-sort-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 18px;
  padding: 0.62rem 0.7rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.builder-sort-item.dragging {
  opacity: 0.58;
}

.builder-drag-handle {
  color: #8b8cf6;
  cursor: grab;
  font-weight: 950;
}

.builder-sort-number {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  color: #3942a6;
  background: #eef2ff;
  font-size: 0.85rem;
  font-weight: 950;
}

.builder-sort-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-sort-actions {
  display: inline-flex;
  gap: 0.3rem;
}

.builder-sort-actions button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #3942a6;
  background: #eef2ff;
  cursor: pointer;
  font-weight: 950;
}

.builder-sort-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button.disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.builder-step-actions,
.builder-final-actions {
  align-self: end;
  justify-content: flex-end;
  margin-top: 1.35rem;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  background: white;
  color: var(--ink);
}

.audience-picker,
.template-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.choice {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: white;
  color: var(--deep);
  cursor: pointer;
  font-weight: 900;
}

.choice.active {
  color: white;
  background: var(--deep);
}

.word-table {
  display: grid;
  gap: 0.7rem;
}

.word-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr auto;
  gap: 0.5rem;
  align-items: center;
}

.hosted-page {
  min-height: calc(100vh - 76px);
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(187, 247, 208, 0.38), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(139, 140, 246, 0.15), transparent 28%),
    radial-gradient(circle at 74% 92%, rgba(253, 224, 71, 0.2), transparent 28%),
    #fffbf3;
}

.hosted-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.hosted-page-header h1 {
  margin: 0.2rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.hosted-page-header p {
  max-width: 680px;
  margin: 0;
  color: #52627a;
  font-weight: 850;
}

.host-mode-label {
  margin-bottom: 0.35rem !important;
  color: #0f172a !important;
}

.hosted-host-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.hosted-lobby-card,
.host-control-panel,
.student-device-card,
.hosted-projector-shell {
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.hosted-lobby-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.qr-code {
  display: grid;
  width: min(100%, 210px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 20px;
  padding: 0.75rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 18px 36px rgba(100, 119, 232, 0.12);
}

.qr-code-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.qr-code-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.join-link-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.join-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: #0f172a;
  background: #fffbeb;
  font-weight: 950;
}

.host-control-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.host-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.host-progress span {
  min-height: 40px;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.45rem;
  color: #52627a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.host-progress span.active {
  color: #0f172a;
  background: #eef2ff;
}

.host-progress span.current {
  border-color: rgba(34, 197, 94, 0.55);
  background: #dcfce7;
}

.host-control-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(135deg, #eef2ff, #fff7ed);
}

.host-control-top h2 {
  margin: 0.45rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.host-control-top p,
.host-helper {
  margin: 0;
  color: #52627a;
  font-weight: 850;
}

.host-panel-section {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.66);
}

.host-panel-section h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.host-panel-section p {
  margin: 0;
}

.live-ready-panel {
  background: #ffffff;
}

.host-step-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.35rem;
  color: #52627a;
  font-weight: 850;
}

.host-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.host-mode-picker button {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 18px;
  padding: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.host-mode-picker button.selected,
.host-team-count button.selected {
  border-color: rgba(34, 197, 94, 0.55);
  background: #dcfce7;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.14);
}

.host-mode-picker span,
.host-team-count span {
  color: #52627a;
  font-size: 0.85rem;
  font-weight: 850;
}

.host-team-count {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.host-team-count button {
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: #0f172a;
  background: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.host-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.host-current-grid div {
  display: grid;
  gap: 0.25rem;
  border-radius: 18px;
  padding: 0.8rem;
  background: #f8fafc;
}

.host-current-grid span {
  color: #6477e8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.host-current-grid strong {
  color: #0f172a;
  overflow-wrap: anywhere;
}

.host-team-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.host-team-button {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 18px;
  padding: 0.8rem;
  color: #0f172a;
  background: #ffffff;
  text-align: left;
}

.host-team-button > button {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.host-team-button.selected {
  border-color: rgba(34, 197, 94, 0.55);
  background: #dcfce7;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.14);
}

.host-team-button span,
.host-team-button small,
.host-player-button small {
  color: #52627a;
  font-size: 0.82rem;
  font-weight: 850;
}

.host-player-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.host-player-button {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(100, 119, 232, 0.14);
  border-radius: 18px;
  padding: 0.75rem;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.host-player-button.selected {
  border-color: rgba(34, 197, 94, 0.55);
  background: #dcfce7;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.14);
}

.host-player-button span {
  color: #52627a;
  font-size: 0.82rem;
  font-weight: 850;
}

.waiting-player-list {
  display: grid;
  width: 100%;
  gap: 0.45rem;
}

.waiting-player {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  background: rgba(238, 242, 255, 0.78);
  text-align: left;
}

.waiting-player strong {
  color: #0f172a;
}

.waiting-player span {
  display: block;
  color: #52627a;
  font-size: 0.78rem;
  font-weight: 900;
}

.player-team-actions,
.team-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.player-team-actions button,
.team-edit-actions button {
  border: 1px solid rgba(100, 119, 232, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: #0f172a;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.player-team-actions button:disabled,
.team-edit-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.submitted-clue-box {
  display: grid;
  gap: 0.25rem;
  border-radius: 20px;
  padding: 1rem;
  background: #eef2ff;
}

.submitted-clue-box span {
  color: #6477e8;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.submitted-clue-box strong {
  color: #0f172a;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1;
}

.submitted-clue-box small {
  color: #52627a;
  font-weight: 850;
}

.rejection-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hosted-teams-panel {
  display: grid;
  gap: 0.65rem;
}

.hosted-teams-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.hosted-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.hosted-team-card {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(100, 119, 232, 0.12);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.8);
}

.hosted-team-card.active {
  border-color: rgba(34, 197, 94, 0.55);
  background: #dcfce7;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.14);
}

.hosted-team-card span,
.hosted-team-card small,
.hosted-team-card p {
  color: #52627a;
  font-weight: 900;
}

.hosted-team-card p {
  margin: 0;
  font-size: 0.82rem;
}

.hosted-team-card strong {
  color: #0f172a;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.projector-page {
  padding: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(187, 247, 208, 0.38), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.18), transparent 30%),
    #fffbf3;
}

.hosted-projector-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  gap: clamp(0.8rem, 2vw, 1.35rem);
  border-radius: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.projector-topbar,
.projector-meta,
.projector-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.projector-topbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 0.8rem;
}

.projector-topbar strong {
  color: #16a34a;
  font-size: 1.1rem;
  font-weight: 950;
}

.projector-topbar h1 {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 4vw, 4.3rem);
  line-height: 1;
}

.projector-topbar > span,
.projector-meta span {
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.projector-stage {
  display: grid;
  min-height: 430px;
  place-items: center;
  border-radius: 34px;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 14% 12%, rgba(139, 140, 246, 0.13), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(253, 224, 71, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.projector-join {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: min(100%, 900px);
}

.projector-join h2,
.projector-status-card h2,
.projector-result-card h2 {
  margin: 0.25rem 0 0.55rem;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1;
}

.projector-join p,
.projector-status-card p,
.projector-status-card small,
.projector-result-card p {
  color: #52627a;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 850;
}

.hosted-waiting {
  color: #16a34a !important;
}

.projector-status-card,
.projector-result-card,
.projector-clue-card {
  width: min(100%, 860px);
  text-align: center;
}

.projector-status-card span,
.projector-result-card span,
.projector-clue-card span {
  color: #6477e8;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projector-clue-card {
  display: grid;
  gap: 0.8rem;
  border: 2px dashed rgba(100, 119, 232, 0.22);
  border-radius: 32px;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(100, 119, 232, 0.16);
}

.projector-clue-card strong {
  color: #0f172a;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.9;
}

.projector-clue-card p {
  margin: 0;
  color: #16a34a;
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  font-weight: 950;
}

.projector-result-card.correct span,
.projector-result-card.winner span {
  color: #16a34a;
}

.projector-result-card.incorrect span {
  color: #fb7185;
}

.clue-pop {
  animation: clueCardIn 420ms ease-out;
}

.student-page {
  display: grid;
  place-items: center;
  padding-inline: 1rem;
}

.student-device-card {
  display: grid;
  width: min(100%, 460px);
  gap: 0.95rem;
  padding: clamp(1.1rem, 4vw, 1.6rem);
}

.student-device-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.hosted-final-card {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.hosted-final-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.hosted-error-card {
  text-align: center;
}

.student-device-card p {
  margin: 0;
  color: #52627a;
  font-weight: 850;
}

.student-team-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.student-secret-word {
  border-radius: 24px;
  padding: 1rem;
  color: #14532d;
  background: #dcfce7;
  font-size: clamp(2.2rem, 12vw, 4rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.student-rules {
  margin: 0;
  border-radius: 20px;
  padding: 1rem 1rem 1rem 2rem;
  color: #52627a;
  background: #f8fafc;
  font-weight: 850;
}

.student-clue-live {
  display: grid;
  gap: 0.5rem;
  border-radius: 24px;
  padding: 1rem;
  background: #eef2ff;
  text-align: center;
}

.student-clue-live span {
  color: #6477e8;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.student-clue-live strong {
  color: #0f172a;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 0.95;
}

.game-page {
  min-height: calc(100vh - 76px);
  padding: 36px 0;
  background:
    linear-gradient(180deg, #f0f9ff, #ffffff 45%),
    var(--paper);
}

.game-shell {
  padding: 1rem;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.score-tile {
  border-radius: var(--radius);
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.score-tile.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.score-value {
  display: block;
  color: var(--deep);
  font-size: 2rem;
  font-weight: 950;
}

.game-word-card {
  min-height: 240px;
  margin: 1rem 0;
}

.warning {
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: #fff1f2;
  color: #7f1d1d;
  font-weight: 850;
}

.sample-play-page {
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 5vw, 4.5rem) 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(250, 204, 21, 0.14), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(139, 140, 246, 0.15), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fffdf7 48%, #eef2ff 100%);
}

.sample-play-container {
  display: grid;
  place-items: center;
}

.sample-play-card {
  width: min(100%, 680px);
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(100, 119, 232, 0.18);
}

.sample-play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.sample-score-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  color: #3942a6;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(100, 119, 232, 0.08);
  font-size: 0.9rem;
  font-weight: 950;
}

.sample-play-panel {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(0.85rem, 1.8vw, 1rem);
  background:
    radial-gradient(circle at 12% 14%, rgba(139, 140, 246, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(250, 204, 21, 0.16), transparent 30%),
    linear-gradient(155deg, #eef2ff 0%, #fff7ed 52%, #f5f3ff 100%);
}

.sample-play-stage {
  display: flex;
  min-width: 0;
  min-height: clamp(300px, 35vw, 380px);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 119, 232, 0.16);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 38%),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
  text-align: center;
}

.sample-play-screen {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.15rem);
  text-align: center;
}

.sample-play-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: #3942a6;
  background: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sample-play-stage .passwordHeroText {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: normal;
  margin-inline: auto;
  color: #0f172a;
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-wrap: nowrap;
  white-space: nowrap;
  word-break: normal;
}

.sample-play-stage .passwordHeroText > span {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
}

.sample-play-clue-text {
  color: #3942a6;
}

.sample-play-word {
  color: #0f172a;
}

.sample-play-screen p {
  margin: 0;
  color: #52627a;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  font-weight: 850;
}

.sample-guess-field {
  display: grid;
  width: min(100%, 430px);
  gap: 0.45rem;
  color: #52627a;
  font-weight: 900;
  text-align: left;
}

.sample-guess-field span {
  padding-left: 0.2rem;
  font-size: 0.86rem;
}

.sample-guess-field input {
  width: 100%;
  border: 1px solid rgba(100, 119, 232, 0.22);
  border-radius: 999px;
  padding: 0.92rem 1.15rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(100, 119, 232, 0.08);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  outline: none;
}

.sample-guess-field input:focus-visible {
  border-color: rgba(100, 119, 232, 0.62);
  box-shadow: 0 0 0 4px rgba(139, 140, 246, 0.18);
}

.sample-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 950;
}

.sample-result span,
.sample-result strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.sample-result small {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 900;
}

.sample-result.correct {
  color: #166534;
  background: var(--success-soft);
}

.sample-result.missed {
  color: #7c2d12;
  background: #ffedd5;
}

.sample-play-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.95rem;
}

.final-card {
  text-align: center;
  padding: 2rem;
}

.auth-wrap {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #f0fdf4, #fff7ed);
}

.auth-card {
  width: min(520px, 100%);
  padding: 1.4rem;
}

.pricing-card.featured {
  border: 2px solid var(--green);
  transform: translateY(-8px);
}

.price {
  color: var(--deep);
  font-size: 2.25rem;
  font-weight: 950;
}

.check-list {
  padding-left: 1.2rem;
}

.check-list li {
  margin: 0.35rem 0;
}

.faq-item {
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 1rem;
  background: white;
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
  text-align: left;
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  color: #374151;
}

.faq-item.open .faq-answer {
  display: block;
}

.cta-block {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 5vw, 3rem);
  color: #082f49;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.96), rgba(255, 247, 237, 0.94)),
    linear-gradient(90deg, rgba(251, 113, 133, 0.18), rgba(139, 140, 246, 0.16));
  box-shadow: var(--shadow);
}

.footer {
  padding: 56px 0 32px;
  color: #d1fae5;
  background: var(--footer-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.4rem;
}

.footer a {
  display: block;
  margin: 0.45rem 0;
  color: #ecfdf5;
}

.footer h3 {
  color: white;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.5);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  border-radius: var(--radius);
  padding: 1.3rem;
  background: white;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1.5rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.rules-grid article {
  border-radius: var(--radius);
  padding: 0.85rem;
  background: #f0fdf4;
}

.rules-grid span {
  display: block;
  margin-top: 0.35rem;
  color: #374151;
}

.pop {
  animation: pop 420ms ease;
}

@keyframes pop {
  50% {
    transform: scale(1.05);
  }
}

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

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-grid,
  .builder-layout,
  .dashboard-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

  .builder-option-grid,
  .builder-simple-settings,
  .hosted-host-layout,
  .builder-wizard-body {
    grid-template-columns: 1fr;
  }

  .hosted-page-header,
  .host-control-top {
    align-items: stretch;
    flex-direction: column;
  }

  .hosted-lobby-card {
    position: static;
  }

  .host-player-grid,
  .host-team-picker,
  .host-current-grid,
  .hosted-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-live-preview {
    position: static;
    min-height: auto;
  }

  .builder-wizard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-flow-grid::before {
    display: none;
  }

  .setup-step-lower {
    margin-top: 0;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .benefits-stack {
    grid-template-rows: none;
  }

  .benefits-feature-card {
    min-height: 500px;
  }

  .sample-showcase-layout,
  .sample-feature-card {
    grid-template-columns: 1fr;
  }

  .sample-feature-card {
    min-height: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .game-type-grid,
  .setup-flow-grid,
  .form-grid,
  .clue-row,
  .scoreboard,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .setup-flow-section {
    padding: 58px 0 68px;
  }

  .setup-flow-heading {
    margin-bottom: 2rem;
  }

  .setup-step-card {
    min-height: auto;
    border-radius: 28px;
    padding: 1.55rem;
  }

  .setup-step-card h3 {
    margin-top: 2rem;
  }

  .setup-step-badge {
    right: 1.35rem;
    top: 3.25rem;
  }

  .setup-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .benefits-section {
    padding: 58px 0 68px;
  }

  .benefits-heading {
    margin-bottom: 2rem;
  }

  .benefits-feature-card,
  .benefit-card {
    border-radius: 28px;
    padding: 1.55rem;
  }

  .benefits-feature-card {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .benefits-feature-card h3 {
    margin-top: 2.5rem;
  }

  .benefits-floaters {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.1rem;
  }

  .benefits-floaters span,
  .benefits-floaters span:nth-child(1),
  .benefits-floaters span:nth-child(2),
  .benefits-floaters span:nth-child(3) {
    transform: none;
  }

  .benefits-label {
    right: 1.2rem;
    top: 1.35rem;
  }

  .benefits-top-bar {
    inset-inline: 1.4rem;
  }

  .benefits-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .sample-showcase-section {
    padding: 58px 0 68px;
  }

  .sample-showcase-heading {
    margin-bottom: 2rem;
  }

  .sample-feature-card {
    border-radius: 28px;
    padding: 1.55rem;
  }

  .sample-actions {
    width: 100%;
  }

  .sample-primary,
  .sample-secondary {
    width: 100%;
  }

  .password-preview-panel {
    border-radius: 22px;
    padding: 1rem;
  }

  .password-preview-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-row {
    min-height: 82px;
    border-radius: 20px;
  }

  .pricing-section {
    padding: 58px 0 68px;
  }

  .pricing-heading {
    margin-bottom: 2rem;
  }

  .pricing-grid {
    gap: 1.2rem;
  }

  .pricing-plan {
    min-height: auto;
    border-radius: 28px;
    padding: 1.55rem;
  }

  .pricing-features {
    margin-top: 1.4rem;
  }

  .pricing-cta {
    width: 100%;
  }

  .game-type-section {
    padding: 54px 0 64px;
  }

  .game-type-card {
    min-height: 330px;
    border-radius: 28px;
    padding: 1.8rem;
  }

  .game-type-line {
    left: 1.8rem;
  }

  .game-type-heading {
    margin-top: 3.4rem;
  }

  .demo-controls,
  .host-controls {
    grid-template-columns: 1fr;
  }

  .host-progress,
  .host-player-grid,
  .host-team-picker,
  .host-current-grid,
  .hosted-scoreboard {
    grid-template-columns: 1fr;
  }

  .word-row {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    min-height: 82px;
    width: min(1180px, calc(100% - 24px));
    gap: 0.5rem;
  }

  .brand {
    min-height: 48px;
    padding: 0 1rem;
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: 0.35rem;
    font-size: 0.92rem;
  }

  .nav-links a:not(.button) {
    padding: 0.55rem 0.45rem;
  }

  .nav-links .button-small {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
  }
}

/* Homepage compact scale pass */
.site-header {
  border-top-width: 8px;
}

.nav-shell {
  width: min(1160px, calc(100% - 64px));
  min-height: 84px;
}

.brand {
  min-height: 48px;
  padding: 0 1.25rem;
  font-size: 1.08rem;
}

.nav-links .button-primary {
  min-height: 46px;
  padding: 0.65rem 1.2rem;
}

.section,
.game-type-section,
.setup-flow-section,
.benefits-section,
.sample-showcase-section,
.pricing-section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.container {
  width: min(1140px, calc(100% - 64px));
}

h1 {
  font-size: clamp(3rem, 6vw, 5.25rem);
}

h2,
.game-type-heading h2,
.setup-flow-heading h2,
.benefits-heading h2,
.sample-showcase-heading h2,
.pricing-heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 1.04;
}

.lead,
.game-type-heading p:not(.game-type-eyebrow),
.setup-flow-heading p:not(.setup-flow-eyebrow),
.benefits-heading p:not(.benefits-eyebrow),
.sample-showcase-heading p:not(.sample-showcase-eyebrow),
.pricing-heading p:not(.pricing-eyebrow) {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero {
  padding: clamp(2.8rem, 5vw, 4rem) 0 clamp(2.6rem, 4vw, 3.5rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.82fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.2vw, 4.45rem);
}

.hero .lead {
  max-width: 620px;
}

.hero-actions {
  margin-top: 1rem;
}

.hero-pills {
  margin-top: 1rem;
}

.hero .eyebrow {
  margin-bottom: 0.45rem;
}

.demo-card {
  padding: 0.85rem;
}

.secret-card {
  min-height: 138px;
  margin: 0.8rem 0;
}

.secret-word {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.clue-bubble,
.guess-card {
  min-height: 74px;
  padding: 0.7rem;
}

.demo-word {
  font-size: 1.12rem;
}

.demo-controls {
  gap: 0.5rem;
}

.demo-controls .button {
  min-height: 42px;
  padding: 0.62rem 0.7rem;
  font-size: 0.9rem;
}

.game-type-heading,
.setup-flow-heading,
.benefits-heading,
.sample-showcase-heading,
.pricing-heading {
  margin-bottom: clamp(2rem, 3.5vw, 2.7rem);
}

.game-type-grid,
.setup-flow-grid,
.pricing-grid {
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.game-type-card {
  min-height: 278px;
  border-radius: 28px;
  padding: 1.55rem;
}

.game-type-card-heading {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 2.95rem;
}

.game-type-card h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.game-type-card p {
  font-size: 0.96rem;
  line-height: 1.38;
}

.game-type-line {
  left: 1.55rem;
  top: 1.55rem;
  width: 6.4rem;
  height: 0.36rem;
}

.game-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.35rem;
}

.game-type-blob {
  width: 6.3rem;
  height: 5.6rem;
}

.game-type-button {
  min-height: 42px;
  margin-top: 0.95rem;
  padding: 0.58rem 1rem;
  font-size: 0.92rem;
}

.setup-step-card {
  min-height: 455px;
  border-radius: 28px;
  padding: 1.55rem;
}

.setup-step-lower {
  margin-top: 28px;
}

.setup-top-bar {
  height: 8px;
}

.setup-icon {
  width: 54px;
  height: 54px;
  margin-top: 0.75rem;
  border-radius: 18px;
  font-size: 1.45rem;
}

.setup-step-badge {
  top: 2.7rem;
  right: 1.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
}

.setup-step-card h3 {
  margin: 1.55rem 0 0.75rem;
  font-size: clamp(1.55rem, 2.35vw, 2.1rem);
}

.setup-step-card > p {
  font-size: 0.96rem;
  line-height: 1.42;
}

.setup-mock {
  margin-top: 1.15rem;
  border-radius: 18px;
}

.setup-word-list,
.setup-settings,
.setup-password-preview {
  padding: 0.85rem;
}

.setup-pill-row span,
.setup-settings p,
.setup-settings > div {
  padding: 0.5rem 0.6rem;
  font-size: 0.86rem;
}

.setup-password-preview {
  gap: 0.75rem;
  border-radius: 22px;
}

.setup-password-word {
  min-height: 86px;
  border-radius: 18px;
}

.setup-password-pair {
  gap: 0.55rem;
}

.setup-password-pair div,
.setup-password-result {
  border-radius: 16px;
  padding: 0.65rem 0.7rem;
}

.benefits-layout {
  gap: 1.1rem;
}

.benefits-feature-card {
  min-height: 430px;
  border-radius: 28px;
  padding: 1.65rem;
}

.benefit-card {
  min-height: 148px;
  border-radius: 28px;
  padding: 1.35rem 1.5rem;
}

.benefits-feature-card h3 {
  margin-top: 2.5rem;
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

.benefit-card h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.benefits-feature-card p,
.benefit-card p {
  font-size: 0.98rem;
  line-height: 1.42;
}

.benefits-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.25rem;
}

.benefits-coral {
  width: 54px;
  height: 54px;
}

.benefits-label {
  top: 1.3rem;
  right: 1.35rem;
  padding: 0.35rem 0.65rem;
}

.benefits-tags {
  margin-top: 1.25rem;
}

.benefits-floaters {
  inset: 5.6rem 1.5rem auto auto;
}

.sample-showcase-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
}

.sample-feature-card {
  min-height: 430px;
  border-radius: 30px;
  padding: 1.75rem;
}

.sample-feature-card h3 {
  font-size: clamp(2.15rem, 3.8vw, 2.85rem);
}

.sample-feature-card p {
  font-size: 1rem;
  line-height: 1.38;
}

.sample-tags {
  margin-bottom: 1.35rem;
}

.sample-primary,
.sample-secondary {
  min-height: 46px;
}

.password-preview-panel {
  max-width: 410px;
  justify-self: end;
  border-radius: 24px;
  padding: 1rem;
}

.password-preview-word {
  min-height: 78px;
}

.password-preview-word strong {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.password-preview-flow span,
.password-preview-result span,
.password-preview-result strong {
  padding: 0.52rem;
  font-size: 0.86rem;
}

.sample-row {
  min-height: 76px;
  border-radius: 20px;
  padding: 0.75rem 0.85rem;
}

.sample-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.sample-row-text strong {
  font-size: 0.98rem;
}

.sample-row-text small {
  font-size: 0.8rem;
}

.pricing-grid {
  width: min(980px, 100%);
}

.pricing-plan {
  min-height: 500px;
  border-radius: 30px;
  padding: 1.75rem;
}

.pricing-plan h3 {
  margin-top: 1.1rem;
}

.pricing-price {
  font-size: clamp(3.5rem, 6vw, 4.7rem);
}

.pricing-coming {
  font-size: clamp(3rem, 5.6vw, 4.35rem);
}

.pricing-copy,
.pricing-features li {
  font-size: 1rem;
}

.pricing-features {
  gap: 0.72rem;
}

.pricing-cta {
  min-height: 48px;
}

@media (max-width: 1280px) {
  .nav-shell,
  .container {
    width: min(1120px, calc(100% - 48px));
  }

  .hero h1 {
    font-size: clamp(3rem, 5.8vw, 4.9rem);
  }

  .game-type-card {
    min-height: 270px;
  }

  .setup-step-card {
    min-height: 435px;
  }

  .sample-feature-card {
    grid-template-columns: minmax(250px, 0.76fr) minmax(300px, 0.9fr);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .builder-layout,
  .dashboard-layout,
  .footer-grid,
  .sample-showcase-layout,
  .sample-feature-card,
  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .setup-flow-grid,
  .game-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-step-lower {
    margin-top: 0;
  }

  .sample-feature-card {
    min-height: auto;
  }

  .password-preview-panel {
    justify-self: stretch;
    max-width: none;
  }

  .hero-demo-card {
    justify-self: stretch;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-top-width: 6px;
  }

  .nav-shell,
  .container {
    width: min(100% - 40px, 1140px);
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem 0;
  }

  .nav-links {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
  }

  .nav-links a:not(.button),
  .nav-links button {
    padding-inline: 0.5rem;
  }

  .section,
  .game-type-section,
  .setup-flow-section,
  .benefits-section,
  .sample-showcase-section,
  .pricing-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

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

  h2,
  .game-type-heading h2,
  .setup-flow-heading h2,
  .benefits-heading h2,
  .sample-showcase-heading h2,
  .pricing-heading h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-pills {
    display: none;
  }

  .hero-actions {
    margin-top: 0.85rem;
  }

  .demo-card {
    padding: 0.7rem;
  }

  .hero-demo-card {
    border-width: 8px;
    border-radius: 26px;
  }

  .hero-demo-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-demo-category {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero-game-panel {
    border-radius: 20px;
    padding: 0.85rem;
  }

  .hero-stage {
    min-height: 238px;
    border-radius: 20px;
    padding: 1rem;
  }

  .hero-stage-screen strong {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-stage-score strong {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .secret-card {
    min-height: 112px;
  }

  .clue-bubble,
  .guess-card {
    min-height: 64px;
  }

  .hero-team-strip {
    gap: 0.4rem;
  }

  .hero-team {
    min-height: 48px;
    border-radius: 14px;
    padding: 0.42rem 0.36rem;
  }

  .hero-team span {
    font-size: 0.58rem;
  }

  .hero-team strong {
    font-size: 0.98rem;
  }

  .demo-controls {
    gap: 0.45rem;
  }

  .hero-demo-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-demo-controls .button {
    padding-inline: 0.45rem;
    font-size: 0.78rem;
  }

  .demo-controls .button {
    min-height: 40px;
  }

  .hero-grid,
  .game-type-grid,
  .setup-flow-grid,
  .sample-showcase-layout,
  .sample-feature-card,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .game-type-card,
  .setup-step-card,
  .benefits-feature-card,
  .benefit-card,
  .sample-feature-card,
  .pricing-plan {
    border-radius: 24px;
    padding: 1.25rem;
  }

  .game-type-card {
    min-height: auto;
  }

  .setup-step-card {
    min-height: auto;
  }

  .sample-feature-card {
    grid-template-columns: 1fr;
  }

  .password-preview-panel {
    max-width: none;
    justify-self: stretch;
  }

  .sample-row {
    grid-template-columns: auto 1fr;
  }

  .sample-feature-card {
    gap: 0.95rem;
  }

  .sample-tags {
    margin-bottom: 1rem;
  }
}

/* Final homepage polish: cohesive cream canvas, blue-led PlayPassword actions, FAQ, CTA, and footer. */
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(250, 204, 21, 0.11), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.10), transparent 25rem),
    var(--paper);
}

.section,
.section-soft,
.section-mint,
.game-type-section,
.setup-flow-section,
.benefits-section,
.sample-showcase-section,
.pricing-section,
.faq-section,
.final-cta-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(224, 242, 254, 0.22), transparent 22rem),
    radial-gradient(circle at 88% 24%, rgba(196, 181, 253, 0.12), transparent 24rem),
    var(--paper);
}

.button-primary,
.pricing-free-cta,
.sample-primary,
.game-type-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
  font-weight: 800;
}

.button-primary:hover,
.pricing-free-cta:hover,
.sample-primary:hover,
.game-type-button:hover,
.final-cta-primary:hover,
.final-cta-secondary:hover {
  transform: translateY(-1px);
}

.button-primary:hover,
.pricing-free-cta:hover,
.sample-primary:hover,
.game-type-button:hover,
.final-cta-primary:hover {
  filter: saturate(1.04) brightness(0.98);
  box-shadow: 0 18px 34px rgba(100, 119, 232, 0.3);
}

.hero-actions .button-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.nav-links .button-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.hero-demo-controls {
  grid-template-columns: 1fr;
}

.hero-demo-controls .hero-sample-button {
  width: auto;
  min-width: 220px;
  min-height: 50px;
}

.faq-section {
  padding: clamp(3.4rem, 6vw, 5.25rem) 0 clamp(3.25rem, 5.5vw, 4.75rem);
}

.faq-heading {
  max-width: 980px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.faq-eyebrow,
.final-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.05rem;
  border-radius: 999px;
  padding: 0.46rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.faq-eyebrow {
  border: 1px solid rgba(229, 231, 235, 0.82);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

.faq-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.faq-list {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(0.9rem, 1.7vw, 1.15rem);
}

.faq-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
}

.faq-button {
  min-height: 86px;
  padding: clamp(1.15rem, 2vw, 1.65rem) clamp(1.25rem, 2.4vw, 1.9rem);
  gap: 1rem;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.faq-button:hover,
.faq-button:focus-visible {
  color: var(--deep);
}

.faq-chevron {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 clamp(1.25rem, 2.4vw, 1.9rem);
  color: var(--muted);
  transition: grid-template-rows 220ms ease, padding-bottom 220ms ease;
}

.faq-answer > p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.62;
}

.faq-item.open {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 20px 46px rgba(14, 165, 233, 0.11);
}

.faq-item.open .faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  padding-bottom: clamp(1.15rem, 2vw, 1.55rem);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.final-cta-section {
  padding: clamp(2.75rem, 5vw, 4.75rem) 0 clamp(3.25rem, 6vw, 5.5rem);
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(2rem, 4vw, 3rem);
  padding: clamp(3.25rem, 7vw, 6rem) clamp(1.35rem, 6vw, 5rem);
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(139, 140, 246, 0.24), transparent 16rem),
    linear-gradient(135deg, #23234f 0%, #4f5fd5 46%, #101a2e 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.final-cta-card h2 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 1.1rem;
  color: white;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.final-cta-card p:not(.final-cta-eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 1.8vw, 1.35rem);
  font-weight: 780;
  line-height: 1.45;
}

.final-cta-eyebrow {
  position: relative;
  z-index: 1;
  color: #fde68a;
  background: transparent;
  text-transform: lowercase;
}

.final-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.65rem, 3vw, 2.25rem);
}

.final-cta-primary,
.final-cta-secondary {
  min-height: 58px;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.final-cta-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-soft));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-blue-shadow);
}

.final-cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.final-cta-blob {
  position: absolute;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.35rem;
  background: rgba(224, 242, 254, 0.16);
  transform: rotate(9deg);
}

.final-cta-blob-one {
  top: 2.1rem;
  right: 7.5%;
}

.final-cta-blob-two {
  bottom: 2.1rem;
  left: 7.5%;
  width: 3.5rem;
  height: 3.5rem;
}

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6rem) 0 2.4rem;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 82% 14%, rgba(56, 189, 248, 0.13), transparent 22rem),
    var(--footer-navy);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg, var(--fresh), var(--green), var(--lavender), var(--coral));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) repeat(4, minmax(130px, 1fr));
  gap: clamp(2rem, 4vw, 4.25rem);
}

.footer-brand p {
  max-width: 350px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  font-weight: 780;
  line-height: 1.75;
}

.footer-logo {
  display: inline-flex;
  color: white;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 950;
}

.footer-col h3 {
  margin: 0 0 1.25rem;
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.34em;
}

.footer a {
  display: block;
  width: fit-content;
  margin: 0.74rem 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  font-weight: 820;
  transition: color 160ms ease, transform 160ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #bae6fd;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 850;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-note span {
  color: var(--fresh);
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage-screen,
  .hero-stage-clue strong,
  .hero-stage-reveal strong,
  .hero-stage-score strong,
  .hero-stage-result,
  .hero-stage-sparkle,
  .hero-confetti.show,
  .hero-demo-controls .button-primary,
  .hero-team {
    animation: none;
  }

  .faq-answer,
  .faq-chevron,
  .button-primary,
  .pricing-free-cta,
  .sample-primary,
  .game-type-button,
  .final-cta-primary,
  .final-cta-secondary,
  .footer a {
    transition: none;
  }
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .faq-section {
    padding-block: 2.75rem;
  }

  .faq-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .faq-item {
    border-radius: 22px;
  }

  .faq-button {
    min-height: 72px;
    padding: 1rem 1.1rem;
    font-size: 1.08rem;
  }

  .faq-answer {
    padding-inline: 1.1rem;
  }

  .final-cta-card {
    padding: 3rem 1.1rem;
  }

  .final-cta-card h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .final-cta-actions {
    display: grid;
  }

  .final-cta-primary,
  .final-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-play-top {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-play-top .hero-demo-category,
  .sample-score-pill {
    justify-content: center;
  }

  .sample-play-card {
    border-width: 6px;
  }

  .create-wizard-section {
    padding-block: 2rem;
  }

  .builder-wizard-card {
    padding: 0.9rem;
  }

  .builder-progress {
    grid-template-columns: 1fr;
  }

  .builder-step-card {
    min-height: auto;
    padding: 0.35rem;
  }

  .builder-add-word {
    grid-template-columns: 1fr;
  }

  .builder-word-entry {
    grid-template-columns: 1fr;
  }

  .projector-join {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .projector-stage {
    min-height: 360px;
  }

  .builder-step-actions,
  .builder-final-actions {
    display: grid;
    justify-content: stretch;
  }
}
