/* Hide Faces website. Tokens mirror the app's Theme.swift and paint colours. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0A0A0D;
  --graphite: #16161B;
  --slate: #202027;
  --hairline: rgb(255 255 255 / 0.08);
  --tangerine: #FF6A3D;
  --rose: #ED424A;
  --chalk: #F5F2EB;
  --ink: #121217;
  --cobalt: #2E5CEB;
  --lemon: #FFD133;
  --text: #fff;
  --text-2: rgb(255 255 255 / 0.62);
  --text-3: rgb(255 255 255 / 0.5);   /* 5.3:1 on night, enough for small text */
  --accent: linear-gradient(135deg, var(--tangerine), var(--rose));
  --display: ui-rounded, "SF Pro Rounded", "Nunito", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Nunito", sans-serif;
  --radius-card: 22px;
  --radius-control: 14px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --section-space: clamp(72px, 11vw, 150px);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h2 { font-size: clamp(38px, 5.2vw, 68px); }
h3 { font-size: 24px; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tangerine);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font: 800 19px/1 var(--display);
  letter-spacing: -0.01em;
}
.brand img { border-radius: 23%; }
.nav-links { display: flex; gap: 30px; font-size: 16px; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) var(--gutter) var(--section-space);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 0;
  z-index: -1;
  background: radial-gradient(52% 44% at 68% 42%, rgb(255 106 61 / 0.17), transparent 72%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(48px, 6.4vw, 96px); }

/* The word "faces" gets the icon's bar across its eyes. */
.covered-word { position: relative; display: inline-block; white-space: nowrap; }
.covered-word::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 0.3em;
  height: 0.3em;
  border-radius: 0.07em;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.14), 0 0.12em 0.4em rgb(0 0 0 / 0.55);
  transform: rotate(-5deg) scaleX(0);
  transform-origin: left center;
  animation: cover-word 650ms cubic-bezier(0.2, 0.8, 0.2, 1) 450ms forwards;
}
@keyframes cover-word { to { transform: rotate(-5deg) scaleX(1); } }

.lede {
  margin-top: 26px;
  max-width: 31em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: var(--slate);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: 700 16px/1 var(--display);
}
.soon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 106 61 / 0.18);
}

/* The hero photo, covered by the app */

.stage { margin: 0; }
.stage-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--graphite);
  box-shadow: 0 0 0 1px var(--hairline), 0 50px 90px -40px rgb(0 0 0 / 0.9);
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}
.stage-img.is-shown { opacity: 1; }
.stage.is-peeking .stage-original { opacity: 1; transition-duration: 120ms; }
.stage-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: rgb(10 10 13 / 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  font: 700 15px/1 var(--display);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); }
.stage.is-peeking .status-dot { background: var(--text-3); }
.peek {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgb(10 10 13 / 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.stage.is-peeking .peek { transform: scale(0.94); background: rgb(255 106 61 / 0.85); }

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.chips {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--graphite);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.chip {
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 700 15px/1 var(--display);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--slate);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--tangerine);
}
.surprise {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 12px 30px -8px rgb(255 106 61 / 0.55);
  font: 700 16px/1 var(--display);
  cursor: pointer;
  transition: transform 160ms ease;
}
.surprise:active { transform: scale(0.97); }
.stage figcaption { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* Shared section rhythm */

.styles, .paint, .how, .privacy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-space);
}
.section-head { max-width: 42rem; }
.section-head p { margin-top: 18px; font-size: 20px; color: var(--text-2); }

/* Five ways: the app's fan of tilted style cards */

.fan {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
.fan-card {
  position: relative;
  flex: none;
  width: clamp(150px, calc((100vw - 2 * var(--gutter)) / 4.4), 270px);
  aspect-ratio: 3 / 4;
  margin: 0 -1.6%;
  padding: 9px;
  border-radius: var(--radius-card);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2), 0 34px 60px -24px rgb(0 0 0 / 0.95);
  transform: translateY(var(--drop)) rotate(var(--tilt));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fan-card:hover { z-index: 5; transform: translateY(calc(var(--drop) - 14px)) rotate(0deg); }
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.fan-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgb(10 10 13 / 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 800 15px/1 var(--display);
}
.fan-blur     { z-index: 1; --tilt: -13deg; --drop: 46px; --tint: linear-gradient(145deg, #5C6BF2, #8C4DE6); }
.fan-paint    { z-index: 2; --tilt: -6deg;  --drop: 12px; --tint: linear-gradient(145deg, var(--lemon), #FF9A3D); }
.fan-emoji    { z-index: 3; --tilt: 0deg;   --drop: 0px;  --tint: var(--accent); }
.fan-bar      { z-index: 2; --tilt: 6deg;   --drop: 12px; --tint: linear-gradient(145deg, #1FB89E, #1A73B3); }
.fan-pixelate { z-index: 1; --tilt: 13deg;  --drop: 46px; --tint: linear-gradient(145deg, #9AA3B5, #4B5263); }
.fan-emoji .fan-tag, .fan-paint .fan-tag { color: var(--text); }

.style-notes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: clamp(72px, 9vw, 110px) 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.style-notes dt { font: 800 19px/1.2 var(--display); }
.style-notes dd { margin: 8px 0 0; font-size: 16px; color: var(--text-2); }

/* Paint spotlight */

.paint {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.paint-copy { position: sticky; top: 40px; }
.paint-copy > p { margin-top: 22px; max-width: 30em; color: var(--text-2); }
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-2);
}
.swatches li { display: inline-flex; align-items: center; gap: 9px; }
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}
.swatch-ink { background: var(--ink); }
.swatch-chalk { background: var(--chalk); }
.swatch-tangerine { background: #FF6B3D; }
.swatch-cobalt { background: var(--cobalt); }
.swatch-lemon { background: var(--lemon); }
.paint-copy .aside { margin-top: 26px; max-width: 30em; font-size: 15px; color: var(--text-3); }

.paint-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile { display: flex; flex-direction: column; margin: 0; }
.tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: var(--graphite);
}
.tile figcaption { margin-top: 9px; font-size: 14px; color: var(--text-3); }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-big img { flex: 1; aspect-ratio: auto; min-height: 0; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { counter-increment: step; width: min(100%, 290px); justify-self: center; }
.phone {
  margin: 0 0 30px;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(150deg, #2B2B33, #111115);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 44px 70px -34px rgb(0 0 0 / 0.95);
}
.phone img { width: 100%; border-radius: 39px; }
.step h3 { display: flex; align-items: baseline; gap: 13px; }
.step h3::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--night);
  font: 800 16px/1 var(--display);
  transform: translateY(-3px);
}
.step p { margin-top: 12px; padding-left: 45px; font-size: 17px; color: var(--text-2); }

/* Privacy */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.facts {
  display: grid;
  gap: 16px;
  margin: 36px 0 32px;
  padding: 0;
  list-style: none;
}
.facts li { position: relative; padding-left: 40px; color: var(--text-2); }
/* Each bullet is a tiny covered face, like the icon. */
.facts li::before, .facts li::after { content: ""; position: absolute; }
.facts li::before { left: 0; top: 0.18em; width: 22px; height: 22px; border-radius: 50%; background: var(--chalk); }
.facts li::after {
  left: -3px; top: 0.5em; width: 28px; height: 7px;
  border-radius: 2px; background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--night);
  transform: rotate(-7deg);
}

.receipt {
  position: relative;
  margin: 0 0 12px;
  padding: 30px 30px 34px;
  border-radius: 4px 4px 0 0;
  background: var(--chalk);
  color: #1D1D22;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 60px 80px -40px rgb(0 0 0 / 0.95);
  transform: rotate(2.2deg);
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 11px;
  background: conic-gradient(from -45deg at bottom, var(--chalk) 90deg, transparent 0) 50% / 22px 100%;
}
.receipt-title {
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 2px dashed rgb(0 0 0 / 0.16);
  font: 800 23px/1.1 var(--display);
  color: var(--graphite);
}
.receipt table { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt th, .receipt td {
  padding: 11px 10px 11px 0;
  border-bottom: 1px dashed rgb(0 0 0 / 0.13);
  text-align: left;
  vertical-align: middle;
}
.receipt thead th { padding-top: 10px; font: 800 13px/1.2 var(--display); color: rgb(0 0 0 / 0.62); }
.receipt tbody th { width: 24%; font-weight: 600; color: rgb(0 0 0 / 0.6); }
.receipt tbody tr:last-child > * { border-bottom: 0; }
.redacted {
  display: inline-block;
  min-width: 7.5em;
  border-radius: 3px;
  background: var(--ink);
  color: transparent;
  line-height: 1.2;
  transform: rotate(-2deg);
  user-select: none;
}
.receipt tbody tr:nth-child(2) .redacted { min-width: 5.5em; transform: rotate(1deg); }
.receipt tbody tr:nth-child(3) .redacted { min-width: 6.5em; transform: rotate(-1deg); }
.receipt tbody tr:nth-child(4) .redacted { min-width: 8.5em; transform: rotate(1.5deg); }
.receipt-ok { font-weight: 800; color: #C93A1C; }
.receipt-note { margin-top: 18px; font-size: 14px; color: rgb(0 0 0 / 0.55); }

/* Closing */

.closing {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section-space);
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  z-index: -1;
  background: radial-gradient(38% 46% at 50% 38%, rgb(237 66 74 / 0.16), transparent 72%);
  pointer-events: none;
}
.closing-icon {
  width: clamp(104px, 11vw, 148px);
  margin: 0 auto 36px;
  border-radius: 23%;
  box-shadow: 0 34px 70px -26px rgb(255 106 61 / 0.6);
  transform: rotate(-7deg);
}
.closing h2 { font-size: clamp(42px, 6.4vw, 88px); }
.closing p { margin-top: 20px; font-size: 19px; color: var(--text-2); }
.closing a { color: var(--text); text-decoration-color: var(--tangerine); text-underline-offset: 4px; }

/* Footer */

.footer {
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 30px 0 52px;
  border-top: 1px solid var(--hairline);
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand { font-size: 17px; }
.footer-links { display: flex; gap: 26px; font-size: 15px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.fineprint { max-width: 62em; margin-top: 22px; font-size: 13px; color: var(--text-3); }

/* Privacy policy page */

.doc {
  max-width: calc(40rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) var(--section-space);
}
.doc h1 { font-size: clamp(42px, 6vw, 68px); }
.doc .doc-date { margin-top: 14px; font-size: 15px; color: var(--text-3); }
.doc .doc-lede { margin-top: 32px; font-size: 21px; color: var(--text); }
.doc h2 { margin-top: 52px; font-size: 26px; letter-spacing: -0.012em; }
.doc p, .doc dd { color: var(--text-2); }
.doc h2 + p { margin-top: 14px; }
.doc a { color: var(--text); text-decoration-color: var(--tangerine); text-underline-offset: 4px; }
.doc-list { display: grid; gap: 18px; margin: 18px 0 0; }
.doc-list dt { font-weight: 700; }
.doc-list dd { margin: 4px 0 0; }
.footer-links a[aria-current="page"] { color: var(--text); }

/* Not found */

.notfound {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 120px) var(--gutter) var(--section-space);
  text-align: center;
}
.notfound h1 { font-size: clamp(40px, 6vw, 64px); }
.notfound p { color: var(--text-2); }
.notfound .text-link { margin-top: 8px; }
/* The app icon's person, drawn in CSS, with the bar across its eyes. */
.notfound-face {
  position: relative;
  width: 132px;
  height: 150px;
  margin-bottom: 16px;
}
.notfound-face::before, .notfound-face::after { content: ""; position: absolute; left: 50%; translate: -50% 0; background: var(--chalk); }
.notfound-face::before { top: 0; width: 76px; height: 76px; border-radius: 50%; }
.notfound-face::after { bottom: 0; width: 132px; height: 62px; border-radius: 66px 66px 12px 12px; }
.notfound-face span {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 1;
  width: 110px;
  height: 22px;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--night);
  translate: -50% 0;
  rotate: -6deg;
}

/* Narrower screens */

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* On one column the photo comes straight after the headline. */
  .hero-copy { display: contents; }
  .hero h1 { order: 1; max-width: 12em; }
  .stage { order: 2; margin-top: 32px; }
  .lede { order: 3; margin-top: 36px; }
  .hero-actions { order: 4; margin-top: 28px; }
  .paint { grid-template-columns: minmax(0, 1fr); }
  .paint-copy { position: static; }
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .receipt { max-width: 34rem; }
  .style-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  /* Cards and phones become rows you swipe through. */
  .fan, .steps {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 18px var(--gutter) 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .fan { justify-content: flex-start; }
  .fan-card { width: 64vw; margin: 0; scroll-snap-align: start; transform: rotate(-2deg); }
  .fan-card:nth-child(even) { transform: rotate(2deg); }
  .fan-card:hover { transform: rotate(0deg); }
  .step { flex: none; width: 64vw; scroll-snap-align: start; }
  .phone { width: 100%; }
  .style-notes { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 36px; }
  .paint-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-big, .tile:last-child { grid-column: span 2; grid-row: span 1; }
  .tile-big img, .tile:last-child img { aspect-ratio: 4 / 3; flex: none; }
  .stage-controls { flex-direction: column; align-items: stretch; }
  .chips { justify-content: space-between; }
  .chip { padding: 10px 9px; font-size: 14px; }
  .surprise { justify-content: center; }
  .receipt { padding: 24px 20px 28px; transform: rotate(1deg); }
  .receipt table { font-size: 14px; }
  .receipt tbody th { width: auto; }
  .redacted { min-width: 4.5em !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .covered-word::after { transform: rotate(-5deg); }
}
