/* VY Moments website. One stylesheet for every page.
   Brand: navy #1D407A, accent #3595D9, Open Sans (self-hosted, so no request goes to Google), white and light grey.
   The one bold thing is the chat in the hero; everything else stays quiet. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  src: url(/assets/fonts/open-sans-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  src: url(/assets/fonts/open-sans-latin-wdth-normal.woff2) format("woff2-variations");
  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;
}

:root {
  --navy: #1d407a;
  --navy-deep: #163463;
  --sky: #3595d9;
  --sky-dark: #2a7fbf;
  --ink: #1f2a3d;
  --muted: #4a5872;
  --mist: #eef3f9;
  --tint: #dcebf9;
  --line: #d5deea;
  --white: #ffffff;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--navy);
  text-decoration: none;
}
.wordmark b {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.wordmark span {
  font-size: 1.0625rem;
  color: var(--muted);
}

.lang {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
}
.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
}
.lang a:hover {
  color: var(--navy);
}
.lang a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  background: var(--mist);
}

/* Hero */

.hero {
  display: grid;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 4.5rem;
  align-items: start;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.875rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.25rem;
  line-height: 1.55;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  padding: 0.95rem 1.4rem;
  border-radius: 0.8rem;
  text-decoration: none;
}
.cta:hover {
  background: var(--sky-dark);
}
.cta:focus-visible {
  outline-color: var(--navy);
}
.cta svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

.note {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The chat: what VY looks like in Telegram. Text only, so screen readers read it as a conversation. */

.chat {
  margin: 0;
  background: var(--mist);
  border-radius: 1.5rem;
  padding: 1.1rem 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 1rem;
  line-height: 1.45;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.05rem;
  flex: none;
}
.chat-head strong {
  display: block;
  color: var(--navy);
  line-height: 1.2;
}
.chat-head small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 1.1rem;
}
.msg p {
  margin: 0;
}
.msg.me {
  align-self: flex-end;
  background: var(--tint);
  border-bottom-right-radius: 0.35rem;
  color: var(--navy-deep);
}
.msg.vy {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: 0.35rem;
}

/* Telegram's buttons under a message */
.keys {
  align-self: flex-start;
  width: 85%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: -0.2rem 0 0.15rem;
  padding: 0;
  list-style: none;
}
.keys li {
  text-align: center;
  padding: 0.45rem 0.4rem;
  border-radius: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
}
.keys li.picked {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* VY's answer as a ticket: the stub on the left, the route on the right */
.ticket {
  position: relative;
  align-self: flex-start;
  width: 92%;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  background: var(--navy);
  color: var(--white);
  border-radius: 1rem;
  border-bottom-left-radius: 0.35rem;
  overflow: hidden;
}
.ticket .stub {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-right: 2px dashed rgba(255, 255, 255, 0.35);
}
.ticket .notch {
  position: absolute;
  left: calc(3.1rem - 0.55rem);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--mist);
}
.ticket .notch.top {
  top: -0.55rem;
}
.ticket .notch.bottom {
  bottom: -0.55rem;
}
.ticket .body {
  padding: 0.85rem 1rem 1rem;
}
.ticket .route {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.5rem;
  line-height: 1.1;
}
.ticket .route svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.ticket .when {
  margin: 0.1rem 0 0.55rem;
  font-size: 0.875rem;
  color: #c9d8ee;
}
.ticket .what {
  margin: 0 0 0.8rem;
  font-size: 0.9375rem;
}
.ticket ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticket li {
  padding: 0.4rem 0.75rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.ticket li:first-child {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* One orchestrated moment: the conversation arrives message by message. */
@media (prefers-reduced-motion: no-preference) {
  .chat > * {
    animation: arrive 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .chat > :nth-child(2) {
    animation-delay: 0.35s;
  }
  .chat > :nth-child(3) {
    animation-delay: 1s;
  }
  .chat > :nth-child(4) {
    animation-delay: 1.15s;
  }
  .chat > :nth-child(5) {
    animation-delay: 1.85s;
  }
  .chat > :nth-child(6) {
    animation-delay: 2.5s;
  }
  .chat > :nth-child(7) {
    animation-delay: 2.65s;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */

.band {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.band.line {
  border-top: 1px solid var(--line);
}
.band.mist {
  background: var(--mist);
}

h2 {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  line-height: 1.04;
  letter-spacing: -0.008em;
  color: var(--navy);
  text-wrap: balance;
}

/* What you can ask: the ask as a message, what VY does beside it */
.asks {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.asks li {
  display: grid;
  gap: 0.5rem;
}
.asks .say {
  justify-self: start;
  margin: 0;
  padding: 0.6rem 0.95rem;
  background: var(--tint);
  border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.asks .does {
  margin: 0;
  max-width: 34rem;
}

/* How it starts: a real sequence, so it's numbered */
.steps {
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--sky);
}
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--navy);
}
.steps p {
  margin: 0;
}

/* Good to know */
.facts {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
}
.facts li {
  position: relative;
  padding-left: 1.6rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--sky);
}
.facts strong {
  color: var(--navy);
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.site-foot p {
  margin: 0;
}

/* Privacy and terms */

.doc {
  max-width: 44rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}
.doc h1 {
  margin: 0 0 0.75rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--navy);
}
.doc .updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.doc p,
.doc li {
  max-width: 40rem;
}
.doc ul,
.doc ol {
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.45rem;
}

/* Wider screens */

@media (min-width: 48rem) {
  .asks li {
    grid-template-columns: 21rem 1fr;
    gap: 2rem;
    align-items: center;
  }
  .asks .say {
    justify-self: end;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 25.5rem;
    gap: 4.5rem;
    padding-top: 3.5rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 26rem) {
  .wrap {
    padding: 0 1.1rem;
  }
  .chat {
    padding: 0.9rem 0.8rem 1.2rem;
  }
  .msg,
  .keys {
    max-width: 92%;
    width: auto;
  }
  .keys {
    width: 92%;
  }
  .ticket {
    width: 100%;
  }
}
