@font-face {
  font-family: "Neue Regrade";
  src: url("assets/fonts/neue-regrade-variable.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-headings: #313641;
  --text-secondary: #626d82;
  --text-inverse: #fff;
  --fill-action: #5b7cff;
  --fill-action-accessible: #3e5edb;
  --stroke-action-light: #eff2ff;
  --surface-dark: #495262;
  --pink-500: #ff4fa3;
  --navy: #000a32;
  --error: #a61d40;
  --radius-lg: 8px;
  --font-body: "Neue Regrade", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --content: 1192px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text-headings);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--fill-action-accessible);
  outline-offset: 5px;
}
section,
main {
  scroll-margin-top: 32px;
}
main:focus {
  outline: none;
}
::selection {
  background: var(--pink-500);
  color: var(--navy);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: transform 180ms ease-out;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--fill-action-accessible);
}
.btn--primary:hover {
  background: var(--navy);
}
.btn--dark {
  background: var(--surface-dark);
  padding: 12px 16px;
}
.btn--dark:hover {
  background: var(--navy);
}

/* The navigation stays in normal flow, including its mobile disclosure. */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 24px auto 0;
  padding: 12px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}
.logo__mark {
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
  background: var(--fill-action);
}
.logo__mark img {
  max-width: none;
}
.logo__name {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  width: 100%;
  order: 3;
}
.nav__links a,
.footer > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.nav__links a {
  color: var(--text-secondary);
}
.nav__links a:hover,
.footer > a:last-child:hover {
  color: var(--fill-action-accessible);
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  font-weight: 600;
  color: var(--text-headings);
}
.nav__toggle span {
  font-size: 24px;
}
.nav__download {
  display: none;
}
.nav:not(.is-enhanced) .nav__download {
  display: inline-flex;
}
.nav.is-enhanced .nav__links {
  display: none;
}
.nav.is-open .nav__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 0;
  gap: 8px;
}
.nav.is-open .nav__download {
  display: inline-flex;
  order: 4;
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px var(--gutter) 112px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero h1,
.friends h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 {
  max-width: 1000px;
}
.hero__copy p,
.friends__head p {
  max-width: 665px;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.join {
  width: min(408px, 100%);
  margin-top: 32px;
}
.join__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.join__input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--fill-action);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text-headings);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}
.join__input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.join__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
}
.hero__coins {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: -1;
}
.coin {
  position: absolute;
  display: block;
}
.coin img {
  max-width: none;
}
.coin--a {
  left: -36px;
  top: 350px;
  transform: rotate(25.6deg) scale(0.55);
}
.coin--b {
  right: -30px;
  top: 385px;
  transform: rotate(-58.84deg) scale(0.6);
}
.coin--c,
.coin--d {
  display: none;
}
.phone {
  position: relative;
  flex: none;
}
.phone--hero {
  width: min(320px, 84%);
  aspect-ratio: 446 / 910;
  margin-top: 36px;
}
.phone__screen {
  position: absolute;
  z-index: 1;
  inset: 2.35% 5%;
  width: 90%;
  height: 95.3%;
  max-width: none;
  object-fit: cover;
  border-radius: 14% / 6.5%;
}
.phone__frame {
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.phone--dark {
  width: min(304px, 100%);
  aspect-ratio: 304 / 661;
  border: 4px solid var(--text-inverse);
  border-radius: 32px;
  overflow: hidden;
}
.phone--dark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ways {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 112px var(--gutter);
}
.ways__inner {
  display: grid;
  gap: 40px;
  justify-items: center;
  max-width: var(--content);
  margin: 0 auto;
}
.ways__title {
  max-width: 420px;
  text-align: center;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.ways__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(360px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}
.way {
  display: flex;
  gap: 20px;
}
.way > img {
  flex-shrink: 0;
}
.way h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.way p {
  color: #c8d0e5;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.scallop {
  position: absolute;
  inset-inline: 0;
  height: 60px;
  overflow: clip;
  pointer-events: none;
}
.scallop img {
  position: absolute;
  top: 0;
  left: calc(50% - 284.22px);
  max-width: none;
  transform: scale(0.3);
  transform-origin: top left;
}
.scallop img:nth-child(2) {
  margin-left: 139.8px;
}
.scallop img:nth-child(3) {
  margin-left: 279.6px;
}
.scallop img:nth-child(4) {
  margin-left: 419.4px;
}
.scallop--top {
  top: -30px;
}
.scallop--bottom {
  bottom: -30px;
}

.friends {
  padding: 120px var(--gutter) 80px;
}
.friends__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1050px;
  margin: 0 auto 56px;
  text-align: center;
}
.friends__grid {
  display: grid;
  gap: 48px;
  max-width: var(--content);
  margin: 0 auto;
}
.feature {
  min-width: 0;
}
.feature h3 {
  margin: 24px 0 8px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.feature > p {
  max-width: 346px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--text-secondary);
}
.feature__art {
  width: 100%;
  border-radius: 12px;
}
.feature--photo .feature__art {
  height: auto;
  aspect-ratio: 668 / 625;
  object-fit: cover;
}
.split-preview {
  display: grid;
  place-items: center;
  min-height: 342px;
  padding: 24px;
  background: var(--pink-500);
}
.split-demo {
  width: 100%;
  max-width: 310px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  color: var(--navy);
}
.split-demo__title {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.split-demo label,
.split-demo__people output {
  font-size: 14px;
  font-weight: 600;
}
.split-demo input[type="number"] {
  width: 100%;
  min-height: 44px;
  margin: 6px 0 16px;
  padding: 8px 12px;
  border: 1px solid #b8c1d6;
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-size: 22px;
  font-weight: 600;
}
.split-demo__people {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.split-demo input[type="range"] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--fill-action-accessible);
  cursor: pointer;
}
.split-demo__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding-top: 4px;
}
.split-demo__result output {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.split-demo__result span {
  font-size: 13px;
}
.split-demo__error {
  color: var(--error);
  font-size: 14px;
  margin-top: 8px;
}
.split-demo__error:empty {
  display: none;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
}
.footer p {
  color: var(--text-secondary);
  font-size: 16px;
}
.footer > a:last-child {
  gap: 12px;
}

.availability-fallback {
  display: none;
  padding: 40px var(--gutter);
  background: var(--stroke-action-light);
}
.availability-fallback:target {
  display: block;
}
.availability-fallback h2 {
  margin-bottom: 16px;
}
.availability-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  text-decoration: underline;
}
.availability-dialog {
  width: min(460px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 36px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--text-headings);
}
.availability-dialog::backdrop {
  background: rgb(0 10 50 / 0.65);
}
.dialog__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 28px;
  color: var(--text-headings);
}
.dialog__close:hover {
  background: var(--stroke-action-light);
}
.availability-dialog h2 {
  margin: 28px 0 12px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.availability-dialog p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.availability-dialog .btn {
  margin-top: 28px;
  width: 100%;
}

@media (min-width: 700px) {
  .nav {
    margin-top: 40px;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 160px;
  }
  .phone--hero {
    width: 360px;
    margin-top: 44px;
  }
  .coin--a {
    left: 3%;
    top: 230px;
    transform: rotate(25.6deg) scale(0.8);
  }
  .coin--b {
    right: 4%;
    top: 310px;
    transform: rotate(-58.84deg) scale(0.8);
  }
  .coin--c,
  .coin--d {
    display: block;
  }
  .coin--c {
    left: -180px;
    top: 530px;
    transform: rotate(45.99deg) scale(0.8);
  }
  .coin--d {
    right: -120px;
    top: 610px;
    transform: rotate(-39.56deg) scale(0.8);
  }
  .ways {
    padding-top: 150px;
    padding-bottom: 150px;
  }
  .ways__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px 32px;
  }
  .ways__title {
    grid-column: 1 / -1;
    max-width: none;
  }
  .scallop {
    height: 120px;
  }
  .scallop img {
    left: calc(50% - 568.44px);
    transform: scale(0.6);
  }
  .scallop img:nth-child(2) {
    margin-left: 279.6px;
  }
  .scallop img:nth-child(3) {
    margin-left: 559.2px;
  }
  .scallop img:nth-child(4) {
    margin-left: 838.8px;
  }
  .scallop--top {
    top: -60px;
  }
  .scallop--bottom {
    bottom: -60px;
  }
  .friends {
    padding-top: 170px;
    padding-bottom: 100px;
  }
  .friends__grid {
    grid-template-columns: minmax(0, 423fr) minmax(0, 668fr);
    align-items: end;
    column-gap: 28px;
    row-gap: 0;
    grid-template-rows: auto auto auto;
  }
  .feature {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
  .feature--pink .feature__art {
    align-self: end;
  }
}

@media (min-width: 1050px) {
  .nav {
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 28.8px rgb(0 0 0 / 0.05); /* taste-skill-ignore: navigation shadow is part of the supplied Figma design. */
  }
  .nav__toggle {
    display: none;
  }
  .nav__links,
  .nav.is-enhanced .nav__links,
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: row;
    width: auto;
    order: initial;
    padding: 0;
    gap: 28px;
  }
  .nav__download,
  .nav.is-open .nav__download {
    display: inline-flex;
    width: auto;
    order: initial;
  }
  .hero {
    padding-top: 88px;
    padding-bottom: 200px;
  }
  .coin--a {
    left: max(30px, calc(50% - 616px));
    top: 140px;
    transform: rotate(25.6deg);
  }
  .coin--b {
    right: max(30px, calc(50% - 615px));
    top: 180px;
    transform: rotate(-58.84deg);
  }
  .coin--c {
    left: -90px;
    top: 460px;
    transform: rotate(45.99deg);
  }
  .coin--d {
    right: -30px;
    top: 550px;
    transform: rotate(-39.56deg);
  }
  .ways {
    padding-top: 220px;
    padding-bottom: 220px;
  }
  .ways__inner {
    grid-template-columns: 1fr 304px 1fr;
    gap: clamp(40px, 6vw, 140px);
    align-items: start;
  }
  .ways__title {
    grid-column: auto;
    text-align: left;
    max-width: 280px;
  }
  .ways__list {
    align-self: end;
  }
  .scallop {
    height: 200px;
  }
  .scallop img {
    left: calc(50% - 947.4px);
    transform: none;
  }
  .scallop img:nth-child(2) {
    margin-left: 466px;
  }
  .scallop img:nth-child(3) {
    margin-left: 932px;
  }
  .scallop img:nth-child(4) {
    margin-left: 1398px;
  }
  .scallop--top {
    top: -96px;
  }
  .scallop--bottom {
    bottom: -96px;
  }
  .friends {
    padding-top: 240px;
    padding-bottom: 120px;
  }
  .friends__head {
    margin-bottom: 80px;
  }
  .feature {
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
  .footer {
    padding-inline: 20px;
  }
}

/* Small entrances keep all content visible even if scripts fail. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy,
  .join {
    animation: arrive 650ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .join {
    animation-delay: 80ms;
  }
  .phone--hero {
    animation: arrive 900ms cubic-bezier(0.2, 0.7, 0.3, 1) 120ms both;
  }
  @keyframes arrive {
    from {
      transform: translateY(16px);
    }
    to {
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .btn,
  .nav__toggle,
  .dialog__close {
    border: 2px solid ButtonText;
  }
  .coin {
    display: none;
  }
}

@media (min-width: 700px) and (max-width: 1049px) {
  .hero h1 {
    max-width: 680px;
    font-size: 44px;
  }
}
