/* userclip.lol
   ===========================================================================
   The same design language as the application: warm brown and tan, Inter, and
   depth carried by a consistent elevation scale. A site that looks nothing like
   the product it sells makes the product look borrowed.

   No build step and no external requests. GitHub Pages serves these files as
   they are, and a page promising local processing while pulling fonts from
   Google would be a bad joke. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #191310;
  --surface: #221a15;
  --surface-raised: #2c231c;
  --border: #3d3126;
  --border-strong: #52422f;

  --text: #f2e9dc;
  --text-muted: #c3b39a;
  --text-subtle: #9c8b74;

  --accent: #d9a05b;
  --accent-hover: #e8b573;
  --accent-quiet: rgb(217 160 91 / 0.12);
  --on-accent: #1a1209;
  --success: #9cad7b;

  --elevation-1: 0 1px 2px rgb(0 0 0 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.035);
  --elevation-2: 0 2px 6px rgb(0 0 0 / 0.36), 0 1px 2px rgb(0 0 0 / 0.24),
    inset 0 1px 0 rgb(255 255 255 / 0.045);
  --elevation-3: 0 10px 24px -6px rgb(0 0 0 / 0.5), 0 3px 8px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.055);
  --elevation-4: 0 32px 64px -16px rgb(0 0 0 / 0.66), 0 12px 24px rgb(0 0 0 / 0.4),
    inset 0 1px 0 rgb(255 255 255 / 0.07);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  /* The built in easings are too weak to read as deliberate. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* One spacing rhythm for the whole page, so sections relate rather than each
     picking their own padding. */
  --gap-sm: 0.75rem;
  --gap: 1.25rem;
  --gap-lg: 2.5rem;
  --section-y: clamp(3.5rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss03" 1;
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}

.skip:focus { left: 0; }

/* Ambient light, from the application, at the same slow pace. Whole minutes
   rather than seconds: the effect should only be noticed in the sense that its
   absence would be. */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.ambient::before {
  top: -22rem;
  left: -16rem;
  background: radial-gradient(circle, rgb(217 160 91 / 0.13), transparent 68%);
  animation: drift-a 54s var(--ease-out) infinite;
}

.ambient::after {
  right: -20rem;
  top: 28rem;
  background: radial-gradient(circle, rgb(184 122 51 / 0.1), transparent 68%);
  animation: drift-b 68s var(--ease-out) infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(7vw, 5vh, 0) scale(1.1); }
  66% { transform: translate3d(3vw, 11vh, 0) scale(0.94); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(-8vw, -6vh, 0) scale(1.12); }
  70% { transform: translate3d(-3vw, -12vh, 0) scale(0.95); }
}

.page { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.wrap-mid { max-width: 52rem; }
.wrap-narrow { max-width: 46rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark img {
  border-radius: 6px;
  margin-right: 0.5rem;
  /* Nudged onto the text baseline. A square placed inline beside type hangs
     below it by default, which reads as a misalignment rather than a lockup. */
  transform: translateY(4px);
}

.wordmark span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.site-nav a:hover { color: var(--text); }

/* The page you are on, marked so the three destinations are never ambiguous.
   The rail rather than a colour change alone, because colour on its own is not
   an accessible way to say "you are here". */
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 550;
  position: relative;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text) !important;
}

.nav-cta:hover { background: var(--surface-raised); }

@media (max-width: 46rem) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Type */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); letter-spacing: -0.018em; line-height: 1.18; }
h3 { font-size: 1.0625rem; letter-spacing: -0.006em; line-height: 1.4; }

p { margin: 0 0 1rem; max-width: 64ch; }

/* Long unbroken strings, chiefly URLs inside the legal pages, must wrap rather
   than widen the page. */
p, li, dd, td { overflow-wrap: anywhere; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
  margin: 0 0 0.85rem;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: 52ch;
}

.muted { color: var(--text-muted); }

.fineprint {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin: 0;
}

/* An emphasised second line, which gives a heading a shape rather than a
   uniform block of large text. */
.split-heading em {
  font-style: normal;
  color: var(--text-subtle);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  /* Named properties rather than all, so nothing unintended animates off the
     GPU. */
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out),
    border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.button:hover { color: var(--text); }

.button:active { transform: scale(0.975); }

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--elevation-2);
}

.button-primary:hover { color: var(--on-accent); }

.button-quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--surface-raised); border-color: var(--border-strong); }
  .button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .button-quiet:hover { background: var(--surface); color: var(--text); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin: 2rem 0 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-quiet);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */

.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

/* A grid item defaults to min-width: auto, so a track containing a 1296px
   screenshot sizes itself to that image and drags the whole row past the
   viewport. The image's own max-width cannot fix it, because the track is
   already too wide by the time the image is measured against it. */
.hero-grid > *,
.feature > *,
.facts > *,
.pipeline > li { min-width: 0; }

@media (min-width: 62rem) {
  .hero-grid {
    /* Deliberately uneven. A 50/50 split is the tell of a template. */
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }

.hero-shot {
  margin: 0;
  position: relative;
}

.hero-shot img,
.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--elevation-4);
}

.hero-shot figcaption {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: right;
}

/* The strip of three specifics under the hero */

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.facts {
  display: grid;
  gap: var(--gap-lg);
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
}

.facts dd {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.facts p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 34ch;
}

/* Sections */

.section { padding: var(--section-y) 0; }
.section-last { padding-bottom: clamp(5rem, 10vw, 8rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-top: 1rem; }

.aside {
  margin: 2.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.9375rem;
  color: var(--text-subtle);
  max-width: 60ch;
}

/* The pipeline. A row of numbered steps that becomes a column on narrow
   screens, rather than five identical cards. */

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 56rem) {
  .pipeline { grid-template-columns: repeat(5, 1fr); }
}

.pipeline li {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  transition: background 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pipeline li:hover { background: var(--surface-raised); }
}

.tick {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}

.pipeline h3 { margin-bottom: 0.4rem; }

.pipeline p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Alternating feature rows */

.feature {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.feature:last-child { margin-bottom: 0; }

@media (min-width: 62rem) {
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

  /* Reversed by ordering the columns rather than by direction, so the reading
     order stays correct for a screen reader. */
  .feature-reverse .feature-copy { order: 2; }
  .feature-reverse .feature-shot { order: 1; }
}

.feature-copy h2 { margin-bottom: 1.25rem; }

.feature-copy p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.feature-copy strong { color: var(--text); font-weight: 600; }

.feature-shot { margin: 0; }

/* Limits: a numbered honest list */

.limits {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: limit;
}

.limits li {
  counter-increment: limit;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem 1.25rem;
}

@media (min-width: 44rem) {
  .limits li { grid-template-columns: 2rem 1fr; }

  .limits li::before {
    content: counter(limit, decimal-leading-zero);
    grid-row: span 2;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
    padding-top: 0.3rem;
  }
}

.limits li:last-child { border-bottom: 1px solid var(--border); }

.limits h3 { color: var(--text); }

.limits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Privacy panel */

.panel {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--elevation-3);
}

.panel h2 { margin-bottom: 1.25rem; }

.checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* The tick is drawn rather than an icon file, so it needs no request and
   inherits colour like text. */
.tickmark {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  position: relative;
}

.tickmark::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.1rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.closer { text-align: center; }
.closer .cta-row { justify-content: center; }
.closer .fineprint { margin: 0 auto; max-width: 46ch; }

/* Legal documents */

.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 5rem; }

.legal h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }

.legal h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal h3 { margin: 1.75rem 0 0.5rem; }

.legal p, .legal li { color: var(--text-muted); }

.legal ul, .legal ol {
  max-width: 64ch;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal li { margin-bottom: 0.55rem; }

.legal strong { color: var(--text); font-weight: 600; }

.effective {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin: 2rem 0 3rem;
}

.toc p { margin: 0 0 0.85rem; }

.toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }

.toc li { margin-bottom: 0.4rem; break-inside: avoid; }

.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

@media (max-width: 40rem) { .toc ol { columns: 1; } }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

td { background: var(--surface); color: var(--text-muted); }

code {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1.35rem;
  font-size: 0.875rem;
}

.site-footer nav a:last-child { margin-right: 0; }
.site-footer nav a:hover { color: var(--text); }

/* Scroll reveal.
   Slight and once only. The delay is set per element by the script, which is
   what makes a group cascade rather than arrive as a block. Only transform and
   opacity move, so it composites on the GPU. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

[data-reveal].shown,
html.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ambient::before,
  .ambient::after { animation: none; }

  .button:active { transform: none; }
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
