/* Questkeep web — the app's design system on the web: always dark, a quiet
   three-stop diagonal backdrop, translucent hairline cards, Fraunces display
   titles over Inter, and a single gold accent. */

:root {
  --base: #0d0d0f;
  --g1: #17171a;
  --g2: #0d0d0f;
  --g3: #141216;
  --text: #f3f2ef;
  --muted: rgba(243, 242, 239, 0.66);
  --faint: rgba(243, 242, 239, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.045);
  --raised: rgba(255, 255, 255, 0.075);
  --accent: #e0ae5e;
  --accent-soft: rgba(224, 174, 94, 0.15);
  --on-accent: #0b0b0d;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --maxw: 1080px;
  --read: 720px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
}

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

html {
  background: var(--base);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.65 var(--body);
  color: var(--text);
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}

h3 {
  font-family: var(--body);
  font-size: 18px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.read {
  max-width: var(--read);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(13, 13, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav a.hide-sm {
    display: none;
  }
  .nav {
    gap: 14px;
  }
  .brand span {
    font-size: 19px;
  }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #e8bb72;
}

.btn-quiet {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  background: var(--raised);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 11px;
}

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

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--text);
  color: #111;
  text-decoration: none;
  font: 600 15px/1.1 var(--body);
}

.store small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.7;
}

.store.soon {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  cursor: default;
}

.store svg {
  width: 22px;
  height: 22px;
}

/* ── Sections ─────────────────────────────────────────── */
section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.phones {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 270px;
  border-radius: 40px;
  padding: 9px;
  background: #050506;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone img {
  border-radius: 32px;
  width: 100%;
  height: auto;
}

.phones .p1 {
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 3;
}

.phones .p2 {
  left: 4%;
  top: 70px;
  transform: rotate(-7deg) scale(0.86);
  opacity: 0.55;
}

.phones .p3 {
  right: 4%;
  top: 70px;
  transform: rotate(7deg) scale(0.86);
  opacity: 0.55;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .phones {
    height: 520px;
  }
  .phone {
    width: 230px;
  }
}

/* ── Cards & grids ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

@media (max-width: 560px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.game-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.cover {
  height: 170px;
  position: relative;
  background: linear-gradient(135deg, #4a3a1c 0%, #1a1712 55%, #15130f 100%);
}

.cover svg {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.18;
  color: #f2c14e;
}

.game-card .body {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--raised);
  color: var(--muted);
}

.tag.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Screens strip */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 22px 24px;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip figure {
  margin: 0;
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
}

.strip .phone {
  position: static;
  width: 100%;
  border-radius: 32px;
  padding: 7px;
}

.strip .phone img {
  border-radius: 26px;
}

.strip figcaption {
  font-size: 14px;
  color: var(--muted);
}

/* Pricing */
.price {
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.price.pro {
  border-color: rgba(224, 174, 94, 0.45);
  background: linear-gradient(160deg, rgba(224, 174, 94, 0.1), rgba(255, 255, 255, 0.03) 60%);
}

.price .amount {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
}

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

.ticks li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0AE5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.ticks li.lock::before {
  background: var(--raised)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A19E96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--faint);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform 220ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
}

/* ── Content pages ────────────────────────────────────── */
.page {
  padding: 56px 0 96px;
}

.crumbs {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.prose {
  display: grid;
  gap: 18px;
}

.prose h2 {
  font-size: 24px;
  margin-top: 18px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
}

.callout.warn {
  border-color: #f0806e;
}

.callout b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.callout.warn b {
  color: #f0806e;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  background: var(--surface);
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

.list {
  overflow: hidden;
}

.list a,
.list .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.list a:last-child,
.list .row:last-child {
  border-bottom: 0;
}

.list a:hover {
  background: var(--surface);
}

.list .meta {
  margin-left: auto;
  color: var(--faint);
  font-size: 14px;
  text-align: right;
}

.list .sub {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.chev {
  color: var(--faint);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.fact {
  padding: 16px 18px;
}

.fact .k {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact .v {
  margin-top: 4px;
  font-weight: 600;
}

.tier {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
}

.cta {
  padding: 32px;
  display: grid;
  gap: 16px;
  border-color: rgba(224, 174, 94, 0.35);
  background: linear-gradient(160deg, rgba(224, 174, 94, 0.1), rgba(255, 255, 255, 0.03) 60%);
}

.stack {
  display: grid;
  gap: 28px;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  justify-content: space-between;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer nav b {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a {
  color: var(--faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.disclaimer {
  margin-top: 32px;
  max-width: 720px;
  font-size: 13px;
}

/* ── Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 640ms var(--ease) both;
  }
  .rise.d1 {
    animation-delay: 80ms;
  }
  .rise.d2 {
    animation-delay: 160ms;
  }
  .rise.d3 {
    animation-delay: 240ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.facts.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 560px) {
  .facts.three {
    grid-template-columns: repeat(2, 1fr);
  }
}
