:root {
  color-scheme: light;
  --play-green: #01875f;
  --play-green-dark: #016a4a;
  --play-green-soft: #e6f4ee;
  --play-blue: #4285f4;
  --play-blue-soft: #e8f0fe;
  --play-red: #ea4335;
  --play-yellow: #f9ab00;
  --play-amber-soft: #fef7e0;
  --ink: #202124;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --bg: #ffffff;
  --surface: #f1f3f4;
  --accent: var(--play-green);
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.1), 0 1px 3px rgba(60, 64, 67, 0.08);
}

* {
  box-sizing: border-box;
}

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

/* Header */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand svg {
  width: 22px;
  height: 22px;
}

.nav-link {
  color: var(--play-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-error {
  color: var(--play-red);
  font-weight: 600;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Buttons: Material pill */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
  background: var(--play-green);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: var(--play-green-dark);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--bg);
  color: var(--play-green);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--play-green-soft);
  box-shadow: none;
}

.btn-group {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  background: var(--play-green-soft);
  color: var(--play-green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Sign in with Google (branded) */

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  margin-top: 1.75rem;
}

.btn-google:hover {
  background: #f8f9fa;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  max-width: 30rem;
}

.hero-roles {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-roles a {
  color: var(--play-green);
  font-weight: 600;
  text-decoration: none;
}

.hero-roles a:hover {
  text-decoration: underline;
}

.hero-roles span {
  color: var(--border);
}

/* Hero */

.hero {
  padding: 1.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-copy > p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 32rem;
}

/* Payment-flow visual: Developer -> Pool -> Tester.
   Desktop: roomy vertical stack. Mobile: one compact horizontal row. */

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.flow-text strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.flow-text small {
  color: var(--muted);
  font-size: 0.85rem;
}

.node-ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-ic svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-blue .node-ic {
  background: var(--play-blue);
}

.node-green .node-ic {
  background: var(--play-green);
}

.node-amber .node-ic {
  background: var(--play-yellow);
}

.flow-pool {
  border-color: var(--play-green);
  background: var(--play-green-soft);
}

.flow-pool .pool-amt {
  margin-left: auto;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--play-green-dark);
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0;
}

.flow-arrow-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--play-green-dark);
  background: var(--play-green-soft);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
}

.flow-arrow::after {
  content: "\2193";
  color: var(--border);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.flow-caption {
  display: none;
}

.paychips {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.paychips span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.paychips .chip-crypto {
  color: var(--play-green-dark);
  background: var(--play-green-soft);
  border-color: transparent;
}

/* Sections */

.section {
  margin-top: 4.5rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.25rem;
  max-width: 34rem;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Cards */

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

/* Two-sided value cards */

.side-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.side-card .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.side-dev .role-badge {
  color: var(--play-blue);
  background: var(--play-blue-soft);
}

.side-tester .role-badge {
  color: var(--play-green-dark);
  background: var(--play-green-soft);
}

.side-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.side-card > p {
  margin-bottom: 1.5rem;
}

.side-headline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.side-headline .big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--play-green-dark);
}

.side-dev .side-headline .big {
  color: var(--play-blue);
}

.side-headline .small {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pipeline: step chips joined by arrows */

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pstep {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--surface);
  border-radius: 14px;
  padding: 0.9rem 0.5rem;
}

.pnum {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.side-dev .pnum {
  background: var(--play-blue);
}

.side-tester .pnum {
  background: var(--play-green);
}

.pstep span.plabel {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.parrow {
  display: flex;
  align-items: center;
  color: var(--border);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Get-paid-anywhere band */

.payout-anywhere {
  background: var(--surface);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
}

.payout-anywhere .globe {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--play-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payout-anywhere .globe svg {
  width: 30px;
  height: 30px;
  stroke: var(--play-green);
  fill: none;
  stroke-width: 1.8;
}

.payout-anywhere h2 {
  font-size: 1.7rem;
  font-weight: 700;
}

.payout-anywhere p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.payrail-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.payrail-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.payrail-chips .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Trust strip */

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

.trust-item {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.trust-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--play-green-soft);
  color: var(--play-green);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trust-content h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.trust-content p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

/* Pricing */

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  background: var(--bg);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 34rem;
  margin: 0 auto;
}

.pricing-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.pricing-card p {
  font-size: 1.05rem;
  color: var(--muted);
}

/* FAQ */

.faq {
  margin-top: 1.5rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item details {
  cursor: pointer;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--play-green);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-item details[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  background: var(--surface);
}

.faq-item .faq-content {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item .faq-content p {
  margin: 0;
}

/* Footer */

footer {
  margin-top: 5rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
}

footer p {
  margin: 0;
  color: var(--muted);
}

/* Forms */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--play-green);
  box-shadow: 0 0 0 3px var(--play-green-soft);
}

/* Dashboards */

.dashboard {
  max-width: 760px;
}

/* Tester stats header: tests joined + average rating from developers */

.tester-stats {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 1.75rem;
}

.stat-tile {
  flex: 1;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--play-green-dark);
}

.stat-num .star {
  color: var(--play-yellow);
}

.stat-cap {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.enrollment-card {
  margin-bottom: 1.5rem;
}

.enrollment-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.enrollment-header h2 {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--play-green-soft);
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--play-green-dark);
  white-space: nowrap;
}

.payout-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--play-green);
  margin: 0 0 1rem 0;
}

.payout-state {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0 0;
}

.enrollment-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  border-left: 4px solid var(--play-green);
}

.enrollment-panel h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.enrollment-panel p {
  margin: 0 0 0.75rem 0;
}

.enrollment-panel ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.enrollment-panel li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

.profile-form {
  max-width: 640px;
}

.profile-form h1 {
  margin-bottom: 0.5rem;
}

/* Tables */

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--play-green-dark);
}

/* Responsive */

@media (max-width: 860px) {
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding: 1.5rem 1.1rem 2.5rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero {
    padding: 0.5rem 0 0;
  }

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

  /* Lead with the money-flow visual on mobile: it explains the product
     faster than any paragraph, so it sits at the very top of the hero. */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* The money-flow graphic is desktop-only; on mobile it crowded out the
     headline and CTA, so the copy carries the story alone. */
  .flow-wrap {
    display: none;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .section {
    margin-top: 2.75rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .side-card {
    padding: 1.35rem;
  }

  .payout-anywhere {
    padding: 2rem 1.25rem;
  }

  .btn,
  .btn-google {
    width: 100%;
    justify-content: center;
  }

  .nav {
    padding: 0.7rem 1.1rem;
  }

  .nav-brand {
    font-size: 1.05rem;
  }

  /* Pipelines stay a single glanceable 3-across row, just tighter. */
  .pipeline {
    gap: 0.25rem;
  }

  .pstep {
    padding: 0.7rem 0.35rem;
    border-radius: 12px;
  }

  .pstep .plabel {
    font-size: 0.75rem;
  }

  .parrow {
    font-size: 1rem;
  }

  .tester-stats {
    gap: 0.6rem;
  }

  .stat-num {
    font-size: 1.55rem;
  }
}
