:root {
  color-scheme: light;
  --ink: #241f21;
  --muted: #6f6269;
  --paper: #fffdfb;
  --sun: #fdcc52;
  --sun-dark: #d99c00;
  --berry: #8a2f6f;
  --coral: #dc2430;
  --line: rgba(36, 31, 33, 0.14);
  --shadow: 0 22px 70px rgba(36, 31, 33, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.hero {
  min-height: 96vh;
  color: #fff;
  background:
    url("../img/bg-pattern.png"),
    linear-gradient(132deg, var(--berry), var(--coral) 62%, #f27135);
  overflow: hidden;
}

.site-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.hero-grid {
  width: min(1360px, calc(100% - 40px));
  min-height: calc(96vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 36px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  margin: 0 0 32px;
  max-width: 760px;
  font-size: clamp(2.4rem, 4vw, 4.35rem);
  line-height: 1.12;
  font-weight: 250;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 strong {
  font-size: 1.02em;
}

.hero strong {
  font-weight: 850;
}

.hero b {
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-light {
  color: #fff;
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--ink);
  background: var(--sun);
  border-color: var(--sun);
}

.device-frame {
  position: relative;
  margin: 0;
  padding: clamp(30px, 4.2vw, 44px) clamp(14px, 2vw, 22px) clamp(24px, 3.6vw, 38px);
  border: 2px solid rgba(36, 31, 33, 0.42);
  border-radius: clamp(24px, 4vw, 36px);
  background: #f7f8fb;
  box-shadow: var(--shadow);
}

.device-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(12px, 1.8vw, 19px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16191f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transform: translateX(-50%);
}

.device-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.4vw, 14px);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 31, 33, 0.22);
  transform: translateX(-50%);
}

.hero-device {
  max-width: 470px;
  justify-self: center;
}

.hero-device img,
.feature-device img {
  width: 100%;
  border: 3px solid #171717;
  border-radius: 2px;
}

section {
  padding: clamp(70px, 10vw, 132px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  text-align: center;
}

.download,
.contact {
  background: linear-gradient(180deg, var(--sun), #f6b51f);
}

.download h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0;
}

.download p,
.section-heading p,
.feature-list p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.store-badge {
  display: inline-block;
  margin-top: 14px;
}

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

.section-heading {
  max-width: 820px;
  margin: 0 auto clamp(46px, 7vw, 82px);
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  margin: 30px auto 0;
  background: var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: center;
}

.feature-device {
  justify-self: center;
  width: min(100%, 330px);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.feature-list article {
  min-height: 220px;
  padding-top: 6px;
}

.feature-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-list h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: 0;
}

.feature-list p {
  margin: 0;
}

.cta {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("../img/pocketbooth-photo.jpg") center / cover no-repeat;
}

.cta h2 {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.heart {
  color: #dd4b39;
  font-size: 0.82em;
  font-weight: 800;
}

.social-links a {
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
}

.social-links svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.social-links .twitter {
  background: #1da1f2;
}

.social-links .twitter:hover,
.social-links .twitter:focus-visible {
  background: #0d95e8;
}

.social-links .facebook {
  background: #3b5998;
}

.social-links .facebook:hover,
.social-links .facebook:focus-visible {
  background: #344e86;
}

.social-links .email {
  background: #666;
}

.social-links .email:hover,
.social-links .email:focus-visible {
  background: #333;
}

.site-footer {
  padding: 26px 20px;
  text-align: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .site-nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 8px 10px 8px 0;
  }

  .hero-grid,
  .feature-grid {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.28rem, 11vw, 3.6rem);
    line-height: 1.04;
  }

  .hero-device {
    width: min(84vw, 370px);
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-list article {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .button {
    width: 100%;
    padding-inline: 18px;
  }

  .store-badge img {
    height: auto;
    width: min(210px, 100%);
  }

  .cta {
    background-position: 58% center;
  }
}
