/* Landing page of the club bot. Same room as the app: near-black with a warm tint and brass. Fonts are local files: the
   page must open where Google Fonts does not. */

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: 'Playfair Display', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0a0908;
  --surface: #151310;
  --surface-2: #1c1914;
  --line: rgba(212, 175, 55, 0.16);
  --line-strong: rgba(212, 175, 55, 0.38);
  --fg: #f3ecdc;
  --muted: #a99f8a;
  --gold: #d9b24a;
  --gold-hi: #f4dd91;
  --gold-lo: #9c7826;
  --gold-ink: #241a06;
  --accent-text: #5fd29b;
  --wine: #8b1f33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(900px 500px at 70% -5%, rgba(212, 175, 55, 0.1), transparent 70%), var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold-hi);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

main,
.top,
footer {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding: 10px max(16px, calc((100% - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-hi);
  text-decoration: none;
}

.chip {
  width: 28px;
  height: 28px;
}

.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
}

.top nav a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.button.small {
  flex: none;
  white-space: nowrap;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.button:hover {
  border-color: var(--gold);
}

.button.primary {
  border-color: var(--gold-lo);
  background: linear-gradient(180deg, var(--gold), var(--gold-lo));
  color: var(--gold-ink);
}

.button.primary:hover {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 64px;
  border-top: 0;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--gold-hi);
}

.lead {
  margin: 18px 0 26px;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--fg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Phones with screenshots */

.phone {
  margin: 0;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-phone {
  justify-self: center;
  width: min(300px, 100%);
}

.phone figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Cards of reasons */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li,
.plan {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.cards h3 {
  margin-bottom: 8px;
  color: var(--gold-hi);
}

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

/* Screenshots */

.shot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.shot-row .phone {
  width: min(260px, 100%);
}

/* Steps */

.step-list {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-list h3 {
  margin-bottom: 4px;
}

.step-list p {
  color: var(--muted);
}

.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-hi);
}

/* Price */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

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

.plan.accent {
  border-color: var(--gold-lo);
}

.plan.accent h3 {
  color: var(--gold-hi);
}

.amount {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.amount span {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan ul {
  margin: 0 0 14px;
  padding-left: 1.1em;
}

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

/* Soon */

.soon p {
  max-width: 40rem;
  color: var(--muted);
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

.faq summary:focus-visible,
.button:focus-visible,
.top a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Closing */

.final {
  text-align: center;
}

.final h2 {
  margin-bottom: 20px;
}

footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .hero-phone {
    width: min(260px, 74%);
  }

  .top nav {
    display: none;
  }

  .top .button {
    margin-left: auto;
  }

  .brand {
    font-size: 1.1rem;
  }

  section {
    padding: 40px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 340px) {
  .brand {
    font-size: 1rem;
  }

  .top .button.small {
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

/* ---- Chips flying behind the page: the app's splash, dimmer. Fixed, so they stay put while the page scrolls. ---- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 65% at 50% 46%, rgba(138, 28, 52, 0.22), rgba(74, 12, 28, 0.14) 45%, transparent 78%);
}

.chips-bg {
  display: block;
  width: 100%;
  height: 100%;
}

/* A dark veil over the chips, heavier at the edges: the text in the middle always sits on calm dark. */
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(10, 9, 8, 0.35), rgba(10, 9, 8, 0.8)),
    rgba(10, 9, 8, 0.2);
}

.phone picture {
  display: block;
}

/* ---- Sections rise into view (the class is set by site.js, so without it everything simply shows) ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

.phone.reveal {
  transform: translateY(40px) scale(0.97);
}

.phone.reveal.shown {
  transform: none;
}

/* Hover: the cards and plans lift a little, the screenshots too. */
.cards li,
.plan,
.shot-row .phone img {
  transition: transform 260ms ease, border-color 260ms ease;
}

@media (hover: hover) {
  .cards li:hover,
  .plan:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
  }

  .shot-row .phone:hover img {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .phone.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
