/* Fonts */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colours */
  --background: #F4F1EA;
  --card: #FFFFFF;
  --ink: #16151A;
  --muted: #6E6B75;
  --line: #E3DED3;
  --lime: #C8F25A;
  --violet: #6A4CFF;
  --lavender: #B9A8FF;
  --pink: #FF6FA8;
  --sky: #59C3FF;
  --amber: #FFB938;
  --blush: #FFD1D3;
  --mint: #F3FCDD;
  --red: #D93A42;
  --late-text: #8A5A00;

  /* Shape */
  --radius: 16px;
  --control-radius: 14px;
  --border: 2px;
  --shadow: 3px 3px 0 var(--ink);

  /* Spacing */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 18px;
  --space-xl: 24px;
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Shared classes */
.card {
  background-color: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-s) var(--space-l);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--lime);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: var(--control-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn--dark {
  background-color: var(--ink);
  color: var(--card);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-m);
  border: 1.5px solid var(--ink);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-l);
  padding-right: var(--space-l);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Centred placeholder utility */
.placeholder {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-m);
}

/* Header */
.site-header {
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-m);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand__icon {
  width: 32px;
  height: 32px;
  border: var(--border) solid var(--ink);
  border-radius: 8px;
  display: block;
}

/* Readable column & Legal page content */
.readable-column {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-l);
  padding-right: var(--space-l);
  width: 100%;
}

.legal-content {
  flex: 1 0 auto;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  font-size: 1rem;
  line-height: 1.6;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-l);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: calc(var(--space-xl) + var(--space-s));
  margin-bottom: var(--space-m);
}

.legal-content h1 + h2 {
  margin-top: var(--space-m);
}

.legal-content p {
  margin-bottom: var(--space-m);
}

.legal-content ul {
  list-style: disc outside;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-m);
}

.legal-content li {
  margin-bottom: var(--space-s);
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--violet);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

@media (min-width: 480px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Button & Capsule utilities */
.btn--capsule {
  border-radius: 9999px;
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn[aria-disabled="true"]:active {
  box-shadow: var(--shadow);
  transform: none;
}

.btn__icon {
  margin-right: var(--space-s);
  display: inline-block;
  vertical-align: middle;
}

/* Section typography */
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-s);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-xl);
}

/* 1. Nav */
.site-nav {
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav__logo {
  height: 40px;
  width: auto;
  display: block;
}

/* 2. Hero */
.hero {
  position: relative;
  padding-top: var(--space-s);
  padding-bottom: calc(var(--space-xl) * 2);
}

.hero__crew {
  width: 100%;
  max-width: 694px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-l);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}

.chip--hero {
  background-color: var(--card);
  gap: var(--space-s);
  font-weight: 500;
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
  border: 1.5px solid var(--ink);
  display: inline-block;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.hero__highlight {
  display: inline-block;
  background-color: var(--lime);
  border: var(--border) solid var(--ink);
  border-radius: 4px;
  padding: 0 var(--space-xs);
  line-height: 1.1;
}

.hero__subline {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

.hero__early-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__early-link:hover {
  color: var(--violet);
}

.hero__showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-xl) auto 0;
  width: 100%;
  max-width: 280px;
}

.phone-frame {
  width: 100%;
  max-width: 270px;
  background-color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 40px;
  box-shadow: 6px 6px 0 var(--violet);
  overflow: hidden;
  display: block;
}

.phone-frame__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
}

.floating-card {
  position: absolute;
  z-index: 2;
  padding: var(--space-xs) var(--space-m);
  border: var(--border) solid var(--ink);
  border-radius: 9999px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.floating-card--voted {
  background-color: var(--card);
  top: 48%;
  left: -15px;
}

.floating-card--locked {
  background-color: var(--lime);
  top: 68%;
  right: -15px;
}

/* 3. Features */
.features {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.feature-card {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.feature-card__icon-disc {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: var(--border) solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon-disc--violet {
  background-color: var(--violet);
}

.feature-card__icon-disc--pink {
  background-color: var(--pink);
}

.feature-card__icon-disc--sky {
  background-color: var(--sky);
}

.feature-card__icon-disc--amber {
  background-color: var(--amber);
}

.feature-card__titles {
  display: flex;
  flex-direction: column;
}

.feature-card__quote {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.feature-card__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* 4. How it works */
.how-it-works {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.steps-list {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 600px;
}

.step-item {
  display: flex;
  gap: var(--space-l);
  position: relative;
  padding-bottom: calc(var(--space-xl) + var(--space-s));
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-item__number {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: var(--lime);
  border: var(--border) solid var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-item__line {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 50%;
  width: 0;
  border-left: 2px dashed var(--ink);
  transform: translateX(-50%);
}

.step-item:last-child .step-item__line {
  display: none;
}

.step-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
}

.step-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.step-item__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 5. Lock screen */
.lock-screen {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.lock-screen__panel {
  max-width: 350px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--violet) 0%, var(--pink) 65%, var(--amber) 100%);
  border: var(--border) solid var(--ink);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: calc(var(--space-xl) * 1.5) var(--space-l) var(--space-xl);
  color: var(--card);
}

.lock-screen__time {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.lock-screen__date {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-s);
  margin-bottom: calc(var(--space-xl) * 1.5);
}

.live-activity {
  background-color: var(--card);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: 20px;
  padding: var(--space-m) var(--space-l);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.live-activity__status {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-size: 0.8125rem;
}

.live-activity__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
  border: 1.5px solid var(--ink);
  display: inline-block;
}

.live-activity__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.live-activity__heading {
  font-size: 1.125rem;
  font-weight: 700;
}

.live-activity__distance {
  font-size: 1rem;
  font-weight: 700;
}

.live-activity__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.live-activity__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-xs);
}

.live-activity__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-s) var(--space-m);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--control-radius);
  border: var(--border) solid var(--ink);
  cursor: default;
  white-space: nowrap;
}

.live-activity__btn--dark {
  background-color: var(--ink);
  color: var(--card);
}

.live-activity__btn--outline {
  background-color: var(--card);
  color: var(--ink);
}

/* 6. Screenshot strip */
.screenshots-section {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.screenshot-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-l);
  padding-bottom: var(--space-m);
  -webkit-overflow-scrolling: touch;
}

.screenshot-strip__item {
  flex: 0 0 260px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.screenshot-phone {
  background-color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  display: block;
}

.screenshot-phone__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 29px;
}

.screenshot-strip__label {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* 7. Final CTA */
.final-cta {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 1.5);
}

.cta-card {
  background-color: var(--lime);
  padding: calc(var(--space-xl) * 1.5) var(--space-l);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
}

.cta-card__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.cta-card__subline {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 440px;
}

.cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

.cta-card__email-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-card__email-link:hover {
  color: var(--violet);
}

/* 8. Landing footer */
.landing-footer {
  padding-top: calc(var(--space-xl) * 1.5);
  padding-bottom: calc(var(--space-xl) * 2);
}

.landing-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  text-align: center;
}

.landing-footer__logo {
  height: 32px;
  width: auto;
  display: block;
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
}

.capsule-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-l);
  background-color: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: var(--border) solid var(--ink);
  border-radius: 9999px;
  box-shadow: var(--shadow);
}

.capsule-link:hover {
  background-color: var(--background);
}

.capsule-link:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}

.landing-footer__copy {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Desktop layout (>= 768px) */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__content {
    flex: 1 1 50%;
  }

  .hero__showcase {
    flex: 1 1 50%;
    max-width: 320px;
    margin: 0 auto;
  }

  .phone-frame {
    max-width: 300px;
  }

  .hero__title {
    font-size: 3rem;
  }

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

  .screenshot-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .screenshot-strip__item {
    flex: auto;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

