:root {
  --paper: #fbfaf7;
  --panel: #f3f2ee;
  --white: #ffffff;
  --ink: #141516;
  --ink-2: #5e5d58;
  --ink-3: #6d6b65;
  --line: #e7e5df;
  --line-2: #e1ded7;
  --mint: #69d6aa;
  --mint-deep: #0b7a55;
  --warm-white: #f2f1ed;
  --hud: #1c1d20;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono-ui: ui-monospace, "SF Mono", Menlo, monospace;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --max: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono-ui); }

/* Nav */

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  width: max-content;
  margin: 24px auto 0;
  height: 52px;
  padding: 0 6px 0 16px;
  border-radius: 14px;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 8px 24px -12px rgba(20, 21, 22, .5);
}
.nav a { color: var(--warm-white); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--mint); }
.nav-mark { display: flex; }
.nav .nav-cta {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
}
.nav .nav-cta:hover { color: var(--ink); background: #7fe0b8; }

/* Buttons */

.btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, box-shadow .15s;
}
.btn-dark { background: var(--ink); color: var(--paper); padding-left: 20px; padding-right: 24px; }
.btn-dark:hover { background: #2a2c2e; }
.btn-light { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-light:hover { box-shadow: inset 0 0 0 1px #c9c6be; }
.btn-mint { height: 56px; border-radius: 14px; background: var(--mint); color: var(--ink); font-size: 17px; font-weight: 600; }
.btn-mint:hover { background: #7fe0b8; }

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px var(--gutter) 140px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.lede {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* Demo frame: the scene is drawn at 1200×750 and scaled to fit (main.js sets --scale). */

.demo {
  --scale: 1;
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1200 / 750;
  margin-top: 72px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #5f8f96 0%, #8fb3a7 48%, #d8c4a2 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -20px rgba(20, 21, 22, .35);
  text-align: left;
}
.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  transition: opacity .3s;
}
.demo.has-video .demo-video { opacity: 1; }
.demo.has-video .scene { visibility: hidden; }

.demo-toggle {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  height: 44px;
  padding: 0 18px 0 7px;
  border: none;
  border-radius: 22px;
  background: rgba(20, 21, 22, .72);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 14px var(--mac);
  cursor: pointer;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.demo-toggle[hidden] { display: none; }
.demo-toggle-icon { width: 30px; height: 30px; border-radius: 15px; background: var(--warm-white); display: grid; place-items: center; }
.demo-toggle .icon-play { display: none; }
.demo-toggle.paused .icon-play { display: block; }
.demo-toggle.paused .icon-pause { display: none; }

.scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 750px;
  transform: scale(var(--scale));
  transform-origin: 0 0;
  font-family: var(--mac);
  color: #1d1d1f;
}
.scene-menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .22);
  font-size: 13px;
}
.scene-menubar .row { display: flex; gap: 18px; }

.relay {
  position: absolute;
  left: 60px;
  top: 72px;
  width: 700px;
  height: 560px;
  border-radius: 12px;
  background: #f8f7f4;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 24px 60px rgba(0, 0, 0, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.relay-titlebar {
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #e4e1db;
  background: #efede8;
}
.relay-titlebar i { width: 12px; height: 12px; border-radius: 6px; }
.relay-titlebar span { flex-grow: 1; text-align: center; font-size: 13px; font-weight: 600; color: #55524c; margin-right: 52px; }
.relay-body { flex-grow: 1; display: flex; min-height: 0; }
.relay-sidebar {
  width: 180px;
  flex: none;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #efede8;
  border-right: 1px solid #e4e1db;
  font-size: 13px;
  color: #55524c;
}
.relay-sidebar b { font-size: 14px; color: #1d1d1f; padding: 0 8px 10px; }
.relay-sidebar div { padding: 5px 8px; }
.relay-sidebar .active { border-radius: 6px; background: rgba(0, 0, 0, .07); color: #1d1d1f; font-weight: 600; }
.relay-sidebar small { padding: 14px 8px 4px; font-size: 11px; font-weight: 600; color: #8a877f; }
.relay-main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.relay-channel { height: 46px; flex: none; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #e4e1db; font-weight: 700; font-size: 15px; }
.relay-messages { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.msg-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.msg-head b { font-size: 14px; font-weight: 600; }
.msg-head span { font-size: 12px; color: #77746c; }
.msg p { font-size: 14px; line-height: 20px; }
.relay-composer {
  margin: 0 16px 16px;
  height: 78px;
  flex: none;
  padding: 10px 12px;
  border: 1px solid #d6d3cc;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 14px;
  line-height: 20px;
}
.relay-composer div { display: flex; align-items: center; }
.relay-composer small { align-self: flex-end; font-size: 11px; color: #77746c; }

.caret { display: inline-block; width: 2px; height: 18px; background: #1d1d1f; }
.caret.light { width: 1.5px; height: 15px; margin-left: 1px; background: var(--warm-white); }

.pill-card {
  position: absolute;
  left: 800px;
  top: 104px;
  width: 340px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(28, 29, 32, .94);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 12px 32px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
}
.pill-card-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; }
.pill-card-head span { flex-grow: 1; font-weight: 500; }
.app-badge { width: 16px; height: 16px; border-radius: 4px; background: #7c5cf0; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.item { display: flex; gap: 10px; padding: 8px; border-radius: 10px; line-height: 18px; }
.item.done { opacity: .45; }
.item.done > div:last-child { text-decoration: line-through; }
.item.lifted { align-items: center; background: rgba(255, 255, 255, .08); transform: scale(1.03); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.check { width: 16px; height: 16px; flex: none; border-radius: 8px; background: var(--mint); display: grid; place-items: center; margin-top: 1px; }
.check.empty { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); margin-top: 0; }
.check.none { background: none; }
.thumb { width: 150px; height: 64px; padding: 9px 10px; border-radius: 8px; background: #f7f3f2; display: flex; flex-direction: column; gap: 6px; }
.thumb div { display: flex; align-items: center; gap: 6px; line-height: 1; }
.thumb i { width: 8px; height: 8px; border-radius: 4px; background: #d6453a; }
.thumb b { font-size: 9px; color: #7a2a24; }
.thumb > span { height: 5px; border-radius: 3px; background: #e6dcda; }
.pill-input {
  margin-top: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .5);
}
.flight { position: absolute; inset: 0; pointer-events: none; }
.ghost {
  position: absolute;
  left: 540px;
  top: 284px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(28, 29, 32, .9);
  box-shadow: inset 0 0 0 1px rgba(105, 214, 170, .6), 0 10px 24px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  font: 12px var(--mono-ui);
  color: var(--warm-white);
  transform: scale(.9);
}

/* Features */

.features { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 140px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head h2 { max-width: 640px; }
.section-head p { max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature {
  min-height: 420px;
  padding: 36px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon { fill: none; stroke: var(--mint-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.feature > p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.panel {
  margin-top: auto;
  height: 164px;
  border-radius: 16px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--mac);
  overflow: hidden;
}

.mini {
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 14px;
  background: var(--hud);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(20, 21, 22, .18);
}
.mini-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.mini-head img { width: 18px; height: 18px; margin: -2px; }
.mini-head span { flex-grow: 1; }
.mini-head.dim { gap: 7px; color: rgba(255, 255, 255, .62); }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--mint); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.mini-row.selected { background: rgba(255, 255, 255, .08); }
.mini-row .mono { flex-grow: 1; }
.mini-row.muted { color: rgba(255, 255, 255, .5); }
.pasted { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mint); }

/* Paste target that cycles through apps (main.js) */
.app-cycle { position: relative; flex-grow: 1; height: 20px; overflow: hidden; }
.app-cycle-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.app-cycle-item img { width: 18px; height: 18px; margin: -2px 0; }
.app-cycle-item.is-active { opacity: 1; transform: none; }
.app-cycle-item.is-leaving { opacity: 0; transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) {
  .app-cycle-item { transform: none; }
}
.not-pasted { font-size: 11px; color: rgba(255, 255, 255, .5); }

.mini-add { gap: 8px; }
.mini-image { display: flex; gap: 8px; padding: 4px; line-height: 18px; color: rgba(255, 255, 255, .6); }
.mini-thumb { width: 64px; height: 44px; flex: none; padding: 7px; border-radius: 7px; background: #f7f3f2; display: flex; flex-direction: column; gap: 4px; }
.mini-thumb span { height: 4px; border-radius: 2px; background: #e6dcda; }
.mini-input {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 2px rgba(105, 214, 170, .55);
  display: flex;
  align-items: center;
}
.mini-add small { padding: 0 4px; font-size: 11px; color: rgba(255, 255, 255, .5); }

/* Lives on the edge: a small desktop */

.panel.desktop { position: relative; display: block; background: linear-gradient(180deg, #5f8f96 0%, #8fb3a7 50%, #d8c4a2 100%); }
.mac-menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .34);
  font-size: 9px;
  color: #1d1d1f;
  white-space: nowrap;
}
.mac-menubar .row { display: flex; align-items: center; gap: 10px; }
.mac-menubar .row + .row { gap: 9px; }
.dock {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .5), 0 6px 16px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  gap: 2px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dock img { width: 30px; height: 30px; }
.dock-divider { width: 1px; height: 24px; margin: 0 3px; background: rgba(29, 29, 31, .2); }
.capsule {
  position: absolute;
  right: 8px;
  top: 44px;
  width: 48px;
  height: 28px;
  padding: 0 5px 0 12px;
  border-radius: 14px;
  background: #1d1f22;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 6px 16px rgba(0, 0, 0, .28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Stays on your Mac: a password field Pill won't paste into */

.password {
  width: 196px;
  flex: none;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 10px 24px rgba(20, 21, 22, .1);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.password b { font-size: 11px; color: #55524c; }
.password small { font-size: 10px; color: #77746c; }
.password-field {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px #c9c6be, 0 0 0 3px rgba(61, 143, 224, .35);
  display: flex;
  align-items: center;
  gap: 1px;
}
.password-field span:first-child { font-size: 15px; letter-spacing: 1.5px; color: #1d1d1f; }
.password-field .caret { width: 1.5px; height: 15px; }
.secure .mini { width: 262px; }
.shake { transform: translateX(-5px); gap: 8px; }
.shake-lines { display: flex; gap: 2px; }
.shake-lines i { width: 1.5px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, .3); }
.shake-lines i + i { background: rgba(255, 255, 255, .18); }

/* Pricing */

.pricing {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 130px var(--gutter) 140px;
}
.pricing > p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.price-card {
  width: 100%;
  max-width: 560px;
  margin-top: 56px;
  padding: 40px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--warm-white);
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  box-shadow: 0 40px 80px -30px rgba(20, 21, 22, .45);
}
.price-app { display: flex; align-items: center; gap: 16px; }
.price-app div { display: flex; flex-direction: column; gap: 2px; }
.price-app b { font-size: 20px; font-weight: 600; }
.price-app span, .price small { color: rgba(242, 241, 237, .62); }
.price-app span { font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price span { font-size: 64px; font-weight: 600; letter-spacing: -0.03em; }
.price small { font-size: 17px; }
.includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  font-size: 15px;
  color: rgba(242, 241, 237, .85);
}
.includes li { display: flex; align-items: center; gap: 10px; }
.includes li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.3 6.4 11.5 13 4.5' fill='none' stroke='%2369d6aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Footer */

.footer { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-top > span { font-size: 16px; color: var(--ink-2); }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark span { font-family: Nunito, ui-rounded, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 40px; }
.footer-bottom p { font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.footer-bottom nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.footer-bottom a:hover { color: var(--mint-deep); }

/* Responsive */

@media (max-width: 1000px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { gap: 20px; padding-left: 14px; }
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .demo { margin-top: 48px; border-radius: 14px; }
  .demo-toggle { left: 10px; bottom: 10px; height: 36px; padding-right: 14px; font-size: 13px; }
  .demo-toggle-icon { width: 24px; height: 24px; }
  .features { padding-bottom: 96px; }
  .section-head { margin-bottom: 36px; }
  .feature { min-height: 0; padding: 24px; }
  .panel { margin-top: 12px; }
  .panel.secure { height: auto; flex-direction: column; padding: 20px 16px; }
  .secure .password, .secure .mini { width: 100%; max-width: 280px; }
  .mac-menubar .wide { display: none; }
  .dock img { width: 24px; height: 24px; }
  .pricing { padding-top: 96px; padding-bottom: 96px; }
  .price-card { padding: 28px 24px; }
  .price span { font-size: 52px; }
  .includes { grid-template-columns: minmax(0, 1fr); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
