:root {
  /* 42Runs brand palette — shared with the iOS app. Named tokens below, mapped onto the
     semantic roles the rest of this file already uses. */
  --ink: #14141a;
  --cloud: #ffffff;
  --pulse-blue: #2f6fed;
  --ember: #ff6b35;
  --mist-blue: #dce8fb;

  --bg: var(--cloud);
  --text: #1c1c1e;
  --text-secondary: #6b6b70;
  --accent: var(--pulse-blue);
  --accent-warm: var(--ember);
  --border: #e5e5ea;
  --navbar-bg: var(--ink);
  --navbar-text: #f2f2f3;
  --footer-bg: #eef3fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

/* Navbar */
.navbar {
  background: var(--navbar-bg);
  color: var(--navbar-text);
}

.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--navbar-text);
  text-decoration: none;
}

.navbar nav a {
  color: rgba(242, 242, 243, 0.75);
  text-decoration: none;
  font-size: 14px;
  margin-left: 28px;
}

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

/* Hero */
.hero {
  background:
    linear-gradient(rgba(10, 10, 12, 0.35), rgba(10, 10, 12, 0.65)),
    url("images/hero-runner.jpg") center 30% / cover no-repeat;
  padding: 140px 24px 160px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero h1 .highlight {
  color: var(--ember);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.app-store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-store-badge-text {
  text-align: left;
  line-height: 1.2;
}

.app-store-badge-text .small {
  display: block;
  font-size: 10px;
  color: var(--ember);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app-store-badge-text .big {
  display: block;
  font-size: 18px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Shared section wrapper — hero/footer keep their own full-bleed backgrounds, everything
   between them uses this for consistent max-width/padding. */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.section-inner h2 {
  font-size: 30px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-inner > p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Showcase carousel — a native horizontally-scrolling, scroll-snapping row (works via touch/
   trackpad swipe with zero JS); the arrow buttons are just a mouse-user convenience on top. */
.showcase-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  /* Hide the scrollbar — scroll-snap + the arrow buttons are the intended way to navigate,
     a visible scrollbar here would just be visual noise under the phone screenshots. */
  scrollbar-width: none;
}

.showcase-carousel::-webkit-scrollbar {
  display: none;
}

.showcase-shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 220px;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.showcase-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.showcase-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Arrow buttons only make sense with a mouse/trackpad — on a touchscreen the row is already
   swipeable directly, so showing them there is just clutter. */
@media (hover: hover) and (pointer: fine) {
  .showcase-arrow {
    display: flex;
  }
}

/* Founding member */
.founding {
  background: var(--ink);
  color: #fff;
}

.founding .section-inner h2 {
  color: #fff;
}

.founding .section-inner > p {
  color: rgba(255, 255, 255, 0.75);
}

.cta-button {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
}

/* Waitlist */
.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input {
  font: inherit;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  min-width: 260px;
}

.waitlist-form button {
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#waitlist-message {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 1.4em;
}

.waitlist-success {
  color: #2e7d32;
}

.waitlist-error {
  color: #d1293d;
}

/* Pricing */
.pricing {
  background: var(--footer-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.pricing-card-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.pricing-card li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card li:first-child {
  border-top: none;
}

/* FAQ */
.faq-item {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: left;
}

.faq-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Generic content pages (privacy/terms) */
main.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

main.page h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

main.page h2 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 8px;
}

main.page p {
  margin: 0 0 14px;
}

main.page ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

main.page li {
  margin-bottom: 6px;
}

.last-updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 28px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card h2 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --text: #f2f2f3;
    --text-secondary: #9b9ba0;
    --border: #2a2a2d;
    --navbar-bg: #000000;
    --footer-bg: #16191f;
  }
}
