@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Baloo2-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Baloo2-ExtraBold.woff2") format("woff2");
}

:root {
  --ink: #1d1d2b;
  --ink-soft: #4a4a5a;
  --ink-muted: #6b6b7b;
  --surface: #ffffff;
  --surface-tint: rgba(255, 255, 255, 0.72);
  --teal: #59b9d8;
  --teal-deep: #1b7fa3;
  --pink: #f06fa5;
  --pink-deep: #b8326e;
  --gold: #f5b53d;
  --gold-deep: #a86e00;
  --purple: #9b7be0;
  --purple-deep: #6343b3;
  --mint-deep: #0f7d5f;
  --radius: 26px;
  --radius-small: 14px;
  --heading: "Baloo 2", "Avenir Next Rounded", "Avenir Next", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 62ch;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: #f7f6fb;
  background-image:
    radial-gradient(60% 50% at 8% 0%, rgba(89, 185, 216, 0.32), transparent 70%),
    radial-gradient(55% 45% at 92% 12%, rgba(240, 111, 165, 0.26), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(245, 181, 61, 0.32), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@supports not (background-attachment: fixed) {
  body {
    background-attachment: scroll;
  }
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p,
li {
  max-width: var(--measure);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--pink-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--page), 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(29, 29, 43, 0.15);
}

.site-nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
}

/* App Store button */

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgba(29, 29, 43, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.store-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 29, 43, 0.26);
}

.store-button svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-button small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-button b {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero */

.hero {
  padding: 2rem 0 3rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(29, 29, 43, 0.2);
  margin-bottom: 1.5rem;
}

.hero-copy .lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.hero-copy .fine {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.hero-shot {
  justify-self: center;
  width: min(360px, 100%);
}

.phone {
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(29, 29, 43, 0.22);
}

/* Feature sections */

.features {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.feature {
  background: var(--surface-tint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 40px rgba(29, 29, 43, 0.06);
}

.feature:nth-child(even) .feature-shot {
  order: -1;
}

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

.feature-shot.wide {
  width: min(560px, 100%);
}

.feature .eyebrow {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.eyebrow.teal {
  background: rgba(89, 185, 216, 0.22);
  color: var(--teal-deep);
}

.eyebrow.pink {
  background: rgba(240, 111, 165, 0.2);
  color: var(--pink-deep);
}

.eyebrow.gold {
  background: rgba(245, 181, 61, 0.26);
  color: var(--gold-deep);
}

.eyebrow.purple {
  background: rgba(155, 123, 224, 0.22);
  color: var(--purple-deep);
}

.eyebrow.mint {
  background: rgba(43, 191, 148, 0.2);
  color: var(--mint-deep);
}

.feature ul {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.feature li + li {
  margin-top: 0.35rem;
}

.feature-wide {
  grid-template-columns: 1fr;
  text-align: center;
}

.feature-wide .feature-copy {
  max-width: var(--measure);
  margin-inline: auto;
}

.feature-wide .feature-copy p {
  margin-inline: auto;
}

.feature-wide .feature-shot {
  order: 1;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.tablet {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(29, 29, 43, 0.18);
}

/* Closing call to action */

.cta {
  text-align: center;
  padding: 3rem 0 4rem;
}

.cta p {
  margin-inline: auto;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(29, 29, 43, 0.1);
  padding: 2rem 0 3rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
}

/* Text pages (support, privacy) */

.page {
  padding: 1rem 0 4rem;
}

.card {
  background: var(--surface-tint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(29, 29, 43, 0.06);
  max-width: 760px;
}

.card h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.card h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.card h3 {
  margin-top: 1.5rem;
}

.card ol,
.card ul {
  padding-left: 1.4rem;
}

.card li + li {
  margin-top: 0.4rem;
}

.card .meta {
  color: var(--ink-muted);
  margin-top: -0.5rem;
}

.card .note {
  background: rgba(89, 185, 216, 0.16);
  border-left: 4px solid var(--teal);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.toc {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid rgba(29, 29, 43, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.toc a:hover {
  border-color: var(--pink);
  color: var(--ink);
}

/* Responsive */

@media (max-width: 820px) {
  .hero .wrap,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-copy .app-icon,
  .hero-copy p {
    margin-inline: auto;
  }

  .feature:nth-child(even) .feature-shot,
  .feature-shot {
    order: -1;
  }

  .feature-wide .feature-shot {
    order: 1;
  }

  .feature-shot {
    width: min(280px, 100%);
  }

  .feature-shot.wide {
    width: 100%;
  }

  .shot-pair {
    grid-template-columns: 1fr;
  }
}
