:root {
  --background: #080808;
  --surface: #131313;
  --border: #252525;
  --accent: #5b8fa8;
  --accent-light: #89b8ce;
  --text: #ebebeb;
  --text-soft: #cccccc;
  --text-muted: #888888;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--accent-light);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 20px;
}

.wrap.wide {
  max-width: 1080px;
}

header {
  border-bottom: 1px solid var(--border);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 16px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding-block: 48px 64px;
}

main > section + section {
  padding-top: 72px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
}

h2 {
  margin: 40px 0 8px;
  font-size: 22px;
}

p,
li {
  color: var(--text-soft);
}

.lead {
  font-size: 21px;
}

.muted {
  color: var(--text-muted);
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}

.phones {
  position: relative;
  height: 600px;
}

.phones .phone {
  position: absolute;
  width: 250px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
}

.phones .back {
  top: 0;
  left: 0;
  opacity: 0.85;
}

.phones .front {
  top: 60px;
  right: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.wrap.wide > p,
.wrap.wide > details,
.wrap.wide > .prices,
.wrap.wide > .notify {
  max-width: 760px;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 19px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card p {
  margin: 0;
  font-size: 16px;
}

.card.highlight {
  border-color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 490px;
  margin-bottom: 20px;
}

.shots img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
}

/* Two screens for one step: the second overlaps the first. */
.shots.pair {
  position: relative;
}

.shots.pair img {
  width: 72%;
}

.shots.pair img + img {
  margin-left: -44%;
  margin-top: 36px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.step p {
  margin: 0;
  font-size: 16px;
}

img[data-enlarge] {
  cursor: zoom-in;
}

img[data-enlarge]:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

dialog#enlarged {
  max-width: min(420px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

dialog#enlarged::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

dialog#enlarged img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 24px;
}

dialog#enlarged p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}

.step-dots {
  display: none;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--background);
  font-size: 15px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.feature ul {
  padding-left: 20px;
}

.feature li + li {
  margin-top: 8px;
}

.feature-shots {
  display: flex;
  gap: 16px;
}

.feature-shots img {
  width: 220px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.quote blockquote {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.quote figcaption {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 15px;
}

.quote figcaption span {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
}

.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.about img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.about p {
  max-width: 760px;
}

/* The two summaries and the two workouts share one grid: side by side, the
   summaries form the first row; stacked on a phone, each summary sits above
   its own workout. */
.compare-summary {
  padding: 14px 18px;
  border-left: 3px solid var(--border);
  color: var(--text-soft);
  font-size: 16px;
}

.compare-summary.limited {
  border-left-color: var(--accent);
}

.compare-summary strong {
  display: block;
  color: var(--text);
}

.compare-section {
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.changed {
  color: var(--accent-light);
}

ul.plain li span.changed {
  color: var(--accent-light);
}

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.plain li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding-block: 8px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

ul.plain li span {
  color: var(--text-muted);
}


.notify {
  margin-block: 28px 12px;
}

.notify-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notify input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.notify button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #1a8fe3;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.notify button:hover {
  background: #45a8f0;
}

.notify-beta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 16px;
}

.notify-beta input {
  width: 20px;
  height: 20px;
}

.hp {
  position: absolute;
  left: -10000px;
}

/* Beta sign-up and survey: one question per fieldset. */
.beta-form fieldset {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.beta-form legend,
.beta-form .question {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.beta-form .hint {
  display: block;
  margin: -6px 0 10px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
}

.beta-form .choice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-block: 4px;
  color: var(--text-soft);
  font-size: 17px;
}

.beta-form .choice input {
  width: 20px;
  height: 20px;
  flex: none;
}

.beta-form input[type="text"],
.beta-form input[type="email"],
.beta-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.beta-form textarea {
  min-height: 120px;
  resize: vertical;
}

.beta-form input[type="file"] {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 16px;
}

.beta-form .scale {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.beta-form .android-note {
  margin: 8px 0 0;
  color: var(--accent-light);
  font-size: 16px;
}

.beta-form button {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: #1a8fe3;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.beta-form button:hover {
  background: #45a8f0;
}

.beta-form :focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

details {
  border-top: 1px solid var(--border);
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

summary {
  padding-block: 16px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 0 0 16px;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.price {
  flex: 1 1 200px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.price strong {
  display: block;
  color: var(--text);
  font-size: 28px;
}

.price.best {
  border-color: var(--accent);
}

.price .tag {
  display: block;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price .note {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 15px;
}

footer {
  border-top: 1px solid var(--border);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

  .feature-shots img {
    width: calc(50% - 8px);
    max-width: 220px;
  }

  .phones {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  /* Support is in the footer; leaving it out keeps the menu on one line. */
  nav a[href="/support/"] {
    display: none;
  }

  .step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .step-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
  }

  .step-dots span.active {
    background: var(--accent-light);
  }

  main > section + section {
    padding-top: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phones {
    height: 440px;
  }

  .phones .phone {
    width: 190px;
  }

  .phones .front {
    top: 40px;
  }

  .cards.four,
  .compare,
  .about {
    grid-template-columns: 1fr;
  }

  .compare .unlimited {
    order: 1;
  }

  .compare .compare-summary.limited {
    order: 2;
    margin-top: 16px;
  }

  .compare .highlight {
    order: 3;
  }

  .about img {
    max-width: 240px;
  }

  .card {
    padding: 18px;
  }

  /* Screenshots sit in a swipeable row instead of three tall stacked phones. */
  .steps {
    display: flex;
    gap: 20px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
  }

  .step {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .shots {
    height: 445px;
  }

  .shots img {
    max-width: 200px;
  }
}
