:root {
  --ink: #070b14;
  --ink-2: #10182a;
  --ivory: #f4efe2;
  --ivory-dim: #c9c1ae;
  --gold: #e0b656;
  --gold-dim: #8c7340;
  --blue: #3ecbff;
  --line: rgba(224, 182, 86, 0.35);
  --danger: #ffb4b0;
  --ok: #d5eccf;
  --max: 72rem;
  --text: 42rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: Manrope, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.78), rgba(7, 11, 20, 0.92) 34%, #070b14 72%),
    url("/art/hall.jpg") center top / cover no-repeat,
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 500;
}

img { max-width: 100%; }

a { color: var(--gold); text-underline-offset: 0.18em; }

a:hover { color: var(--ivory); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}

.skip:focus { top: 0.75rem; }

.top, .foot, main { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem max(1rem, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

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

.mark-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.62rem;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(224, 182, 86, 0.45);
}

.word { display: grid; }

.word-main { letter-spacing: 0.14em; }

.word-sub {
  margin-top: 0.22rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.15rem; }

.nav a {
  color: var(--ivory-dim);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  font-size: 0.92rem;
}

.nav a[aria-current="page"], .nav a:hover { color: var(--gold); }

main { padding: 2.2rem 0 3.5rem; }

.kicker {
  margin: 0 0 0.6rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

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

h1 { font-size: clamp(2.05rem, 4vw, 3rem); margin: 0 0 0.8rem; }

h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 2rem 0 0.6rem; }

h3 { font-size: 1.15rem; margin: 1.3rem 0 0.35rem; }

.lede { max-width: 40rem; color: var(--ivory-dim); font-size: 1.12rem; margin-bottom: 0.4rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}

.screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.screen {
  margin: 0;
  width: min(100%, 24rem);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  border: 1px solid rgba(243, 215, 138, 0.75);
  box-shadow:
    0 0 0 1px rgba(101, 64, 27, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(224, 182, 86, 0.16);
}

.screen figcaption {
  margin-top: 0.45rem;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.icon-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.35rem;
  padding: 0;
  margin: 0.4rem 0 0;
}

.icon-row li {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-icon {
  display: block;
  width: min(100%, 4.6rem);
  aspect-ratio: 146 / 148;
  background-image: url("/art/nav-strip.jpg");
  background-repeat: no-repeat;
  background-size: 700% 100%;
  border-radius: 0.85rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.icon-home { background-position: 0% 0; }
.icon-play { background-position: 16.6667% 0; }
.icon-trainer { background-position: 33.3333% 0; }
.icon-atom { background-position: 50% 0; }
.icon-puzzles { background-position: 66.6667% 0; }
.icon-cups { background-position: 83.3333% 0; }
.icon-profile { background-position: 100% 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.card {
  background: rgba(16, 24, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 1.1rem;
}

.card h2 { margin-top: 0; }

.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.tag.off { color: var(--blue); border-color: rgba(62, 203, 255, 0.4); }

.missing, .note {
  border: 1px solid var(--gold);
  background: rgba(224, 182, 86, 0.08);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
}

.prose { max-width: var(--text); }

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

.prose strong { color: var(--ivory); font-weight: 600; }

ul, ol { padding-left: 1.15rem; }

li + li { margin-top: 0.35rem; }

table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.4rem;
}

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

th { color: var(--gold); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

fieldset {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem 0.9rem;
}

legend { padding: 0 0.25rem; color: var(--ivory); }

.form { display: grid; gap: 0.85rem; max-width: var(--text); }

label { display: grid; gap: 0.35rem; color: var(--ivory); font-size: 0.95rem; }

input, textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--ivory);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

textarea { min-height: 7rem; resize: vertical; }

.check { grid-template-columns: 1.25rem 1fr; align-items: start; column-gap: 0.7rem; }

.check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin-top: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
}

p:has(> .button),
p:has(> button) {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

button:hover, .button:hover { background: var(--ivory); color: var(--ink); }

.button.ghost {
  background: transparent;
  color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.actions .button { margin-top: 0; }

#delete-status { min-height: 1.4em; color: var(--ivory); }

#delete-preview {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--ink-2);
}

#delete-preview pre {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--ivory-dim);
  margin: 0.4rem 0 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--ivory-dim);
  font-size: 0.92rem;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.7rem; }

.foot a { color: var(--ivory); }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, minmax(0, 24rem)); }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .icon-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.8rem;
}

.lang select {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.72);
  color: var(--ivory);
  font: inherit;
  font-size: 0.92rem;
  padding: 0 0.85rem;
}

@media (max-width: 719px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 0.1rem;
  }

  .top-tools { display: contents; }

  .lang { grid-column: 2; grid-row: 1; justify-self: end; }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: visible;
    gap: 0;
  }

  .nav a {
    padding: 0 0.2rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .lang select {
    min-height: 40px;
    font-size: 0.85rem;
    padding: 0 0.7rem;
  }

  .word-main { font-size: 1.05rem; letter-spacing: 0.08em; }
  .word-sub { letter-spacing: 0.2em; }
}

html { scroll-behavior: smooth; scroll-padding-top: 8rem; }

.stage {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 1.2rem;
}

.stage-copy { max-width: 38rem; }

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.92;
  margin: 0 0 0.85rem;
}

.quiet {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--ivory-dim);
  font-size: 0.95rem;
}

.device {
  width: min(100%, 22rem);
  margin: 0;
  padding: 0.45rem;
  border-radius: 1.85rem;
  background:
    linear-gradient(180deg, rgba(243, 215, 138, 0.35), transparent 28%),
    linear-gradient(180deg, #2a2418, #0c1018 46%);
  border: 1px solid rgba(224, 182, 86, 0.78);
  box-shadow:
    0 0 0 1px rgba(80, 52, 18, 0.65),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.device-hero { width: min(100%, 20rem); justify-self: center; order: -1; }

.device-side { width: min(100%, 16.5rem); margin-top: 1.1rem; }

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
}

.device figcaption,
.panel figcaption {
  margin-top: 0.55rem;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.band {
  margin-top: 4.2rem;
}

.band h2 { margin-top: 0; }

.split {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.board-band {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.board-shot {
  display: block;
  width: min(100%, 46rem, calc(100dvh - 9.25rem));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.bots, .plans, .stats, .duo {
  display: grid;
  gap: 0.9rem;
}

.bots, .strengths {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
}

.bot, .plan, .duo article {
  background: rgba(16, 24, 42, 0.88);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
}

.duo article { padding: 1.25rem 1.2rem 1.35rem; }

.duo h2 { margin-top: 0.15rem; }

.duo p:last-child { margin-bottom: 0; color: var(--ivory-dim); }

.bot img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
}

.bot p, .plan p { margin: 0.35rem 0.95rem 0.9rem; color: var(--ivory-dim); }

.bot .who {
  margin: 0.85rem 0.95rem 0;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.bot .piece {
  margin: 0.25rem 0.95rem 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.stats { grid-template-columns: 1fr; }

.stat {
  padding: 1rem 0.8rem 1.05rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(16, 24, 42, 0.8);
}

.stat.featured {
  border-color: rgba(224, 182, 86, 0.85);
  background: rgba(224, 182, 86, 0.08);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat span { color: var(--ivory-dim); font-size: 0.92rem; }

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.05rem 1.2rem;
}

.plan h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.85rem;
}

.plan p { margin: 0.4rem 0 0; }
.plan .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ivory);
  line-height: 1;
}
.plan .price small { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ivory-dim); }
.plan .year { color: var(--ivory-dim); font-size: 0.95rem; }
.plan .offer { margin-top: 0.85rem; }
.plan.open {
  border-color: rgba(224, 182, 86, 0.9);
  background:
    linear-gradient(180deg, rgba(224, 182, 86, 0.14), rgba(16, 24, 42, 0.9) 42%);
}
.plan .state {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.plan.later .state { color: var(--blue); }

.strengths {
  display: grid;
  gap: 0.7rem;
}

.strengths li {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(16, 24, 42, 0.72);
  display: grid;
  gap: 0.15rem;
}

.strengths strong { color: var(--ivory); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.strengths span { color: var(--ivory-dim); }

@media (min-width: 720px) {
  .bots { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(18rem, 1.05fr) 0.95fr; }
  .stage { grid-template-columns: 1.05fr 0.95fr; padding-top: 2rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .device-hero { justify-self: end; order: 0; width: min(100%, 18.5rem); }
  .strengths { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .bots { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 719px) {
  .hero-title { font-size: clamp(3rem, 14vw, 4.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
