/* Trisway landing page: the app's Adventure look (sky blue, glossy blue and green, gold, Nunito). */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.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;
}

:root {
  --brand: #1d5fe0;
  --brand-edge: #143f9c;
  --green-top: #4cd964;
  --green-bottom: #12803a;
  --green-edge: #0b5c28;
  --gold: #ffc928;
  --text: #0b1f5c;
  --muted: #455a8c;
  --card: #ffffff;
  --card-edge: #b9d3f2;
  --sky: #8dcbff;
  --font: 'Nunito Variable', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.5;
  background:
    url('/img/bg.webp') center top / cover fixed no-repeat,
    var(--sky);
}
a {
  color: var(--brand);
}
img {
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.page {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top .brand-link {
  display: block;
  width: 7.5rem;
}
.top .brand-link img {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}
.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(11, 42, 122, 0.85);
  box-shadow: 0 3px 0 #061a55;
}
.lang a {
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
}
.lang a[aria-current='true'] {
  background: var(--gold);
  color: #1a2a6c;
}

/* hero */
.hero {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin-top: 0.5rem;
}
.mascot {
  width: min(68vw, 20rem);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}
.bubble {
  position: relative;
  background: var(--card);
  border: 4px solid var(--card-edge);
  border-radius: 28px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow:
    0 6px 0 #8fb4e6,
    0 14px 24px rgba(0, 0, 0, 0.18);
  max-width: 34rem;
}
.bubble h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bubble p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 3.4vw, 1.2rem);
}
.cta {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 52%),
    linear-gradient(var(--green-top), var(--green-bottom));
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 4px 0 var(--green-edge);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.store {
  position: relative;
  display: block;
  line-height: 0;
}
.store img {
  height: 3.4rem;
  width: auto;
  display: block;
}
.store.soon {
  opacity: 0.92;
  cursor: default;
}
.store .tag {
  position: absolute;
  top: -0.7rem;
  right: -0.4rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a2a6c;
  font-size: 0.75rem;
  font-weight: 1000;
  box-shadow: 0 2px 0 #b38600;
  transform: rotate(4deg);
}

/* features */
.features {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 1rem;
}
.feature {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 3px solid var(--card-edge);
  border-radius: 22px;
  box-shadow: 0 5px 0 #8fb4e6;
}
.feature .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 16px;
  font-size: 1.7rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 52%),
    linear-gradient(#3a7bff, var(--brand));
  box-shadow: 0 3px 0 var(--brand-edge);
}
.feature h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* footer */
.foot {
  margin-top: 1.5rem;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.foot a {
  color: #fff;
  font-weight: 900;
}

/* legal and info pages */
.doc {
  background: var(--card);
  border: 3px solid var(--card-edge);
  border-radius: 26px;
  padding: 1.25rem 1.4rem 1.6rem;
  box-shadow:
    0 6px 0 #8fb4e6,
    0 14px 24px rgba(0, 0, 0, 0.15);
  margin-top: 1rem;
  font-weight: 600;
}
.doc h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 1000;
  line-height: 1.15;
}
.doc h2 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 900;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 700;
}
.doc p,
.doc li {
  color: #14295f;
}
.doc .intro {
  font-size: 1.05rem;
}

@media (min-width: 52rem) {
  .page {
    padding-top: 1.5rem;
  }
  .top .brand-link {
    width: 9.5rem;
  }
  .hero {
    grid-template-columns: 1.15fr 1fr;
    justify-items: start;
    text-align: left;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  .hero .mascot {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 30rem);
  }
  .hero .bubble {
    grid-column: 1;
    grid-row: 1;
    padding: 2rem 2.2rem;
  }
  .stores {
    justify-content: flex-start;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mascot {
    animation: bob 3.2s ease-in-out infinite;
  }
  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
}
