/* Lab Slip — labslip.app
   Brand: Ink #161513, Paper #EFE7D6, Accent #C8372D.
   No web fonts are loaded: Jost and Courier Prime are used if installed,
   otherwise the closest system faces (Futura, Courier). */

:root {
  --ink: #161513;
  --ink-2: #221f1c;
  --ink-3: #2e2a26;
  --paper: #efe7d6;
  --paper-2: #e5dbc6;
  --paper-3: #d8ccb3;
  --red: #c8372d;
  --red-dark: #a92b22;
  --muted: #5e584e;
  --muted-on-ink: #b4ab99;

  --display: "Jost", "Futura PT", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.typed {
  font-family: var(--type);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.eyebrow { display: inline-block; margin-bottom: 18px; }
.eyebrow b { color: var(--red); font-weight: 700; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; }
.header-cta { margin-left: 8px; }
@media (max-width: 860px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--type); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* Apple's official "Download on the App Store" badges (assets/*-badge.svg). */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.badge { display: inline-block; border-radius: 9px; transition: transform .15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .red { color: var(--red); }
.hero-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Device frames ---------- */

.devices { position: relative; aspect-ratio: 1.22; width: 100%; }
.device { position: absolute; margin: 0; }
.device img { width: 100%; height: auto; border-radius: inherit; background: var(--ink); }

.device.mac { top: 0; right: 6%; width: 82%; }
.device.mac .screen {
  padding: 2.2% 2.2% 3.4%; background: #0c0b0a; border-radius: 14px 14px 4px 4px;
  box-shadow: 0 0 0 1.5px #3a3631 inset;
}
.device.mac .screen img { border-radius: 3px; }
.device.mac::after {
  content: ""; display: block; height: 0; padding-bottom: 3.2%;
  margin: 0 -7%; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#cfc6b4, #a79e8c);
  box-shadow: 0 18px 30px -12px rgb(22 21 19 / .45);
}

.device.ipad {
  left: 0; bottom: 4%; width: 52%;
  padding: 2.6%; background: var(--ink); border-radius: 22px;
  box-shadow: 0 0 0 2px #3a3631 inset, 0 24px 40px -16px rgb(22 21 19 / .5);
}
.device.ipad img { border-radius: 10px; }

.device.watch {
  left: 56%; bottom: 1%; width: 13%;
  padding: 1.6%; background: var(--ink); border-radius: 30% / 26%;
  box-shadow: 0 0 0 2px #3a3631 inset, 0 20px 30px -12px rgb(22 21 19 / .5);
}
.device.watch img { border-radius: 24% / 20%; }
.device.watch::after {
  content: ""; position: absolute; right: -5%; top: 26%; width: 6%; height: 18%;
  background: #3a3631; border-radius: 0 3px 3px 0;
}

.device.iphone {
  right: 5%; bottom: 0; width: 22%;
  padding: 1.4%; background: var(--ink); border-radius: 22% / 10.4%;
  box-shadow: 0 0 0 2px #3a3631 inset, 0 24px 40px -14px rgb(22 21 19 / .55);
}
.device.iphone img { border-radius: 19% / 9%; }

/* ---------- Bands ---------- */

.ink-band { background: var(--ink); color: var(--paper); }
.ink-band .muted, .ink-band .lead { color: var(--muted-on-ink); }
.ink-band a:hover { color: var(--paper); text-decoration-color: var(--red); }
section[id] { scroll-margin-top: 76px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }

/* Ticket perforation between bands */
.perf { height: 18px; background: radial-gradient(circle at 9px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 18px 18px repeat-x, var(--ink); }
.perf.up { background: radial-gradient(circle at 9px 18px, var(--paper) 6px, transparent 6.5px) 0 0 / 18px 18px repeat-x, var(--ink); }

/* ---------- How it works: film strip flowchart ---------- */


.strip {
  --hole: var(--ink);
  position: relative;
  list-style: none; margin: 0 0 22px; padding: 44px 16px 30px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  background:
    radial-gradient(ellipse 5px 7px at center, var(--hole) 98%, transparent) 0 6px / 22px 14px repeat-x,
    radial-gradient(ellipse 5px 7px at center, var(--hole) 98%, transparent) 0 calc(100% - 8px) / 22px 14px repeat-x,
    #3a2f25;
  border-radius: 4px;
  counter-reset: frame var(--start, 0);
}
.strip-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  color: var(--muted-on-ink); margin: 8px 0 10px;
}
.strip-label .red { color: var(--red); }

.frame {
  position: relative; counter-increment: frame;
  background: var(--ink-2); color: var(--paper);
  border-radius: 6px; padding: 22px 22px 20px;
  box-shadow: 0 0 0 1px rgb(239 231 214 / .06) inset;
  display: flex; flex-direction: column; gap: 10px;
}
.frame::before {
  content: "▸ " counter(frame) "  —  " counter(frame) "A";
  font-family: var(--type); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em;
  color: #e3a24a; position: absolute; top: -21px; left: 4px; white-space: pre;
}
.frame .icon { width: 44px; height: 44px; stroke: var(--paper); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.frame .icon .r { stroke: var(--red); }
.frame h3 { font-size: 1.32rem; text-transform: uppercase; letter-spacing: 0.01em; }
.frame p { margin: 0; color: var(--muted-on-ink); font-size: 0.96rem; line-height: 1.5; }
.frame .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.frame .tags span {
  font-family: var(--type); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid rgb(239 231 214 / .28); color: var(--paper); border-radius: 4px; padding: 2px 7px;
}
.frame .tags span.pay { border-color: var(--red); color: #f2a59e; }

/* Arrows between frames */
.frame:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2;
  right: -16px; top: 50%; width: 16px; height: 22px; transform: translateY(-50%);
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.strip-turn {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  color: var(--red); margin: -8px 0 26px;
}
.strip-turn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .strip {
    grid-template-columns: 1fr; gap: 34px; padding: 16px 34px;
    background:
      radial-gradient(ellipse 7px 5px at center, var(--hole) 98%, transparent) 8px 0 / 14px 22px repeat-y,
      radial-gradient(ellipse 7px 5px at center, var(--hole) 98%, transparent) calc(100% - 8px) 0 / 14px 22px repeat-y,
      #3a2f25;
  }
  .frame { padding-top: 34px; }
  .frame::before { top: 10px; left: 22px; }
  .frame:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: -28px; width: 22px; height: 16px;
    transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .strip-turn { justify-content: center; }
}

/* ---------- Data flow: frame + scan = tagged copy ---------- */

.equation {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; align-items: center; gap: 18px;
  margin-top: clamp(40px, 6vw, 64px);
}
.eq-card {
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 18px 20px;
  font-family: var(--type); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.7;
}
.eq-card .k { color: var(--muted); }
.eq-card h4 { margin: 0 0 8px; font-size: 0.78rem; color: var(--red); letter-spacing: 0.14em; }
.eq-card.scan { display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 100%; }
.eq-card.scan .neg {
  margin: 4px auto 10px; width: 70%; aspect-ratio: 3 / 2; border-radius: 3px;
  background:
    radial-gradient(circle at 30% 70%, #6a5a47 0 18%, transparent 19%),
    linear-gradient(160deg, #3c3a36, #8a7f6c 60%, #c7b99d);
  box-shadow: 0 0 0 6px var(--ink);
}
.eq-op { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--red); text-align: center; }
@media (max-width: 900px) {
  .equation { grid-template-columns: 1fr; gap: 10px; }
  .eq-op { line-height: 1; }
}

/* ---------- Feature slips ---------- */

.slips { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.slip {
  position: relative; background: #fbf7ee; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgb(22 21 19 / .06), 0 14px 30px -20px rgb(22 21 19 / .35);
  display: flex; flex-direction: column;
}
.slip header {
  background: var(--ink); color: var(--paper); padding: 16px 22px 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.slip header .typed { font-size: 0.72rem; color: var(--muted-on-ink); white-space: nowrap; }
.slip header h3 { font-size: 1.25rem; text-transform: uppercase; }
.slip ul { margin: 0; padding: 18px 22px 22px 22px; list-style: none; display: grid; gap: 10px; }
.slip li { position: relative; padding-left: 20px; font-size: 0.97rem; line-height: 1.5; }
.slip li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
/* notches where a ticket would tear */
.slip::before, .slip::after {
  content: ""; position: absolute; top: 46px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); z-index: 1;
}
.slip::before { left: -9px; }
.slip::after { right: -9px; }

.formats { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.formats .typed { margin-right: 6px; color: var(--muted); }
.chip {
  font-family: var(--type); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  border: 2px solid var(--ink); border-radius: 6px; padding: 4px 10px; background: transparent;
}

/* ---------- Platforms ---------- */

.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.platform { border-top: 3px solid var(--ink); padding-top: 18px; }
.platform h3 { text-transform: uppercase; margin-bottom: 8px; }
.platform .typed { color: var(--red); display: block; margin-bottom: 10px; }
.platform p { font-size: 0.96rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Pricing tickets ---------- */

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ticket {
  position: relative; border-radius: 20px; padding: 30px 30px 28px;
  background: var(--ink-2); color: var(--paper);
  box-shadow: 0 0 0 1px rgb(239 231 214 / .08) inset;
  display: flex; flex-direction: column;
}
.ticket.full { background: var(--paper); color: var(--ink); }
.ticket .typed { color: var(--muted-on-ink); }
.ticket.full .typed { color: var(--red); }
.ticket h3 { font-size: clamp(2rem, 3.6vw, 2.6rem); text-transform: uppercase; margin: 8px 0 6px; }
.ticket .price { font-family: var(--type); font-weight: 700; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 3px dotted currentColor; }
.ticket ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.ticket li { padding-left: 26px; position: relative; line-height: 1.5; }
.ticket li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--red); }
.ticket .fine { margin-top: auto; padding-top: 18px; font-size: 0.88rem; opacity: 0.75; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--ink);
}
.ticket::before { top: -15px; }
.ticket::after { bottom: -15px; }
@media (max-width: 780px) { .tickets { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Help ---------- */

.help { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px;
  margin-top: 24px;
}
.contact-card a { font-family: var(--type); font-weight: 700; font-size: 1.15rem; color: var(--paper); text-decoration-color: var(--red); text-underline-offset: 4px; word-break: break-all; }
.contact-card p { color: var(--muted-on-ink); margin: 0 0 10px; }

.faq details { border-bottom: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
.faq details:first-child { border-top: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--red); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Final CTA + footer ---------- */

.final { text-align: center; }
.final img.icon { width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 24px; }
.final .badges { justify-content: center; }
.final .lead { margin: 0 auto; }

.site-footer { background: var(--ink); color: var(--muted-on-ink); padding: 40px 0 48px; font-size: 0.92rem; border-top: 2px dotted rgb(239 231 214 / .2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer img { height: 46px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--red); }
.site-footer p { margin: 0; width: 100%; }

/* ---------- Simple document pages (privacy, 404) ---------- */

.doc { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 14px; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2em 0 0.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.doc .updated { margin-bottom: 2.4em; color: var(--muted); }
