/* The RoleplayLab landing page (index.html), after the Hugbug landing
   page's layout, in RoleplayLab's purple. Always dark, like the stage. The
   privacy, terms and support pages keep site.css. */
:root {
  color-scheme: dark;
  --bg: #15111c;
  --bg-card: #221b2d;
  --bg-card-hover: #2a2138;
  --line: rgb(255 255 255 / 0.07);
  --accent: #6b3fa0;
  --accent-hover: #7e57c2;
  --accent-bright: #b28cf0;
  --accent-glow: rgb(126 87 194 / 0.35);
  --band: #3e2563;
  --pop: #e45ab8;
  --pop-bright: #ff7ad9;
  --gold: #f5c86a;
  --text: #efe9f7;
  --text-soft: #d8cee6;
  --text-muted: #a99cbc;
  --text-faint: #7d7290;
  --radius: 14px;
  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Shoelace's dialog and input in the same purple. */
  --sl-color-primary-600: var(--accent);
  --sl-color-primary-500: var(--accent-hover);
  --sl-input-focus-ring-color: var(--accent-glow);
  --sl-font-sans: var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.material-symbols-outlined { font-size: 22px; line-height: 1; }

.page {
  min-height: 100vh;
  background: radial-gradient(1200px 640px at 80% -10%, rgb(126 87 194 / 0.28), transparent 60%), var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--accent-bright); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 96px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.06;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1-pop {
  display: block;
  width: fit-content;
  /* The gradient only paints inside the box; room for the descenders. */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  background: linear-gradient(100deg, var(--accent-bright) 0%, var(--pop) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.hero-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px var(--accent-glow), 0 4px 16px rgb(0 0 0 / 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: 600 16px/1 var(--font);
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 36px var(--accent-glow), 0 2px 8px rgb(0 0 0 / 0.4);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 44px rgb(126 87 194 / 0.5), 0 2px 8px rgb(0 0 0 / 0.4); }
.btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* Sections */
.section { padding-bottom: 96px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 38px; font-weight: 600; color: #fff; }
.section-head p { font-size: 17px; color: var(--text-muted); margin-top: 8px; }

/* Two ways to play */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.way {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
}
.way-icon {
  font-size: 30px;
  color: var(--accent-bright);
}
.way h3 { font-size: 22px; font-weight: 600; color: #fff; margin-top: 12px; }
.way ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 16px;
}
.way li { margin: 8px 0; }
.way strong { color: #fff; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature { transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgb(178 140 240 / 0.45); }
.feature .material-symbols-outlined { font-size: 28px; color: var(--accent-bright); }
.feature h3 { font-size: 19px; font-weight: 600; color: #fff; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* Templates */
.band {
  background:
    radial-gradient(600px 320px at 12% 10%, rgb(245 200 106 / 0.18), transparent 70%),
    radial-gradient(700px 420px at 92% 85%, rgb(228 90 184 / 0.45), transparent 70%),
    linear-gradient(125deg, #2e1b4d 0%, var(--accent) 48%, #9c3f9a 100%);
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
}
.band .wrap {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.band-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.band-intro h2 { font-size: 38px; font-weight: 600; color: #fff; }
.band-intro p { font-size: 18px; line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }
.pill {
  align-self: flex-start;
  border: 1.5px solid var(--pop-bright);
  color: var(--pop-bright);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.templates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.template {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.3);
  transition: transform 0.2s ease;
}
.template:hover { transform: translateY(-3px); }
.template img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.template h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.7));
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Privacy and footer */
.contact {
  padding-top: 0;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.contact h2 { font-size: 30px; font-weight: 600; color: #fff; }
.contact p { font-size: 17px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); }

/* Get a Game Link */
.link-dialog::part(panel) {
  background: var(--bg-card);
  border-radius: 16px;
  max-width: 520px;
}
.link-dialog::part(title) { font-size: 20px; font-weight: 600; }
.link-intro { color: var(--text-soft); margin-bottom: 14px; }
.link-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}
.link-warning .material-symbols-outlined { color: var(--accent-bright); }
.link-open {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 15px/1 var(--font);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.link-open:hover { background: var(--accent-hover); color: #fff; }
sl-dialog:not(:defined) { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 24px; padding-bottom: 72px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .section-head h2, .band-intro h2 { font-size: 30px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
    .templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .wrap { padding-top: 72px; padding-bottom: 72px; }
  .contact { padding-top: 64px; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
}

/* Secondary and on-band buttons. */
.btn.secondary { background: transparent; border: 1.5px solid var(--accent-bright); color: var(--accent-bright); box-shadow: none; }
.btn.secondary:hover { background: rgb(178 140 240 / 0.12); color: #fff; }
.btn.light { background: #fff; color: var(--accent); box-shadow: 0 12px 36px rgb(0 0 0 / 0.3); }
.btn.light:hover { background: var(--text); color: var(--accent); }

/* Play with a Link. */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 64px; border-radius: var(--radius); background: rgb(0 0 0 / 0.22); color: var(--text-soft); font-size: 16px; line-height: 1.5; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); font-weight: 700; }
.steps strong { color: #fff; }
.band-actions { display: flex; }

/* About. */
.about-body { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.about-body p { font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.about-body .about-privacy { font-size: 15px; color: var(--text-muted); margin-top: 10px; }
.dialog-steps { margin: 0; padding-left: 22px; color: var(--text-soft); }
.dialog-steps li { margin: 8px 0; }

@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* A section that follows a purple stripe needs room above its heading. */
.band + .section { padding-top: 64px; }

/* Play with a Link, centered. */
.band-centered .wrap { align-items: center; text-align: center; }
.band-centered .band-intro { align-items: center; margin: 0 auto; }
.band-centered .steps { width: 100%; text-align: left; }
.band-centered .band-actions { justify-content: center; }
