/* Wy Store — a guided deck. Hand-written CSS, no framework, no build step. */

@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/plex-sans-600-latin.woff2") format("woff2");
  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: "Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/plex-sans-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plex-sans-400-latin.woff2") format("woff2");
  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: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plex-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plex-mono-500-latin.woff2") format("woff2");
  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: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plex-mono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* Sampled from the app's own dark theme: its background, card, text and
     the periwinkle of its Install button. */
  --ink: #0e0e0e;
  --ink-2: #1b1b1b;
  --paper: #e5e5e5;
  --dim: #a9a9ae;
  --faint: #737378;
  --rule: rgba(255, 255, 255, 0.12);
  --accent: #8aacff;
  --accent-ink: #002868;
  --amber: #e8b93f;

  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", monospace;

  --gutter: clamp(20px, 4.5vw, 64px);
  --head: 60px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html.js,
html.js body {
  height: 100svh;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}


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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#warp {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Type */

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}

p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

/* The app's icon and name open the page, the way a store listing does. */

.brandline {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brandline img {
  width: 84px;
  height: 84px;
  border-radius: 19px;
}

/* Header */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  height: var(--head);
  padding-inline: var(--gutter);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: var(--dim);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--paper);
}

/* The one button, and links that look like links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: #a3bdff;
}

.btn svg {
  flex: none;
}

.btn-xl {
  padding: 15px 32px;
  font-size: 16.5px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Deck */

.stage {
  position: fixed;
  inset: var(--head) 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
  padding: 0 var(--gutter);
}

.pane {
  position: relative;
  flex: 0 1 560px;
  height: 100%;
  min-width: 0;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  padding-block: 16px;
  opacity: 0;
  visibility: hidden;
  /* Visibility flips at once on the way in and only after the fade on the way
     out, so the incoming scene is rendered, and focusable, immediately. */
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.scene::-webkit-scrollbar {
  width: 5px;
}

.scene::-webkit-scrollbar-thumb {
  background: var(--rule);
}

.scene:focus {
  outline: none;
}

.scene.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* Auto margins centre a scene that fits and collapse when it does not, so a
   tall scene on a short screen scrolls from its top instead of clipping. */
.scene::before,
.scene::after {
  content: "";
  flex: none;
}

.scene::before {
  margin-top: auto;
}

.scene::after {
  margin-bottom: auto;
}

.scene.is-on > * {
  animation: rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 40ms);
}

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

.scene p {
  max-width: 50ch;
  color: var(--dim);
}

.scene p strong {
  font-weight: 400;
  color: var(--paper);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 6px;
}

.small {
  font-size: 14px;
  color: var(--faint);
}

/* The download counter, the same badge the README carries */

.badge {
  display: inline-block;
  height: 20px;
  width: auto;
  vertical-align: middle;
  border-radius: 3px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.small a,
.scene p a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
}

.small a:hover,
.scene p a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Back and Next: quiet pills, the same shape as the button */

.nav-links {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 14.5px;
}

.nav-links .link {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.nav-links .link:hover {
  color: var(--paper);
  border-color: var(--accent);
  text-decoration: none;
}



/* The privacy statement */

.nos {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.nos span {
  color: var(--faint);
}

.scene.is-on .nos li {
  animation: rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.scene.is-on .nos li:nth-child(1) { animation-delay: 140ms; }
.scene.is-on .nos li:nth-child(2) { animation-delay: 240ms; }
.scene.is-on .nos li:nth-child(3) { animation-delay: 340ms; }
.scene.is-on .nos li:nth-child(4) { animation-delay: 440ms; }

/* Tables: hairlines, first column the term, second the fact */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.tbl th,
.tbl td {
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}

.tbl tr:last-child th,
.tbl tr:last-child td {
  border-bottom: 1px solid var(--rule);
}

.tbl th {
  width: 36%;
  padding-right: 18px;
  font-weight: 400;
  text-align: left;
  color: var(--paper);
  white-space: nowrap;
}

.tbl td {
  color: var(--dim);
}

.scene.is-on .tbl tr {
  animation: rise 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.scene.is-on .tbl tr:nth-child(1) { animation-delay: 160ms; }
.scene.is-on .tbl tr:nth-child(2) { animation-delay: 240ms; }
.scene.is-on .tbl tr:nth-child(3) { animation-delay: 320ms; }
.scene.is-on .tbl tr:nth-child(4) { animation-delay: 400ms; }
.scene.is-on .tbl tr:nth-child(5) { animation-delay: 480ms; }

/* Install */

.steps {
  max-width: 64ch;
  margin: 0;
  padding-left: 1.4em;
  color: var(--dim);
}

.steps li {
  padding-left: 0.3em;
  margin-bottom: 4px;
}

.steps li::marker {
  color: var(--accent);
}

.fine {
  max-width: 74ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--faint);
}

.fine a {
  color: var(--accent);
  text-decoration: none;
}

.fine a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The Play Protect dialog, cropped, beside its explanation */

.warn {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0;
  max-width: 70ch;
}

.warn img {
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.warn figcaption {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dim);
}

.warn strong {
  font-weight: 400;
  color: var(--paper);
}

/* Project links as small pills */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.links a:hover {
  color: var(--paper);
  border-color: var(--accent);
}

#install {
  gap: 14px;
}

/* The handset */

.stagepane {
  flex: none;
  height: 100%;
  display: flex;
  align-items: center;
  transition: opacity 0.5s ease;
}

.phone {
  position: relative;
  height: min(100%, 760px);
  width: auto;
  aspect-ratio: var(--shot, 560 / 1110);
  padding: 8px;
  background: #1c1c21;
  border: 1px solid rgba(242, 239, 233, 0.16);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 248, 0.14),
    0 34px 60px -34px rgba(0, 0, 0, 0.9);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: var(--ink-2);
}

.scr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scr.is-on {
  opacity: 1;
}

/* Arrival: the handset rises out of the star field, the type sets after it. */

html.js .stagepane {
  animation: fly-in 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.25s both;
}

html.js .stage .pane {
  animation: fade-in 0.6s ease 0.7s both;
}

@keyframes fly-in {
  from {
    opacity: 0;
    transform: translateY(46svh);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* The arrival keyframes hold opacity at 1 with fill-mode "both", and an
   animation outranks a plain declaration, so it has to be cleared before the
   handset can be hidden. By the time these scenes are reached it has ended. */
html[data-scene="install"] .stagepane,
html[data-scene="privacy"] .stagepane {
  animation: none;
  opacity: 0;
  pointer-events: none;
}

/* With no handset to sit beside, the column takes the room it leaves. */
@media (min-width: 901px) {
  html[data-scene="install"] .stagepane,
  html[data-scene="privacy"] .stagepane {
    display: none;
  }

  html[data-scene="install"] .pane,
  html[data-scene="privacy"] .pane {
    flex-basis: 720px;
  }
}

/* Phones: the text leads, the handset rises from the bottom edge and is cut by
   it, large, the way it arrives. */

@media (max-width: 900px) {
  :root {
    --head: 54px;
  }

  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 6px var(--gutter) 0;
  }

  .pane {
    grid-row: 1;
    flex: none;
    height: auto;
    max-height: 64svh;
    min-height: 0;
  }

  .scene {
    position: relative;
    inset: auto;
    max-width: none;
    max-height: 64svh;
    gap: 14px;
    padding-block: 0 4px;
    display: none;
  }

  .scene.is-on {
    display: flex;
  }

  .scene::before,
  .scene::after {
    display: none;
  }

  .stagepane {
    grid-row: 2;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
  }

  .phone {
    height: auto;
    width: min(76vw, 330px);
    aspect-ratio: var(--shot, 560 / 1110);
    padding: 7px;
    border-radius: 24px;
  }

  .screen {
    border-radius: 18px;
  }

  html[data-scene="install"] .stage,
  html[data-scene="privacy"] .stage {
    grid-template-rows: minmax(0, 1fr) 0;
    gap: 0;
  }

  html[data-scene="install"] .pane,
  html[data-scene="privacy"] .pane {
    height: 100%;
    max-height: none;
  }

  html[data-scene="install"] .scene.is-on,
  html[data-scene="privacy"] .scene.is-on {
    max-height: none;
    height: 100%;
    overflow-y: auto;
    padding-block: 8px 20px;
  }

  h1 {
    font-size: clamp(1.8rem, 7.6vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6.2vw, 2.1rem);
  }

  .scene p {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .brandline {
    gap: 14px;
    font-size: 21px;
  }

  .brandline img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .masthead {
    justify-content: flex-end;
  }

  .cta {
    gap: 12px 20px;
  }

  .btn {
    flex: 1 1 100%;
    padding: 13px 20px;
  }

  .btn-xl {
    padding: 15px 24px;
    font-size: 16px;
  }

  .nos {
    font-size: clamp(1.55rem, 6.6vw, 2.2rem);
  }

  .tbl {
    font-size: 13.5px;
    line-height: 1.4;
  }

  .tbl th {
    width: 38%;
    padding-right: 12px;
    white-space: normal;
  }

  .tbl th,
  .tbl td {
    padding: 7px 0;
  }

  .fine {
    font-size: 12.5px;
  }

  .warn {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .warn figcaption {
    font-size: 13.5px;
  }

  .nav-links .link {
    padding: 8px 14px;
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .scene {
    padding-block: 8px;
  }
}

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

/* Without JavaScript the deck becomes an ordinary page you can read and scroll. */

html:not(.js),
html:not(.js) body {
  height: auto;
  overflow: visible;
}

html:not(.js) #warp,
html:not(.js) .stagepane,
html:not(.js) [data-go] {
  display: none;
}

html:not(.js) .stage {
  position: static;
  display: block;
  padding: calc(var(--head) + 24px) var(--gutter) 80px;
}

html:not(.js) .pane {
  height: auto;
}

html:not(.js) .scene {
  position: static;
  display: flex;
  opacity: 1;
  visibility: visible;
  max-width: 66ch;
  padding-block: 44px;
  border-top: 1px solid var(--rule);
}

html:not(.js) .scene:first-child {
  border-top: 0;
}

html:not(.js) .masthead {
  position: static;
}
