:root {
  color-scheme: light dark;
  --bg: #f6f6f7;
  --panel: #ffffff;
  --soft: #efeff3;
  --text: #17171a;
  --muted: #6b6b76;
  --line: #e3e3e8;
  --accent: #5b4bff;
  --accent-text: #ffffff;
  --purple: #5b4bff;
  --teal: #01a4a6;
  --orange: #ff8000;
  --pink: #e6336e;
  --shadow: 0 18px 50px -20px rgba(23, 23, 26, 0.28);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181b;
    --panel: #222226;
    --soft: #2a2a2f;
    --text: #f2f2f4;
    --muted: #9c9ca8;
    --line: #34343a;
    --accent: #8275ff;
    --accent-text: #111114;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  color: var(--text);
}

.brand .logo {
  display: block;
  height: 26px;
  width: auto;
}

.nav {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

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

main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.small {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  font: 600 0.8em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-align: center;
  color: var(--text);
}

/* The script sets data-platform on <html>. Without it ("other"), both
   wordings and both sets of install steps are shown. */
.only-mac,
.only-windows,
[data-platform="mac"] .for-windows,
[data-platform="mac"] .only-other,
[data-platform="windows"] .for-mac,
[data-platform="windows"] .only-other {
  display: none;
}

[data-platform="mac"] .only-mac,
[data-platform="windows"] .only-windows {
  display: inline;
}

[data-platform="mac"] .steps h3,
[data-platform="windows"] .steps h3 {
  display: none;
}

footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Privacy policy, terms and refund policy. */
.legal {
  max-width: 720px;
}

.legal h1 {
  margin-bottom: 6px;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 10px;
  font-size: 15px;
}

.legal ul {
  padding-left: 22px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 8px;
}

.legal-links a {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Home page                                                           */
/* ------------------------------------------------------------------ */

.home main {
  max-width: none;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.home h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 24px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.menu {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.menu a,
.signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover,
.signin:hover {
  color: var(--text);
}

.signin {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 22px -10px var(--accent);
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-lead {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
}

.grad {
  background: linear-gradient(90deg, var(--purple), var(--pink) 45%, var(--orange) 75%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 540px;
  margin: 20px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.lead b {
  color: var(--text);
  font-weight: 650;
}

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

.hero-art {
  position: relative;
  padding: 24px 24px 40px;
}

.window {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.window-body {
  position: relative;
  padding: 22px;
}

.fake-line {
  height: 10px;
  margin: 10px 0;
  border-radius: 5px;
  background: var(--soft);
}

.w40 { width: 40%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }

.fake-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
}

.fake-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
}

.b1 { height: 40%; background: var(--purple); }
.b2 { height: 70%; background: var(--teal); }
.b3 { height: 55%; background: var(--orange); }
.b4 { height: 90%; background: var(--pink); }
.b5 { height: 62%; background: var(--purple); }

.selection {
  position: absolute;
  top: 46px;
  left: 14px;
  right: 34%;
  height: 160px;
  border: 2px dashed var(--accent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 0 9999px rgba(10, 10, 20, 0.18);
}

.size {
  position: absolute;
  bottom: -26px;
  right: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font: 600 11px ui-monospace, Menlo, Consolas, monospace;
}

.toast {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: pop 0.6s 0.4s both cubic-bezier(0.2, 1.4, 0.4, 1);
}

.toast div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.toast strong {
  font-size: 14px;
}

.toast span {
  font: 12px ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted);
}

.toast-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}

.toast-dot::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.swatch-pop {
  position: absolute;
  top: 0;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: pop 0.6s 0.9s both cubic-bezier(0.2, 1.4, 0.4, 1);
}

.swatch-pop code {
  font-size: 13px;
  font-weight: 600;
}

.swatch-chip {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--purple);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .swatch-pop, .rec-dot { animation: none; }
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 88px;
}

.benefit {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.benefit p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 20px;
  color: var(--accent);
}

/* Features overview: every feature of the app, at a glance */
.overview {
  padding-bottom: 88px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-grid li {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.overview-grid h3 {
  margin: 0;
  font-size: 16px;
}

.overview-grid p {
  flex: 1;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.keys-line {
  margin-top: 12px;
  font-size: 13px;
}

/* Product sections */
.product-section {
  padding: 88px 0;
}

[id] {
  scroll-margin-top: 72px;
}

.product-section.screen {
  background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 7%, var(--bg)), var(--bg));
}

.product-section.color {
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 8%, var(--bg)), var(--bg));
}

.color .eyebrow { color: var(--teal); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.feature p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.feature-art {
  position: relative;
  height: 160px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
}

.pro {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 3px;
}

.ticks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ticks li {
  position: relative;
  padding-left: 24px;
}

.ticks li + li {
  margin-top: 8px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Feature illustrations */
.page-strip {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 110px;
  margin-left: -55px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 6px 18px -8px rgba(10, 10, 20, 0.35);
}

.page-strip i {
  display: block;
  height: 8px;
  margin-top: 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--purple) 22%, var(--soft));
}

.page-strip i:first-child { margin-top: 0; width: 60%; background: var(--purple); }
.page-strip i:nth-child(3) { width: 80%; }
.page-strip i:nth-child(5) { width: 70%; }

.page-arrow {
  position: absolute;
  right: 24%;
  top: 50%;
  margin-top: -18px;
  font-size: 28px;
  font-weight: 700;
  color: var(--purple);
}

.mini-loupe {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  border: 4px solid #fff;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #ffa060 0 33%, #ff8000 33% 66%, #f4632e 66%);
  box-shadow: 0 8px 22px -8px rgba(10, 10, 20, 0.45);
}

.code-tag {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px -6px rgba(10, 10, 20, 0.35);
}

.code-chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--orange);
}

.ruler-box {
  position: absolute;
  inset: 34px 22% 54px;
  border: 2px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
}

.ruler-box span {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #17171a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.mini-screen {
  position: absolute;
  inset: 18px 30px 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 25%, var(--panel)), color-mix(in srgb, var(--teal) 25%, var(--panel)));
}

.mini-sel {
  position: absolute;
  inset: 18% 30% 22% 14%;
  border: 2px dashed var(--purple);
  border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(10, 10, 20, 0.22);
}

.keys {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
}

.bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.bubble.them {
  background: var(--panel);
}

.bubble.me {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--purple);
  color: #fff;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

.thumb {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
}

.rec-frame {
  position: absolute;
  inset: 22px 40px 50px;
  border: 3px solid var(--pink);
  border-radius: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 22%, var(--panel)), color-mix(in srgb, var(--pink) 18%, var(--panel)));
}

.rec-panel {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 12px ui-monospace, Menlo, Consolas, monospace;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: blink 1.2s infinite;
}

.rec-stop {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-family: system-ui, sans-serif;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

.edit-pic {
  position: absolute;
  inset: 16px 20px 44px;
  border-radius: 8px;
  background: var(--panel);
}

.edit-box {
  position: absolute;
  left: 12%;
  top: 22%;
  width: 34%;
  height: 40%;
  border: 3px solid var(--pink);
  border-radius: 6px;
}

.edit-arrow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 26%;
  height: 3px;
  background: var(--pink);
  transform: rotate(-24deg);
  transform-origin: left center;
}

.edit-arrow::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -6px;
  border: 7px solid transparent;
  border-right: 10px solid var(--pink);
  border-left: 0;
}

.edit-blur {
  position: absolute;
  right: 8%;
  bottom: 14%;
  font-size: 13px;
  filter: blur(4px);
}

.edit-text {
  position: absolute;
  right: 10%;
  top: 12%;
  font-weight: 700;
  font-size: 13px;
  color: var(--pink);
}

.edit-tools {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: var(--panel);
}

.edit-tools i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--soft);
}

.edit-tools i:first-child {
  background: var(--pink);
}

.mark-pic {
  position: absolute;
  inset: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 30%, var(--panel)), color-mix(in srgb, var(--purple) 26%, var(--panel)));
  overflow: hidden;
}

.mark-tile {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.22;
  transform: rotate(-14deg);
  white-space: nowrap;
}

.mark-tile:nth-child(1) { margin-left: 10%; }
.mark-tile:nth-child(2) { margin-left: 38%; }
.mark-tile:nth-child(3) { margin-left: 4%; }

.mark-corner {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.two-links {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.link-card {
  display: flex;
  flex-direction: column;
  width: 38%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 650;
}

.link-card small {
  margin-top: 4px;
  font: 400 11px ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted);
}

.link-card.accent {
  border-color: var(--teal);
}

.link-arrow {
  font-size: 20px;
  color: var(--muted);
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 44px;
}

.section-cta.left {
  align-items: flex-start;
  margin-top: 32px;
}

.section-cta .fineprint {
  margin-top: 10px;
}

.button.color-btn {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--teal);
}

/* Color Picker */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0 0 0 18px;
  border-left: 3px solid var(--teal);
  font-size: 15px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 20px;
}

.feature-list strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.color-art {
  position: relative;
  padding-bottom: 60px;
}

.photo {
  position: relative;
  height: 340px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffd7a8 0%, #ff9a5a 55%, #e6336e 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hill {
  position: absolute;
  bottom: -40px;
  border-radius: 50% 50% 0 0;
}

.h1 { left: -10%; width: 80%; height: 160px; background: #01a4a6; }
.h2 { right: -15%; width: 85%; height: 120px; background: #5b4bff; }

.sun {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff3d6;
}

.loupe {
  position: absolute;
  left: 52%;
  top: 30%;
  width: 120px;
  height: 120px;
  padding: 6px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.loupe-grid {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #ffa060 0 33%, #ff8000 33% 66%, #f4632e 66%);
}

.loupe-grid::after {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 2px solid #17171a;
  box-shadow: 0 0 0 1px #fff;
}

.loupe-grid i {
  display: none;
}

.history {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 250px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hist-title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.hist-row + .hist-row {
  margin-top: 8px;
}

.hist-row code {
  font-weight: 600;
}

.ago {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.c1 { background: #ff8000; }
.c2 { background: #01a4a6; }
.c3 { background: #e6336e; }
.c4 { background: #5b4bff; }

/* Audience */
.audience {
  padding-top: 88px;
  padding-bottom: 88px;
}

.audience h2 {
  max-width: 640px;
  margin-bottom: 36px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
}

.audience-grid div {
  padding: 22px 24px;
  background: var(--panel);
}

.audience-grid p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Pricing */
.pricing {
  padding: 88px 0;
  background: var(--soft);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan .ticks {
  flex: 1;
  margin: 20px 0 26px;
  font-size: 15px;
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}

.price {
  margin: 12px 0 0;
  color: var(--muted);
}

.amount {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.promises strong {
  display: block;
  color: var(--text);
}

/* No passwords */
.nopass {
  padding-top: 88px;
}

.nopass-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--purple), #7c3fd6 55%, var(--pink));
  color: #fff;
}

.nopass-card h2 {
  color: #fff;
}

.nopass-card p {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 17px;
  opacity: 0.9;
}

.nopass-options {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
}

.nopass-options span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 820px;
  padding-top: 88px;
}

.faq h2 {
  margin-bottom: 24px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
}

details[open] summary::after {
  content: "–";
}

details p,
details ol {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

details ol {
  padding-left: 22px;
}

details li + li {
  margin-top: 6px;
}

.steps {
  padding-bottom: 6px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

/* Final call */
.final {
  padding-top: 96px;
  padding-bottom: 72px;
  text-align: center;
}

.final p {
  margin: 12px 0 28px;
  font-size: 18px;
  color: var(--muted);
}

/* Smaller screens */
@media (max-width: 960px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .feature-grid,
  .overview-grid,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu {
    display: none;
  }

  .top {
    gap: 12px;
  }

  .history {
    right: 0;
  }
}

@media (max-width: 640px) {
  .benefits,
  .feature-grid,
  .overview-grid,
  .audience-grid,
  .plans,
  .promises {
    grid-template-columns: 1fr;
  }

  .nopass-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .hero-art {
    padding: 16px 0 40px;
  }

  .product-section,
  .pricing,
  .audience {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .photo {
    height: 260px;
  }

  .loupe {
    left: 46%;
    top: 8%;
    width: 100px;
    height: 100px;
  }

  .history {
    width: 220px;
  }
}

/* Hero animation (hero.js): two films of the PIQR app behind two tabs. Drawn on a
   760 × 500 stage that the script scales to fit. Replaces the still picture
   when it runs. */
.hero-art.animated > :not(.demo) {
  display: none;
}

.hero-art.animated {
  padding: 0;
}

.d-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 500;
}

.d-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 500px;
  transform-origin: 0 0;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%, var(--bg) 60%);
}

.d-win {
  position: absolute;
  left: 40px;
  top: 30px;
  width: 680px;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.d-win.d-hide {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}

.d-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.d-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.d-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
}

.d-addr {
  flex: 1;
  height: 22px;
  margin-left: 14px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
}

.d-line {
  position: absolute;
  left: 24px;
  height: 10px;
  border-radius: 5px;
  background: var(--soft);
}

.d-l1 { top: 56px; width: 220px; height: 14px; background: var(--line); }
.d-l2 { top: 80px; width: 320px; }
.d-l3 { top: 314px; width: 300px; }
.d-l4 { top: 334px; width: 200px; }

.d-chart {
  position: absolute;
  width: 396px;
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--soft);
}

.d-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
}

.d-app-chart { left: 24px; top: 104px; }
.d-shot-chart { left: 12px; top: 14px; }

.d-card {
  position: absolute;
  left: 446px;
  width: 210px;
  height: 88px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.d-card small { font-size: 12px; color: var(--muted); }
.d-card b { font-size: 26px; }
.d-c1 { top: 104px; }
.d-c2 { top: 206px; }

/* The frame around the recorded area (just outside it, as in the app) and
   the panel with the time, Stop and Cancel. */
.d-rec {
  position: absolute;
  z-index: 20;
  border: 3px solid #e6336e;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.d-rec.on { opacity: 1; }

.d-rec-panel {
  position: absolute;
  left: 50%;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: #17171a;
  color: #fff;
  font: 600 13px system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: all 0.3s;
}

.d-rec-panel.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.d-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e6336e;
  animation: d-blink 1s steps(2) infinite;
}

@keyframes d-blink { 50% { opacity: 0.25; } }

.d-rec-time { min-width: 30px; font-variant-numeric: tabular-nums; }

.d-rec-stop,
.d-rec-cancel {
  padding: 4px 12px;
  border-radius: 999px;
  transition: transform 0.15s;
}

.d-rec-stop { background: #e6336e; }
.d-rec-cancel { background: rgba(255, 255, 255, 0.14); }
.d-rec-stop.press { transform: scale(0.9); }

/* Video film: a shop page whose T-shirt changes color. */
.d-cart {
  position: absolute;
  right: 16px;
  top: 6px;
  font-size: 15px;
}

.d-cart-badge {
  position: absolute;
  right: -8px;
  top: -4px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e6336e;
  color: #fff;
  font: 700 10px/16px system-ui, sans-serif;
  text-align: center;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.d-cart-badge.on { transform: scale(1); }

.d-shop-pic {
  position: absolute;
  left: 24px;
  top: 60px;
  width: 270px;
  height: 270px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe8d1, #ffd0e0 50%, #dcd8ff);
}

.d-shirt {
  position: absolute;
  inset: 30px;
  color: #5b4bff;
  transition: color 0.5s;
}

.d-shirt svg,
.d-mini-shirt svg { display: block; width: 100%; height: 100%; }

.d-shop-info {
  position: absolute;
  left: 322px;
  top: 62px;
  right: 24px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.d-shop-info small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.d-shop-info small:first-child { margin-top: 0; color: #e6336e; }
.d-shop-info strong { margin-top: 4px; font-size: 24px; }
.d-price { margin-top: 2px; font-size: 18px; color: var(--muted); }

.d-swatches,
.d-sizes {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.d-swatch-pick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px var(--line);
  transition: box-shadow 0.25s;
}

.d-swatch-pick.on { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--text); }

.d-size-pill {
  min-width: 40px;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.25s;
}

.d-size-pill.on { border-color: var(--text); background: var(--text); color: var(--bg); }

.d-add {
  margin-top: 16px;
  padding: 10px 0;
  border-radius: 10px;
  background: #5b4bff;
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: background 0.5s, transform 0.15s;
}

.d-add.press { transform: scale(0.95); }

.d-preview-shop {
  background: linear-gradient(135deg, #ffe8d1, #ffd0e0 50%, #dcd8ff);
}

.d-mini-shirt {
  position: absolute;
  left: 24px;
  top: 10px;
  width: 94px;
  height: 94px;
  color: #ff8000;
}

.d-mini-swatches {
  position: absolute;
  left: 140px;
  top: 46px;
  display: flex;
  gap: 5px;
}

.d-mini-swatches i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* A video's link preview in the chat: the still picture with a play button. */
.d-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: rgba(23, 23, 26, 0.72);
}

.d-play::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

.d-length {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(23, 23, 26, 0.72);
  color: #fff;
  font: 600 10px ui-monospace, Menlo, Consolas, monospace;
}

.d-sel {
  position: absolute;
  display: none;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 0 9999px rgba(10, 10, 20, 0.22);
}

.d-sel.on { display: block; }

.d-size {
  position: absolute;
  right: -2px;
  bottom: -26px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font: 600 11px ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.d-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.d-flash.go { animation: d-flash 0.45s ease-out; }

@keyframes d-flash {
  from { opacity: 0.85; }
  to { opacity: 0; }
}

.d-keys {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 30;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #17171a;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: all 0.3s;
}

.d-keys.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.d-keys kbd {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #2e2e34;
  color: #fff;
  font: 600 12px system-ui, sans-serif;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.d-keys kbd.down {
  background: var(--purple);
  transform: translateY(1px);
}

.d-toast {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: all 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.d-toast.on {
  opacity: 1;
  transform: none;
}

.d-toast div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.d-toast strong { font-size: 14px; }

.d-toast span {
  color: var(--muted);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
}

.d-tick {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
}

.d-tick::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.d-tools {
  position: absolute;
  left: 14px;
  top: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: var(--soft);
}

.d-tool {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.2s;
}

.d-tool svg { width: 18px; height: 18px; }

.d-tool.on {
  background: var(--purple);
  color: #fff;
}

.d-canvas {
  position: absolute;
  left: 76px;
  top: 52px;
  width: 520px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0, 0, 0, 0.4);
}

.d-picture {
  position: absolute;
  left: 0;
  top: 0;
  width: 424px;
  height: 210px;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--panel);
}

.d-picture svg,
.d-ann {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.d-hint {
  position: absolute;
  left: 80px;
  bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}

.d-save {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font: 600 13px system-ui, sans-serif;
  transition: transform 0.12s;
}

.d-save.press { transform: scale(0.94); }

.d-label {
  position: absolute;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font: 700 15px system-ui, sans-serif;
  white-space: nowrap;
}

.d-label-small {
  left: 16px;
  top: 16px;
  font-size: 13px;
}

.d-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: #fff;
  vertical-align: -2px;
  animation: d-blink 0.8s steps(1) infinite;
}

@keyframes d-blink {
  50% { opacity: 0; }
}

.d-side {
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 0;
  width: 170px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  background: var(--soft);
}

.d-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
}

.d-contact.on {
  background: var(--panel);
  font-weight: 600;
}

.d-av {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font: 700 11px system-ui, sans-serif;
}

.d-teal { background: var(--teal); }
.d-orange { background: var(--orange); }
.d-pink { background: var(--pink); }
.d-purple { background: var(--purple); }

.d-thread {
  position: absolute;
  left: 170px;
  right: 0;
  top: 34px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 18px;
}

.d-msg {
  max-width: 72%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  animation: d-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.d-msg.them {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--soft);
}

.d-msg.me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--purple);
  color: #fff;
}

.d-msg.typing { padding: 0; }

@keyframes d-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

.d-link { font: 12px ui-monospace, Menlo, Consolas, monospace; }

.d-preview {
  width: 230px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}

.d-preview-pic {
  position: relative;
  height: 114px;
  overflow: hidden;
}

.d-meta {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}

.d-typing {
  display: flex;
  gap: 4px;
  padding: 11px 12px;
}

.d-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: d-dot 1s infinite;
}

.d-typing i:nth-child(2) { animation-delay: 0.15s; }
.d-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes d-dot {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

.d-compose {
  position: absolute;
  left: 184px;
  right: 14px;
  bottom: 12px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s;
}

.d-compose.focus {
  border-color: var(--accent);
  color: var(--text);
}

.d-compose .val {
  color: var(--text);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
}

.d-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  width: 22px;
  height: 22px;
  pointer-events: none;
  will-change: transform;
}

.d-cursor svg {
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.15s;
}

.d-cursor .d-cross {
  left: -11px;
  top: -11px;
  opacity: 0;
}

.d-cursor.cross .d-arrow { opacity: 0; }
.d-cursor.cross .d-cross { opacity: 1; }

.d-ripple {
  position: absolute;
  z-index: 49;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: d-ripple 0.45s ease-out forwards;
}

@keyframes d-ripple {
  from { opacity: 0.9; transform: scale(0.3); }
  to { opacity: 0; transform: scale(1.3); }
}

.d-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.d-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  transition: all 0.35s;
}

.d-step b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 11px;
  transition: all 0.35s;
}

.d-step.on {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 18px -10px var(--accent);
}

.d-step.on b {
  background: var(--accent);
  color: var(--accent-text);
}

/* Tabs above the films; the bar under each fills while its film plays. */
.d-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.d-tab {
  position: relative;
  overflow: hidden;
  padding: 8px 18px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 14px system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.d-tab:hover {
  color: var(--text);
}

.d-tab[aria-selected="true"] {
  background: var(--soft);
  color: var(--text);
}

.d-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.d-tab i {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.25s;
}

.d-tab[aria-selected="true"] i {
  opacity: 1;
}

.d-tab b {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.d-cursor.gone svg { opacity: 0; }

/* Color Picker: the photo and the magnifier */
.d-photo {
  position: absolute;
  left: 0;
  top: 34px;
  display: block;
}

.d-loupe {
  position: absolute;
  z-index: 45;
  width: 0;
  height: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.d-loupe.on {
  opacity: 1;
  transform: none;
}

.d-loupe.snap canvas {
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--orange), 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

.d-loupe canvas {
  position: absolute;
  left: -60.5px;
  top: -60.5px;
  width: 121px;
  height: 121px;
  border-radius: 50%;
  image-rendering: pixelated;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, 0.25), 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.15s;
}

.d-lens-hex {
  position: absolute;
  left: 0;
  top: 74px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border-radius: 8px;
  background: #17171a;
  color: #fff;
  font: 600 12px ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.d-lens-hex i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.d-swatch {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Color Picker: a stylesheet and its preview */
.d-editor {
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 0;
  width: 380px;
  padding: 22px 0;
  background: #1d1d23;
  color: #d8d8e0;
  font: 14px/28px ui-monospace, Menlo, Consolas, monospace;
}

.d-editor div {
  padding-right: 12px;
  white-space: pre;
}

.d-editor em {
  display: inline-block;
  width: 44px;
  padding-right: 14px;
  color: #5d5d6b;
  font-style: normal;
  text-align: right;
}

.d-editor .k { color: #ffb067; }
.d-editor .p { color: #8fb8ff; }
.d-editor .v { color: #ffd479; }

.d-editor [data-d="codeLine"] {
  background: rgba(255, 255, 255, 0.04);
}

.d-chip {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  vertical-align: -1px;
}

.d-code-caret {
  display: none;
  width: 2px;
  height: 18px;
  background: #fff;
  vertical-align: -4px;
  animation: d-blink 0.8s steps(1) infinite;
}

.focus > .d-code-caret {
  display: inline-block;
}

.d-site {
  position: absolute;
  left: 380px;
  right: 0;
  top: 34px;
  bottom: 0;
  padding: 18px 26px;
  background: var(--soft);
}

.d-site small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.d-site-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.d-site-card strong { font-size: 16px; }
.d-site-card span { font-size: 12px; color: var(--muted); }

.d-site-img {
  height: 120px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, #8e3b8f, #e6336e 55%, #ffb067 75%, #36306e 76%, #101634);
}

.d-cta {
  margin-top: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #c9c9d1;
  color: #fff;
  font: 700 14px system-ui, sans-serif;
  text-align: center;
  transition: background 0.6s, transform 0.3s, box-shadow 0.6s;
}

.d-cta.picked {
  transform: scale(1.04);
  box-shadow: 0 10px 24px -10px var(--orange);
}

/* Color Picker: the dashboard's colors */
.d-dash-tabs {
  display: flex;
  gap: 22px;
  margin: 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.d-dash-tabs span {
  padding: 14px 0 10px;
}

.d-dash-tabs .on {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.d-dash-title {
  margin: 16px 24px 12px;
  font-size: 18px;
  font-weight: 700;
}

.d-colors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 24px;
  padding: 0;
  list-style: none;
}

.d-color {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s;
}

.d-color i {
  height: 62px;
}

.d-color b {
  padding: 8px 12px 0;
  font: 600 13px ui-monospace, Menlo, Consolas, monospace;
}

.d-color small {
  padding: 0 12px 10px;
  font-size: 11px;
  color: var(--muted);
}

.d-color.new {
  border-color: var(--orange);
  animation: d-in 0.5s 0.15s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.d-color.hover {
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
