:root {
  color-scheme: light;
  --night: #17143a;
  --hero-night: #14144f;
  --ink: #1e1839;
  --muted: #554e6a;
  --purple: #5c35b8;
  --lilac: #eeeafb;
  --line: #ded8ed;
  --paper: #fbfaff;
  --white: #fff;
  --display: "Aptos Display", "Segoe UI", system-ui, sans-serif;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  background: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-block-size: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
:where(h1, h2, h3, p, ul) { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-underline-offset: .2em; }
svg { display: block; flex: none; inline-size: 1.5rem; block-size: 1.5rem; }
:is(a, summary, [tabindex]):focus-visible { outline: 3px solid #7650e3; outline-offset: 4px; }
:is(.site-header, .site-footer, .hero, .error-page) :focus-visible { outline-color: #ffe27c; }
[id] { scroll-margin-block-start: 1.35rem; }

.wrap { inline-size: min(100% - 5rem, 73rem); margin-inline: auto; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; inset-block-start: .8rem; inset-inline-start: .8rem; padding: .65rem 1rem; border-radius: .5rem; background: white; color: var(--ink); transform: translateY(calc(-100% - 1rem)); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--night); color: var(--white); }
.home-page .site-header { background: var(--hero-night); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-block-size: 5.1rem; }
.brand { display: flex; align-items: center; justify-content: flex-start; inline-size: fit-content; min-block-size: 2.75rem; border-radius: .4rem; }
.site-header .brand img { inline-size: 5.35rem; block-size: auto; }
.main-nav, .footer-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a, .store-link, .footer-nav a, .footer-store {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-block-size: 2.75rem;
  text-decoration: none; font-size: .94rem; font-weight: 600; transition: background-color 150ms ease, color 150ms ease;
}
.main-nav a { border-radius: 3rem; padding-inline: clamp(.8rem, 1.5vw, 1.2rem); color: #eeebff; }
.main-nav a[aria-current="page"] { background: #ffffff21; color: white; }
.main-nav a:hover { background: #ffffff2b; color: white; }
.store-link { justify-self: end; padding: .45rem .9rem; border-radius: 3rem; background: #6842d6; color: white; white-space: nowrap; }
.store-link img { border-radius: 24%; }
.store-link:hover { background: #7954e6; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-night); color: var(--white); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(var(--hero-night), transparent 22%), url('/assets/city-at-dusk.webp') center bottom / cover no-repeat;
}
.hero-layout { min-block-size: clamp(30.25rem, 40vw, 38rem); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; position: relative; }
.hero-copy { z-index: 1; padding: 2.5rem 0 6.25rem .3rem; }
.hero h1 { font-size: clamp(3.35rem, 5.8vw, 5.45rem); letter-spacing: -.048em; font-weight: 800; line-height: 1.005; }
.hero h1 span { color: #dccbff; }
.hero-copy > p { margin-block: 1.35rem 2rem; max-inline-size: 30rem; color: #f2ecff; font-size: clamp(1.12rem, 1.73vw, 1.47rem); line-height: 1.43; text-wrap: pretty; }
.get-app { inline-size: fit-content; border-radius: 1rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .75rem; padding: .63rem .95rem .63rem .65rem;
  border: 1px solid #9b8abf; border-radius: 1rem; background: #100d25; color: white;
  text-decoration: none; box-shadow: 0 6px 22px #09071948;
}
.store-badge img, .footer-store img { border-radius: 24%; }
.store-badge span { display: block; }
.store-badge-label { line-height: 1.15; font-size: .88rem; }
.store-badge strong { display: block; font-size: 1.65rem; font-weight: 700; letter-spacing: -.045em; line-height: 1.14; }
a.store-badge:hover { background: #201739; }
.hero-art { align-self: stretch; position: relative; }
.phone {
  position: absolute; display: flex; inset-block-start: 1.45rem; inset-inline-start: 42%; transform: translateX(-50%) rotate(10deg);
  inline-size: clamp(13.5rem, 21vw, 19rem); aspect-ratio: 9 / 18.6; padding: .5rem;
  border: 2px solid #a99cce; border-radius: 15% / 7.3%; background: #29223f;
  box-shadow: 4px 1px 0 #665d86, 6px 0 0 #a39abf, 7px 1px 1px #54466e, 15px 24px 44px #0b082878, inset 0 0 0 2px #160f2e;
}
.phone::before {
  content: ""; position: absolute; z-index: 1; inset-block-start: 3.5%; inset-inline-start: 50%; transform: translateX(-50%);
  inline-size: 25%; block-size: 3.1%; border-radius: 2rem; background: #070611;
}
.phone::after { content: ""; position: absolute; inset-inline-end: -.44rem; inset-block-start: 24%; block-size: 10%; inline-size: .19rem; border-radius: 2px; background: #8780a7; }
.phone-screen { inline-size: 100%; min-inline-size: 0; min-block-size: 0; border-radius: 13% / 6.5%; object-fit: contain; background: #101024; }
.phone-empty .phone-screen { background: linear-gradient(154deg, #20204a, #101024 59%); }

.features { position: relative; z-index: 1; background: var(--lilac); padding: 2.6rem 0 2.2rem; }
.features::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1; inset-inline: 0; bottom: calc(100% - 1px); block-size: 1.6rem;
  background: var(--lilac); clip-path: ellipse(58% 100% at 50% 100%);
}
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.15rem; list-style: none; padding: 0; }
.feature { grid-column: span 2; display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid #fff; border-radius: 1.25rem; background: #fbf9ff; }
.feature h3 { font-size: clamp(1.08rem, 1.7vw, 1.35rem); letter-spacing: -.026em; margin-block-end: .32rem; }
.feature p { color: var(--muted); font-size: .98rem; line-height: 1.52; text-wrap: pretty; }
.feature-icon { display: grid; place-items: center; inline-size: 2.65rem; block-size: 2.65rem; flex: none; border-radius: .8rem; color: var(--purple); background: #eee7ff; }
.feature:nth-child(n + 4) { grid-column: span 3; flex-direction: row; align-items: center; gap: .85rem; background: transparent; border: 0; border-radius: 0; padding-block: .55rem; }
.feature:nth-child(n + 4) .feature-icon { background: #e2d8fa; }

.site-footer { background: var(--night); color: #e6dff7; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-block-size: 6rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { inline-size: 4.2rem; block-size: auto; }
.footer-brand span { font-size: .85rem; }
.footer-nav a { border-radius: 3rem; padding-inline: .6rem; }
.footer-store { justify-self: end; border-radius: .55rem; padding-inline: .35rem; white-space: nowrap; gap: .6rem; }
.footer-nav a:hover, .footer-store:hover { color: white; background: #ffffff1d; }

.page-heading { background: var(--lilac); padding: 3.25rem 0 3.55rem; border-block-end: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(2.25rem, 5.1vw, 4.1rem); letter-spacing: -.055em; text-wrap: balance; }
.page-heading p { font-size: 1.05rem; color: var(--muted); margin-block-start: .6rem; }
.legal-layout { display: grid; grid-template-columns: 14rem minmax(0, 49rem); gap: clamp(2rem, 5vw, 5rem); padding-block: 3.5rem 5rem; align-items: start; }
.legal-sidebar { display: grid; gap: 1.5rem; font-size: .93rem; }
.legal-contents-mobile { display: none; }
.sidebar-heading { font-weight: 750; font-size: 1rem; margin-block-end: .45rem; }
.legal-sidebar ul { list-style: none; padding: 0; }
.legal-sidebar a { display: block; color: var(--muted); text-decoration: none; border-radius: .35rem; padding: .46rem .2rem; }
.legal-sidebar a:hover { text-decoration: underline; color: var(--purple); }
.legal-related { border-block-start: 1px solid var(--line); padding-block-start: .55rem; }
.legal-related a { color: var(--purple); display: flex; justify-content: space-between; align-items: center; min-block-size: 2.75rem; }
.legal-related svg { block-size: 1.05rem; inline-size: 1.05rem; }
.legal-article { min-inline-size: 0; font-size: 1.035rem; line-height: 1.7; }
.legal-article :is(p, ul, table) + :is(p, ul, table) { margin-block-start: 1rem; }
.legal-article h2 { font-size: clamp(1.3rem, 2.45vw, 1.75rem); line-height: 1.22; letter-spacing: -.028em; margin: 2.4rem 0 .75rem; }
.legal-article ul { padding-inline-start: 1.35rem; }
.legal-article li + li { margin-block-start: .43rem; }
.legal-article a, .faq a, .contact-link { color: var(--purple); overflow-wrap: anywhere; }
.legal-article table { inline-size: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; font-size: .97rem; line-height: 1.5; }
.legal-article table :is(th, td) { padding: .68rem .8rem; text-align: start; vertical-align: top; }
.legal-article thead { background: var(--lilac); }
.legal-article tbody th { inline-size: 47%; font-weight: 650; }
.legal-article tbody tr:nth-child(even) { background: #f5f2fc; }
.legal-article tbody tr > * { border-block-start: 1px solid var(--line); }

.support-layout { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.5fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-block: 3.4rem 5rem; }
.support-layout h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -.035em; }
.contact { border: 1px solid var(--line); background: #f6f2ff; border-radius: 1.2rem; padding: 1.45rem; }
.contact h2 { margin-block: .75rem .5rem; }
.contact p, .faq p { color: var(--muted); }
.contact-link { display: inline-block; margin-block-start: .7rem; }
.faq h2 { margin-block-end: .9rem; }
.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-of-type { border-block-start: 1px solid var(--line); }
:is(.faq, .legal-contents-mobile) summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-block-size: 2.75rem; cursor: pointer; font-weight: 700; list-style: none; border-radius: .3rem; }
.faq summary { min-block-size: 3.6rem; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--purple); }
summary svg { inline-size: 1.18rem; block-size: 1.18rem; color: var(--purple); transition: transform 140ms ease; }
details[open] > summary svg { transform: rotate(90deg); }
.faq details p { margin-block: 0 1rem; max-inline-size: 42rem; }

.error-page { display: grid; align-items: center; min-block-size: 33rem; color: white; background: linear-gradient(var(--hero-night), #14144f20), url('/assets/city-at-dusk.webp') center bottom / cover no-repeat var(--hero-night); }
.error-inner { padding-block: 3.5rem 6.5rem; text-align: center; }
.error-code { color: #dccbff; font-size: clamp(4rem, 12vw, 8rem); font-weight: 850; line-height: 1; letter-spacing: -.07em; }
.error-inner h1 { font-size: clamp(1.95rem, 4.4vw, 3.5rem); margin-block: .35rem .7rem; letter-spacing: -.05em; }
.error-inner > p:not(.error-code) { color: #eee7ff; }
.home-link { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding: .5rem 1.15rem; border-radius: 3rem; margin-block-start: 1.3rem; background: #f0e8ff; color: #301d66; text-decoration: none; font-weight: 700; }
.home-link:hover { background: white; }

@media (max-width: 61rem) {
  .wrap { inline-size: min(100% - 3rem, 73rem); }
  .feature { padding-inline: 1rem; }
  .footer-brand span { display: none; }
}

@media (max-width: 47rem) {
  .wrap { inline-size: min(100% - 2.5rem, 34rem); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: .25rem .7rem; padding-block: .5rem .45rem; }
  .site-header .brand img { inline-size: 4.25rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: .1rem; justify-content: space-between; }
  .main-nav a { padding-inline: clamp(.31rem, 2vw, .8rem); font-size: .88rem; white-space: nowrap; }
  .store-link { grid-column: 2; grid-row: 1; font-size: .87rem; }
  .hero::before { background: linear-gradient(var(--hero-night), transparent 62%), url('/assets/city-at-dusk-mobile.webp') left bottom / cover no-repeat; }
  .hero-layout { grid-template-columns: 1fr; min-block-size: auto; }
  .hero-copy { padding: 2.3rem 0 .9rem; text-align: center; }
  .hero h1 { font-size: clamp(2.65rem, 9.7vw, 4.4rem); }
  .hero-copy > p { margin: .9rem auto 1.3rem; max-inline-size: 24rem; }
  .get-app { margin-inline: auto; }
  .store-badge { padding: .46rem .8rem .46rem .5rem; gap: .55rem; }
  .store-badge img { inline-size: 2.6rem; block-size: 2.6rem; }
  .store-badge strong { font-size: 1.45rem; }
  .hero-art { min-block-size: 16rem; }
  .phone { inset-block-start: .5rem; inset-inline-start: 52%; inline-size: clamp(9rem, 39vw, 11.3rem); padding: .34rem; }
  .phone::after { inset-inline-end: -.41rem; }
  .features { padding-block: 1.45rem 1.85rem; }
  .features::before { block-size: 1.02rem; }
  .feature-grid { grid-template-columns: 1fr; gap: .65rem; }
  .feature, .feature:nth-child(n + 4) { grid-column: auto; flex-direction: row; align-items: flex-start; gap: .7rem; padding: .8rem .85rem; }
  .feature:nth-child(n + 4) { padding-block: .65rem; }
  .feature h3 { margin-block-end: .2rem; font-size: 1.12rem; }
  .feature p { font-size: .95rem; }
  .feature-icon { inline-size: 2.4rem; block-size: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: .1rem .7rem; padding-block: .75rem .55rem; }
  .footer-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; }
  .footer-nav a { font-size: .88rem; padding-inline: .25rem; }
  .footer-store { grid-column: 2; grid-row: 1; }
  .footer-brand img { inline-size: 3.5rem; }
  .page-heading { padding: 2rem 0 2.2rem; }
  .page-heading p { font-size: 1rem; }
  .legal-layout, .support-layout { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; padding-block: 1.6rem 3.2rem; }
  .legal-article { font-size: 1rem; }
  .legal-sidebar { padding: .25rem .95rem; background: #f5f0ff; border: 1px solid var(--line); border-radius: .75rem; gap: 0; }
  .legal-contents { display: none; }
  .legal-contents-mobile { display: block; }
  .legal-contents-mobile .sidebar-heading { margin: 0; }
  .legal-sidebar ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .7rem; }
  .legal-sidebar a { min-block-size: 2.75rem; padding-block: .48rem; display: flex; align-items: center; }
  .legal-related { display: flex; flex-wrap: wrap; gap: 0 1.05rem; padding-block-start: .25rem; }
  .legal-related:first-child { border: 0; padding: 0; }
  .legal-article table :is(th, td) { padding: .52rem .5rem; }
  .error-page { min-block-size: 24rem; }
}

@media (max-width: 22rem) {
  .header-inner { inline-size: calc(100% - 1.5rem); }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: .25rem; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
