:root {
  --canvas: #f6f4f0;
  --ink: #39394d;
  --ink-muted: rgba(57, 57, 77, 0.5);
  --white: #ffffff;
  --footer: #ede8e0;
  --blue: #079cf3;
  --orange: #ff5600;
  --peach: #ff9200;
  --yellow: #fee500;
  --header-h: 88px;
  --header-clearance: 89px;
  --radius-pill: 41px;
  --radius-island: 70px;
  --max: 1200px;
  --gap-section: 64px;
  --pad-x: 40px;
  --font-body: "Dongle", system-ui, sans-serif;
  --font-brand: "Dongle", system-ui, sans-serif;
}

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

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 28px;
  background: var(--canvas);
  color: #39394d;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 12px;
}

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

.page {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  padding: 24px var(--pad-x) 24px;
  min-height: 100vh;
}

/* Header */

.header-fixed {
  position: fixed;
  top: 13px;
  left: 54px;
  right: 54px;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1172px);
  height: var(--header-h);
  padding: 16px 16px 16px 24px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.store-badge {
  display: block;
  flex-shrink: 0;
  margin-right: 8px;
  line-height: 0;
}

.store-badge img {
  display: block;
  height: 56.4px;
  width: auto;
}

/* Hero */

.hero {
  position: relative;
  margin-top: var(--header-clearance);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-island);
  overflow: hidden;
  background: linear-gradient(180deg, var(--orange) 0%, var(--peach) 48%, var(--yellow) 100%);
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 28px 24px 0;
  text-align: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 100px;
  line-height: 0.75;
  color: var(--canvas);
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 56px;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: 250px;
  aspect-ratio: 500 / 1024;
  margin-bottom: -40px;
  filter: drop-shadow(0 24px 40px rgba(57, 57, 77, 0.32));
}

.phone-screen {
  position: absolute;
  z-index: 1;
  top: 1.86%;
  right: 4.2%;
  bottom: 1.86%;
  left: 4.2%;
  background: var(--canvas);
  border-radius: 13.6% / 6.35%;
  overflow: hidden;
}

.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.phone-shot:nth-child(1) {
  opacity: 1;
}

.phone-shot:nth-child(2),
.phone-shot:nth-child(3) {
  opacity: 0;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

.phone-shot:nth-child(2) {
  animation-name: phone-shot-2;
}

.phone-shot:nth-child(3) {
  animation-name: phone-shot-3;
}

@keyframes phone-shot-2 {
  0%, 30% { opacity: 0; }
  36%, 63% { opacity: 1; }
  69%, 100% { opacity: 0; }
}

@keyframes phone-shot-3 {
  0%, 63% { opacity: 0; }
  69%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-shot:nth-child(2),
  .phone-shot:nth-child(3) {
    animation: none;
    opacity: 0;
  }
}

.phone-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Footer */

.footer-island {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 29px;
  background: var(--footer);
  border-radius: var(--radius-island);
  color: #39394d;
  font-size: 28px;
  line-height: 0.7;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
}

.footer-brand img {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
}

.footer-email {
  font-weight: 300;
  font-size: 80%;
  line-height: 1;
  color: #39394d;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-email:hover,
.footer-email:focus,
.footer-email:active {
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-size: 80%;
  line-height: 1;
  white-space: nowrap;
}

.footer-links-sep {
  display: inline;
  font-weight: 300;
  color: #39394d;
}

.footer-links a {
  font-weight: 300;
  color: #39394d;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.08em;
}

.copyright {
  margin: 0;
  font-weight: 300;
  font-size: 80%;
  line-height: 1;
  white-space: nowrap;
}

/* Inner legal pages */

.inner {
  margin-top: var(--header-clearance);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.inner-head {
  text-align: center;
}

.legal-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: #39394d;
}

.lede {
  margin: 8px auto 0;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  color: #39394d;
  max-width: 22em;
}

.legal-card {
  background: #fff;
  border-radius: var(--radius-island);
  padding: 48px 56px;
}

.legal-card h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  margin: 28px 0 8px;
  color: #39394d;
}

.legal-card h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  margin: 20px 0 6px;
  color: #39394d;
}

.legal-card p,
.legal-card li {
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  color: #39394d;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.2em;
}

.legal-card a {
  color: #39394d;
}

.legal-card strong {
  font-weight: 700;
}

.legal-updated {
  font-size: 24px;
  font-weight: 300;
  color: #39394d;
  margin-bottom: 16px;
}

/* Responsive */

@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
    --gap-section: 36px;
    --radius-island: 40px;
    --header-h: 72px;
  }

  .header-fixed {
    left: 16px;
    right: 16px;
    top: 10px;
  }

  .header-pill {
    height: var(--header-h);
    padding: 12px 12px 12px 16px;
  }

  .brand-name {
    font-size: 28px;
  }

  .store-badge img {
    height: 43.2px;
  }

  .legal-card {
    padding: 28px 22px;
  }

  .legal-title {
    font-size: 44px;
  }

  .hero-title {
    font-size: 70px;
    line-height: 0.75;
    padding: 20px 16px 0;
  }

  .hero-stage {
    margin-top: 40px;
  }

  .phone {
    width: 210px;
    height: auto;
    margin-bottom: -24px;
  }

  .footer-island {
    padding: 29px 12px;
  }
}
