/* Pts marketing page. Colors mirror the app's Theme.swift tokens. */

:root {
  --bg: #F4F3F8;
  --surface: #FFFFFF;
  --fg: #18181B;
  --muted: #8A8A93;
  --line: #E2E1E8;
  --accent: #4B4BC8;
  --accent-tint: #EEEEFB;
  --on-accent-tint: #3A3AA8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F12;
    --surface: #1C1C21;
    --fg: #F4F4F6;
    --muted: #9A9AA3;
    --line: #3A3A42;
    --accent: #6E6EE6;
    --accent-tint: #26264A;
    --on-accent-tint: #B8B8FF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

body {
  line-height: 1.5;
}

a {
  color: var(--accent);
}

/* Layout */

.topbar,
main,
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.topbar {
  padding-top: 1.5rem;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
}

.back:hover,
.back:focus-visible {
  color: var(--fg);
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
}

.section-lede {
  color: var(--muted);
  font-weight: 500;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding-top: clamp(2rem, 6vw, 4rem);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 900;
  margin-top: 1.5rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  max-width: 34ch;
  margin-top: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.cta[aria-disabled="true"] {
  cursor: default;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Illustrative device */

.device {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 44px;
  background: #18181B;
  box-shadow: var(--shadow);
}

.screen {
  border-radius: 34px;
  background: #F4F3F8;
  color: #18181B;
  padding: 1.5rem 1rem 1rem;
}

.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.screen-game {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.screen-round {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #EEEEFB;
  color: #3A3AA8;
  font-size: 0.75rem;
  font-weight: 800;
}

.screen-target {
  color: #8A8A93;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.card {
  background: var(--solid);
  color: var(--on);
  border-radius: 18px;
  padding: 0.7rem 0.9rem 0.8rem;
  margin-bottom: 0.5rem;
}

.card-lead {
  padding: 1rem 0.9rem 1.1rem;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
}

.card-score {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.card-lead .card-score {
  font-size: 1.9rem;
}

.crown {
  width: 1.1rem;
  height: 1.1rem;
  fill: #FFD43B;
}

.bar {
  height: 6px;
  border-radius: 999px;
  margin-top: 0.5rem;
  background: color-mix(in srgb, var(--on) 25%, transparent);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--on);
}

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.quick span {
  padding: 0.55rem 0;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.feature {
  background: var(--surface);
  border-radius: 22px;
  padding: 1.5rem;
}

.feature p,
.details p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Templates */

.templates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.templates li {
  background: var(--solid);
  color: var(--on);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.templates strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.templates span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Details */

.details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

/* Pts+ */

.plus {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.plus-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.plus-head p {
  color: var(--muted);
  font-weight: 500;
}

.plus-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.plus-list li {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.plus-list strong {
  display: block;
  color: var(--fg);
  font-weight: 800;
}

/* Legal pages (privacy policy) */

.legal {
  max-width: 680px;
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.legal h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
}

.legal-date {
  color: var(--muted);
  margin: 0.5rem 0 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2.25rem 0 0.6rem;
}

.legal p,
.legal ul {
  margin-bottom: 0.9rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.3rem;
}

/* Footer */

.footer {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer p + p {
  margin-top: 0.35rem;
}

/* Responsive */

@media (max-width: 860px) {
  .hero,
  .plus {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .templates,
  .details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .plus-list,
  .details {
    grid-template-columns: 1fr;
  }
}
