/* Dumbify's site. Near-black, white type, one red. The product is the colour. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('demo/fonts/inter-tight-400-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #131313;
  --panel-2: #191919;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f4f4f4;
  --dim: #8e8e8e;
  --red: #ff3b30;
  --red-soft: rgb(255 59 48 / 0.14);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1360px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Firefox visitors get Firefox first. */
.only-firefox,
.firefox .only-chrome {
  display: none !important;
}

.firefox .only-firefox {
  display: inline-flex !important;
}

/* ---------- Buttons and links ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 160ms, border-color 160ms, transform 160ms var(--ease);
}

.pill:active {
  transform: scale(0.98);
}

.pill-light {
  background: var(--text);
  color: #0a0a0a;
}

.pill-light:hover {
  background: #fff;
}

.pill-dark {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill-dark:hover {
  background: #222;
}

.pill-ghost {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.pill-ghost:hover {
  background: var(--panel-2);
}

.pill-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 16px;
}

/* Brand marks are solid shapes, not strokes. */
.i-brand {
  fill: currentColor;
  stroke: none;
}

.pill .i-brand {
  width: 18px;
  height: 18px;
}

.pill-sm .i-brand {
  width: 15px;
  height: 15px;
}

.link .i {
  transition: transform 160ms var(--ease);
}

.link:hover .i {
  transform: translateX(3px);
}

/* ---------- Backdrop: the dithered hands behind the hero ---------- */

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

.backdrop canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* vignette 58 and film grain 32 */
.backdrop::before,
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
}

.backdrop::before {
  background: radial-gradient(75% 70% at 50% 45%, transparent 40%, var(--bg) 100%);
}

.backdrop::after {
  background: var(--grain);
  opacity: 0.32;
  mix-blend-mode: overlay;
}

/* ---------- The ASCII trail behind the mouse (site/trail.js) ---------- */

.trail {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Nav ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 10 10 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mark {
  width: 28px;
  height: 16px;
}

.mark rect {
  fill: var(--red);
}

.mark circle {
  fill: #fff;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.nav-links a,
.nav-text {
  color: #d6d6d6;
  transition: color 140ms;
}

.nav-links a:hover,
.nav-text:hover {
  color: #fff;
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}

.nav-text {
  margin-right: 6px;
}

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

.hero {
  padding-top: clamp(64px, 10vw, 128px);
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.cta-center {
  justify-content: center;
}

/* The painterly backdrop product shots sit on: charcoal, a red ember, grain. */
.canvas {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 18% 92%, rgb(255 59 48 / 0.34), transparent 62%),
    radial-gradient(45% 55% at 88% 12%, rgb(140 30 24 / 0.38), transparent 64%),
    radial-gradient(70% 60% at 60% 60%, #2a2422 0%, transparent 70%),
    linear-gradient(160deg, #1d1b1a 0%, #121212 48%, #1a1210 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Grain, faint, over the backdrop and under the windows. */
.canvas::before,
.finale::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}

.canvas-hero {
  margin-top: 72px;
  padding: clamp(24px, 4.5vw, 64px) clamp(16px, 8vw, 116px) 0;
}

.window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #161616;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 100px -20px rgb(0 0 0 / 0.8);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #1b1b1b;
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3a;
}

.window-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #bdbdbd;
  white-space: nowrap;
}

.demo-frame {
  display: block;
  width: 100%;
  height: clamp(420px, 52vw, 640px);
  border: 0;
  background: #1d1d1d;
}

.window-pop {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: 0;
  width: clamp(220px, 22vw, 300px);
  border-radius: 10px 10px 0 0;
}

.looks-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--dim);
}

.looks-bar span {
  margin-right: 6px;
}

.looks-bar button,
.tabs button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #cfcfcf;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 140ms, color 140ms, box-shadow 140ms;
}

.looks-bar button:hover,
.tabs button:hover {
  color: #fff;
  background: var(--panel-2);
}

.looks-bar button[aria-pressed='true'],
.tabs button[aria-selected='true'] {
  color: #fff;
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px rgb(255 59 48 / 0.55);
}

/* ---------- Facts (the logo strip) ---------- */

.facts {
  padding-top: clamp(96px, 12vw, 150px);
}

.facts-title {
  text-align: center;
  font-size: 15.5px;
  color: #d0d0d0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.facts-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 104px;
  border-radius: 4px;
  background: var(--panel);
}

.facts-grid b {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.facts-grid li:nth-child(n + 5) b {
  color: var(--red);
}

.logos {
  grid-template-columns: repeat(6, 1fr);
}

.logos li {
  flex-direction: row;
  gap: 12px;
  padding: 0 16px;
}

.logos img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logos span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.facts-grid span {
  font-size: 13.5px;
  color: var(--dim);
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) 1fr;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(96px, 11vw, 140px);
  padding: 20px;
  border-radius: 6px;
  background: #0f0f0f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.feature-copy {
  padding: 0 0 0 12px;
}

.feature h2,
.card h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.feature h2 span,
.card h3 span {
  display: block;
  color: var(--dim);
}

.feature .link,
.feature .tabs {
  margin-top: 26px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.canvas-side {
  padding: clamp(20px, 3vw, 40px) 0 0 clamp(20px, 3vw, 40px);
}

.canvas-side .window {
  border-radius: 10px 0 0 0;
}

.shots {
  display: grid;
}

.shots img {
  grid-area: 2 / 1;
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.shots .window-bar {
  grid-area: 1 / 1;
}

.shots img.on {
  opacity: 1;
}

/* ---------- Card grids (the testimonials) ---------- */

.cards-section {
  margin-top: clamp(110px, 13vw, 170px);
}

.center-title {
  text-align: center;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.left-title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.left-title + .cards {
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 228px;
  padding: 22px 20px 20px;
  border-radius: 4px;
  background: var(--panel);
  font-size: 17px;
  line-height: 1.5;
}

.card kbd {
  padding: 1px 6px;
  border-radius: 5px;
  background: #242424;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 0.9em;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-foot .i {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  stroke-width: 1.8;
}

.card-foot b {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.card-foot small {
  display: block;
  font-size: 14px;
  color: var(--dim);
}

.card-link {
  justify-content: flex-start;
  gap: 22px;
  min-height: 0;
}

.card-link h3 {
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Finale and footer ---------- */

.finale {
  margin-top: clamp(120px, 14vw, 180px);
  padding: clamp(56px, 7vw, 96px) 24px;
  border-radius: 6px;
  text-align: center;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(50% 90% at 50% 120%, rgb(255 59 48 / 0.28), transparent 70%),
    #101010;
  box-shadow: inset 0 0 0 1px var(--line);
}

.finale h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 56px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}

.foot p {
  margin-top: 12px;
  line-height: 1.6;
}

.foot .brand {
  color: var(--text);
}

.foot nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  align-content: start;
}

.foot nav a:hover {
  color: var(--text);
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .nav-end {
    margin-left: auto;
  }

  .facts-grid,
  .logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    padding: 12px 4px 0;
  }

  .cards,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-text,
  .nav-end .pill-ghost {
    display: none !important;
  }

  .window-pop {
    display: none;
  }

  .demo-frame {
    height: 480px;
  }

  .cards,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .foot {
    flex-direction: column;
  }
}

main:focus {
  outline: none;
}

/* ---------- Privacy page (privacy/index.html, built from PRIVACY.md) ---------- */

.legal {
  padding-top: clamp(56px, 8vw, 104px);
}

.legal-head {
  max-width: 760px;
}

.legal-kicker {
  font-size: 14px;
  color: var(--red);
}

.legal-head h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.legal-lede {
  margin-top: 18px;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  color: #cfcfcf;
}

.legal-meta {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
}

.legal-meta b {
  font-weight: 500;
  color: #cfcfcf;
}

.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  font-size: 14px;
}

.legal-toc p {
  margin-bottom: 12px;
  color: var(--dim);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: #bdbdbd;
  transition: color 140ms;
}

.legal-toc a:hover {
  color: #fff;
}

.legal-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: #d4d4d4;
}

.legal-body h2 {
  margin: 48px 0 14px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 90px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p + p {
  margin-top: 14px;
}

.legal-body a {
  color: var(--red);
  overflow-wrap: anywhere;
}

.legal-body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
}

.legal-body table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  font-size: 15px;
}

.legal-body th,
.legal-body td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-body th {
  font-weight: 500;
  color: var(--text);
  background: var(--panel-2);
}

.legal-body tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-body table,
  .legal-body thead,
  .legal-body tbody,
  .legal-body tr,
  .legal-body th,
  .legal-body td {
    display: block;
  }

  .legal-body thead {
    display: none;
  }

  .legal-body td:first-child {
    padding-bottom: 4px;
    border-bottom: 0;
  }
}
