@font-face {
  font-family: "Zodiak";
  src:
    url("Font/Zodiak_Complete/Zodiak_Complete/Fonts/WEB/fonts/Zodiak-Regular.woff2") format("woff2"),
    url("Font/Zodiak_Complete/Zodiak_Complete/Fonts/WEB/fonts/Zodiak-Regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #17191f;
  --ink: #f5f7fb;
  --muted: #b2bac8;
  --line: rgba(245, 247, 251, 0.12);
  --overlay-progress: 0;
  --logo-progress: 0;
  --font-display: "Zodiak", "Times New Roman", serif;
  --font-body: "Zodiak", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

.page-body {
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  min-height: 100vh;
  overflow: auto;
}

a {
  color: inherit;
}

.intro {
  align-items: center;
  background:
    linear-gradient(
      rgba(0, 0, 0, calc(1 - var(--overlay-progress))),
      rgba(0, 0, 0, calc(1 - var(--overlay-progress)))
    ),
    var(--bg);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: calc(1 - var(--overlay-progress));
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 5;
}

.intro.is-complete {
  visibility: hidden;
}

.intro__mark {
  display: grid;
  justify-items: center;
  transform:
    translateY(calc(var(--logo-progress) * -22vh))
    scale(calc(1 - var(--logo-progress) * 0.48));
  transform-origin: center;
  transition: transform 80ms linear;
  width: min(68vw, 720px);
}

.intro__logo {
  display: block;
  filter: saturate(1.04);
  opacity: calc(0.94 - var(--logo-progress) * 0.44);
  width: 100%;
}

.intro__scroll {
  color: rgba(224, 228, 234, 0.82);
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  left: 50%;
  margin: 0;
  opacity: calc(1 - var(--logo-progress) * 1.7);
  position: absolute;
  top: calc(50% + min(30vw, 14.4rem));
  text-transform: lowercase;
  transform: translateX(-50%);
}

.home {
  background:
    linear-gradient(180deg, #17191f 0%, #242833 100%);
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  position: fixed;
  z-index: 1;
}

.home__nav {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  left: clamp(1.25rem, 5vw, 4rem);
  min-height: 5rem;
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  top: 0;
  z-index: 3;
}

.home__download-link {
  color: rgba(245, 247, 251, 0.78);
  font-size: clamp(0.86rem, 1.5vw, 0.98rem);
  text-decoration: none;
}

.home__download-link:focus-visible,
.home__download-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.home__hero {
  display: grid;
  min-height: 100vh;
  place-items: center;
  position: relative;
  text-align: center;
}

.home__logo {
  display: block;
  filter: saturate(1.04);
  max-width: min(58vw, 560px);
  opacity: calc(0.2 + var(--logo-progress) * 0.78);
  position: absolute;
  transform:
    translateY(calc(-6vh + var(--logo-progress) * -18vh))
    scale(calc(1.02 - var(--logo-progress) * 0.08));
  width: 100%;
  z-index: 1;
}

.home__copy {
  max-width: min(92vw, 74rem);
  opacity: calc(var(--logo-progress) * 1.1);
  padding-top: 0;
  position: relative;
  transform: translateY(calc((1 - var(--logo-progress)) * 2.25rem));
  z-index: 2;
}

.home h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.65vw, 3.45rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.home h1 span {
  display: block;
  white-space: nowrap;
}

.home__subcopy {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
  margin: clamp(1rem, 2.2vw, 1.4rem) auto 0;
  max-width: min(80vw, 34rem);
}

.home__placeholder {
  height: 1px;
  left: 0;
  position: absolute;
  top: 100vh;
  width: 1px;
}

.home__footer {
  bottom: clamp(1.25rem, 3.5vh, 2rem);
  color: rgba(245, 247, 251, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  gap: 0.75rem 1.2rem;
  justify-content: center;
  left: clamp(1.25rem, 5vw, 4rem);
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  z-index: 3;
}

.home__footer p {
  margin: 0;
}

.home__footer-links {
  display: flex;
  gap: 1rem;
}

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

.home__footer a:focus-visible,
.home__footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.support-page {
  align-items: center;
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  display: grid;
  min-height: 100vh;
  padding: clamp(1.25rem, 5vw, 4rem);
  position: relative;
  text-align: center;
}

.support-page__nav {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  top: clamp(1.5rem, 4vh, 2rem);
}

.support-page__nav a,
.support-page__content a {
  color: rgba(245, 247, 251, 0.82);
  text-decoration: none;
}

.support-page__nav a:focus-visible,
.support-page__nav a:hover,
.support-page__content a:focus-visible,
.support-page__content a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.support-page__content {
  justify-self: center;
  max-width: min(88vw, 44rem);
}

.support-page__logo {
  display: block;
  filter: saturate(1.04);
  left: 50%;
  margin: 0;
  max-width: min(34vw, 180px);
  position: absolute;
  top: clamp(1.25rem, 4vh, 2rem);
  transform: translateX(calc(-50% + 8px));
  width: 100%;
}

.support-page__eyebrow {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 0.8rem;
}

.support-page h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.support-page__content > p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  margin: clamp(1.1rem, 3vw, 1.6rem) auto 0;
  max-width: 34rem;
}

.privacy-page__content {
  max-width: min(88vw, 52rem);
  padding-top: clamp(4rem, 14vh, 7rem);
}

.privacy-page__content h1 {
  margin-bottom: clamp(1rem, 2.5vw, 1.4rem);
}

.privacy-page__intro,
.privacy-page__contact,
.privacy-page__sections p {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.45vw, 1.08rem);
  line-height: 1.55;
  margin: 0;
}

.privacy-page__intro {
  margin: 0 auto clamp(1.3rem, 3vw, 1.8rem);
  max-width: 46rem;
}

.privacy-page__sections {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.1rem);
  margin: 0 auto clamp(1.3rem, 3vw, 1.8rem);
  max-width: 46rem;
  text-align: left;
}

.privacy-page__sections section {
  border-top: 1px solid rgba(245, 247, 251, 0.12);
  padding-top: clamp(0.75rem, 1.6vw, 1rem);
}

.privacy-page__sections h2 {
  color: rgba(245, 247, 251, 0.9);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  font-weight: 400;
  margin: 0 0 0.28rem;
}

.privacy-page__contact {
  margin: 0 auto;
  max-width: 46rem;
}

.support-page__footer {
  align-items: center;
  bottom: clamp(1.25rem, 3.5vh, 2rem);
  color: rgba(245, 247, 251, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  gap: 0.6rem 1.2rem;
  justify-content: center;
  left: clamp(1.25rem, 5vw, 4rem);
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
}

.support-page__footer p {
  margin: 0;
}

.support-page__footer a {
  color: inherit;
  text-decoration: none;
}

.support-page__footer a:focus-visible,
.support-page__footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.downloads-body {
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

.downloads-page {
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  min-height: 100vh;
  position: relative;
}

.downloads-page__nav {
  z-index: 4;
}

.downloads-stage {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.9fr);
  min-height: 76vh;
  padding: clamp(4.5rem, 7vh, 5.5rem) clamp(1.5rem, 8vw, 8rem);
  position: relative;
  scroll-snap-align: start;
}

.downloads-stage:first-of-type {
  padding-top: clamp(8.5rem, 15vh, 11rem);
}

.downloads-stage + .downloads-stage::before {
  background: linear-gradient(
    90deg,
    rgba(32, 142, 255, 0),
    rgba(32, 142, 255, 0.62),
    rgba(130, 46, 255, 0.72),
    rgba(32, 142, 255, 0)
  );
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 112vw;
}

.downloads-stage--image-left {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 0.92fr);
}

.downloads-stage__copy {
  max-width: 48rem;
}

.downloads-stage--image-left .downloads-stage__copy {
  justify-self: end;
}

.downloads-stage__eyebrow {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  margin: 0 0 0.9rem;
}

.downloads-stage h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  white-space: nowrap;
}

.downloads-stage__copy > p:not(.downloads-stage__eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
  margin: clamp(1.1rem, 2.4vw, 1.5rem) 0 0;
  max-width: 32rem;
}

.downloads-stage__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

.downloads-stage__links a {
  color: rgba(245, 247, 251, 0.82);
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  text-decoration: none;
}

.downloads-stage__links a:focus-visible,
.downloads-stage__links a:hover,
.downloads-page__footer a:focus-visible,
.downloads-page__footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.downloads-stage__media {
  max-width: min(40vw, 34rem);
  width: 100%;
}

.downloads-stage--image-right .downloads-stage__media {
  justify-self: end;
}

.downloads-stage--image-left .downloads-stage__media {
  justify-self: start;
}

.downloads-stage__media img {
  display: block;
  filter: saturate(1.02);
  height: auto;
  max-height: min(66vh, 46rem);
  object-fit: contain;
  width: 100%;
}

.downloads-page__footer {
  align-items: center;
  color: rgba(245, 247, 251, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  gap: 0.75rem 1.2rem;
  justify-content: center;
  min-height: 8rem;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}

.downloads-page__footer a {
  color: inherit;
  text-decoration: none;
}

.downloads-page__footer p {
  margin: 0;
}

.coming-soon-page {
  align-items: center;
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  display: grid;
  min-height: 100vh;
  place-items: center;
  position: relative;
  text-align: center;
}

.coming-soon-page__logo {
  display: block;
  filter: saturate(1.04);
  left: 50%;
  max-width: min(42vw, 260px);
  position: absolute;
  top: clamp(1.25rem, 4vh, 2rem);
  transform: translateX(calc(-50% + 8px));
  width: 100%;
}

.coming-soon-page h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.not-found-body {
  overflow: hidden;
}

.not-found-page {
  --field-angle: -12deg;
  --field-x: 0px;
  --field-x-negative: 0px;
  --field-x-soft: 0px;
  --field-y: 0px;
  --field-y-negative: 0px;
  --field-y-soft: 0px;
  --line-opacity: 0.3;
  --texture-opacity: 0.22;
  align-items: center;
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  display: grid;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.25rem, 5vw, 4rem);
  place-items: center;
  position: relative;
  text-align: center;
}

.not-found-page::before,
.not-found-page::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.not-found-page::before {
  background:
    linear-gradient(
      var(--field-angle),
      transparent 15%,
      rgb(32 142 255 / var(--line-opacity)) 36%,
      rgb(130 46 255 / var(--line-opacity)) 50%,
      rgb(32 142 255 / var(--line-opacity)) 63%,
      transparent 86%
    ),
    linear-gradient(
      calc(var(--field-angle) + 74deg),
      transparent 22%,
      rgb(32 142 255 / 0.1) 42%,
      rgb(130 46 255 / 0.14) 52%,
      transparent 76%
    );
  filter: blur(22px);
  inset: -18%;
  opacity: 0.9;
  transform:
    translate3d(var(--field-x), var(--field-y), 0)
    scale(1.05);
  transition:
    transform 180ms ease-out,
    opacity 180ms ease-out;
}

.not-found-page::after {
  background:
    linear-gradient(rgb(245 247 251 / 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgb(245 247 251 / 0.075) 1px, transparent 1px),
    radial-gradient(circle, rgb(32 142 255 / 0.24) 1px, transparent 1.5px),
    radial-gradient(circle, rgb(130 46 255 / 0.2) 1px, transparent 1.5px);
  background-position:
    var(--field-x) var(--field-y),
    var(--field-x) var(--field-y),
    var(--field-x-negative) var(--field-y-soft),
    var(--field-x-soft) var(--field-y-negative);
  background-size:
    72px 72px,
    72px 72px,
    46px 46px,
    62px 62px;
  inset: 0;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 82%, transparent);
  opacity: var(--texture-opacity);
  transform: translate3d(0, 0, 0);
  transition:
    background-position 180ms ease-out,
    opacity 180ms ease-out;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    black 20%,
    black 82%,
    transparent
  );
}

.not-found-page__logo {
  display: block;
  filter: saturate(1.04);
  left: 50%;
  max-width: min(42vw, 210px);
  position: absolute;
  top: clamp(1.25rem, 4vh, 2rem);
  transform: translateX(calc(-50% + 8px));
  width: 100%;
  z-index: 2;
}

.not-found-page__content {
  left: 50%;
  max-width: min(90vw, 44rem);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 44rem);
  z-index: 1;
}

.not-found-page__code {
  background: linear-gradient(112deg, #208eff, #7d2cff 48%, #f5f7fb 92%);
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(6rem, 19vw, 14rem);
  line-height: 0.82;
  margin: 0 0 clamp(1rem, 2.4vw, 1.5rem);
  text-shadow: 0 0 36px rgba(32, 142, 255, 0.18);
  -webkit-background-clip: text;
}

.not-found-page h1 {
  color: rgba(245, 247, 251, 0.94);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.not-found-page__content > p:last-of-type {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  margin: clamp(1.1rem, 2.8vw, 1.6rem) auto 0;
  max-width: 32rem;
}

.not-found-page__links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: clamp(1.4rem, 3.2vw, 2rem);
}

.not-found-page__links a {
  color: rgba(245, 247, 251, 0.82);
  text-decoration: none;
}

.not-found-page__links a:focus-visible,
.not-found-page__links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.not-found-page__footer {
  bottom: clamp(1.25rem, 3.5vh, 2rem);
  color: rgba(245, 247, 251, 0.58);
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  left: clamp(1.25rem, 5vw, 4rem);
  margin: 0;
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
}

.app-policy-page {
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  min-height: 100vh;
  padding: clamp(11rem, 24vh, 15rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  position: relative;
}

.app-policy-page__logo {
  display: block;
  filter: saturate(1.04);
  left: 50%;
  max-width: min(34vw, 180px);
  position: absolute;
  top: clamp(1.25rem, 4vh, 2rem);
  transform: translateX(calc(-50% + 8px));
  width: 100%;
}

.app-policy-page__content {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
  line-height: 1.58;
  margin: 0 auto;
  max-width: min(90vw, 54rem);
}

.app-policy-page__header {
  text-align: center;
}

.app-policy-page h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  white-space: nowrap;
}

.app-policy-page--mimir h1 {
  font-size: 2.6rem;
}

.app-policy-page__header p {
  margin: 1rem 0 0;
}

.app-policy-page section {
  border-top: 1px solid rgba(245, 247, 251, 0.12);
  margin-top: clamp(1.2rem, 3vw, 1.7rem);
  padding-top: clamp(0.9rem, 2vw, 1.1rem);
}

.app-policy-page h2 {
  color: rgba(245, 247, 251, 0.9);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 400;
  margin: 0 0 0.45rem;
}

.app-policy-page p {
  margin: 1rem 0 0;
}

.app-policy-page ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.app-policy-page__footer {
  color: rgba(245, 247, 251, 0.58);
  display: flex;
  justify-content: center;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  width: 100%;
}

.app-policy-page__footer p {
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Mimir app info page
   --------------------------------------------------------------------------- */

.mimir-body {
  overflow-x: hidden;
}

.mimir-page {
  background: linear-gradient(180deg, #17191f 0%, #242833 100%);
  min-height: 100vh;
  padding: clamp(9rem, 18vh, 12rem) clamp(1.5rem, 6vw, 5rem) 3rem;
  position: relative;
}

.mimir-page__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.mimir-page__logo {
  max-width: min(34vw, 180px);
}

.mimir-hero {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 100rem;
}

.mimir-hero__copy {
  max-width: 46rem;
}

.mimir-page h1 {
  color: rgba(245, 247, 251, 0.92);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.mimir-lead {
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  margin: clamp(0.9rem, 2vw, 1.2rem) 0 0;
  max-width: 34rem;
  text-wrap: balance;
}

.mimir-text {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  margin: clamp(0.9rem, 2vw, 1.15rem) 0 0;
  max-width: 36rem;
}

.mimir-feature {
  margin-top: clamp(1.6rem, 3.5vw, 2.2rem);
}

.mimir-feature--lead {
  border-image: linear-gradient(
      90deg,
      rgba(32, 142, 255, 0.62),
      rgba(130, 46, 255, 0.72),
      rgba(32, 142, 255, 0.62)
    )
    1;
  border-style: solid;
  border-width: 1px 0 0;
  padding-top: clamp(1.2rem, 3vw, 1.6rem);
}

.mimir-page h2 {
  color: rgba(245, 247, 251, 0.9);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.mimir-feature > p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0.7rem 0 0;
  max-width: 36rem;
}

.mimir-list {
  color: var(--muted);
  display: grid;
  font-size: clamp(0.96rem, 1.45vw, 1.06rem);
  gap: 0.6rem;
  line-height: 1.55;
  list-style: none;
  margin: clamp(1rem, 2vw, 1.3rem) 0 0;
  padding: 0;
}

.mimir-list li {
  padding-left: 1.4rem;
  position: relative;
}

.mimir-list li::before {
  background: linear-gradient(135deg, #208eff, #7d2cff);
  border-radius: 999px;
  content: "";
  height: 0.42rem;
  left: 0.1rem;
  position: absolute;
  top: 0.62em;
  width: 0.42rem;
}

.mimir-list strong {
  color: rgba(245, 247, 251, 0.9);
  font-weight: 400;
}

/* ---- Phone gallery ---- */

.mimir-hero__gallery {
  align-self: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mimir-gallery {
  --phone-width: clamp(18rem, 34vw, 34rem);
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  justify-items: center;
  width: 100%;
}

.mimir-gallery__viewport {
  align-items: center;
  display: flex;
  gap: clamp(0.4rem, 1.6vw, 1rem);
  justify-content: center;
  width: 100%;
}

.mimir-gallery__stage {
  flex: 0 0 auto;
  perspective: 1500px;
  width: var(--phone-width);
}

.mimir-gallery__phone {
  aspect-ratio: 1080 / 1480;
  position: relative;
  width: 100%;
}

.mimir-gallery__card {
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
}

.mimir-gallery__face {
  backface-visibility: hidden;
  border-radius: clamp(1.4rem, 3vw, 2.1rem);
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
  -webkit-backface-visibility: hidden;
}

.mimir-gallery__face--back {
  transform: rotateY(180deg);
}

.mimir-gallery__arrow {
  align-items: center;
  appearance: none;
  background: rgba(245, 247, 251, 0.04);
  border: 1px solid rgba(245, 247, 251, 0.16);
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.82);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: clamp(2.6rem, 5vw, 3rem);
  justify-content: center;
  padding: 0;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  width: clamp(2.6rem, 5vw, 3rem);
}

.mimir-gallery__arrow svg {
  height: 45%;
  width: 45%;
}

.mimir-gallery__arrow:hover {
  background: rgba(245, 247, 251, 0.09);
  border-color: rgba(245, 247, 251, 0.32);
  color: var(--ink);
}

.mimir-gallery__arrow:active {
  transform: scale(0.94);
}

.mimir-gallery__arrow:focus-visible {
  outline: 2px solid #208eff;
  outline-offset: 3px;
}

.mimir-gallery__arrow:disabled {
  cursor: default;
  opacity: 0.55;
}

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

.mimir-gallery__dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.mimir-gallery__dot {
  appearance: none;
  background: rgba(245, 247, 251, 0.24);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.55rem;
  padding: 0;
  transition:
    background 160ms ease,
    width 200ms ease;
  width: 0.55rem;
}

.mimir-gallery__dot:hover {
  background: rgba(245, 247, 251, 0.45);
}

.mimir-gallery__dot[aria-current="true"] {
  background: linear-gradient(135deg, #208eff, #7d2cff);
  width: 1.5rem;
}

.mimir-gallery__dot:focus-visible {
  outline: 2px solid #208eff;
  outline-offset: 3px;
}

/* ---- Detail sections ---- */

.mimir-detail {
  border-image: linear-gradient(
      90deg,
      rgba(32, 142, 255, 0.62),
      rgba(130, 46, 255, 0.72),
      rgba(32, 142, 255, 0.62)
    )
    1;
  border-style: solid;
  border-width: 1px 0 0;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  max-width: 100rem;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.mimir-detail__block + .mimir-detail__block {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.mimir-detail .mimir-list--grid {
  gap: 0.7rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin-top: clamp(1.1rem, 2.4vw, 1.5rem);
}

.mimir-disclaimer {
  color: rgba(245, 247, 251, 0.5);
  font-size: clamp(0.84rem, 1.3vw, 0.95rem);
  line-height: 1.55;
  margin: clamp(2.4rem, 5vw, 3.5rem) auto 0;
  max-width: 46rem;
  text-align: center;
}

.mimir-page__footer {
  align-items: center;
  color: rgba(245, 247, 251, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  gap: 0.75rem 1.2rem;
  justify-content: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.mimir-page__footer a {
  color: inherit;
  text-decoration: none;
}

.mimir-page__footer a:focus-visible,
.mimir-page__footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.mimir-page__footer p {
  margin: 0;
}

@media (max-width: 900px) {
  /* Single-column: nav and logo share the top, so drop the logo below the
     nav and start the content well below the logo to avoid any overlap. */
  .mimir-page {
    padding-top: 17rem;
  }

  /* Higher specificity so this wins over the shared `.support-page__logo`
     top rule in the max-width:720px block that follows in source order. */
  .mimir-page .mimir-page__logo {
    top: 4.5rem;
  }

  .mimir-hero {
    gap: clamp(2.25rem, 6vw, 3rem);
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 40rem;
    text-align: center;
  }

  .mimir-hero__gallery {
    margin-bottom: clamp(0.5rem, 2vw, 1.25rem);
    order: 1;
    width: 100%;
  }

  .mimir-hero__copy {
    max-width: 40rem;
    order: 2;
  }

  .mimir-lead,
  .mimir-text,
  .mimir-feature > p {
    margin-left: auto;
    margin-right: auto;
  }

  .mimir-feature--lead {
    text-align: left;
  }

  .mimir-list {
    text-align: left;
  }

  .mimir-detail {
    text-align: left;
  }

  .mimir-disclaimer {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .mimir-gallery {
    --phone-width: min(54vw, 13rem);
  }

  .mimir-gallery__viewport {
    gap: 0.5rem;
  }

  .mimir-gallery__arrow {
    height: 2.5rem;
    width: 2.5rem;
  }

  .mimir-detail .mimir-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mimir-gallery__card {
    transition: none;
  }

  .mimir-gallery__face {
    transition: opacity 240ms ease;
  }
}

@media (max-width: 720px) {
  .intro__mark {
    width: min(86vw, 520px);
  }

  .home {
    height: 100svh;
    min-height: 100svh;
  }

  .home__hero {
    min-height: 100svh;
  }

  @supports (height: 100dvh) {
    .home {
      height: 100dvh;
      min-height: 100dvh;
    }

    .home__hero {
      min-height: 100dvh;
    }
  }

  .home__logo {
    max-width: min(76vw, 420px);
  }

  .home__copy {
    padding-top: clamp(4rem, 15vh, 7rem);
  }

  .home h1 span {
    white-space: normal;
  }

  .home__footer {
    align-items: center;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.9rem);
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
    left: 1rem;
    right: 1rem;
  }

  .home__footer-links {
    flex: 0 0 auto;
    gap: 0.55rem;
  }

  .home__footer p {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .support-page {
    align-items: start;
    min-height: 100svh;
    padding: 14rem clamp(1.25rem, 6vw, 2rem) 3rem;
  }

  .support-page__logo {
    max-width: min(42vw, 160px);
    top: 1.35rem;
  }

  .support-page__content,
  .privacy-page__content {
    max-width: min(90vw, 52rem);
    padding-top: 0;
  }

  .privacy-page__content h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .privacy-page__contact {
    overflow-wrap: anywhere;
  }

  .support-page__footer {
    align-self: end;
    bottom: auto;
    left: auto;
    margin-top: 2.5rem;
    position: static;
    right: auto;
  }

  .downloads-body {
    scroll-snap-type: none;
  }

  .downloads-page {
    overflow-x: hidden;
  }

  .downloads-stage,
  .downloads-stage--image-left {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem clamp(1.25rem, 6vw, 2rem) 4rem;
    text-align: center;
  }

  .downloads-stage:first-of-type {
    padding-top: 13rem;
  }

  .downloads-stage + .downloads-stage::before {
    width: 100vw;
  }

  .downloads-stage--image-left .downloads-stage__media {
    order: 2;
  }

  .downloads-stage--image-left .downloads-stage__copy {
    justify-self: center;
    order: 1;
  }

  .downloads-stage__copy {
    justify-self: center;
    max-width: 34rem;
  }

  .downloads-stage h1 {
    font-size: clamp(1.1rem, 5.6vw, 1.5rem);
    line-height: 1.05;
  }

  .downloads-stage__copy > p:not(.downloads-stage__eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }

  .downloads-stage__links {
    justify-content: center;
  }

  .downloads-stage__media {
    justify-self: center;
    max-width: min(84vw, 28rem);
  }

  .not-found-page {
    min-height: 100svh;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 3.25rem);
    padding-top: 9rem;
  }

  .not-found-page__logo {
    max-width: min(48vw, 170px);
    top: 1.35rem;
  }

  .not-found-page__code {
    font-size: clamp(5rem, 28vw, 8rem);
  }

  .not-found-page h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .not-found-page__footer {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.9rem);
  }

  .app-policy-page h1 {
    font-size: 1.65rem;
  }

  .app-policy-page--mimir h1 {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .app-policy-page h1 {
    font-size: 1.28rem;
  }

  .app-policy-page--mimir h1 {
    font-size: 0.78rem;
  }
}

@media (max-width: 340px) {
  .app-policy-page h1 {
    font-size: 1.12rem;
  }

  .app-policy-page--mimir h1 {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro__mark {
    transition: none;
  }
}
