/* mr-klanky site: a modern Platinum look. The classic Mac OS 8 and 9 parts (grey windows, a bevel, pinstripe title
   bars, the ring of the default button), with soft corners, soft shadows and the system font. The sections are windows. */

:root {
  --win: #e4e4e8;
  --hi: #ffffff;
  --lo: #a8a8b0;
  --edge: #8a8a94;
  --text: #1c1c22;
  --muted: #55555e;
  --accent: #4b4bc4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --body: var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bevel: inset 0 1px var(--hi), inset 0 -1px rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(#ececf1, #d4d4dc) fixed;
}

a { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.85em; padding: 1px 5px; background: var(--hi); border: 1px solid var(--lo); border-radius: 4px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* the menu bar */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px;
  background: rgba(240, 240, 244, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--lo); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; }
/* the logo: the menu bar icon of the app (js/bots.js draws it) */
.brand-bot { display: flex; width: 24px; height: 24px; }
.brand-bot .mk-svg { width: 24px; height: 24px; }
.top nav { display: flex; gap: 4px; font-size: 0.95rem; }
.top nav a { padding: 3px 10px; color: var(--text); text-decoration: none; border-radius: 6px; }
.top nav a:hover { color: #fff; background: var(--accent); }

/* the sections: open on the page, with space between them (no window frames) */
.hero, .shot, .pricing { margin: 48px 0 0; }
.features { margin: 88px 0 0; }
.pricing { margin-top: 88px; }

/* hero: the bots on the left, the text on the right */
/* two balanced columns: the bots, the text; the button centered below the text */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px 56px; padding: 56px 0 0; }
.hero-bots { justify-self: end; }
.hero .actions { justify-content: center; margin: 36px 0 0; }
.hero-text { text-align: left; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.lead { max-width: 640px; margin: 16px 0 0; font-size: 1.1rem; color: var(--muted); }
.hero .lead { font-size: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* buttons: grey and bevelled; the default button has the ring */
.button { display: inline-block; padding: 7px 20px; font: 600 0.95rem/1.5 var(--font); color: var(--text); text-decoration: none;
  background: linear-gradient(#fbfbfd, #dcdce2); border: 1px solid var(--edge); border-radius: 8px; box-shadow: var(--bevel), 0 1px 2px rgba(0, 0, 0, 0.1); }
.button:hover { background: linear-gradient(#f2f2ff, #d4d4ee); }
.button:active { background: #c8c8d2; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); }
.hero .button { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 10px; }
.button-big { padding: 14px 44px; font-size: 1.3rem; }
.button span { margin-left: 6px; padding: 1px 7px; font-size: 0.72rem; color: #fff; background: var(--accent); border-radius: 999px; }

/* the screenshot: an agent window in front, the board below it, the roster floating at the right over both */
.shot { margin: 28px 0 0; }
.shot-desk { position: relative; padding: 0 24% 0 0; }
.shot img { display: block; height: auto; border: 1px solid var(--edge); border-radius: 10px; box-shadow: var(--shadow); }
.shot-agent { position: relative; z-index: 2; width: 100%; }
.shot-board { position: relative; z-index: 1; width: 92%; margin: -2% 0 0 8%; }
.shot-roster { position: absolute; z-index: 3; top: 8%; right: 0; width: 27%; }
.shot figcaption { margin: 20px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* features: one row each, the text and its screenshot; every second row flips sides */
.features > h2, .pricing h2 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 48px; margin: 40px 0 0; }
.feature.is-flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature.is-flip .feature-text { order: 2; }
section[id] { scroll-margin-top: 64px; } /* the sticky top bar */
.feature h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 1.05rem; }
/* each screenshot sits in the same frame (3:2), so the rows have one size and one rhythm */
.feature-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 24px; overflow: hidden;
  background: linear-gradient(#f4f4f7, #e2e2e8); border: 1px solid var(--lo); border-radius: 14px; box-shadow: var(--bevel); }
.feature-shot img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--edge); border-radius: 8px; box-shadow: var(--shadow); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px; background: #f7f7f9; border: 1px solid var(--lo); border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06); }
.plan h3 { margin: 0; font-family: var(--font); font-size: 0.95rem; color: var(--muted); }
.amount { margin: 4px 0; font-family: var(--font); font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.amount span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan p { margin: 0 0 16px; color: var(--muted); }
.plan .button { margin-top: auto; }

.placeholder { margin: 32px 0 0; padding: 8px 16px; text-align: center; font-size: 0.9rem; background: #fffbe0; border: 1px solid #d8cc88; border-radius: 8px; }

.footer { margin-top: 48px; padding: 14px 20px; text-align: center; font-size: 0.85rem; color: var(--muted); background: var(--win); border-top: 1px solid var(--lo); box-shadow: inset 0 1px var(--hi); }
.footer a { color: var(--text); }

/* the hero bots: the bot rules of the app (src/ts/shared/styles.css), in the site colors. The motions run in js/bots.js. */
.hero-bots { display: grid; grid-template-columns: repeat(2, 136px); gap: 0 72px; } /* a triangle: one bot on top, two below, close */
.hero-bot:not(:first-child) { margin-top: -52px; }
.hero-bot:first-child { grid-column: 1 / -1; justify-self: center; }
.hero-bot { display: flex; flex-direction: column; align-items: center; width: 136px; }
.hero-bot b { margin-top: 6px; font-size: 0.95rem; }
.hero-bot-state { font-size: 0.85rem; color: var(--muted); }
.hero-bot.mk-working .hero-bot-state { color: var(--accent); }
.hero-bot.mk-question .hero-bot-state { color: #a06800; }
.hero-bot.mk-done .hero-bot-state { color: #1e7b34; }
.mk-svg { width: 124px; height: 139px; overflow: visible; }
.mk-shadow { fill: var(--text); opacity: 0.15; }
.mk-bot { transform-box: view-box; transform-origin: 32px 60px; }
.mk-arm, .mk-zzz, .mk-check { display: none; }
.mk-zzz { font: bold 11px var(--font); fill: var(--muted); }
.mk-idle .mk-zzz { display: block; }
.mk-idle .mk-eye { transform: scaleY(0.2); transform-box: fill-box; transform-origin: center; }
.mk-question .mk-arm { display: block; transform-box: view-box; transform-origin: 49px 34px; }
.mk-done .mk-light { fill: #3fb950; }
.mk-done .mk-check { display: block; }
.mk-check circle { fill: #3fb950; }
.mk-check polyline { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 40px 20px 24px; }
  .hero-bots { justify-self: center; grid-template-columns: repeat(2, 96px); gap: 0 40px; }
  .hero-bot { width: 96px; }
  .mk-svg { width: 80px; height: 90px; }
  .top { padding: 4px 12px; }
  .top nav a { padding: 2px 6px; }
  .shot-desk { padding-right: 18%; }
  .shot-roster { width: 34%; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feature.is-flip { grid-template-columns: minmax(0, 1fr); }
  .feature.is-flip .feature-text { order: 0; }
}

.tagline { margin: 6px 0 12px; font-style: italic; color: var(--muted); font-size: 1.3rem; }
/* card-568: the invoice line under the plans (card-789: no Partners strip) */
.invoice { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 761px) and (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* card-601: a feature with no screenshot yet, and the "New" mark */
.shot-todo { margin: 0; padding: 16px; color: var(--muted); font-size: 0.95rem; text-align: center; border: 2px dashed var(--lo); border-radius: 8px; }
.new { margin-left: 4px; padding: 1px 7px; font-size: 0.72rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; }
