/* Play Designer — landing, privacy, support and 404 pages. Same palette as
   the app and the team viewer: navy, turf green, chalk, coach orange. */

:root {
  color-scheme: light dark;
  --navy: #0b1422;
  --navy-raised: #131e30;
  --orange: #f56e1a;
  --orange-press: #d95d10;
  --orange-ink: #b84a08;
  --orange-wash: rgba(245, 110, 26, 0.12);
  --turf: #338045;
  --chalk: #f5f2eb;
  --bg: #f1f2f6;
  --surface: #ffffff;
  --text: #0b1422;
  --muted: #5b6474;
  --hairline: rgba(11, 20, 34, 0.1);
  --shadow: 0 1px 2px rgba(11, 20, 34, 0.06), 0 6px 20px rgba(11, 20, 34, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left));
  --gutter-r: max(20px, env(safe-area-inset-right));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c15;
    --surface: #131e30;
    --text: #f5f2eb;
    --muted: #97a1b2;
    --hairline: rgba(255, 255, 255, 0.09);
    --shadow: none;
    --orange-ink: #ff9a5c;
    --orange-wash: rgba(245, 110, 26, 0.18);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--orange-ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 9vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34em;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.5;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 110, 26, 0.35);
}

.btn-primary:hover {
  background: var(--orange-press);
}

.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.fine {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.demo-card {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.demo {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--turf);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.demo-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.demo-card figcaption strong {
  color: #fff;
  font-weight: 700;
}

.demo-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font: 900 15px/1 var(--font-round);
}

/* -------------------------------------------------------------- features */

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 38em;
  margin: 0 0 28px;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--orange-wash);
  color: var(--orange);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.callout {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.callout .btn {
  justify-self: start;
}

/* ----------------------------------------------------------------- prose */

.page-head {
  background: var(--navy);
  color: #fff;
}

.page-head .container {
  padding-top: 36px;
  padding-bottom: 36px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.prose {
  max-width: 720px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.summary {
  margin-bottom: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 18px;
}

.summary ul {
  margin-bottom: 0;
}

.faq {
  margin: 0 0 28px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow);
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--text);
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child,
.faq .answer ol:last-child {
  margin-bottom: 0;
}

.faq .answer ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.contact {
  padding: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}

.contact h2 {
  margin: 0 0 6px;
}

.contact p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
}

.contact a.btn {
  color: #fff;
}

.not-found {
  max-width: 520px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.not-found .code {
  margin: 0 0 8px;
  color: var(--orange);
  font: 900 64px/1 var(--font-round);
}

.not-found h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- larger */

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .callout {
    grid-template-columns: 1fr auto;
    padding: 28px 32px;
  }

  .callout .btn {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .section {
    padding: 80px 0;
  }
}
