/* whataboutphase.scriptum.ru — the app's own control-surface language:
   near-black field, monochrome chrome, coral L / cyan R, red record. */

:root {
  --field: #0c0d10;
  --field-lift: #191b20;
  --panel: #15171c;
  --ink: #f4efea;
  --ink-soft: #c9c0b8;
  --ink-dim: #9c928a;
  --ink-faint: #7c726a;
  --hair: rgba(255, 255, 255, 0.08);
  --coral: #ff6a4d;
  --cyan: #46c9d4;
  --red: #ff4d3d;
  --mono: "SF Mono", ui-monospace, Menlo, "IBM Plex Mono", "Cascadia Mono",
    monospace;
  --sans: "Avenir Next", Avenir, Futura, "Century Gothic", "Trebuchet MS",
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--field-lift) 0%, var(--field) 55%),
    var(--field);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Faint tape hiss over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.column {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Type ─────────────────────────────────────────────────────────── */

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 10px 0 14px;
}

h2.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

h2.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: var(--ink-faint); }
a:hover { text-decoration-color: var(--coral); }

strong { color: var(--ink); font-weight: 600; }

.mono { font-family: var(--mono); }

/* ── Header nameplate (sub-pages) ─────────────────────────────────── */

.nameplate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
}

.nameplate img { width: 40px; height: 40px; border-radius: 9px; }

.nameplate a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nameplate .kicker { letter-spacing: 0.28em; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero { padding-top: 56px; padding-bottom: 26px; text-align: center; }

.hero .sub {
  max-width: 480px;
  margin: 0 auto 26px;
  color: var(--ink-dim);
}

.wheel {
  width: min(340px, 78vw);
  margin: 8px auto 30px;
  display: block;
}

.meta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 22px 0 0;
}

.meta-line .l { color: var(--coral); }
.meta-line .r { color: var(--cyan); }

.store-pill {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 30px;
  border-radius: 999px;
  background: #e8e3dc;
  color: #15171c;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.store-pill:hover { background: var(--ink); text-decoration: none; }

/* ── Wheel animation ──────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-text { to { transform: rotate(-360deg); } }

.loop-l, .loop-r, .rim-text {
  transform-origin: 250px 250px;
}

/* Two identical loops, two clocks: they drift apart and come home —
   the whole idea of the app in one animation. */
.loop-l { animation: spin 48s linear infinite; }
.loop-r { animation: spin 43.2s linear infinite; }
.rim-text { animation: spin-text 120s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .loop-l, .loop-r, .rim-text { animation: none; }
  .loop-r { transform: rotate(24deg); }
  .reveal { animation: none !important; opacity: 1 !important; }
}

/* ── Load reveal ──────────────────────────────────────────────────── */

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; animation: up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding-top: 72px; padding-bottom: 6px; }

/* Process index */
.processes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
}

.processes li {
  background: var(--panel);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-soft);
}

.processes .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.processes li:hover { color: var(--ink); }

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

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.step {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 20px 18px 14px;
}

.step .glyph { font-size: 20px; line-height: 1; }
.step .glyph.rec { color: var(--red); }
.step h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.step p { font-size: 13.5px; color: var(--ink-dim); margin: 0; }

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

/* Screens */
.screens {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding-top: 10px;
}

.shot { max-width: 250px; }

.shot img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  display: block;
}

.shot figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding-top: 12px;
}

.shot:last-child { transform: translateY(26px); }

@media (max-width: 540px) {
  .screens { flex-direction: column; align-items: center; }
  .shot:last-child { transform: none; }
}

/* Price */
.price-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 26px 26px 20px;
}

.price-card .big {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.price-card p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 0; }

/* ── Prose pages (support / privacy) ──────────────────────────────── */

.prose { padding-top: 40px; padding-bottom: 10px; }
.prose h2.rule { margin-top: 44px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

dl.faq { margin: 0; }
dl.faq dt { color: var(--ink); font-weight: 600; margin-top: 22px; }
dl.faq dd { margin: 6px 0 0; color: var(--ink-dim); font-size: 15px; }

.contact-pill {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #e8e3dc;
  color: #15171c;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.contact-pill:hover { background: var(--ink); text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  margin-top: 70px;
  border-top: 1px solid var(--hair);
  padding: 26px 0 44px;
}

footer .column {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--ink); }
