/* The whole site: page frame, header, buttons, store links, FAQ, the
   download section and the footer. The look a visitor picks on the home page
   sets --primary, --accent and --wash, here and on every other page. */
:root {
  --primary: #1fc265;
  --accent: #fbc02d;
  --on-primary: #0b0d10;
  --look-bg: #0c0e10;
  --look-text: #ffffff;
  --wash-a: #1fc265;
  --wash-b: #0c0e10;
  --look-font: "IBM Plex Sans";
  --look-weight: 500;
  --look-r: 16px;

  --page: #0a0c0e;
  --ink: #f3f5f7;
  --muted: #a3acb6;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --display: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The look's colors glow behind the page. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 110vh;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 78% 22%, color-mix(in srgb, var(--wash-a) 30%, transparent), transparent 70%),
    radial-gradient(40% 40% at 15% 8%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(45% 40% at 70% 70%, color-mix(in srgb, var(--wash-b) 35%, transparent), transparent 75%);
  transition: background 0.6s ease;
  pointer-events: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

svg .fill,
.stars svg {
  fill: currentColor;
  stroke: none;
}

.icons {
  display: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ------------------------------------------------------------- buttons */

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.3s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
}

.store-row.center {
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 22px 8px 18px;
  border-radius: 16px;
  background: #f5f7f9;
  color: #0b0d10;
  text-decoration: none;
  font: 600 19px/1.1 var(--body);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.store:hover {
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.45);
}

.store:active {
  transform: scale(0.97);
}

.store svg {
  width: 26px;
  height: 26px;
}

.store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

/* The store that fits the visitor's phone leads, in the look's color. */
.is-android .store-android,
.is-ios .store-ios {
  order: -1;
  background: var(--primary);
  color: var(--on-primary);
}

.is-android .store-ios,
.is-ios .store-android {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.qr {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 230px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.qr img {
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  image-rendering: pixelated;
}

.is-desktop .qr {
  display: inline-flex;
}

/* ----------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  /* Lines up with the 1200px content column on wide screens. */
  padding: 0 max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--page) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 22px/1 var(--display);
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--card);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font: 700 13px/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 800;
}

.ink {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 18px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #ffc93c;
}

.show-me,
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.show-me svg,
.link svg {
  transition: transform 0.2s ease;
}

.show-me:hover svg,
.link:hover svg {
  transform: translateX(4px);
}

.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.faq h2 {
  margin-bottom: 28px;
  text-align: center;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  list-style: none;
  padding: 20px 40px 20px 0;
  font: 600 18px/1.3 var(--display);
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 26px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 20px;
  color: var(--muted);
}

.final {
  max-width: 1100px;
  margin: 20px auto 80px;
  padding: 64px var(--gutter);
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--wash-a) 35%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
}

.final > img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px -10px color-mix(in srgb, var(--primary) 70%, transparent);
}

.final p {
  color: var(--muted);
  margin: 0;
}

.final h2 {
  margin-bottom: 12px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 18px/1 var(--display);
  color: var(--ink);
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer nav a {
  text-decoration: none;
}

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

.footer p {
  margin: 0 0 0 auto;
}

.sticky-cta {
  display: none;
}

/* --------------------------------------------------------------- small */

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--card);
}

.menu-btn {
  display: none;
}

/* Narrow screens: the links fold into a menu under the header. */
@media (max-width: 360px) {
  .nav {
    gap: 12px;
  }

  .nav .btn-small {
    padding: 0 14px;
    font-size: 14px;
  }

  .brand {
    font-size: 20px;
  }
}

@media (max-width: 1080px) {
  .nav .btn {
    margin-left: auto;
  }

  .menu-btn {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    border: 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
  }

  .menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform 0.2s ease;
  }

  .nav.open .menu-btn span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav.open .menu-btn span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px var(--gutter) 18px;
    /* Solid: blur can't work inside the header, which blurs already. */
    background: var(--page);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 17px;
  }
}

@media (max-width: 959px) {

  .footer p {
    margin: 0;
  }

  .sticky-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 10px;
    border-radius: 20px;
    background: rgba(18, 20, 22, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-size: 13px;
    color: var(--muted);
    transform: translateY(140%);
    transition: transform 0.3s ease;
  }

  .sticky-cta.show {
    transform: none;
  }

  .sticky-cta img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .sticky-cta span {
    flex: 1;
    line-height: 1.25;
  }

  .sticky-cta b {
    display: block;
    color: var(--ink);
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .store-row .store {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
