/* twostrip.app
   Typography and layout metrics follow the reference landing page: 96/96 with
   -3% tracking on the headline, 20/28 on the sub, 18px 550 pills at 46px tall,
   near-white page, near-black ink. The reference sets TWK Lausanne, which is a
   licensed face, so this uses the system grotesque - SF Pro on Apple, which is
   also what the app itself is set in. */

:root {
  --ink: #0A0A0A;
  --ink-2: #6B6B6B;
  --ink-3: #9B9B9B;
  --bg: #FDFDFD;
  --pill-quiet: #EEEFF1;
  --hairline: #E8E8E6;
  --container: 1060px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; }

/* Nav: brand left, two pills right */

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
}

.nav-actions { display: flex; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.18px;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}

.pill:active { transform: scale(.98); }
.pill-quiet { background: var(--pill-quiet); color: var(--ink); }
.pill-solid { background: var(--ink); color: #fff; }

/* Hero */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* The two prints, fanned: black stock, four frames, a caption line at the
   head of the strip, the way a booth actually hands them to you. */

.strips {
  position: relative;
  height: 372px;
  margin: 36px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper {
  position: absolute;
  width: 122px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 24px 44px rgba(0,0,0,.2), 0 3px 10px rgba(0,0,0,.12);
}

.paper-back {
  transform: rotate(-12deg) translate(-46px, -10px);
  filter: brightness(.95);
}

.paper-front { transform: rotate(6deg) translate(42px, 12px); }

/* The pitch */

h1 {
  margin: 0;
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sub {
  max-width: 576px;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ink-2);
}

.cta { margin-top: 40px; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}

.appstore:active { transform: scale(.98); opacity: .92; }
.appstore-mark { width: 21px; height: 25px; margin-top: -3px; }
.appstore-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.appstore-kicker { font-size: 11px; letter-spacing: .2px; opacity: .78; }
.appstore-name { font-size: 19px; font-weight: 550; letter-spacing: -0.2px; }

.note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-3);
}

/* The printer: a slot cut into the page, and the strip that comes out of it.
   Scroll drives the print; the fall is the app's own timing. */

.printer {
  height: 265vh;
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* The aperture. Nothing else of the machine is drawn - the page is the
   machine, which is why the paper can arrive without a booth arriving too. */

.slot {
  position: absolute;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  width: 232px;
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(180deg, #0A0A0A 0%, #1C1C1C 55%, #0E0E0E 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7),
    0 10px 26px rgba(0,0,0,.14),
    inset 0 2px 5px rgba(0,0,0,.9);
  z-index: 2;
}

.slot-mouth {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 4px;
  height: 5px;
  border-radius: 3px;
  background: #000;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-3);
  transition: opacity .3s ease;
  z-index: 2;
}

/* Footer */

.footer {
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 20px;
}

.footer nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer p { margin: 0; }

/* Long-form pages */

.doc { max-width: 680px; margin: 0 auto; padding: 32px 24px 80px; font-size: 16px; line-height: 26px; }
.doc h1 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 6px; }
.doc .doc-sub { color: var(--ink-3); font-size: 14px; line-height: 22px; margin: 0 0 32px; }
.doc h2 { font-size: 18px; font-weight: 550; margin: 34px 0 8px; letter-spacing: -0.2px; }
.doc p { color: var(--ink-2); margin: 0 0 12px; }
.doc a { color: var(--ink); }
.doc .back { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--ink-2); text-decoration: none; }

@media (max-width: 760px) {
  .nav { padding-top: 28px; }
  .brand { font-size: 18px; }
  .pill { height: 42px; padding: 0 15px; font-size: 16px; }
  .strips { height: 330px; margin: 24px 0 32px; }
  .paper { width: 100px; }
  .paper-back { transform: rotate(-11deg) translate(-42px, -10px); }
  .paper-front { transform: rotate(6deg) translate(38px, 12px); }
  .sub { font-size: 17px; line-height: 25px; margin-top: 18px; }
  .cta { margin-top: 32px; }
  .slot { width: 176px; top: 13vh; }
}

@media (prefers-reduced-motion: reduce) {
  .printer { height: 130vh; }
}
