@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --ink-2: #1c1c1e;
  --muted: #404040;
  --surface: #f6f5f4;
  --surface-hover: #eeece9;
  --border: #cccccc;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1200px;
  --gutter: 40px;
  --ease: 160ms ease;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  transition: background-color var(--ease), transform var(--ease);
}

.btn:hover {
  background: #3a3a3a;
}

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

.app-store {
  background: #000;
}

.app-store svg {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
}

.app-store__text {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
}

.app-store__small {
  font-size: 9px;
  line-height: 9px;
  font-weight: 500;
}

.app-store__big {
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.47px;
}

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

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 39px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__link {
  color: var(--muted);
  transition: color var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__menu {
  display: contents;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform var(--ease);
}

.nav__toggle span:first-child {
  transform: translateY(-3.5px);
}

.nav__toggle span:last-child {
  transform: translateY(3.5px);
}

.nav.is-open .nav__toggle span:first-child {
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  transform: rotate(-45deg);
}

/* ---------- Load animation ---------- */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -12px;
  }
}

.nav {
  animation: drop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1,
.hero .lead,
.hero__copy .btn,
.hero__phone {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 0.1s;
}

.hero .lead {
  animation-delay: 0.22s;
}

.hero__copy .btn {
  animation-delay: 0.34s;
}

.hero__phone {
  animation-name: rise-phone;
  animation-duration: 1s;
  animation-delay: 0.4s;
}

@keyframes rise-phone {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 140px var(--gutter) 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(30% 40% at 100% 100%, rgba(126, 225, 205, 0.95), transparent 75%),
    radial-gradient(45% 75% at 92% 100%, rgba(84, 140, 230, 0.85), transparent 75%),
    radial-gradient(70% 28% at 50% 100%, rgba(140, 180, 245, 0.7), transparent 80%),
    radial-gradient(30% 35% at 0% 0%, rgba(200, 215, 245, 0.35), transparent 70%),
    #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(150, 188, 245, 0.55), transparent);
  pointer-events: none;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 600px;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  max-width: 560px;
  margin: 0 auto;
  font-size: 61px;
  font-weight: 700;
  line-height: 67px;
  letter-spacing: -2.44px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
}

.hero__cta-mobile {
  display: none;
}

.hero__phone {
  width: min(100%, 355px);
  aspect-ratio: 355 / 600;
  overflow: hidden;
  padding-top: 8px;
}

.hero__phone img {
  width: 100%;
  height: auto;
}

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

.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 547px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2,
.faq h2 {
  margin: 0;
  font-size: 49px;
  font-weight: 700;
  line-height: 54px;
  letter-spacing: -1.96px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  gap: 16px;
  height: 376px;
  padding: 24px 24px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink-2);
}

.card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 39px;
  font-weight: 700;
  line-height: 43px;
  letter-spacing: -1.56px;
}

.card__title svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.4px;
}

.card__media {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.card__media img {
  width: 262px;
  height: auto;
  align-self: flex-start;
}

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

.faq__inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.faq h2 {
  flex: 1;
  text-align: left;
}

.faq__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
}

.faq__item {
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: background-color var(--ease);
}

.faq__item:hover {
  background: var(--surface-hover);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 4px 16px 4px 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  line-height: 22px;
  letter-spacing: -0.32px;
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 40px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 5px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  margin: 0;
  padding: 4px 56px 20px 32px;
  color: var(--muted);
  line-height: 22px;
  letter-spacing: -0.32px;
}

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

.footer {
  margin: 0 clamp(16px, 3.5vw, 58px);
  padding: 80px var(--gutter) 64px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #1c1d1f 0%, #26384f 35%, #34628f 70%, #4387c9 100%);
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__copy {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__col h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.6px;
}

.footer__col a {
  line-height: 22px;
  opacity: 1;
  transition: opacity var(--ease);
}

.footer__col a:hover {
  opacity: 0.65;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 140px var(--gutter) 96px;
}

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

.legal__head h1 {
  margin: 0 0 16px;
  font-size: 61px;
  font-weight: 700;
  line-height: 67px;
  letter-spacing: -2.44px;
}

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

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.prose h2 {
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #e7e5e2;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.prose .doc-title {
  margin-top: 96px;
  font-size: 36px;
  letter-spacing: -1.2px;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #b5b5b5;
  transition: text-decoration-color var(--ease);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose .short {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
}

.prose .toc a {
  text-decoration: none;
}

.prose .toc a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7e5e2;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }

  .card {
    flex-direction: column;
    height: 560px;
  }

  .card__text {
    flex: none;
    gap: 16px;
    padding-bottom: 8px;
  }

  .card p {
    font-size: 17px;
    line-height: 24px;
  }

  .card__media img {
    width: min(100%, 300px);
  }

  .faq__inner {
    gap: 32px;
  }

  .faq h2 {
    white-space: normal;
  }
}

/* ---------- Mobile ---------- */

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

  html {
    scroll-padding-top: 96px;
  }

  .nav {
    top: 12px;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 8px 8px 8px 14px;
  }

  .brand {
    font-size: 22px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 12px 6px 6px;
  }

  .nav.is-open {
    background: rgba(255, 255, 255, 0.9);
  }

  .nav.is-open .nav__menu {
    display: flex;
    animation: rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .nav__menu .nav__link {
    padding: 10px 0;
    font-size: 18px;
  }

  .nav__menu .btn {
    margin-top: 8px;
    padding: 12px 14px;
  }

  .hero {
    gap: 32px;
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -1.9px;
  }

  .hero__cta-desktop {
    display: none;
  }

  .hero__cta-mobile {
    display: inline-flex;
  }

  .hero__phone {
    width: min(82%, 320px);
    aspect-ratio: 355 / 440;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 32px;
    text-align: left;
  }

  .section-head h2,
  .faq h2 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1.4px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    height: auto;
    max-height: 600px;
    padding: 24px 20px 0;
  }

  .card__title {
    justify-content: center;
  }

  .card__media img {
    width: min(100%, 320px);
  }

  .faq__inner {
    flex-direction: column;
    gap: 32px;
  }

  .faq h2 {
    width: 100%;
    text-align: center;
  }

  .faq__list {
    width: 100%;
    max-width: none;
  }

  .faq__a p {
    padding: 4px 24px 20px;
  }

  .footer {
    padding: 48px 24px 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal {
    padding-top: 112px;
  }

  .legal__head h1 {
    font-size: 42px;
    line-height: 46px;
    letter-spacing: -1.6px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .prose .doc-title {
    font-size: 30px;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
