/* picflips.app's home (index.html), rebuilt 11-17 around one job: the
   download. The owner picked "A with Kevin's photos" from
   https://claude.ai/artifact/QWPSVQtc8dZpp8oQuwYkp4, first in Green, then
   (11-19) White: a white page, one plain sentence, one gold "Get the app"
   button, a reel of real snaps from show tables, and the app's felt
   green kept for the closing panel and the tiles. The home page stays white
   even when the reader's phone is set to dark; the other pages still follow
   it (styles.css). */

body.home {
  --felt: #157a4e; --felt-deep: #0d5538;
  --bone: #f6f2e8; --ink: #141517;
  /* The light set from styles.css, on a pure white ground. */
  --ground: #ffffff; --surface: #ffffff; --raised: #f1efea; --hairline: #e6e3dc;
  --edge: #e6e3dc; --lit: #e6e3dc; --text: #16140f; --secondary: #5b574e; --muted: #65605a;
  --gold-text: #7a5a0e; --in: #1b6b43; --in-tint: rgba(27, 107, 67, 0.12);
  color-scheme: light;
  overflow-x: hidden;
}
.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.home main { max-width: none; padding: 0; }

/* No line under the top bar, so the first screen is one white sheet. */
.home header.site { border-bottom: 0; }

/* First screen. */
.first { padding: 6px 0 24px; }
.pitch { padding: 0 20px; }
.first h1 { margin: 0; font-size: clamp(31px, 8.8vw, 40px); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; color: var(--ink); text-wrap: balance; }

/* The one gold button. It says "Get the app" on every phone. */
.dl {
  display: flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 20px; padding: 0 22px;
  border-radius: 16px; background: var(--gold); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none;
}
.dl:hover { color: var(--ink); filter: brightness(1.06); }
.dl:focus-visible, .store:focus-visible, .pin a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.closer .dl:focus-visible, .pin a:focus-visible { outline-color: var(--bone); }
.free { margin: 12px 0 0; font-size: 14px; line-height: 1.45; text-align: center; color: var(--secondary); }
.scan { display: none; }

/* The reel: a row you swipe, each photo snapping to the middle. */
.reel-wrap { margin-top: 20px; }
.reel {
  position: relative; display: flex; gap: 14px; list-style: none; margin: 0; padding: 10px calc(50% - 124px) 36px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* On white the prints lift off the page with a shadow, not a bone border. */
.deal {
  position: relative; flex: none; width: 248px; aspect-ratio: 248 / 404; margin: 0; scroll-snap-align: center;
  border: 1px solid rgba(20, 21, 23, 0.1); border-radius: 26px; overflow: hidden; background: #0e0f11; rotate: -1.5deg;
  box-shadow: 0 14px 30px rgba(20, 21, 23, 0.18), 0 2px 6px rgba(20, 21, 23, 0.1);
}
.deal:nth-child(even) { rotate: 1.3deg; }
.deal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deal .amt {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; height: 34px; padding: 0 13px;
  border-radius: 999px; background: #ffffff; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1;
}
.deal .amt.in { color: #1b6b43; }
.deal .what {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 14px 14px;
  background: linear-gradient(rgba(14, 15, 17, 0), rgba(14, 15, 17, 0.92) 58%); color: var(--bone);
}
.deal .what b { display: block; font-size: 15px; line-height: 1.25; font-weight: 600; }
.deal .what span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: #d6d2c8; }
/* With home.js the reel loops: the tilt comes from a class so copies match,
   and the photos at the sides can be clicked. */
.reel.loop .deal { rotate: -1.5deg; cursor: pointer; }
.reel.loop .deal.tilt { rotate: 1.3deg; }
.reel.loop .deal.here { cursor: auto; }
/* The dots are drawn by home.js, so they only show when they can move. Each
   is a button taller and wider than the dot it draws, so it's easy to hit. */
.dots { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: -18px; }
.dots button {
  display: flex; align-items: center; justify-content: center; height: 24px; padding: 0 3.5px; margin: 0;
  border: 0; border-radius: 999px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(20, 21, 23, 0.2);
  transition: width 0.25s, background-color 0.25s;
}
.dots button:hover::before { background: rgba(20, 21, 23, 0.42); }
.dots button.on::before { width: 22px; background: var(--ink); }
.dots button.on { cursor: auto; }
.dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.reel-note { margin: 12px 20px 0; font-size: 14px; line-height: 1.4; text-align: center; color: var(--secondary); }

/* Below the first screen. */
.who { padding: 40px 0 0; }
.who h2 { margin: 0; font-size: clamp(25px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.rows { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.rows li {
  display: flex; gap: 16px; align-items: center; margin: 0; padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px;
}
.tile { flex: none; width: 118px; height: 156px; padding: 14px 14px 0; border-radius: 16px; overflow: hidden; }
.tile img { display: block; width: 100%; height: auto; border-radius: 11px 11px 0 0; }
.t-green { background: var(--felt); }
.t-gold { background: var(--gold); }
.t-deep { background: var(--felt-deep); }
.rows h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; }
.rows p { margin: 5px 0 0; font-size: 15px; line-height: 1.42; color: var(--secondary); }

.home .facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.home .facts li { display: flex; gap: 14px; align-items: center; margin: 0; padding: 17px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; line-height: 1.35; }
.home .facts svg { flex: none; fill: none; stroke: var(--in); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.closer { margin: 40px -4px 0; padding: 36px 22px 30px; border-radius: 24px; text-align: center; background: var(--felt); color: var(--bone); }
.closer h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: var(--bone); }
.closer .dl { margin-top: 22px; }
.closer p { margin: 14px 0 0; font-size: 15px; line-height: 1.4; color: var(--bone); }
.closer p a, .closer p a:hover { color: var(--bone); }

/* The bar that follows a phone down the page. It is the last thing in
   .rest and sticks to the bottom of the window while .rest is in view, so
   it comes up once the first screen's button has gone. */
.pin {
  position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #ececea;
}
.pin img { flex: none; width: 44px; height: 44px; border-radius: 11px; display: block; }
.pin p { flex: 1; min-width: 0; margin: 0; }
.pin b { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; }
.pin span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.3; color: #a3a7ae; }
.pin a {
  flex: none; display: flex; align-items: center; height: 44px; padding: 0 24px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none;
}
.home footer.site { border-top: 0; }

@media (min-width: 900px) {
  .first { padding: 36px 0 64px; }
  .first-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .pitch { padding: 0; }
  .first h1 { font-size: clamp(44px, 4.7vw, 60px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: wrap; }
  /* No button here: a laptop gets the code to scan. */
  .pitch .dl { display: none; }
  .scan { display: flex; gap: 24px; align-items: center; margin-top: 42px; }
  .qr { flex: none; width: 164px; height: 164px; padding: 14px; border-radius: 20px; background: var(--gold); }
  .qr img { display: block; width: 136px; height: 136px; }
  .scan-h { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; max-width: 16em; }
  .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .store {
    display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px;
    border-radius: 12px; background: var(--ink); color: var(--bone); font-size: 15px; font-weight: 600; text-decoration: none;
  }
  .store:hover { color: #ffffff; }
  .store svg { flex: none; fill: currentColor; }
  .free { margin-top: 18px; text-align: left; font-size: 15px; }
  .reel-wrap { margin-top: 0; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
  .reel { padding: 14px calc(50% - 146px) 46px; gap: 18px; }
  .deal { width: 292px; aspect-ratio: 292 / 476; border-radius: 30px; box-shadow: 0 18px 40px rgba(20, 21, 23, 0.2), 0 3px 8px rgba(20, 21, 23, 0.1); }
  .deal .amt { height: 38px; padding: 0 15px; font-size: 19px; }
  .deal .what { padding: 54px 18px 18px; }
  .deal .what b { font-size: 17px; }
  .deal .what span { font-size: 14px; }

  .who { padding: 80px 0 0; }
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
  .rows li { flex-direction: column; align-items: stretch; gap: 18px; padding: 14px 14px 24px; }
  .rows li > div:last-child { padding: 0 8px; }
  .tile { width: auto; height: 250px; padding: 26px 0 0; }
  .tile img { width: 178px; margin: 0 auto; border-radius: 18px 18px 0 0; }
  .rows h3 { font-size: 20px; }
  .rows p { font-size: 16px; }
  .home .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 44px; border-top: 0; }
  .home .facts li { border-top: 1px solid var(--hairline); }
  .closer { margin: 72px 0 0; padding: 56px 24px 48px; border-radius: 32px; }
  .closer .dl { max-width: 340px; margin-left: auto; margin-right: auto; }
  .pin { display: none; }
  .rest { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .dots button::before { transition: none; }
}
