/* Miso — the whole site's CSS.
   One accent, one type scale, a lot of white space. Nothing here is clever. */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e8e8ed;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --blue: #4a9dff;
  --pink: #ff9cc6;
  --measure: 700px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

/* ---- Header ---------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 28px;
}

.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.mark img { width: 28px; height: 28px; border-radius: 7px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  margin-left: 26px;
}
nav a:hover { color: var(--ink); }

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

.hero { text-align: center; padding: 76px 0 0; }

.hero img.icon {
  width: 132px; height: 132px;
  border-radius: 30px;
  margin-bottom: 34px;
}

h1 {
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 22px;
}

.lede {
  font-size: 23px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* ---- Button ---------------------------------------------------------- */

.download {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 40px;
  border-radius: 980px;
  transition: opacity 0.15s ease;
}
.download:hover { opacity: 0.82; }

.small { font-size: 15px; color: var(--faint); margin-top: 16px; }

/* ---- Shot ------------------------------------------------------------ */

.shot { margin: 76px auto 0; max-width: 880px; padding: 0 28px; }
.shot img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 24px 60px rgba(0,0,0,0.12);
}

/* ---- Sections -------------------------------------------------------- */

section { padding: 108px 0; }
section + section { padding-top: 0; }

h2 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0 0 18px;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}

p { margin: 0 0 20px; }
p.muted { color: var(--muted); }

.points { display: grid; gap: 52px; margin-top: 8px; }
.points p { color: var(--muted); margin: 0; }

/* ---- Price ----------------------------------------------------------- */

.price {
  text-align: center;
  background: var(--bg-soft);
  border-radius: 22px;
  padding: 64px 28px;
  margin: 0 0 8px;
}
.price .figure {
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 14px;
  background: linear-gradient(100deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 64px;
  color: var(--faint);
  font-size: 15px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--faint); }
footer a:hover { color: var(--ink); }

/* ---- Docs ------------------------------------------------------------ */

.docs { padding: 56px 0 40px; }
.docs h1 { font-size: 52px; margin-bottom: 18px; }
.docs h2 { font-size: 34px; margin: 76px 0 16px; }
.docs h3 { font-size: 21px; margin: 38px 0 8px; }
.docs p, .docs li { font-size: 20px; line-height: 1.62; color: #3a3a3c; }
.docs ul { padding-left: 22px; margin: 0 0 20px; }
.docs li { margin-bottom: 10px; }
.docs strong { color: var(--ink); font-weight: 600; }
.docs .kbd {
  font: 500 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 4px 7px;
}
.docs .note {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 20px;
}
.docs .note p:last-child { margin-bottom: 0; }

/* ---- Small screens --------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 42px; }
  .lede { font-size: 20px; }
  h2 { font-size: 30px; }
  .docs h1 { font-size: 38px; }
  .docs h2 { font-size: 27px; }
  .docs p, .docs li { font-size: 18px; }
  section { padding: 76px 0; }
  .hero { padding-top: 52px; }
}

/* ---- Feature mockups -------------------------------------------------
   Four surfaces of the app, drawn in HTML rather than screenshotted. The
   notch and the menu bar cannot be captured on a Mac without capturing the
   whole desktop with it, and a real screenshot of the library is a privacy
   problem — see AGENTS.md. Everything here uses the app's own Dark Glass
   values so what you see on the site is what the app actually draws.       */

.features { padding: 108px 0 0; }

.feature {
  max-width: 1080px;
  margin: 0 auto 104px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 56px;
  align-items: center;
}
.feature.flip { grid-template-columns: 1.14fr 0.86fr; }
.feature.flip .ftext { order: 2; }

.ftext h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.018em; margin-bottom: 14px; }
.ftext p { color: var(--muted); margin: 0; font-size: 19px; }

.fmock { margin: 0; }
.fmock figcaption {
  font-size: 14px;
  color: var(--faint);
  text-align: center;
  margin-top: 14px;
}

/* The desktop the glass sits on. Without something behind it, translucency
   is invisible and the mockup lies about what the app looks like. */
.stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 0 0 34px;
  min-height: 260px;
  background:
    radial-gradient(120% 90% at 12% 8%, #4c6ef5 0%, rgba(76,110,245,0) 58%),
    radial-gradient(110% 80% at 88% 22%, #d6567c 0%, rgba(214,86,124,0) 55%),
    linear-gradient(168deg, #2b2350 0%, #10131f 72%, #0a0c14 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 22px 54px rgba(0,0,0,0.20);
}
.stage-tall { min-height: 350px; }

/* ---- macOS menu bar --------------------------------------------------- */

.menubar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 26px;
  padding: 0 12px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  z-index: 3;
}
.menubar.tall { height: 30px; }
.mb-logo {
  width: 11px; height: 13px;
  border-radius: 50% 50% 46% 46%;
  background: rgba(255,255,255,0.85);
  flex: none;
}
.mb-item { white-space: nowrap; }
.mb-item.strong { font-weight: 600; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mb-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5A9EFF;
  box-shadow: 0 0 0 3px rgba(90,158,255,0.22);
}

/* The notch itself: hardware, so it is the one truly black thing here. */
.mb-notch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  min-width: 116px;
  background: #0C0C0C;
  border-radius: 0 0 9px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Waveform --------------------------------------------------------- */

.wave { display: flex; align-items: center; gap: 2px; }
.wave i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: #5A9EFF;
  height: calc(var(--h) * 100%);
  animation: pulse 1.5s var(--d) ease-in-out infinite;
}
.wave-lg { height: 18px; gap: 3px; }
.wave-sm { height: 12px; }
.wave-sm i { width: 2.5px; }

@keyframes pulse {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.42); }
}

@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; }
}

/* ---- The notch panel, open ------------------------------------------- */

.notch-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100% - 40px);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  background: rgba(26,26,28,0.72);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  z-index: 4;
}
.np-bezel { height: 26px; background: #0C0C0C; }
.np-body { padding: 12px 14px 0; }

.np-turns { margin: 12px 0 0; }
.np-turns p { margin: 0 0 4px; color: rgba(255,255,255,0.32); }
.np-turns p.np-now { color: rgba(255,255,255,0.55); }

.np-qs { margin-top: 12px; display: grid; gap: 6px; }
.np-q {
  background: rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 7px 10px;
  color: #fff;
}

.np-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
}
.np-dot { width: 7px; height: 7px; border-radius: 50%; background: #5A9EFF; flex: none; }
.np-clock {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255,255,255,0.32);
}
.np-gap { flex: 1; }
.np-end {
  background: #fff;
  color: #1A1A1C;
  border-radius: 980px;
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 600;
}

/* ---- The menu bar extra's menu --------------------------------------- */

.menu-pop {
  position: absolute;
  top: 38px;
  right: 22px;
  width: 186px;
  padding: 6px;
  border-radius: 11px;
  background: rgba(38,38,42,0.82);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  box-shadow: 0 14px 38px rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12.5px;
  z-index: 4;
}
.mp-head { padding: 5px 9px; color: rgba(255,255,255,0.45); font-size: 11px; }
.mp-sep { height: 1px; background: rgba(255,255,255,0.12); margin: 5px 4px; }
.mp-row { padding: 5px 9px; border-radius: 6px; }
.mp-row:first-of-type { background: rgba(255,255,255,0.14); }

/* ---- A window -------------------------------------------------------- */

.win {
  position: relative;
  margin: 34px 26px 0;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(26,26,28,0.74);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.44);
  color: #fff;
  z-index: 2;
}
.win-bar {
  display: flex;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.tl { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tl.r { background: #ff5f57; }
.tl.y { background: #febc2e; }
.tl.g { background: #28c840; }
.win-body { padding: 18px 20px 20px; font-size: 13px; line-height: 1.5; }

/* ---- Ask ------------------------------------------------------------- */

.ask-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.ask-q {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.ask-steps { display: grid; gap: 7px; margin-bottom: 14px; }
.step { color: rgba(255,255,255,0.32); font-size: 12px; padding-left: 18px; position: relative; }
.step::before {
  content: "";
  position: absolute; left: 2px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.4px solid rgba(255,255,255,0.32);
}
.step.done::before { background: #5A9EFF; border-color: #5A9EFF; }
.step.done { color: rgba(255,255,255,0.55); }
.step.thought { color: rgba(255,255,255,0.55); padding-left: 0; font-size: 13px; }
.step.thought::before { display: none; }

.ask-answer { margin: 0 0 16px; color: #fff; }

.ask-from { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ask-lbl { color: rgba(255,255,255,0.32); font-size: 11px; }
.ask-src {
  background: rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
}

/* ---- MCP ------------------------------------------------------------- */

.mcp-user {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.mcp-call {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font: 500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mcp-server {
  background: #5A9EFF;
  color: #0d1220;
  border-radius: 5px;
  padding: 3px 6px;
  font-weight: 700;
}
.mcp-tool { color: #fff; }
.mcp-arg { color: rgba(255,255,255,0.32); }
.mcp-answer { margin: 14px 0 16px; }

.mcp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcp-tools code {
  background: rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 3px 9px;
  font: 500 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(255,255,255,0.85);
}

/* ---- The text-only points ------------------------------------------- */

.rest { padding: 0 0 108px; }
.rest .points { grid-template-columns: 1fr 1fr; gap: 44px 48px; }

@media (max-width: 860px) {
  .feature,
  .feature.flip { grid-template-columns: 1fr; gap: 30px; margin-bottom: 76px; }
  .feature.flip .ftext { order: 0; }
  .ftext h3 { font-size: 25px; }
  .ftext p { font-size: 18px; }
  .features { padding-top: 76px; }
  .rest .points { grid-template-columns: 1fr; }
  .win { margin: 26px 16px 0; }
  .win-body { padding: 15px 16px 17px; }
}

/* Ask's footer. Clear on the left, the primary pill on the right. */
.ask-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.ask-clear { color: rgba(255,255,255,0.55); font-size: 12px; }
.ask-go {
  background: #fff;
  color: #1A1A1C;
  border-radius: 980px;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 600;
}
