:root {
  --ink: #171412;
  --paper: #fff7dc;
  --paper-deep: #f7edc7;
  --white: #ffffff;
  --mango: #ffc42e;
  --tomato: #fa3d33;
  --mint: #40d693;
  --sky: #35a6ef;
  --muted: #77726a;
  --line: rgba(23, 20, 18, 0.2);
  --shadow: rgba(23, 20, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  font-weight: 900;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Shared legal and support pages */
.shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 1000;
}

.face {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--mango);
  box-shadow: 5px 5px 0 var(--shadow);
  transform: rotate(-4deg);
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.shell .hero {
  display: grid;
  gap: 22px;
  padding: 34px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.shell h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  line-height: 0.95;
}

.shell h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.shell p,
.shell li {
  font-size: 1.02rem;
}

.tagline {
  max-width: 640px;
  font-size: 1.22rem;
  font-weight: 800;
  color: rgba(23, 20, 18, 0.72);
}

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

.button {
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--mango);
  box-shadow: 4px 4px 0 var(--shadow);
  text-decoration: none;
}

.button.secondary {
  background: var(--mint);
}

.card {
  margin-top: 24px;
  padding: 22px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.small {
  color: rgba(23, 20, 18, 0.64);
  font-size: 0.92rem;
  font-weight: 700;
}

.shell footer {
  margin-top: 42px;
  color: rgba(23, 20, 18, 0.64);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Homepage */
.home-page {
  overflow-x: hidden;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 247, 220, 0.96);
}

.home-nav,
.home-hero,
.how-band,
.screenshots-section,
.unlock-band,
.share-section,
.final-cta,
.home-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.home-nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.62rem;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
}

.home-brand img {
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-2deg);
}

.home-brand > span > span,
.home-hero h1 span {
  color: var(--tomato);
}

.home-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.home-links a,
.footer-links a {
  text-decoration: none;
}

.home-links a:hover,
.home-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--tomato);
}

.app-store-button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: fit-content;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 1.24rem;
  font-weight: 1000;
  line-height: 1.02;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--shadow);
}

.app-store-button small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 800;
}

.apple-mark {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.app-store-button-small {
  min-height: 52px;
  padding: 7px 14px;
  font-size: 1rem;
  box-shadow: none;
}

.app-store-button-small .apple-mark {
  font-size: 1.72rem;
}

.home-hero {
  min-height: min(760px, calc(100svh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(52px, 7vw, 92px) 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(5rem, 9vw, 8.2rem);
  line-height: 0.86;
  font-weight: 1000;
}

.hero-lede {
  max-width: 640px;
  margin: 30px 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.65rem);
  font-weight: 1000;
  line-height: 1.08;
}

.hero-detail {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.text-link {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-note {
  display: flex;
  gap: 0;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  flex-wrap: wrap;
}

.hero-note > * {
  position: relative;
  padding: 0 12px;
}

.hero-note > :first-child {
  padding-left: 0;
  color: var(--ink);
}

.hero-note > :not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tomato);
}

.hero-phones {
  position: relative;
  min-height: 680px;
}

.phone-shot {
  position: absolute;
  margin: 0;
  width: min(310px, 44vw);
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 15px 18px 0 var(--shadow);
}

.phone-shot img {
  width: 100%;
  height: auto;
}

.phone-shot-back {
  top: 42px;
  right: 0;
  transform: rotate(6deg);
}

.phone-shot-front {
  left: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(-3deg);
}

.hero-stamp {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  color: var(--white);
  background: var(--tomato);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 6px 6px 0 var(--shadow);
  font-size: 1.18rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  transform: rotate(10deg);
}

.how-band {
  padding-block: clamp(64px, 8vw, 102px);
  border-top: 3px solid var(--ink);
}

.section-heading {
  max-width: 710px;
  margin-bottom: 42px;
}

.section-heading-centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.unlock-band h2,
.share-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.section-heading > p:last-child,
.unlock-band p,
.share-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 9px 9px 0 var(--shadow);
}

.step-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 30px;
}

.step-item + .step-item {
  border-left: 3px solid var(--ink);
}

.step-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 1000;
}

.step-icon-mango { background: var(--mango); }
.step-icon-mint { background: var(--mint); }
.step-icon-sky { background: var(--sky); }

.step-item h3 {
  margin: 3px 0 8px;
  font-size: 1.15rem;
  line-height: 1.05;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
}

.screenshots-section {
  padding-block: clamp(68px, 8vw, 112px);
  border-top: 3px solid var(--ink);
}

.screenshots-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.app-screen {
  margin: 0;
}

.app-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 647 / 1400;
  object-fit: contain;
  border: 4px solid var(--ink);
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 12px 14px 0 var(--shadow);
}

.app-screen figcaption {
  margin-top: 22px;
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
}

.app-screen-one { transform: rotate(-2deg); }
.app-screen-two { margin-top: 70px; transform: rotate(2deg); }
.app-screen-three { margin-top: 20px; transform: rotate(-1deg); }

.unlock-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  padding: 34px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 9px 9px 0 var(--shadow);
}

.unlock-band h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.unlock-band p {
  max-width: 620px;
  margin: 12px 0 0;
}

.unlock-mascot {
  border-radius: 20px;
  transform: rotate(-5deg);
}

.share-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
  padding-block: clamp(80px, 10vw, 140px);
}

.share-copy {
  position: relative;
}

.share-copy::after {
  content: "";
  display: block;
  width: 112px;
  height: 12px;
  margin-top: 26px;
  background: var(--tomato);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.share-footnote {
  color: var(--ink) !important;
  font-size: 0.9rem !important;
}

.share-screen {
  width: min(500px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 14px 16px 0 var(--shadow);
  transform: rotate(3deg);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 44px;
  color: var(--white);
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 8px 8px 0 0;
}

.final-cta .eyebrow {
  color: var(--mango);
}

.app-store-button-mango {
  color: var(--ink);
  background: var(--mango);
  border-color: var(--mango);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.2);
}

.home-footer {
  color: var(--white);
  background: var(--ink);
}

.home-footer-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 24px;
}

.home-brand-small {
  color: var(--white);
  font-size: 1.22rem;
}

.home-brand-small img {
  box-shadow: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.home-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .home-links {
    display: none;
  }

  .home-nav {
    grid-template-columns: 1fr auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

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

  .hero-phones {
    width: min(720px, 100%);
    min-height: 650px;
    margin-inline: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-item + .step-item {
    border-top: 3px solid var(--ink);
    border-left: 0;
  }

  .unlock-band {
    grid-template-columns: auto 1fr;
  }

  .unlock-band .app-store-button {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .home-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .home-nav,
  .home-hero,
  .how-band,
  .screenshots-section,
  .unlock-band,
  .share-section,
  .final-cta,
  .home-footer-inner {
    width: min(100% - 24px, 620px);
  }

  .site-header {
    border-bottom-width: 2px;
  }

  .home-nav {
    min-height: 70px;
    gap: 14px;
  }

  .home-brand {
    font-size: 1.25rem;
  }

  .home-brand img {
    width: 44px;
    height: 44px;
  }

  .app-store-button-small {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .app-store-button-small .apple-mark {
    font-size: 1.34rem;
  }

  .app-store-button-small small {
    display: none;
  }

  .home-hero {
    gap: 24px;
    padding-block: 44px 30px;
  }

  .home-hero h1 {
    font-size: clamp(3.35rem, 17vw, 4.8rem);
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 1.72rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-note {
    row-gap: 8px;
  }

  .hero-phones {
    min-height: min(135vw, 580px);
  }

  .phone-shot {
    width: 57vw;
    max-width: 300px;
    border-radius: 30px;
    box-shadow: 8px 10px 0 var(--shadow);
  }

  .phone-shot-back {
    top: 20px;
  }

  .hero-stamp {
    width: 88px;
    height: 88px;
    font-size: 0.88rem;
  }

  .how-band,
  .screenshots-section {
    padding-block: 64px;
  }

  .section-heading h2,
  .share-copy h2,
  .final-cta h2 {
    font-size: 2.65rem;
  }

  .screenshots-rail {
    display: flex;
    gap: 22px;
    width: calc(100vw - 12px);
    margin-left: -2px;
    padding: 8px 24px 30px 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screenshots-rail::-webkit-scrollbar {
    display: none;
  }

  .app-screen {
    min-width: min(76vw, 360px);
    margin-top: 0;
    transform: none;
    scroll-snap-align: start;
  }

  .app-screen img,
  .share-screen {
    border-radius: 30px;
  }

  .unlock-band {
    grid-template-columns: 1fr;
    padding: 26px;
    text-align: center;
  }

  .unlock-mascot {
    width: 110px;
    height: 110px;
    justify-self: center;
  }

  .unlock-band .app-store-button {
    grid-column: auto;
  }

  .share-section {
    grid-template-columns: 1fr;
    padding-block: 76px;
  }

  .share-screen {
    width: min(88vw, 420px);
    transform: rotate(1.5deg);
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 26px;
  }

  .footer-links {
    gap: 14px 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .home-brand > span {
    display: none;
  }

  .hero-note > * {
    width: 100%;
    padding: 0;
  }

  .hero-note > :not(:last-child)::after {
    display: none;
  }

  .step-item {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .app-store-button {
    width: 100%;
  }

  .app-store-button-small {
    width: auto;
  }
}

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

  .app-store-button {
    transition: none;
  }
}

@media (max-width: 640px) {
  .shell .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell .hero {
    padding: 24px;
  }
}
