:root {
  --plum-950: #14040c;
  --plum-900: #240812;
  --plum-800: #3d0f22;
  --plum-700: #6b1838;
  --plum-600: #8b2248;
  --plum-500: #a82d56;
  --plum-400: #c4456e;
  --plum-300: #e084a3;
  --cream: #fff5f8;
  --ink: #2a0c16;
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 45, 86, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(107, 24, 56, 0.35), transparent 50%),
    linear-gradient(165deg, var(--plum-950) 0%, var(--plum-900) 45%, #1a0810 100%);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--plum-300), var(--plum-600) 45%, var(--plum-800));
  box-shadow: 0 0 0 3px rgba(232, 132, 163, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--plum-300);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 245, 248, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--plum-300);
}

.hero {
  position: relative;
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 30%, rgba(196, 69, 110, 0.12) 50%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-300);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--plum-300);
}

.hero-subtitle {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 245, 248, 0.78);
  font-weight: 400;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.start-panel {
  background: linear-gradient(160deg, rgba(107, 24, 56, 0.55), rgba(36, 8, 18, 0.85));
  border: 1px solid rgba(232, 132, 163, 0.22);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.panel-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.region-subtitle {
  margin: 0.35rem 0 0;
  color: rgba(255, 245, 248, 0.65);
  font-size: 0.95rem;
}

.panel-label {
  margin: 1.35rem 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-300);
}

.options-container,
.region-container {
  display: grid;
  gap: 0.75rem;
}

.options-container {
  grid-template-columns: 1fr 1fr;
}

.region-container {
  grid-template-columns: repeat(3, 1fr);
}

.option-button,
.region-button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(232, 132, 163, 0.28);
  border-radius: var(--radius);
  background: rgba(20, 4, 12, 0.45);
  color: var(--cream);
  padding: 1rem 0.85rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.option-button:hover,
.region-button:hover {
  border-color: var(--plum-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107, 24, 56, 0.45);
}

.option-button:active,
.region-button:active {
  transform: translateY(0);
}

.option-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--plum-300);
  margin-bottom: 0.35rem;
}

.option-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.button-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 245, 248, 0.55);
}

.region-button.selected {
  background: linear-gradient(145deg, var(--plum-600), var(--plum-800));
  border-color: var(--plum-400);
  box-shadow: 0 0 0 1px rgba(232, 132, 163, 0.35);
}

.region-button span {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.intro,
.guidelines {
  margin-top: 2rem;
  padding: 1.25rem 0;
}

.intro h2,
.guidelines h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.intro p,
.guidelines li {
  color: rgba(255, 245, 248, 0.78);
  line-height: 1.55;
}

.seo-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: rgba(255, 245, 248, 0.78);
  line-height: 1.7;
}

.intro-more {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.intro-more a,
.faq-item a {
  color: var(--plum-300);
}

.section-lead {
  margin: 0 0 1rem;
  color: rgba(255, 245, 248, 0.65);
}

.faq-section,
.features-section,
.resources-section {
  margin-top: 2rem;
  padding: 0.5rem 0 1rem;
}

.faq-section h2,
.features-section h2,
.resources-section h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  background: rgba(107, 24, 56, 0.28);
  border: 1px solid rgba(232, 132, 163, 0.15);
  border-radius: 12px;
  padding: 0.35rem 0.95rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.65rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 0.85rem;
  color: rgba(255, 245, 248, 0.75);
  line-height: 1.5;
}

.features-grid,
.resources-container {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .features-grid,
  .resources-container {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item,
.resource-card {
  background: rgba(107, 24, 56, 0.28);
  border: 1px solid rgba(232, 132, 163, 0.15);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.feature-item h3,
.resource-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-item p,
.resource-card p {
  margin: 0;
  color: rgba(255, 245, 248, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.resource-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  border-color: var(--plum-400);
  transform: translateY(-2px);
}

.rules-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.rules-grid li {
  background: rgba(107, 24, 56, 0.28);
  border: 1px solid rgba(232, 132, 163, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.site-footer {
  text-align: center;
  padding: 1.75rem 1.25rem 2rem;
  color: rgba(255, 245, 248, 0.45);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--plum-300);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.terms-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 2, 6, 0.72);
  backdrop-filter: blur(6px);
}

.terms-popup[hidden] {
  display: none !important;
}

.terms-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, var(--plum-800), var(--plum-950));
  border: 1px solid rgba(232, 132, 163, 0.3);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: var(--cream);
}

.terms-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
}

.term-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.85rem 0;
  font-size: 0.92rem;
  cursor: pointer;
}

.term-item a {
  color: var(--plum-300);
}

.term-item input {
  margin-top: 0.2rem;
  accent-color: var(--plum-400);
}

.terms-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.btn-ghost,
.btn-primary {
  font-family: inherit;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border: 0;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(232, 132, 163, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--plum-400), var(--plum-700));
  color: white;
  box-shadow: 0 8px 24px rgba(168, 45, 86, 0.4);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 640px) {
  .options-container {
    grid-template-columns: 1fr;
  }

  .region-options {
    display: none;
  }

  .nav-links {
    gap: 0.55rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1rem 1.25rem 0.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .start-panel {
    padding: 1.15rem;
  }

  .option-button {
    padding: 1.15rem 1rem;
  }

  .option-title {
    font-size: 1.15rem;
  }

  .container {
    padding-bottom: 1.5rem;
  }
}
