:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --card-bg: #faf9f7;
  --gray-96: #f4f4f5;
  --rule: rgba(3, 58, 55, 0.05);
  --ink: #000000;
  --ink-92: rgba(0, 0, 0, 0.92);
  --ink-60: rgba(0, 0, 0, 0.6);
  --side-padding: clamp(20px, 5vw, 180px);
  --container-max: 1152px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.site-header {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
}

.site-main {
  flex: 0 0 auto;
  width: 100%;
}

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  padding-top: 62px;
}

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

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

/* ---------- Header ---------- */

.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
}

.header-inner--legal {
  justify-content: flex-start;
}

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

.brand--legal {
  gap: 8px;
}

.brand-mark-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand-mark-link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.brand-mark {
  display: inline-flex;
  width: 20px;
  height: 24px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  color: var(--ink);
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  letter-spacing: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0;
  gap: 0;
}

.lang-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.lang-icon img {
  width: 100%;
  height: 100%;
}

.lang-label {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding-left: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 26.25px;
  color: var(--ink);
}

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

.hero {
  width: 100%;
  padding-top: 34px;
  padding-bottom: 96px;
}

.hero-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 35px 50px;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1060px;
  min-height: 410px;
  margin-inline: auto;
}

.hero-art {
  flex: 0 0 auto;
  width: 384px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.hero-copy {
  flex: 0 0 auto;
  width: 576px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 48px;
}

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 31.2px;
  color: var(--ink);
  letter-spacing: 0;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.hero-title-mark {
  font-weight: 700;
  font-size: 21.7px;
  line-height: 26px;
  vertical-align: super;
  margin-inline: 0 0;
  position: relative;
  top: -0.55em;
}

.hero-title-suffix {
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 26px;
  line-height: 46.8px;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-tagline {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 24.5px;
  color: var(--ink-92);
  letter-spacing: 0;
}

.hero-cta {
  padding-top: 34px;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-start;
}

.appstore {
  display: inline-flex;
  align-items: center;
}

.appstore img {
  height: 52px;
  width: auto;
}

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

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 87px;
  padding-block: 0;
}

.footer-link-groups {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding-inline: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 160px;
}

.footer-follow {
  width: auto;
  min-width: 70px;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-heading {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  letter-spacing: 0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.footer-list a {
  display: inline-block;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
}

.footer-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 13px;
  background: var(--gray-96);
  border-radius: 10px;
  color: var(--ink);
}

.social-link img {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: #ebebee;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 46px 0 45px;
  border-top: 1px solid var(--rule);
}

.footer-mark {
  display: inline-flex;
  width: 20px;
  height: 24px;
}

.footer-mark img {
  width: 100%;
  height: 100%;
}

.footer-copyright {
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  color: var(--ink-60);
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  color: var(--ink-60);
}

.footer-icp:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Legal Pages ---------- */

.legal-page {
  background: #fffdf9;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

.legal-main {
  width: 100%;
  padding: 64px var(--side-padding) 112px;
}

.legal-document {
  width: min(100%, 820px);
  margin-inline: auto;
  color: rgba(0, 0, 0, 0.82);
  font-family: inherit;
  font-size: clamp(17px, 2.5vw, 24px);
  line-height: 1.78;
  letter-spacing: 0;
}

.legal-document h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
}

.legal-updated {
  margin: 0 0 26px;
  color: rgba(0, 0, 0, 0.34);
}

.legal-document h2 {
  margin: 38px 0 12px;
  font-size: inherit;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.84);
}

.legal-document p {
  margin: 0 0 22px;
}

.legal-document a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

@media (max-width: 900px) {
  :root {
    --side-padding: 24px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 32px 24px;
    min-height: 0;
  }

  .hero-art {
    width: 100%;
    height: auto;
    max-width: 320px;
  }

  .hero-art img {
    width: 100%;
    height: auto;
    max-width: 240px;
  }

  .hero-copy {
    width: 100%;
    padding-left: 0;
    align-items: center;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-cta {
    padding-top: 16px;
    padding-bottom: 0;
    justify-content: center;
  }

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

  .footer-link-groups {
    width: 100%;
    padding-inline: 0;
    gap: 24px;
  }

  .footer-follow {
    padding-inline: 0;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .legal-main {
    padding-top: 48px;
    padding-bottom: 88px;
  }
}

@media (max-width: 480px) {
  :root {
    --side-padding: 22px;
  }

  .hero-subtitle {
    font-size: 22px;
    line-height: 36px;
  }

  .footer-link-groups {
    flex-direction: column;
    gap: 24px;
  }

  .footer-col {
    width: 100%;
  }

  .legal-main {
    padding-top: 42px;
  }

  .legal-document {
    font-size: 18px;
    line-height: 1.85;
  }
}
