/* Shared by the per-app story pages: /apps/bizbuz/, /apps/linkitylink/,
   /apps/getpayed/. Each is a short walk through the app, one screenshot per
   step, so /apps itself can stay a compact list of cards. Screenshots are
   the store-assets captures (see CLAUDE.md, "App story pages").

   The site nav is repeated here rather than linked from a shared file only
   because every other page inlines it; keep this copy in sync with theirs. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-umber: #a67c52;
  --color-green: #6b8e6f;
  --color-eggshell: #f5f5f0;
  --color-stone: #6b5d54;
  --color-stone-soft: rgba(107, 93, 84, 0.75);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-eggshell);
  color: var(--color-stone);
  min-height: 100vh;
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 32px 80px;
}

.back {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-umber);
  text-decoration: none;
  margin-bottom: 28px;
}

.back:hover {
  text-decoration: underline;
}

/* ── Header: icon, app name, then the one-line pitch as the headline ── */
.story-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.story-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  flex-shrink: 0;
}

.story-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}

.story-lede {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-top: 24px;
}

/* ── Steps: phone beside the words, alternating sides on desktop ── */
.steps {
  list-style: none;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.step {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.step:nth-child(even) {
  grid-template-columns: 1fr 260px;
}

.step:nth-child(even) .phone {
  order: 2;
}

.step-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-umber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 6px;
}

.step p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 10px;
  max-width: 440px;
}

/* A drawn phone around the capture. The captures are the app in dark mode
   at the iPhone's 402x874pt screen, so the frame only needs a bezel. */
.phone {
  width: 260px;
  padding: 10px;
  border-radius: 44px;
  background: #1b1d20;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(31, 41, 51, 0.22);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 34px;
  background: #1f1f1f;
}

/* ── Buy box at the end ── */
.buy {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.buy-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.buy-kind {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.buy p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin-top: 6px;
}

.buy + .buy {
  margin-top: 20px;
}

/* Stated only for apps actually on sale, and only the price the store
   charges (same rule as /apps). */
.app-price {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 10px;
}

.app-price span {
  font-weight: 500;
  color: var(--color-stone-soft);
}

/* Apple: clear space of a quarter of the badge height on every side, badge
   unmodified, at least 40px tall. */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  margin: 12px 0;
}

.app-store-badge img {
  height: 48px;
  width: auto;
}

.page-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(107, 93, 84, 0.15);
}

.page-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-stone-soft);
}

.page-footer a {
  color: var(--color-umber);
}

@media (max-width: 720px) {
  .page-container {
    padding: 8px 20px 60px;
  }

  h1 {
    font-size: 2rem;
  }

  /* Icon above the headline, so the headline gets the full width. */
  .story-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .story-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .steps {
    margin-top: 40px;
    gap: 48px;
  }

  /* Words first, then the phone, centered. */
  .step,
  .step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step .phone,
  .step:nth-child(even) .phone {
    order: 2;
    width: 220px;
    margin: 0 auto;
    border-radius: 38px;
    padding: 8px;
  }

  .phone img {
    border-radius: 30px;
  }

  .step h2 {
    font-size: 1.4rem;
  }

  .buy {
    padding: 24px;
    margin-top: 56px;
  }
}

/* ── Site nav (same as every page's inline copy) ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 32px;
}
.site-nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-umber);
  text-decoration: none;
}
.site-nav-links {
  display: flex;
  gap: 24px;
}
.site-nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-stone);
  text-decoration: none;
}
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--color-umber);
}
@media (max-width: 560px) {
  .site-nav {
    padding: 16px 20px;
  }
  .site-nav-links {
    gap: 18px;
  }
}
/* Four links plus the brand do not fit a phone; the brand already links
   home, so drop the separate Home link there. */
@media (max-width: 480px) {
  .site-nav-links a[href="/"] {
    display: none;
  }
}
