:root {
  --bg: #fff8f3;
  --card: #ffffff;
  --text: #2b1d1a;
  --muted: #8a7670;
  --line: #f0e2d9;
  --pink: #ff6f91;
  --pink-dark: #e04f74;
  --peach: #ffb36b;
  --green: #22b573;
  --shadow: 0 10px 30px rgba(120, 60, 40, 0.1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1413;
    --card: #261d1b;
    --text: #f7ebe6;
    --muted: #b09a93;
    --line: #3a2d2a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100% - 1100px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

nav .nav-cta {
  color: #fff;
  background: var(--pink);
  padding: 8px 16px;
  border-radius: 999px;
}

nav .nav-cta:hover {
  color: #fff;
  background: var(--pink-dark);
}

/* ---------- sections ---------- */

/* The glow behind the hero's app window may reach past the screen's edges. */
main {
  overflow-x: clip;
}

main > section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 16px;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 8px 0 18px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 12px;
  text-align: center;
}

section > .muted {
  text-align: center;
  margin-top: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero-text {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--peach));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 111, 145, 0.35);
}

.button.primary:hover {
  background: var(--pink-dark);
}

.button.ghost {
  border: 2px solid var(--line);
  background: var(--card);
}

.button.small {
  padding: 10px 18px;
  font-size: 15px;
  margin-top: 6px;
}

.hero-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1000px;
}

/* A soft glow behind the app window. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pink) 26%, transparent), transparent),
    radial-gradient(closest-side at 80% 60%, color-mix(in srgb, var(--peach) 24%, transparent), transparent);
  filter: blur(30px);
}

/* ---------- the app, in a window ---------- */

.window {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 30px 70px rgba(120, 60, 40, 0.16), 0 4px 14px rgba(120, 60, 40, 0.08);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.window img {
  display: block;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .window {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.grid article {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid .icon {
  font-size: 30px;
}

.grid h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- settings ---------- */

.tour .window {
  max-width: 1000px;
  margin: 36px auto 0;
}

.tour-list {
  list-style: none;
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tour-list li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.tour-list b {
  font-size: 16px;
}

.tour-list span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- locations ---------- */

.location-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.location {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.location .flag {
  font-size: 28px;
}

.location .name {
  flex: 1;
  display: grid;
  line-height: 1.3;
}

.location .city {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.location .status {
  font-size: 13px;
  color: var(--green);
}

.location .status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- install ---------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 24px auto 36px;
  padding: 5px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.tab {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 9px 26px;
  border-radius: 10px;
  cursor: pointer;
}

.tab.active {
  background: var(--pink);
  color: #fff;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  max-width: 940px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.step-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.step-text h3::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  color: #fff;
  font-size: 15px;
}

.step-text p {
  margin: 6px 0;
  color: var(--muted);
}

.step-text b {
  color: var(--text);
}

.step-text .note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 15px;
}

.steps picture {
  display: block;
  width: 360px;
}

.steps img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ---------- after a download ---------- */

.next-steps {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.next-steps[open] {
  animation: steps-in 0.25s ease;
}

@keyframes steps-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.next-steps::backdrop {
  background: rgba(30, 15, 10, 0.55);
  backdrop-filter: blur(3px);
}

.next-steps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.next-steps h2 {
  margin: 10px 0 4px;
  font-size: clamp(22px, 3vw, 28px);
  text-align: left;
}

.next-steps .close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.next-steps .close:hover {
  color: var(--text);
}

.next-steps .steps li {
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.next-steps .steps picture {
  width: 260px;
}

/* Phone screenshots stand upright, so they are narrower. */
.steps picture.portrait {
  width: 210px;
}

.next-steps .steps picture.portrait {
  width: 170px;
}

.next-steps #next-steps-done {
  width: 100%;
  margin-top: 6px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- footer ---------- */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px 44px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

footer img {
  border-radius: 7px;
}

footer span {
  font-weight: 700;
  color: var(--text);
}

/* ---------- small screens ---------- */

@media (max-width: 1000px) and (min-width: 821px) {
  .tour-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps picture {
    width: 300px;
  }
}

@media (max-width: 820px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    gap: 36px;
  }

  .window {
    border-radius: 12px;
  }

  .window-bar {
    height: 22px;
    gap: 5px;
    padding: 0 10px;
  }

  .window-bar span {
    width: 7px;
    height: 7px;
  }

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

  .tour-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Feature cards: the icon beside the text, to keep the list short. */
  .grid {
    gap: 12px;
  }

  .grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    padding: 18px;
  }

  .grid .icon {
    grid-row: span 2;
    font-size: 26px;
    line-height: 1.2;
  }

  .grid h3 {
    margin: 2px 0 4px;
  }

  .steps li {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .steps picture,
  .next-steps .steps picture {
    justify-self: center;
    width: min(100%, 480px);
  }

  .steps picture.portrait,
  .next-steps .steps picture.portrait {
    width: min(70%, 260px);
  }

  .next-steps {
    padding: 20px 16px;
  }

  main > section {
    padding: 48px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
