/* RaPlay landing — editorial palette, dark-first.
   Палитра: ink #0E0E0E, paper #F2F0EC, accent #FF8E3C, deep #07070b. */

:root {
  --bg: #07070b;
  --bg-soft: #101018;
  --paper: #F2F0EC;
  --ink: #0E0E0E;
  --accent: #FF8E3C;
  --accent-deep: #D7372C;
  --muted: rgba(242, 240, 236, 0.62);
  --hairline: rgba(242, 240, 236, 0.12);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.topbar .brand {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar .brand svg { width: 132px; height: auto; }
.topbar nav a {
  color: var(--muted);
  margin-left: 24px;
  font-weight: 500;
  font-size: 15px;
}
.topbar nav a:hover { color: var(--paper); text-decoration: none; }

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero .logo svg { width: 280px; height: auto; color: var(--paper); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 32px auto 16px;
  max-width: 760px;
}
.hero p.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ffae6b; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--paper); text-decoration: none; }

.hero .meta {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* --- Store stub-buttons --- */
.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-width: 200px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--paper);
  transition: border-color .15s ease, transform .12s ease;
}
.store-btn:hover { border-color: var(--paper); text-decoration: none; transform: translateY(-1px); }
.store-glyph { font-size: 26px; line-height: 1; }
.store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.store-name { font-size: 18px; font-weight: 700; }
.store-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 142, 60, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.store-caption {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 28px;
}
.cta-row { margin-top: 4px; }

/* --- Waitlist --- */
.container.narrow { max-width: 680px; }
.section-waitlist { text-align: center; }
.waitlist-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
}
.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.waitlist-form input[type="email"]::placeholder { color: rgba(242, 240, 236, 0.4); }
.waitlist-status {
  min-height: 22px;
  margin: 18px auto 0;
  font-size: 15px;
  color: var(--muted);
}
.waitlist-status.is-ok { color: var(--accent); }
.waitlist-status.is-err { color: var(--accent-deep); }

/* Honeypot — визуально скрыт, но доступен ботам */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Screen-reader-only label */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3-tile grid --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tile {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 24px;
}
.tile-icon { font-size: 34px; line-height: 1; }
.tile h3 { font-size: 20px; font-weight: 700; margin: 14px 0 8px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }

/* --- Screenshots --- */
.screens-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.screen-placeholder {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen-placeholder img { width: 100%; height: auto; display: block; }
.screen-placeholder figcaption {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.screens-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* --- Manifesto --- */
.section-manifesto { text-align: center; }
.manifesto {
  margin: 0 auto;
  max-width: 640px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  text-align: left;
}
.manifesto p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--paper);
  margin: 0 0 18px;
}
.manifesto p:last-child { margin-bottom: 0; }

/* --- FAQ --- */
.faq { margin-top: 32px; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  width: 18px;
  display: inline-block;
}
.faq details[open] summary::before { content: "–"; }
.faq details p {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 0;
  padding-left: 30px;
}

/* --- Features grid --- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 24px;
}
.feature .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 14px 0 8px;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* --- Pillars --- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}
.pillar h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.pillar p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 10px;
}
.pillar .tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- About page --- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.prose h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}
.prose p {
  font-size: 17px;
  color: var(--paper);
  margin: 0 0 16px;
}
.prose ul {
  padding-left: 22px;
  color: var(--muted);
}
.prose ul li { margin-bottom: 6px; }
.prose .accent { color: var(--accent); }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--paper); }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-meta { color: var(--muted); font-size: 13px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar nav a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 64px 0 56px; }
  .hero .logo svg { width: 220px; }
  .features { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .tiles { grid-template-columns: 1fr; }
  .screens-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .store-row { flex-direction: column; align-items: stretch; }
  .store-btn { min-width: 0; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"],
  .waitlist-form .btn { width: 100%; }
}

@media (max-width: 480px) {
  .topbar nav a:not(:last-child) { display: none; }
  .screens-strip { grid-template-columns: 1fr; }
}
