:root {
  --bg: #1d1f26;
  --bg-deep: #17181e;
  --card: #25272f;
  --card-hi: #2c2f38;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f4f4f5;
  --text-2: rgba(244, 244, 245, 0.72);
  --text-3: rgba(244, 244, 245, 0.48);
  --orange: #f97316;
  --orange-hi: #fb923c;
  --green: #4ade80;
  --radius: 20px;
  --wrap: 1120px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Set by i18n.js when the page opens in a language other than English */
html.i18n-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  color: var(--orange-hi);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 31, 38, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}

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

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

.nav__links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}

.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 9px;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
}

.lang button:hover {
  color: var(--text);
}

.lang button[aria-pressed="true"] {
  background: var(--card-hi);
  color: var(--text);
}

/* ---------- Store button ---------- */

.cta-row {
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 14px;
  padding: 11px 24px 11px 20px;
  min-height: 60px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.18);
}

.store:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.28);
}

.store__apple {
  width: 26px;
  height: 30px;
  flex-shrink: 0;
}

.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store__text small {
  font-size: 12px;
  font-weight: 500;
}

.store__text strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Phone frame ---------- */

.phone {
  margin: 0;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 620 / 1348;
  padding: 8px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3d47, #121318 40%, #0b0c10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  background: var(--bg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  letter-spacing: -0.02em;
}

.hero h1 em,
.feature h2 em {
  font-style: italic;
  color: var(--orange);
}

.lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 34em;
}

.hero__note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-3);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: 10% 0 auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.32), transparent);
  filter: blur(30px);
  pointer-events: none;
}

/* Home in front, a guide page behind it, like the App Store screenshots */
.pair.pair--hero {
  max-width: 480px;
  height: 700px;
}

.pair.pair--hero .phone {
  width: 290px;
}

.pair.pair--hero .phone--back {
  left: auto;
  right: 0;
  top: 0;
  transform: rotate(6deg);
}

.pair.pair--hero .phone--front {
  left: 0;
  right: auto;
  top: 70px;
  transform: rotate(-4deg);
}

/* ---------- Highlights ---------- */

.highlights {
  padding: 32px 0 24px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hl {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.hl svg,
.card svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--orange-hi);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}

.hl h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.hl p {
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- Features ---------- */

.features {
  padding: 64px 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature > .phone,
.feature > .pair {
  justify-self: center;
}

.feature--flip .feature__copy {
  order: 2;
}

.feature h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.feature__copy > p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 32em;
}

.feature__copy b {
  color: var(--text);
  font-weight: 600;
}

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.pair {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 640px;
}

.pair .phone {
  position: absolute;
  width: 270px;
}

.phone--back {
  left: 0;
  top: 0;
  transform: rotate(-4deg);
  opacity: 0.9;
}

.phone--front {
  right: 0;
  top: 60px;
  transform: rotate(3deg);
}

/* ---------- Why ---------- */

.why {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-2);
  font-size: 16px;
}

.approach {
  margin: 48px auto 0;
  max-width: 760px;
  text-align: center;
}

.approach h3 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.approach p {
  color: var(--text-2);
  font-size: 18px;
}

.approach .source {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ---------- How ---------- */

.how {
  padding: 88px 0 56px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-hi);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 56px 0 88px;
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 64px;
  font-size: 18px;
  font-weight: 600;
}

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

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.faq details p {
  color: var(--text-2);
  padding: 0 0 22px;
  max-width: 40em;
}

/* ---------- Final ---------- */

.final {
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(249, 115, 22, 0.16), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.final h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 16em;
}

.final p {
  margin: 16px 0 32px;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
}

.footer a {
  color: var(--text-2);
}

.footer__muted {
  margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    padding-top: 44px;
  }

  .hero__inner,
  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .pair.pair--hero {
    height: 640px;
    max-width: 440px;
  }

  .pair.pair--hero .phone {
    width: 260px;
  }

  .highlights__grid,
  .why__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer__muted {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .brand span {
    font-size: 18px;
  }

  .feature {
    padding: 36px 0;
  }

  .feature__copy > p {
    font-size: 17px;
  }

  .pair {
    height: 520px;
    max-width: 340px;
  }

  .pair .phone {
    width: 210px;
  }

  .phone--front {
    top: 50px;
  }

  .pair.pair--hero {
    height: 540px;
    max-width: 340px;
  }

  .pair.pair--hero .phone {
    width: 215px;
  }

  .pair.pair--hero .phone--front {
    top: 56px;
  }
}

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

  .store {
    transition: none;
  }
}
