/* Stickman Personal Trainer landing page: the app's colours and fonts, phone first. */
@font-face {
  font-family: 'Unbounded';
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/unbounded-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --lime: #dfff00;
  --ink: #212529;
  --ink-deep: #1a1d20;
  --surface: #2b3035;
  --border: #3a4046;
  --text: #f1f3f5;
  --text-soft: #ced4da;
  --text-muted: #adb5bd;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--lime);
}

a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(33, 37, 41, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

.top nav {
  display: flex;
  gap: 4px;
}

.top nav a {
  padding: 10px 8px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

/* Phones: the name needs the room; the sections are a scroll away, the policy also in the footer. */
@media (max-width: 519px) {
  .top nav {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* "At the gym / At home": the app's dumbbell and house icons on a lime pill. */
.place {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.place span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.place svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.place .sep {
  width: 1px;
  align-self: stretch;
  background: rgba(33, 37, 41, 0.35);
}

.hero h1 {
  font-size: clamp(34px, 8vw, 60px);
}

.lead {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

.cta-row.centered {
  justify-content: center;
}

.cta {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  background: var(--lime);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cta:hover {
  background: #eeff66;
}

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

.facts {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facts li {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
}

.facts strong {
  color: var(--lime);
  font-family: var(--display);
  font-weight: 700;
  margin-right: 4px;
}

/* Phones: the app's own screenshots in a simple frame. */

.phone {
  margin: 0;
  width: 100%;
  max-width: 300px;
  border: 8px solid #0b0d0f;
  border-radius: 40px;
  background: #0b0d0f;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

.phone img {
  width: 100%;
  border-radius: 32px;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding-right: 64px;
}

.hero-phones .back {
  position: absolute;
  top: 48px;
  left: calc(50% - 40px);
  max-width: 260px;
  transform: rotate(6deg);
  opacity: 0.9;
}

.hero-phones .front {
  position: relative;
  max-width: 280px;
}

/* Features */

.features {
  display: flex;
  flex-direction: column;
  gap: 88px;
  padding: 40px 0 96px;
}

.feature {
  display: grid;
  gap: 36px;
  justify-items: center;
}

.feature .phone {
  max-width: 280px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34em;
}

.feature-text h2 {
  font-size: clamp(26px, 5vw, 38px);
}

.feature-text p:not(.eyebrow) {
  color: var(--text-soft);
}

.more {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.more h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  max-width: 22em;
}

.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.cards li {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cards h3 {
  font-size: 17px;
}

.cards p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* Privacy */

.privacy {
  padding: 0 0 96px;
}

.privacy-box {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-box > * {
  max-width: 40em;
}

.privacy-box h2 {
  font-size: clamp(26px, 5vw, 38px);
}

.privacy-box p {
  color: var(--text-soft);
}

.privacy-box a {
  font-weight: 800;
}

/* Closing */

.closing {
  padding: 0 0 96px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(26px, 5vw, 40px);
  margin-bottom: 24px;
}

/* Footer */

.bottom {
  background: var(--ink-deep);
  border-top: 1px solid var(--border);
}

.bottom-row {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.bottom-row a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 0;
}

.bottom-row a:hover {
  color: var(--text);
}

/* Wider screens: two columns of cards, then text and phone side by side. */

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

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

  .feature.flip .feature-text {
    order: 2;
  }

  .features {
    gap: 120px;
  }

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

