:root {
  --canvas: #fcfaf7;
  --surface: #ffffff;
  --sunken: #f5f1ec;
  --border: #ede5db;
  --ink: #22232a;
  --body: #4a4850;
  --secondary: #7a7680;
  --muted: #8e8a93;
  --tertiary: #a8a3ab;
  --primary: #ffc22e;
  --primary-on: #2a2110;
  --amber-bg: #fff3d6;
  --amber-fg: #9a6300;
  --amber-ink: #3b2e12;
  --amber-wash: #fff3cc;
  --purple-bg: #eee6fc;
  --purple-fg: #7b5cd6;
  --green-bg: #e8f6ee;
  --green-fg: #23854f;
  --orange-bg: #fff0e5;
  --orange-fg: #c2551f;
  --shadow: 0 20px 50px rgba(160, 122, 84, 0.2);
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', Nunito, var(--font);
  --gutter: 120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

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

.pill {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.pill--amber {
  background: var(--amber-bg);
  color: var(--amber-fg);
}

.pill--purple {
  background: var(--purple-bg);
  color: var(--purple-fg);
}

.pill--green {
  background: var(--green-bg);
  color: var(--green-fg);
}

.pill--orange {
  background: var(--orange-bg);
  color: var(--orange-fg);
}

.cta {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-on);
  font-size: 17px;
  font-weight: 800;
}

.cta--dark {
  background: var(--ink);
  color: #fff;
}

.cta--ghost {
  padding: 14px 30px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.phone {
  border-radius: 12% / 5.6%;
  box-shadow: var(--shadow);
}

/* Nav */

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand__name {
  font-family: var(--font-round);
  font-size: 24px;
  font-weight: 900;
}

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

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

.nav__download {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav__links + .nav__end {
  margin-left: 0;
}

/* Language menu: a disclosure, so it works without scripts */

.lang {
  position: relative;
}

.lang__current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.lang__current::-webkit-details-marker {
  display: none;
}

.lang__current::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang__current:hover,
.lang[open] .lang__current {
  background: var(--sunken);
  color: var(--ink);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lang__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--body);
}

.lang__menu a:hover {
  background: var(--sunken);
  color: var(--ink);
}

.lang__menu a[aria-current='page'] {
  font-weight: 700;
  color: var(--ink);
}

/* Hero */

.hero {
  background: linear-gradient(var(--amber-wash), var(--canvas));
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 56px;
}

.hero__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
}

.hero__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero__lead {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.hero__note {
  font-size: 14px;
  color: var(--muted);
}

.hero__platforms {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.hero__phones {
  position: relative;
  flex: 0 0 560px;
  height: 640px;
  overflow: hidden;
}

.hero__phone {
  position: absolute;
  width: 401px;
}

.hero__phone--front {
  left: 8px;
  top: 24px;
}

.hero__phone--back {
  left: 220px;
  top: 60px;
}

/* Stats */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 48px;
  padding-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat strong {
  font-family: var(--font-round);
  font-size: 40px;
  font-weight: 900;
}

.stat span {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
}

/* Features */

.feature__inner {
  display: flex;
  align-items: center;
  gap: 96px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.feature__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.3;
}

.feature__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
}

.feature__panel {
  position: relative;
  flex: 0 0 520px;
  aspect-ratio: 520 / 600;
  border-radius: 32px;
  overflow: hidden;
}

.panel--amber {
  background: var(--amber-wash);
}

.panel--purple {
  background: var(--purple-bg);
}

.panel--green {
  background: var(--green-bg);
}

.feature__phone {
  position: absolute;
  left: 10.77%;
  top: 9.33%;
  width: 77.1%;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 0;
  list-style: none;
}

.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.points li::before {
  content: '✓';
  flex: 0 0 24px;
  height: 24px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.points--amber li::before {
  background: var(--amber-bg);
  color: var(--amber-fg);
}

.points--purple li::before {
  background: var(--purple-bg);
  color: var(--purple-fg);
}

.points--green li::before {
  background: var(--green-bg);
  color: var(--green-fg);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  list-style: none;
}

.steps li {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.steps li:not(:first-child) {
  position: relative;
  margin-left: 24px;
}

.steps li:not(:first-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: -24px;
  width: 24px;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 800;
  color: var(--tertiary);
}

/* Widgets */

.widgets {
  background: var(--sunken);
}

.widgets__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
}

.widgets__inner .pill {
  align-self: center;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.widgets__body {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
}

.widgets__image {
  margin-top: 32px;
  border-radius: 32px;
}

/* Platforms */

.platforms .wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.platforms__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.platform__name {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 900;
}

.platform p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

/* Closing */

.closing .wrap {
  padding-bottom: 100px;
}

.closing__card {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 72px;
  border-radius: 40px;
  background: linear-gradient(90deg, #ffd45c, var(--primary));
}

.closing__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.closing__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.closing__title {
  font-size: 44px;
  font-weight: 900;
  color: var(--amber-ink);
}

.closing__body {
  font-size: 19px;
  color: var(--amber-ink);
  opacity: 0.8;
}

.closing__mascot {
  width: 240px;
}

/* Footer */

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

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner a {
  color: var(--secondary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Privacy policy and other long text pages */

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

.legal h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.2;
}

.legal__meta {
  margin: 8px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.legal p,
.legal ul {
  margin: 0 0 16px;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
}

.legal .word-list {
  columns: 6 112px;
  column-gap: 16px;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.legal .word-list li {
  margin: 0;
  break-inside: avoid;
}

/* Tablet: stack features, keep two-column stats */

@media (max-width: 1199px) {
  :root {
    --gutter: 48px;
  }

  .nav__links {
    gap: 24px;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__phones {
    flex-basis: auto;
    width: 560px;
    max-width: 100%;
    height: 520px;
    margin: 0 auto;
  }

  .feature__inner,
  .feature__inner--image-first {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .feature__inner:not(.feature__inner--image-first) {
    flex-direction: column;
  }

  .feature__panel {
    flex-basis: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .widgets__inner,
  .platforms .wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .closing__card {
    padding: 48px;
  }

  .closing__mascot {
    width: 180px;
  }
}

/* Phone */

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  .nav__links {
    display: none;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__icon {
    width: 34px;
    height: 34px;
  }

  .nav__download {
    padding: 8px 16px;
    font-size: 14px;
  }

  .nav__end {
    gap: 4px;
  }

  .lang__current {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero__inner {
    padding-top: 32px;
  }

  .hero__copy {
    gap: 18px;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .cta {
    padding: 14px 26px;
    font-size: 16px;
  }

  .cta--ghost {
    padding: 12px 24px;
  }

  .hero__phones {
    width: 100%;
    height: 420px;
  }

  .hero__phone {
    width: 220px;
  }

  .hero__phone--front {
    left: calc(50% - 180px);
    top: 16px;
  }

  .hero__phone--back {
    left: calc(50% - 30px);
    top: 44px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .stat strong {
    font-size: 32px;
  }

  .stat span {
    font-size: 13px;
  }

  .feature__inner,
  .feature__inner--image-first {
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .feature__title,
  .section-title {
    font-size: 28px;
  }

  .feature__body,
  .widgets__body {
    font-size: 16px;
  }

  .points li {
    align-items: flex-start;
    font-size: 15px;
  }

  .widgets__inner,
  .platforms .wrap {
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .widgets__image {
    margin-top: 8px;
    border-radius: 20px;
  }

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

  .platform {
    padding: 24px;
  }

  .closing .wrap {
    padding-bottom: 56px;
  }

  .closing__card {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
    padding: 32px 24px;
    border-radius: 28px;
  }

  .closing__title {
    font-size: 30px;
  }

  .closing__body {
    font-size: 16px;
  }

  .closing__mascot {
    width: 140px;
    margin: 0 auto;
  }

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

/* The narrowest phones: the icon alone names the brand, so the language menu and the button fit beside it */
@media (max-width: 374px) {
  .brand__name {
    display: none;
  }
}
