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

/* The night of the app: graphite, amber and gold. The page is made of the app's own things —
   a deck to draw from, a date drum, real screens — not of feature cards. */
:root {
  --bg: #0d0b0f;
  --surface: #17141a;
  --surface-2: #211c25;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e9c77b;
  --amber: #f2b46a;
  --amber-2: #e0884c;
  --text: #f6f1ea;
  --soft: #d9cfc3;
  --muted: #9d94a1;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 'Onest', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand span { white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--amber); font-weight: 800; }
.top-link { font-size: 15px; font-weight: 600; color: var(--amber); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 29px; font-weight: 700; font-size: 18px; color: #23140a; text-decoration: none; background: linear-gradient(180deg, var(--amber), var(--amber-2)); box-shadow: 0 10px 28px rgba(224, 136, 76, 0.28); transition: transform 0.18s var(--out), filter 0.2s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.97); }

.num { font-weight: 800; color: var(--gold); letter-spacing: 2px; font-size: 13px; }

/* ---------- 1. The deck ---------- */
.draw { position: relative; padding-block: 18px 72px; text-align: center; overflow-x: clip; }
.draw::before { content: ''; position: absolute; left: 50%; top: 360px; width: min(640px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(242, 180, 106, 0.15), transparent); pointer-events: none; z-index: -1; }
.draw h1 { margin: 26px auto 10px; max-width: 15ch; font-size: clamp(40px, 9vw, 76px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.draw h1 em { font-style: normal; color: var(--amber); }
.draw .sub { margin: 0 auto; max-width: 30em; color: var(--soft); font-size: clamp(16px, 2.2vw, 19px); }

.table { position: relative; margin: 40px auto 0; width: min(100%, 860px); display: grid; grid-template-columns: 1fr; justify-items: center; gap: 26px; }
.deck { position: relative; width: 200px; height: 343px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; transition: transform 0.35s var(--spring); }
.deck .rest { position: absolute; inset: 0; border-radius: 13px; background: url('card-back.svg') center / cover; }
.deck .rest:nth-child(1) { transform: translate(9px, 11px) rotate(3deg); filter: brightness(0.55); }
.deck .rest:nth-child(2) { transform: translate(4px, 5px) rotate(1.5deg); filter: brightness(0.75); }
.deck.holding { transform: scale(0.97); }
.card3d { position: absolute; inset: 0; perspective: 1400px; transition: transform 0.9s var(--spring); }
.card3d .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.card3d .side { position: absolute; inset: 0; border-radius: 13px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
.card3d .side img, .card3d .side svg { width: 100%; height: 100%; display: block; }
.card3d .face { transform: rotateY(180deg); }
.deck.open .card3d { transform: translateY(-12px); }
.deck.open .card3d .flip { transform: rotateY(180deg); }
.deck.open { cursor: default; }
.hold { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.hold svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.hold circle { fill: none; stroke-width: 4; }
.hold .track { stroke: rgba(255, 255, 255, 0.12); }
.hold .fill { stroke: var(--amber); stroke-linecap: round; }
.hold .dot { fill: var(--gold); stroke: none; }
.reading { display: none; max-width: 460px; text-align: left; }
.reading.show { display: block; }
.reading > * { animation: rise 0.6s var(--out) backwards; }
.reading > :nth-child(2) { animation-delay: 0.08s; } .reading > :nth-child(3) { animation-delay: 0.16s; } .reading > :nth-child(4) { animation-delay: 0.24s; } .reading > :nth-child(5) { animation-delay: 0.32s; }
.reading .kicker { font-size: 14px; color: var(--gold); font-weight: 600; }
.reading h2 { margin: 2px 0 2px; font-size: 42px; letter-spacing: -1px; line-height: 1.05; }
.reading .keys { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.reading p.text { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--soft); }
.reading .next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.reading .next span { font-size: 14px; color: var(--muted); line-height: 1.35; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. Your sky ---------- */
.sky-sec { padding-block: 64px; border-top: 1px solid var(--line); }
.sky-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.sec-h { margin: 8px 0 12px; font-size: clamp(32px, 6vw, 52px); line-height: 1.04; letter-spacing: -1.4px; font-weight: 800; }
.sec-p { margin: 0; color: var(--soft); font-size: 18px; max-width: 30em; }
.sec-p + .sec-p { margin-top: 12px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; }
.drums { position: relative; display: grid; grid-template-columns: 0.8fr 1.6fr 1fr; height: 220px; border-radius: 18px; background: var(--bg); overflow: hidden; }
.drums::before, .drums::after { content: ''; position: absolute; left: 0; right: 0; height: 88px; z-index: 2; pointer-events: none; }
.drums::before { top: 0; background: linear-gradient(var(--bg), rgba(13, 11, 15, 0)); }
.drums::after { bottom: 0; background: linear-gradient(rgba(13, 11, 15, 0), var(--bg)); }
.band { position: absolute; left: 8px; right: 8px; top: 88px; height: 44px; border-radius: 12px; background: rgba(242, 180, 106, 0.12); border: 1px solid rgba(242, 180, 106, 0.35); pointer-events: none; }
.drum { position: relative; z-index: 1; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; padding-block: 88px; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.drum::-webkit-scrollbar { display: none; }
.drum div { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 19px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.drum div.on { color: var(--text); font-weight: 700; }
.calc .btn { width: 100%; margin-top: 14px; }
.result { display: none; margin-top: 16px; }
.result.show { display: block; }
.result .row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); animation: rise 0.5s var(--out) backwards; }
.result .row:nth-child(2) { animation-delay: 0.12s; } .result .row:nth-child(3) { animation-delay: 0.24s; }
.result .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--amber); background: rgba(242, 180, 106, 0.1); border: 1px solid rgba(233, 199, 123, 0.28); }
.result .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.result .ic svg .dot { fill: currentColor; stroke: none; }
.result b { display: block; font-size: 18px; }
.result p { margin: 2px 0 0; color: var(--soft); font-size: 16px; line-height: 1.5; }
.result .more { display: block; margin-top: 8px; padding: 14px 4px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; animation: rise 0.5s var(--out) 0.36s backwards; }
.result .more a { color: var(--amber); font-weight: 600; }

/* ---------- 3. Inside MAX: the real screens ---------- */
.inside { padding-block: 64px 40px; border-top: 1px solid var(--line); }
.phones { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 34px -20px 0; padding: 0 20px 18px; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phone { flex: 0 0 236px; margin: 0; scroll-snap-align: start; }
.phone .frame { position: relative; border-radius: 34px; padding: 7px; background: #26222a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 50px rgba(0, 0, 0, 0.45); }
.phone .frame img { border-radius: 28px; aspect-ratio: 390 / 844; object-fit: cover; }
.phone h3 { margin: 16px 4px 4px; font-size: 19px; letter-spacing: -0.2px; }
.phone p { margin: 0 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- 4. Prices as a list ---------- */
.prices { padding-block: 56px; border-top: 1px solid var(--line); }
.list { margin: 26px 0 0; padding: 0; list-style: none; max-width: 760px; }
.list li { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list .what { font-size: 19px; font-weight: 700; }
.list .what small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.list .dots { flex: 1; border-bottom: 1px dotted rgba(233, 199, 123, 0.35); transform: translateY(-6px); min-width: 20px; }
.list .sum { font-size: 22px; font-weight: 800; color: var(--amber); white-space: nowrap; }
.list .sum.free { color: var(--gold); }
.pay { margin: 18px 0 0; color: var(--muted); font-size: 15px; max-width: 46em; }
.pay a { color: var(--amber); }

/* ---------- 5. Rules, numbered like the arcana ---------- */
.rules { padding-block: 56px; border-top: 1px solid var(--line); }
.rules ol { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 980px; }
.rules li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.rules li span { font-weight: 800; color: var(--gold); font-size: 15px; letter-spacing: 1px; padding-top: 3px; }
.rules li p { margin: 0; color: var(--soft); font-size: 17px; }
.rules li b { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }

/* ---------- 6. Questions ---------- */
.faq { padding-block: 56px; border-top: 1px solid var(--line); }
.qa { margin-top: 22px; max-width: 820px; }
.q { border-bottom: 1px solid var(--line); }
.q:first-child { border-top: 1px solid var(--line); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-size: 18px; font-weight: 600; }
.q button i { flex: none; position: relative; width: 22px; height: 22px; }
.q button i::before, .q button i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; border-radius: 1px; background: var(--amber); transition: transform 0.35s var(--out); }
.q button i::after { transform: rotate(90deg); }
.q.open button i::after { transform: rotate(0deg); }
/* The answer opens to its real height, so it slides rather than jumps. */
.q .a { overflow: hidden; height: 0; transition: height 0.38s var(--out); }
.q .a p { margin: 0; padding: 0 0 20px; color: var(--soft); font-size: 17px; max-width: 46em; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.38s var(--out); }
.q.open .a p { opacity: 1; transform: none; }
.q .a a { color: var(--amber); }

/* ---------- 7. Last call ---------- */
.last { padding-block: 72px 80px; border-top: 1px solid var(--line); text-align: center; }
.last img { width: 96px; height: 96px; margin: 0 auto 18px; }
.last h2 { margin: 0 0 10px; font-size: clamp(34px, 7vw, 58px); line-height: 1.04; letter-spacing: -1.6px; }
.last p { margin: 0 auto 26px; color: var(--muted); max-width: 28em; }

footer { border-top: 1px solid var(--line); padding-block: 26px 40px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
footer nav a { color: var(--text); text-decoration: none; }
footer nav a:hover { color: var(--amber); }
footer p { margin: 4px 0; }

/* Documents */
.doc { max-width: 760px; padding-block: 20px 48px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.1; letter-spacing: -0.8px; margin: 10px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc p, .doc li { color: #ddd3c7; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--amber); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); text-decoration: none; }

@media (min-width: 820px) {
  .wrap { padding-inline: 36px; }
  .table.opened { grid-template-columns: 260px 1fr; align-items: center; justify-items: start; gap: 56px; }
  .deck { width: 230px; height: 395px; justify-self: center; }
  .reading { max-width: none; }
  .sky-grid { grid-template-columns: 1fr 440px; align-items: start; gap: 60px; }
  .phones { overflow: visible; margin: 40px 0 0; padding: 0; justify-content: space-between; }
  .phone { flex: 1 1 0; max-width: 250px; }
  .phone:nth-child(2), .phone:nth-child(4) { transform: translateY(36px); }
  .inside { padding-bottom: 76px; }
  .rules ol { grid-template-columns: 1fr 1fr; gap: 28px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
