/* PaperDude (paperdude.app). Black, white, and one line of scan light. System fonts, so there is nothing to download.
   The shape follows wormyworlds.com: a bar, full-width scenes with a small label, real screens in a frame, a foot.
   No inline styles anywhere: the site's Content-Security-Policy allows only this file. */
:root {
  --ink: #fff;
  --soft: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .54);
  --hair: rgba(255, 255, 255, .14);
  --light: #73e0ff;
  --glow: rgba(115, 224, 255, .5);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 40rem;
  --max: 74rem;
  --sweep: cubic-bezier(.42, .02, .16, 1);
  color-scheme: dark;
}
@supports (color: color(display-p3 0 0 0)) {
  :root { --light: color(display-p3 .45 .88 1); --glow: color(display-p3 .45 .88 1 / .5); }
}
@media (prefers-contrast: more) {
  :root { --soft: #fff; --faint: rgba(255, 255, 255, .8); --hair: rgba(255, 255, 255, .5); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #000; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font: 400 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
h1, h2, .nots { overflow-wrap: anywhere; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--faint); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(115, 224, 255, .35); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* The bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--hair); padding-top: env(safe-area-inset-top, 0); }
.bar .wrap { display: flex; align-items: center; gap: .5rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; font-weight: 600; letter-spacing: -.012em; text-decoration: none; }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 22%; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: .125rem; color: var(--soft); font-size: .9375rem; }
.bar nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .625rem; text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar nav .wide { display: none; }
@media (min-width: 30rem) { .bar nav .wide { display: inline-flex; } }

/* A real screen from the app, in a plain frame */
.device { position: relative; width: var(--dw, 16rem); max-width: 100%; padding: calc(var(--dw, 16rem) * .026); border: 1px solid rgba(255, 255, 255, .24); border-radius: 15% / 6.9%; background: #0a0a0c; flex: none; }
.device img { width: 100%; height: auto; border-radius: 12.6% / 5.8%; }
/* A screen that rises from the lower edge: no bottom, and it fades into the page */
.device.rise { padding-bottom: 0; border-bottom: 0; border-radius: 15% 15% 0 0 / 8.6% 8.6% 0 0; }
.device.rise img { border-radius: 12.6% 12.6% 0 0 / 7.4% 7.4% 0 0; }

/* The first screen */
.hero { display: grid; gap: clamp(2.5rem, 7vw, 4rem); padding-top: clamp(2.5rem, 7vw, 5rem); border-bottom: 1px solid var(--hair); }
h1 { max-width: 11ch; font-size: clamp(3rem, 13vw, 5.5rem); line-height: 1; font-weight: 600; letter-spacing: -.038em; text-wrap: balance; }
.lede { max-width: 27rem; margin-top: 1.25rem; color: var(--soft); font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.38; letter-spacing: -.01em; text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 600; }
.store { margin-top: 1.75rem; }
/* Inert until the app exists. It stays plain words: Apple licenses its badge only for apps already on the store. */
.slot { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; padding-inline: 1.125rem; border: 1px solid var(--hair); border-radius: 999px; color: var(--soft); font-size: .9375rem; }
.slot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px 1px var(--glow); }

.poster { position: relative; display: flex; justify-content: center; align-items: flex-end; clip-path: inset(-6rem -6rem 0 -6rem); --dw: min(44vw, 17rem); }
.poster::after { content: ""; position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(to bottom, transparent, #000 92%); pointer-events: none; z-index: 3; }
.poster .back { margin-right: -7%; margin-bottom: -9%; opacity: .82; }
.poster .front { z-index: 2; box-shadow: 0 0 5rem rgba(115, 224, 255, .12); }
/* The one line of light: it passes down the camera screen once. */
.light { position: absolute; inset: 0 -9%; pointer-events: none; animation: sweep 1.7s var(--sweep) .5s both; }
.light::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 3px; border-radius: 3px; background: var(--light); box-shadow: 0 0 22px 3px var(--glow); }
@keyframes sweep { 0% { transform: translateY(4%); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(82%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light { animation: none; opacity: 0; }
}

/* Scenes */
.scene { padding-block: clamp(3.5rem, 9vw, 7rem); }
.scene + .scene { border-top: 1px solid var(--hair); }
.kick { display: flex; align-items: center; gap: .625rem; color: var(--faint); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kick::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px 1px var(--glow); flex: none; }
.t1 { margin-top: 1rem; font-size: clamp(2rem, 8.4vw, 4.25rem); line-height: 1.04; font-weight: 600; letter-spacing: -.034em; text-wrap: balance; }
.note { max-width: var(--measure); margin-top: 1.5rem; color: var(--soft); font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.42; letter-spacing: -.008em; text-wrap: pretty; }
.note + .note { margin-top: 1rem; }
.note a { color: var(--ink); }
.nots { margin-top: 1rem; font-size: clamp(2.5rem, 10.5vw, 5.5rem); line-height: 1.04; font-weight: 600; letter-spacing: -.036em; }
.nots li { display: block; }
.nots li:nth-child(even) { color: var(--soft); }

.steps { display: grid; gap: clamp(2.25rem, 5vw, 3rem); margin-top: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem; border: 1px solid var(--light); border-radius: 50%; color: var(--light); font-size: .9375rem; font-weight: 600; }
.steps h3 { font-size: clamp(1.75rem, 6.4vw, 2.5rem); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; }
.steps p { max-width: var(--measure); margin-top: .75rem; color: var(--soft); font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); line-height: 1.42; letter-spacing: -.008em; }

/* A scene with a screen beside the words */
.show { display: grid; gap: clamp(2.25rem, 6vw, 4rem); align-items: center; }
.show .device { justify-self: center; --dw: min(64vw, 17rem); }

/* Privacy and support */
.page { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.doc { max-width: var(--measure); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.doc h1 { max-width: none; font-size: clamp(2.5rem, 9vw, 3.75rem); }
.doc h2 { margin-top: 2.75rem; font-size: 1.375rem; line-height: 1.2; font-weight: 600; letter-spacing: -.018em; }
.doc h3 { margin-top: 1.75rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.008em; }
.doc p, .doc ul { margin-top: .75rem; color: var(--soft); }
.doc li { padding-left: 1.1em; text-indent: -1.1em; }
.doc li + li { margin-top: .5rem; }
.doc li::before { content: "\2022"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--faint); }
.doc b, .doc strong { color: var(--ink); font-weight: 600; }
.doc .lead { margin-top: 1.25rem; color: var(--ink); font-size: clamp(1.25rem, 3.4vw, 1.5rem); line-height: 1.3; letter-spacing: -.016em; }
.doc .when { margin-top: 2.75rem; color: var(--faint); font-size: .9375rem; }
.doc .say { display: inline-block; margin-top: 1rem; font-size: clamp(1.25rem, 5vw, 1.5rem); line-height: 1.3; letter-spacing: -.016em; color: var(--ink); overflow-wrap: anywhere; }

/* Foot */
.foot { padding-block: 2.25rem max(2.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); color: var(--faint); font-size: .875rem; line-height: 1.5; }
.foot a { color: var(--soft); }
.foot p + p { margin-top: .375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem -.625rem; color: var(--soft); font-size: .9375rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .625rem; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
/* The way home: the company's mark and name */
.maker { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; margin-bottom: .5rem; color: var(--ink); font-size: 1rem; text-decoration: none; }
.maker img { width: 1.75rem; height: 1.75rem; }
.maker span { color: var(--soft); }
.maker b { color: var(--ink); font-weight: 600; }
.maker:hover b { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding-top: clamp(3rem, 6vw, 5.5rem); }
  .hero .say { align-self: center; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
  h1 { font-size: clamp(4.5rem, 7vw, 6.5rem); }
  .poster { --dw: min(21vw, 18.5rem); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
  .steps p { font-size: 1.125rem; }
  .show { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(3rem, 8vw, 8rem); }
  .show.flip { grid-template-columns: auto minmax(0, 1fr); }
  .show.flip .device { order: -1; }
  .show .device { --dw: 18.5rem; }
}

@media print {
  html, body { background: #fff; color: #000; }
  :root { --soft: #000; --faint: #444; --ink: #000; --hair: #bbb; }
  .bar { position: static; background: none; }
}
