:root {
  color-scheme: dark;
  --bg: #07080b;
  --card: rgba(16, 18, 22, 0.88);
  --text: #f4f1ea;
  --muted: #b7b0a6;
  --faint: #8a8378;
  --line: rgba(244, 241, 234, 0.12);
  --brass: #e0b56a;
  --down: #e07a72;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 0.98; max-width: 11em; }
h1 span { display: block; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; max-width: 18ch; }
#price h2 { max-width: 16em; white-space: pre-line; }
p { margin: 0; }
#mind {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #05060a;
}
.nav, main, footer { position: relative; z-index: 1; }
.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 6vw;
  background: rgba(7, 8, 11, 0.97);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 700; letter-spacing: -0.04em; font-size: 20px; }
.nav nav { display: flex; gap: 18px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.text { background: none; border: 0; color: var(--muted); cursor: pointer; }
.linkish { text-decoration: underline; text-underline-offset: 3px; color: var(--brass); }
.pill, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
}
.pill { border: 1px solid rgba(224, 181, 106, 0.55); color: var(--brass); }
.btn { border: 0; }
.btn.solid { background: var(--brass); color: #1c1812; font-weight: 700; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(224, 181, 106, 0.55);
  color: var(--brass);
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.download .btn.solid { margin-top: 8px; }
.download .lede.narrow { max-width: 36em; color: var(--muted); margin-top: 12px; }
.download .note { margin-top: 14px; max-width: 36em; }
.download-stub-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.os-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.os-card {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(224, 181, 106, 0.45);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.os-card:hover {
  border-color: var(--brass);
  background: rgba(224, 181, 106, 0.08);
}
.os-name { font-weight: 650; font-size: 17px; color: var(--text); }
.os-hint { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.download-back { margin-bottom: 10px; padding: 0; }
.modal-download h2 { margin-top: 0; }
@media (max-width: 420px) {
  .os-picker { grid-template-columns: 1fr; }
}
.nav-end .pill[data-download-stub] { display: none; }
@media (min-width: 900px) {
  .nav-end .pill[data-download-stub] { display: inline-flex; }
}
.kicker {
  margin: 0 0 12px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding: 108px 6vw 32px;
}
.sigil {
  position: absolute;
  z-index: 1;
  left: 66%;
  top: calc(58vh - 8px);
  margin: 0;
  display: flex;
  gap: 0.12em;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-weight: 560;
  font-size: clamp(42px, 5.2vw, 76px);
  letter-spacing: 0.18em;
  line-height: 1;
  color: rgba(244, 241, 234, 0.9);
  mix-blend-mode: screen;
  text-shadow: 0 0 28px rgba(224, 181, 106, 0.35);
  user-select: none;
  cursor: default;
}
.sigil span {
  display: inline-block;
  animation: sigil-float 5.2s ease-in-out infinite;
}
.sigil span:nth-child(2) { animation-delay: -0.8s; }
.sigil span:nth-child(3) { animation-delay: -1.7s; }
.sigil span:nth-child(4) { animation-delay: -2.4s; }
.sigil span:nth-child(5) { animation-delay: -3.2s; }
.sigil span:nth-child(6) { animation-delay: -4.1s; }
.sigil i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s, filter 0.7s;
}
.sigil:hover span,
.sigil.is-on span { animation-play-state: paused; }
.sigil:hover span:nth-child(1) i,
.sigil.is-on span:nth-child(1) i { transform: translate(-54px, -34px) rotate(-22deg); opacity: 0.15; }
.sigil:hover span:nth-child(2) i,
.sigil.is-on span:nth-child(2) i { transform: translate(-22px, -62px) rotate(14deg); opacity: 0.2; }
.sigil:hover span:nth-child(3) i,
.sigil.is-on span:nth-child(3) i { transform: translate(6px, -48px) rotate(-10deg); opacity: 0.12; }
.sigil:hover span:nth-child(4) i,
.sigil.is-on span:nth-child(4) i { transform: translate(-10px, 42px) rotate(18deg); opacity: 0.18; }
.sigil:hover span:nth-child(5) i,
.sigil.is-on span:nth-child(5) i { transform: translate(36px, -26px) rotate(22deg); opacity: 0.14; }
.sigil:hover span:nth-child(6) i,
.sigil.is-on span:nth-child(6) i { transform: translate(64px, 30px) rotate(-16deg); opacity: 0.1; }
@keyframes sigil-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .sigil span { animation: none; }
  .sigil i { transition: none; }
}
.hero-copy {
  max-width: 460px;
  padding: 22px 22px 18px;
  background: rgba(8, 9, 12, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.lede { margin-top: 16px; color: var(--muted); max-width: 58ch; }
.hero-actions { margin-top: 22px; }
.hint { margin-top: 14px; color: var(--faint); font-size: 13px; font-family: var(--mono); }
.block {
  scroll-margin-top: 84px;
  margin: 0 6vw 28px;
  padding: 32px;
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.tape {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 8, 11, 0.94);
  border: 1px solid rgba(224, 181, 106, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.tape canvas {
  display: block;
  width: 100%;
  height: 280px;
}
.tape .note { margin: 0; padding: 0 16px 14px; }
.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.steps span, .day p, .limits li, .faq p, .plans p { color: var(--muted); }
.toast {
  margin-top: 18px;
  max-width: 560px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(224, 122, 114, 0.7);
  display: grid;
  gap: 4px;
}
.toast span, .note { color: var(--muted); font-size: 14px; }
.note { margin-top: 8px; color: var(--faint); }
.day { display: grid; gap: 28px; align-items: center; }
.day ol { margin: 16px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.ticket {
  padding: 28px 18px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(224, 181, 106, 0.45);
  background: rgba(224, 181, 106, 0.06);
}
.ticket small { color: var(--brass); font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.ticket strong { display: block; margin: 10px 0 16px; font-size: clamp(42px, 7vw, 72px); letter-spacing: 0.06em; }
.ticket button { background: transparent; border: 1px solid rgba(224, 181, 106, 0.55); color: var(--brass); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.auth-ticket { display: grid; gap: 14px; align-content: start; }
.auth-field { display: grid; gap: 6px; margin: 12px 0; }
.auth-field span { font-size: 13px; color: var(--muted); }
.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.auth-btn { width: 100%; margin-top: 4px; }
.auth-error { color: var(--down); font-size: 14px; margin: 0; }
.auth-note { margin-top: 8px; font-size: 14px; }
.modal[hidden] {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.modal-card {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  max-height: min(88vh, 540px);
  overflow: auto;
  padding: 20px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(224, 181, 106, 0.35);
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-card h2 { font-size: 22px; margin-bottom: 10px; }
.auth-switch-note { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.profile-email { font-family: var(--mono); color: var(--brass); margin-bottom: 12px; font-size: 13px; word-break: break-all; }
.profile-plan { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.profile-plan strong { font-size: 17px; }
.profile-trial { display: grid; gap: 10px; }
.profile-trial > .note { font-size: 13px; line-height: 1.45; }
.profile-trial > p:not(.note) { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.promo-ticket {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(224, 181, 106, 0.35);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  justify-items: center;
}
.promo-ticket small {
  color: var(--brass);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}
.promo-ticket strong {
  display: block;
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  word-break: break-all;
  text-align: center;
  max-width: 100%;
}
.promo-ticket button {
  background: transparent;
  border: 1px solid rgba(224, 181, 106, 0.55);
  color: var(--brass);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.modal-card .auth-btn { padding: 10px 14px; font-size: 14px; }
.modal-card .auth-field { margin: 10px 0; }
.modal-card .auth-field span { font-size: 12px; }
.modal-card .auth-field input { padding: 10px 12px; font-size: 15px; }
.logout { margin-top: 14px; font-size: 14px; }
body.modal-open { overflow: hidden; }
.plans { display: grid; gap: 14px; margin-top: 20px; }
.plans article { padding: 8px 0 0; }
.plans article.featured { padding: 28px 32px 24px; }
.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 48px;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
.amount small { font-size: 16px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.plans p { text-wrap: pretty; line-height: 1.45; white-space: pre-line; }
.featured { border-radius: 16px; border: 1px solid rgba(224, 181, 106, 0.45); }
.featured .btn { margin-top: 16px; }
.limits { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.limits li { padding-left: 14px; border-left: 2px solid var(--brass); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-top: 8px; }
footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 6vw 40px;
  color: var(--faint);
}
footer span { color: var(--text); font-weight: 700; }
@media (max-width: 800px) {
  .nav nav { display: none; }
  .hero { align-items: flex-end; padding-bottom: 6vh; }
  .hero-copy, .block { padding: 20px; }
  .sigil { left: 50%; top: 52px; font-size: 28px; letter-spacing: 0.22em; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(1), .steps li:nth-child(2) { border-top: 0; padding-top: 0; }
  .day { max-width: 52rem; }
  .plans { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
