/* mcpock.com home: soft dark only, no gradients.
   Three colors: ink, soft-dark paper, periwinkle from the app icon. */

:root {
  --paper: #17181c;
  --ink: #f1efec;
  --peri: #a9b8ee;

  --ink-2: rgba(241, 239, 236, 0.62);
  --ink-3: rgba(241, 239, 236, 0.6);
  --hair: rgba(241, 239, 236, 0.09);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 620px; }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.bar-row { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { border-radius: 6px; }
.bar-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.bar-nav a { text-decoration: none; color: var(--ink-2); }
.bar-nav a:hover { color: var(--ink); }
.bar-nav .bar-cta { color: var(--peri); }
@media (max-width: 380px) { .bar-nav { gap: 18px; } }

/* Hero */
.hero { text-align: center; padding-top: 104px; overflow-x: clip; }
.hero-icon { margin: 0 auto 34px; width: 104px; border-radius: 23px; box-shadow: 0 16px 40px -16px rgba(120, 140, 230, 0.35); }
h1 {
  font: 600 clamp(40px, 6.6vw, 66px)/1.06 var(--display);
  letter-spacing: -0.03em;
}
h1 em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--peri);
}
.lede { margin: 24px auto 0; max-width: 560px; color: var(--ink-2); font-size: clamp(17px, 2.1vw, 20px); text-wrap: balance; }
.lede span { display: block; }

.actions { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 26px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--peri); color: #15161b;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }
.link { font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.link:hover { color: var(--ink); }
.meta { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); }

/* Why */
.why { padding-top: 136px; text-align: center; }
.why p { color: var(--ink-2); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; text-wrap: balance; }
.why .strong { margin-top: 16px; color: var(--ink); }

/* Promises */
.promises {
  margin-top: 136px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.promises > div { padding: 38px 28px; text-align: center; }
.promises > div + div { border-left: 1px solid var(--hair); }
.promises h2 { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.promises p { color: var(--ink-2); font-size: 15px; }
/* New in 1.12: the same three cells, under a small label */
.news { padding-top: 128px; }
.news .promises { margin-top: 0; }
.news + .promises { margin-top: 0; border-top: 0; }

/* Get */
.get { padding-top: 128px; padding-bottom: 136px; text-align: center; }
.get-icon { margin: 0 auto 22px; border-radius: 15px; }
h2 { font: 600 clamp(28px, 4vw, 38px)/1.1 var(--display); letter-spacing: -0.025em; margin-bottom: 26px; }

/* Footer */
.foot { border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.foot-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* Phone width */
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .bar-nav { gap: 18px; }
  .hero { padding-top: 64px; }
  .hero-icon { width: 84px; margin-bottom: 26px; }
  .lede span { display: inline; }
  .actions { flex-direction: column; gap: 18px; }
  .why { padding-top: 96px; }
  .news { padding-top: 96px; }
  .news + .promises { margin-top: 0; }
  .promises { margin-top: 88px; grid-template-columns: none; border-bottom: 0; }
  .promises > div { padding: 26px 8px; border-bottom: 1px solid var(--hair); }
  .promises > div + div { border-left: 0; }
  .get { padding-top: 88px; padding-bottom: 96px; }
  .foot-row { flex-direction: column-reverse; justify-content: center; padding: 22px 0; }
  .foot nav { justify-content: center; }
}

/* Hero Mac, drawn in CSS at a slight angle; the screen holds real 2x captures */
.mac { width: min(1040px, 100%); margin: 84px auto 0; perspective: 2600px; }
.mac-screen, .mac-base { transform: rotateX(8deg) rotateY(-10deg) rotateZ(.5deg); }
.mac-screen {
  position: relative; padding: 1.3%; border-radius: 24px;
  background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 70px 100px -50px rgba(0,0,0,.9);
  transform-origin: 50% 100%;
}
.mac-display { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #17181c; container-type: inline-size; }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 3.4%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.8%;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(241,239,236,.86); font-size: 1.15cqw;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 1.5em; height: 100%; }
.mb-apple { width: .95em; height: .95em; border-radius: 50%; background: rgba(241,239,236,.86); }
.mb-mcpock { position: relative; height: 100%; display: flex; align-items: center; }
.mb-mcpock img { height: 90%; width: auto; }
.pulse {
  position: absolute; right: 12%; bottom: 22%; width: .62em; height: .62em; border-radius: 3px; transform: rotate(45deg);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,138,138,.65); }
  75% { box-shadow: 0 0 0 .9em rgba(232,138,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,138,138,0); }
}
.desk-panel { position: absolute; top: 3.6%; right: 8.2%; width: 28.2%; }
.desk-card { position: absolute; top: 4.6%; right: 37%; width: 22.6%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.desk-widgets { position: absolute; left: 3.5%; bottom: 7%; width: 34%; }
.mac-base {
  width: 110%; margin-left: -5%; height: 18px; border-radius: 0 0 20px 20px;
  background: #0d0e11; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 34px 44px -22px rgba(0,0,0,.85);
  transform-origin: 50% 0;
}

/* Works with: a slow, endless line of agent icons */
.works { padding-top: 128px; }
.works-label { text-align: center; color: var(--ink-3); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 34px; }
.marquee { display: flex; overflow: hidden; }
.track {
  list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 56px; padding-right: 56px;
  animation: slide 80s linear infinite;
}
.track li { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 500; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.ag-icon {
  width: 30px; height: 30px; flex: none; background: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  opacity: .9;
}
/* An agent with no logo in the app shows its two letters, as the app does */
.ag-mono {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  font: 600 18px/1 var(--font); letter-spacing: -.02em; color: var(--ink); opacity: .9;
}
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .track { animation: none; flex-wrap: wrap; justify-content: center; gap: 22px 40px; padding: 0 28px; }
  .track[aria-hidden] { display: none; }
  .marquee { justify-content: center; }
}
@media (max-width: 760px) {
  .mac { margin-top: 56px; }
  .mac-screen, .mac-base { transform: rotateX(5deg) rotateY(-5deg); }
  .mac-screen { border-radius: 14px; }
  .mac-display { border-radius: 6px; }
  .mac-base { height: 9px; }
  .works { padding-top: 96px; }
  .track li { font-size: 17px; }
  .ag-icon, .ag-mono { width: 24px; height: 24px; }
  .ag-mono { font-size: 15px; }
}

/* Try it: a working copy of the panel (assets/js/demo.js), app colors */
.try { padding-top: 128px; text-align: center; }
.try-cap { margin: 0 auto 40px; max-width: 420px; color: var(--ink-2); font-size: 15px; }
.try-cap strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.demo {
  --d-bg: #2b2b30; --d-bar: #323238; --d-sel: #3d3d45; --d-line: #3a3a3f; --d-edge: #55555c;
  --d-text: #f2f2f2; --d-2: #9e9ea2; --d-3: #9a9aa0;
  --d-pink: #df9c9c; --d-yellow: #dcc27a; --d-green: #93c9a6;
  position: relative; width: 400px; max-width: 100%; min-height: 600px; margin: 0 auto; text-align: left;
  font: 14px/1.35 var(--font); color: var(--d-text);
}
.demo button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.demo button:focus-visible { outline: 2px solid var(--peri); outline-offset: -2px; border-radius: 8px; }
.d-panel, .d-card {
  background: var(--d-bg); border: 1px solid var(--d-edge); border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}
.d-panel { height: 600px; display: flex; flex-direction: column; overflow: hidden; }
.d-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px; padding: 3px; background: var(--d-bar); border-radius: 10px; }
.demo .d-tab { text-align: center; padding: 6px 0; border-radius: 8px; color: var(--d-2); font-weight: 500; transition: background .15s ease, color .15s ease; }
.demo .d-tab.is-on { background: var(--d-sel); color: var(--d-text); }
.d-search { padding: 0 12px 10px; }
.d-search input {
  width: 100%; font: inherit; color: var(--d-text); background: var(--d-bar);
  border: 1px solid var(--d-line); border-radius: 8px; padding: 6px 10px; outline: none;
}
.d-search input:focus { border-color: var(--d-edge); }
.d-search input:focus-visible { outline: 2px solid var(--peri); outline-offset: 1px; }
.d-card:focus { outline: none; }
.d-list { flex: 1; overflow-y: auto; border-top: 1px solid var(--d-line); padding: 6px 8px 10px; scrollbar-width: thin; }
.d-head { display: flex; justify-content: space-between; padding: 12px 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--d-3); }
.demo .d-row { display: block; width: 100%; padding: 8px 8px 9px; border-radius: 9px; transition: background .12s ease; }
.demo .d-row:hover { background: rgba(255, 255, 255, 0.04); }
.demo .d-row.is-sel { background: var(--d-sel); }
.d-row-top { display: flex; align-items: center; gap: 11px; }
.d-name { font-weight: 500; }
.d-row-agents { margin-left: auto; display: flex; gap: 10px; color: var(--d-2); }
.d-count { width: 18px; text-align: right; color: var(--d-3); font-size: 13px; }
.d-note { display: block; margin: 3px 0 0 22px; font-size: 13px; }
.d-t-pink { color: var(--d-pink); } .d-t-yellow { color: var(--d-yellow); } .d-t-green { color: var(--d-green); } .d-t-dim { color: var(--d-3); }

.d-ic { display: inline-block; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.d-ic-lg { width: 20px; height: 20px; color: var(--d-2); }

.d-mark { flex: none; width: 11px; height: 11px; display: inline-block; }
.d-broken { background: var(--d-pink); transform: rotate(45deg) scale(.82); border-radius: 1.5px; }
.d-slow, .d-signin { border: 2.4px solid var(--d-yellow); border-radius: 50%; }
.d-fine, .d-differs { background: var(--d-green); border-radius: 50%; }
.d-mark.is-checking { animation: d-spin .9s linear infinite; border-radius: 50%; background: none; border: 2px solid var(--d-3); border-top-color: var(--d-text); transform: none; }
@keyframes d-spin { to { transform: rotate(360deg); } }

.demo .d-agent { display: block; width: 100%; padding: 10px 8px 12px; border-radius: 9px; }
.demo .d-agent:hover { background: rgba(255, 255, 255, 0.04); }
.d-agent-top { display: flex; align-items: center; gap: 12px; }
.d-agent-names { display: flex; flex-direction: column; }
.d-sub-text { font-size: 12.5px; color: var(--d-3); }
.d-agent-state { margin-left: auto; font-size: 13px; font-weight: 500; }
.d-chev { color: var(--d-3); font-size: 18px; line-height: 1; transition: transform .15s ease; }
.d-chev.is-open { transform: rotate(90deg); }
.d-agent.is-dim .d-name, .d-agent.is-dim .d-ic { opacity: .45; }
.d-bar { display: flex; gap: 3px; margin: 9px 0 0 32px; }
.d-seg { flex: 1; height: 3px; border-radius: 2px; }
.d-bg-pink { background: var(--d-pink); } .d-bg-yellow { background: var(--d-yellow); } .d-bg-green { background: var(--d-green); }
.d-agent.is-dim .d-seg { opacity: .45; }
.d-agent-servers { margin: -2px 0 6px 24px; }
.d-divider { height: 1px; background: var(--d-line); margin: 8px 8px; }
.d-empty { padding: 28px 8px; text-align: center; color: var(--d-3); }

.d-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 16px; border-top: 1px solid var(--d-line); background: #2e2e33; }
.d-foot-text { font-size: 12.5px; color: var(--d-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-foot-btns { display: flex; gap: 2px; flex: none; }
.demo .d-fbtn { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--d-2); }
.demo button.d-fbtn:hover { color: var(--d-text); }
.demo .d-fbtn.is-on { background: var(--d-sel); color: var(--d-text); }
.d-fbtn svg { width: 17px; height: 17px; }
.d-gear { opacity: .55; }

/* The card opens beside the panel, as in the app */
.d-card {
  position: absolute; top: 0; left: calc(100% + 10px); width: 340px; max-height: 600px; overflow-y: auto;
  padding: 18px 18px 14px; animation: d-in .18s ease-out;
}
@keyframes d-in { from { opacity: 0; transform: translateX(-8px); } }
.d-card[hidden] { display: none; }
.d-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-card-title { display: flex; align-items: center; gap: 11px; }
.d-card-name { font-size: 18px; font-weight: 600; }
.d-badge { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.d-badge-pink { background: rgba(223, 156, 156, .14); } .d-badge-yellow { background: rgba(220, 194, 122, .14); } .d-badge-green { background: rgba(147, 201, 166, .14); }
.d-card-meta { margin: 4px 0 0 22px; font-size: 13px; color: var(--d-2); }
.d-why { margin-top: 14px; padding: 12px; border-radius: 11px; border: 1px solid; }
.d-why-pink { background: rgba(223, 156, 156, .07); border-color: rgba(223, 156, 156, .28); }
.d-why-yellow { background: rgba(220, 194, 122, .07); border-color: rgba(220, 194, 122, .28); }
.d-why-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.d-mono { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.d-why-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.demo .d-btn { text-align: center; padding: 5px 0; border-radius: 7px; background: var(--d-bar); border: 1px solid var(--d-line); font-size: 13px; }
.demo .d-btn:hover { background: var(--d-sel); }
.d-label { margin: 16px 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--d-3); }
.d-used { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.d-used-names { display: flex; flex-direction: column; min-width: 0; }
.d-path { font: 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--d-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-none { font-size: 13px; color: var(--d-3); }
.d-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tool { font: 12px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 5px 8px; border-radius: 6px; background: var(--d-bar); color: var(--d-2); }
.d-more { font-family: var(--font); color: var(--d-3); }
.d-card-acts { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--d-line); display: flex; justify-content: flex-end; }
.demo .d-icbtn { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--d-line); color: var(--d-2); }
.demo .d-icbtn:hover { color: var(--d-text); }
.d-icbtn svg { width: 15px; height: 15px; }
.demo-fallback img { margin: 0 auto; width: 426px; }

@media (prefers-reduced-motion: reduce) {
  .d-card { animation: none; }
  .d-mark.is-checking { animation: none; }
}
.demo { transition: transform .22s ease; }
@media (min-width: 821px) { .demo.has-card { transform: translateX(-175px); } }
/* Not enough room beside the panel: the card covers it */
@media (max-width: 820px) { .d-card { left: 0; right: 0; width: auto; height: 600px; max-height: none; } }
