@font-face {
  font-family: Nunito;
  src: url("assets/nunito-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  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;
}
@font-face {
  font-family: Nunito;
  src: url("assets/nunito-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Nunito;
  src: url("assets/nunito-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  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;
}
@font-face {
  font-family: Nunito;
  src: url("assets/nunito-cyrillic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  --paper: #f1eade;
  --stone: #e7ddcb;
  --ink: #251f19;
  --muted: #60564a;
  --line: #c9b9a0;
  --bronze: #78502e;
  --night: #201b16;
  --night-deep: #17130f;
  --light: #f5ecde;
  --light-muted: #d1c1ac;
  --light-line: #65533e;
  --gold: #ddb782;
  --radius-panel: 24px;
  --radius-image: 16px;
  --radius-icon: 14px;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #9a5a2c;
  outline-offset: 4px;
}

.site-header :focus-visible,
.masthead :focus-visible,
.privacy :focus-visible,
.tour-panel :focus-visible {
  outline-color: var(--gold);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

p,
li {
  line-height: 1.65;
}

h1,
h2,
.tour-text h3,
.platform h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2.35rem, 5.5vw, 4.75rem);
}

.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--light);
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.masthead {
  background: var(--night-deep);
  color: var(--light);
}

.header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--light-line);
}

.brand {
  font: 400 1.6rem/1 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.header nav {
  display: flex;
  gap: clamp(16px, 3vw, 44px);
}

.header nav a,
.header-feedback,
.site-header .text-link {
  color: var(--light-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.header nav a,
.header-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.header nav a:hover,
.header-feedback:hover,
.site-header .text-link:hover {
  color: var(--light);
}

.header nav a[href="#download"] {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  background: transparent;
  color: var(--light-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.lang-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: #cfa87416;
}

.header-feedback span {
  margin-left: 8px;
}

.masthead {
  border-bottom: 5px double var(--light-line);
  background:
    radial-gradient(ellipse at 50% 42%, #32261b 0, transparent 68%),
    var(--night-deep);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(56px, 8.5vw, 124px) clamp(66px, 9.5vw, 138px);
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.55vw, 22px);
  max-width: 100%;
}

.hero-mark {
  width: clamp(76px, 17vw, 206px);
  flex: 0 1 auto;
  min-width: 0;
  filter: drop-shadow(0 10px 16px #0005);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin-inline-end: -0.13em;
  font-size: clamp(2.55rem, 10vw, 8.15rem);
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  color: #d7a972;
}

@supports (background-clip: text) {
  .hero h1 {
    background: linear-gradient(170deg, #f0c992 10%, #c9965e 58%, #aa7441);
    background-clip: text;
    color: transparent;
  }
}

.hero-expansion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.4em;
  margin-top: clamp(13px, 2vw, 22px);
  color: var(--light-muted);
  font-size: clamp(0.875rem, 1.25vw, 1.05rem);
}

.hero-actions,
.feedback-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
}

.hero-actions {
  justify-content: center;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
}

.button {
  min-height: 50px;
  padding: 12px 19px;
  text-align: center;
  line-height: 1.3;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.primary {
  color: var(--light);
  background: var(--night);
}

.primary:hover {
  background: #49362a;
}

.masthead .primary {
  color: var(--night-deep);
  background: var(--gold);
}

.masthead .primary:hover {
  background: #ebc999;
}

.masthead .secondary {
  color: var(--light);
  border-color: #967854;
}

.masthead .secondary:hover {
  background: #cfa87416;
  border-color: var(--gold);
}

.text-link {
  min-height: 44px;
  font-size: 0.9rem;
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration: underline;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.principles > div {
  padding: 24px clamp(16px, 3vw, 44px);
}

.principles > div:first-child {
  padding-inline-start: 0;
}

.principles > div + div {
  border-left: 1px solid var(--line);
}

.principles h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  margin-bottom: 5px;
}

.principles p {
  font-size: 0.88rem;
  color: var(--muted);
}

.section {
  padding-block: clamp(58px, 8vw, 112px);
}

.section-heading {
  max-width: 740px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 16px;
}

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(16px, 3vw, 44px);
  margin: 24px 0 0;
  padding: 0;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.tour-sr-only,
.tour-tabs input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tour-tabs span {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-tabs label:hover span,
.tour-tabs input:checked + span {
  color: var(--ink);
}

.tour-tabs input:checked + span {
  border-bottom-color: var(--bronze);
}

.tour-tabs input:focus-visible + span {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.tour-panel {
  margin-top: 22px;
  padding: clamp(16px, 3.6vw, 46px);
  overflow: hidden;
  color: var(--light);
  background: linear-gradient(125deg, #342b22, var(--night));
  border: 1px solid var(--light-line);
  border-radius: var(--radius-panel);
}

.tour-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 24px;
  margin-bottom: clamp(18px, 3vw, 38px);
}

.tour-text h3 {
  font-size: clamp(1.95rem, 3.2vw, 3.3rem);
  margin-bottom: 10px;
}

.tour-text p {
  max-width: 64ch;
  color: var(--light-muted);
  font-size: 0.96rem;
}

.tour-text .text-link {
  margin-top: 12px;
  color: var(--gold);
}

.tour-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 11rem) 44px;
  align-items: center;
  gap: 6px;
}

.tour-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 1.23rem;
}

.tour-controls button:hover {
  border-color: var(--gold);
  background: #cfa87416;
}

.tour-controls p {
  text-align: center;
  color: var(--light-muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.tour-tabs[hidden],
.tour-controls[hidden] {
  display: none;
}

.tour-stage {
  margin-inline: auto;
  touch-action: pan-y pinch-zoom;
}

.tour-stage[data-device="mobile"] {
  max-width: 390px;
}

.tour-stage img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
  box-shadow: 0 14px 28px #0006;
  user-select: none;
}

.image-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

.privacy {
  background:
    linear-gradient(115deg, #eae0cf 5%, transparent 65%), var(--stone);
  border-block: 1px solid var(--line);
}

.privacy-link {
  color: var(--bronze);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid var(--line);
  border-top: 4px double var(--bronze);
  border-radius: var(--radius-panel);
  background: #f8f1e6;
}

.platform {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
  padding: clamp(20px, 3vw, 39px);
}

.platform + .platform {
  border-left: 1px solid var(--line);
}

.platform h3 {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
}

.platform-status {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 7px;
}

.platform .button {
  grid-column: 2;
  justify-self: start;
}

.platform-step {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.first-launch {
  margin-top: 18px;
}

.download-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
  color: var(--bronze);
  font-size: 0.92rem;
  text-underline-offset: 4px;
}

.download-help a {
  text-decoration: underline;
  padding-block: 5px;
}

.privacy-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 25px;
  padding-block: 25px;
}

.privacy-strip h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.25rem);
  margin-bottom: 6px;
}

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

.privacy-strip .text-link {
  flex-shrink: 0;
}

.privacy + .feedback {
  margin-top: clamp(36px, 6vw, 75px);
}

.platform-icon {
  width: 48px;
  height: 48px;
  background: var(--stone);
  color: var(--bronze);
  border: 1px solid var(--line);
  border-radius: var(--radius-icon);
}

.windows-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 13px;
}

.windows-icon i {
  background: currentColor;
}

.android-icon {
  display: grid;
  place-items: center;
  padding: 9px;
}

.android-icon svg {
  width: 100%;
}

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

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

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--bronze);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0 20px 18px 0;
}

.feedback {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(27px, 5vw, 70px);
  color: var(--light);
  background: var(--night);
  border-top: 4px double var(--light-line);
  border-radius: var(--radius-panel);
}

.feedback::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 35%;
  aspect-ratio: 0.75;
  right: -2%;
  bottom: -44%;
  border: 10px double #4a3c2d;
  border-radius: 50% 50% 0 0;
}

.feedback h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
}

.feedback-inner > p {
  color: var(--light-muted);
  max-width: 54ch;
  margin-top: 16px;
}

.feedback .primary {
  background: var(--light);
  color: var(--night);
}

.feedback .primary:hover {
  background: var(--gold);
}

.feedback :focus-visible {
  outline-color: var(--gold);
}

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding-block: 30px;
  color: var(--muted);
  font-size: 0.81rem;
}

.footer .brand {
  color: var(--ink);
  font-size: 1.2rem;
}

.footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-left: auto;
}

.footer a:hover {
  color: var(--bronze);
}

dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 52px 14px 14px;
  width: min(1320px, 94vw);
  max-height: 94vh;
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop {
  background: #17130fe8;
}

.dialog-image-frame {
  overflow: auto;
  max-height: calc(94vh - 68px);
  touch-action: pinch-zoom pan-x pan-y;
}

.dialog-image-frame > img {
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-image);
}

#image-dialog[data-zoomed] .dialog-image-frame > img {
  width: 200%;
  max-width: none;
  margin-inline: 0;
}

.dialog-close,
#dialog-zoom {
  position: absolute;
  right: 14px;
  top: 9px;
  padding: 6px 12px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
}

#dialog-zoom {
  right: auto;
  left: 14px;
}

#dialog-zoom[aria-pressed="true"] {
  border-color: var(--bronze);
  color: var(--bronze);
}

.dialog-close span {
  margin-left: 8px;
}

.legal {
  width: min(760px, calc(100% - 48px));
  padding-block: 60px;
}

.legal h1 {
  font-size: clamp(2.55rem, 6.2vw, 4.65rem);
  margin-block: 14px 28px;
}

.legal h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-block: 27px 10px;
}

.legal p {
  color: var(--muted);
  margin-bottom: 13px;
}

.legal h3 {
  margin-block: 16px 8px;
}

.legal ol {
  color: var(--muted);
  padding-left: 25px;
}

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 58px);
  }

  .legal {
    width: min(760px, calc(100% - 58px));
  }

  .header-feedback {
    display: none;
  }
}

@media (max-width: 740px) {
  .tour-stage[data-device="mobile"] {
    width: min(390px, calc(100% + 22px));
    margin-inline: max(-11px, calc((100% - 390px) / 2));
  }

  #image-dialog {
    width: calc(100% - 8px);
    padding-inline: 3px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .legal {
    width: min(760px, calc(100% - 40px));
  }

  .tour-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .platform .button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .platform-step {
    grid-column: 1 / -1;
  }

  .privacy-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer > div {
    margin-left: 0;
  }
}

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

  .platform + .platform {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 540px) {
  .header {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 12px 0;
  }

  .header:not(:has(nav)) {
    padding-block: 6px;
  }

  .header .brand {
    font-size: 1.45rem;
  }

  .header nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    order: 1;
  }

  .header nav a {
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 10px;
  }

  .lang-toggle {
    min-width: 36px;
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .header-feedback {
    display: inline-flex;
    min-height: 32px;
    font-size: 0.8rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    gap: 8px;
    padding-inline: 14px;
    font-size: 0.875rem;
  }

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

  .principles > div {
    padding: 12px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
  }

  .principles > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .principles h2 {
    font-size: 1.37rem;
    margin: 0;
  }

  .principles p {
    font-size: 0.8rem;
  }

  .tour-tabs {
    gap: 0 13px;
  }

  .tour-tabs span {
    font-size: 0.85rem;
  }
}

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

  .button,
  .lang-toggle {
    transition: none;
  }
}

.legal p a,
.feedback .fine-print a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
