/* Layout: one page width for every page, a reading width for prose, one rhythm between sections.
   The page stops growing at --page, so ultra-wide screens get a centred column rather than long lines. */
:root {
  --page: 1200px;
  --content: 880px;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 7vw, 96px);
}
:root {
  --paper: #fbfbfd; --ink: #1d1d1f; --ink-2: #515154; --ink-3: #86868b; --rule: #e3e3e8;
  --accent: #4c4ed6; --accent-ink: #ffffff; --band: #eef0ff;
  --bar: rgba(255, 255, 255, .72); --bar-ink: #1d1d1f;
  --win: #ffffff; --win-rule: #d8d8dd;
  --shadow: 0 0 0 1px rgba(0,0,0,.07), 0 18px 48px rgba(28, 29, 70, .14);
  --wallpaper: linear-gradient(135deg, #dfe3ff 0%, #eef0ff 38%, #fbe9f1 72%, #e6f0ff 100%);
  --wallpaper-edge: rgba(28, 29, 70, .08);
  --term: #1c1c22; --term-ink: #e8e8ee; --term-dim: #8b8b98;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141416; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --rule: #2c2c30;
    --accent: #8a8cff; --accent-ink: #0d0d1f; --band: #1c1d33;
    --bar: rgba(40, 40, 46, .72); --bar-ink: #f5f5f7;
    --win: #2c2c2e; --win-rule: #3f3f44;
    --shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 48px rgba(0, 0, 0, .55);
    --wallpaper: linear-gradient(135deg, #1b1c3a 0%, #262a5c 40%, #3a2550 75%, #1c2440 100%);
    --wallpaper-edge: rgba(255,255,255,.08);
    --term: #0e0e12;
  }
}
* { box-sizing: border-box; min-width: 0; }
img { max-width: 100%; }
html { background: var(--paper); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* Reading pages (guide, release notes): the whole page, header included, narrows to --content and stays centred. */
.wrap.reading { max-width: calc(var(--content) + 2 * var(--gutter)); }
[hidden] { display: none !important; }
b { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px;
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  /* Paint the bar edge to edge although it sits inside .wrap. */
  border-image: conic-gradient(color-mix(in srgb, var(--paper) 82%, transparent) 0 0) fill 0 // 0 100vmax;
}
.top .mark { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.top .mark img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .top nav a[href*="github.com"] { display: none; } }
.top nav a:hover { color: var(--ink); }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--win); box-shadow: inset 0 0 0 1px var(--rule); }
.lang button { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; cursor: pointer; border-radius: 999px; transition: background .15s, color .15s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lang button { transition: none; } }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; margin: 0 auto 18px; max-width: 15ch; }
.lede { font-size: 20px; line-height: 1.45; color: var(--ink-2); margin: 0 auto 28px; max-width: 40ch; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 14px 24px; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform .15s, filter .15s;
}
.download:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .download { transition: none; } }
.download svg { width: 18px; height: 18px; fill: currentColor; }
.download:hover { filter: brightness(1.06); }
.fine { color: var(--ink-3); font-size: 14px; margin: 0; }
.fine a { color: var(--ink-2); }
@media (max-width: 560px) {
  .lede { font-size: 18px; }
  .top nav { gap: 12px; font-size: 14px; }
  .feature h2, .closing h2 { font-size: 26px; }
}

/* A slice of desktop: wallpaper, the menu bar on top, and whatever hangs from Calenbar's item. */
.screen {
  position: relative; margin: 44px auto 0; max-width: 1000px; border-radius: 18px; overflow: hidden;
  background: var(--wallpaper);
  box-shadow: 0 0 0 1px var(--wallpaper-edge), 0 24px 60px rgba(28, 29, 70, .16);
  padding: 0 0 28px; text-align: left;
}
.screen.short { padding-bottom: 72px; }
/* In a grid column, auto margins would size the screen to the menu bar's unwrapped width. */
.feature .screen { margin: 0; width: 100%; }
.menubar {
  height: 32px; background: var(--bar); color: var(--bar-ink);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: center; padding: 0 16px; gap: 18px; font-size: 13.5px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  white-space: nowrap; overflow: hidden; text-align: left;
}
.menubar .menus { display: flex; gap: 16px; }
.menubar .menus b { font-weight: 700; }
.menubar .spacer { flex: 1; }
.menubar .item { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.menubar .daybox { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.3px solid currentColor; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 1; }
.menubar .item .dot { opacity: .55; margin: 0 1px; }
.menubar svg { width: 17px; height: 17px; fill: currentColor; }
.menubar .clock { font-variant-numeric: tabular-nums; }
.screen .panel { display: block; width: 340px; max-width: calc(100% - 40px); height: auto; margin: 10px 20px 0 auto; border-radius: 12px; box-shadow: var(--shadow); }
.screen .strip { display: block; width: calc(100% - 40px); height: auto; margin: 22px auto 0; border-radius: 9px; box-shadow: 0 10px 30px rgba(28, 29, 70, .18); }
@media (max-width: 560px) { .menubar .menus span:nth-child(n+3), .menubar .sys { display: none; } .screen .panel { margin: 10px auto 0; } }

/* Eight reasons, one line each, right under the hero */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.perks { padding: var(--section-y) 0; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.perks li { display: grid; gap: 4px; align-content: start; }
.perks svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.perks b { font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.perks span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .perks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* Eyebrow above section titles */
.eyebrow { display: block; color: var(--accent); font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.section-head { text-align: center; max-width: var(--measure); margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.028em; margin: 0 0 12px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 18px; }

/* Three sizes of the same thing */
.trio { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.trio .shots { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; align-items: start; }
.trio figure { margin: 0; }
.trio figure img, .trio figure picture { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.trio figure picture img { box-shadow: none; }
.trio figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.trio figcaption b { color: var(--ink); }
.trio .barshot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--wallpaper); padding-bottom: 36px; }
@media (max-width: 760px) { .trio .shots { grid-template-columns: 1fr; } }

/* Small things, as cards */
.cards { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.cards .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards .card { background: var(--win); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; }
.cards h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.cards p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .cards .grid { grid-template-columns: 1fr; } }

/* What's new */
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rule); }
.release time { color: var(--ink-3); font-size: 15px; padding-top: 7px; position: sticky; top: 24px; align-self: start; }
.release > div { max-width: var(--measure); }
.release h2 { font-size: 27px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.release p { color: var(--ink-2); margin: 0 0 12px; }
.release ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 7px; }
.release .ver { display: inline-block; vertical-align: 3px; font-size: 12.5px; color: var(--ink-2); margin-left: 10px; font-weight: 600; letter-spacing: .01em; padding: 2px 9px; border-radius: 999px; background: var(--win); box-shadow: inset 0 0 0 1px var(--rule); font-variant-numeric: tabular-nums; }
.release:first-of-type .ver { color: var(--accent); background: var(--band); box-shadow: none; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 6px; } }

/* Features: text and a screenshot, alternating sides. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.feature.flip > .text { order: 2; }
.feature h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 12px; }
.feature p { margin: 0 0 14px; color: var(--ink-2); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.feature li { padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feature img, .feature picture { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.feature picture img { box-shadow: none; }
.feature picture.card { max-width: 340px; margin: 0 auto; }
.feature.wide { grid-template-columns: 1fr; gap: 24px; }
.feature.wide .text { max-width: var(--measure); }
@media (max-width: 680px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip > .text { order: 0; } }

/* Meeting services Join recognises */
.services { padding: var(--section-y) 0; border-top: 1px solid var(--rule); text-align: center; }
.services h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin: 0 0 20px; }
.services ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.services li { background: var(--win); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 16px; font-size: 15px; font-weight: 500; }
.services p { color: var(--ink-3); font-size: 14px; margin: 18px 0 0; }

/* Keyboard */
.keys { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.keys h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.025em; margin: 0 0 20px; }
.keys dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.keys dl > div { display: flex; align-items: baseline; gap: 14px; background: var(--win); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.keys dt { flex: none; min-width: 84px; color: var(--ink-2); font-size: 14px; }
.keys dd { margin: 0; color: var(--ink-2); font-size: 15px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; margin-right: 3px; text-align: center; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--paper); border: 1px solid var(--win-rule); border-bottom-width: 2px; border-radius: 6px; }

/* Questions */
.faq { padding: var(--section-y) 0 24px; border-top: 1px solid var(--rule); }
.faq h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 20px; }
.faq dl { margin: 0; display: grid; gap: 22px; max-width: var(--measure); }
.faq dt { font-weight: 600; margin: 0 0 4px; }
.faq dd { margin: 0; color: var(--ink-2); }
.faq dd code { font-size: .85em; background: var(--win); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Closing band */
.closing { padding: var(--section-y) 24px; margin: 24px 0 56px; text-align: center; border-radius: 24px; background: var(--wallpaper); box-shadow: 0 0 0 1px var(--wallpaper-edge); }
.closing h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 10px; }
.closing p { color: var(--ink-2); margin: 0 auto 24px; max-width: 46ch; }

/* Install guide page */
.guide { padding: 32px 0 16px; }
.guide h1 { text-align: left; margin: 0 0 12px; max-width: 20ch; font-size: clamp(34px, 5vw, 48px); }
.guide .intro { color: var(--ink-2); margin: 0 0 24px; max-width: var(--measure); font-size: 19px; line-height: 1.45; }
/* Two ways in, stacked: the command first, then the download that the numbered steps below follow. */
.ways { display: grid; gap: 16px; margin: 32px 0 8px; }
.way { background: var(--win); border: 1px solid var(--rule); border-radius: 20px; padding: 26px 28px; display: grid; gap: 14px; }
.way h2 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 4px; line-height: 1.3; }
.way p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.way ol { margin: 4px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; max-width: 72ch; }
.way ol b { color: var(--ink); }
.way.get { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
@media (max-width: 640px) { .way { padding: 22px 20px; } .way.get { grid-template-columns: 1fr; gap: 16px; } .way.get .download { justify-self: start; } }
/* The command, as a small terminal window; dark in both themes. */
.cmd {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px;
  background: var(--term); color: var(--term-ink); border-radius: 12px; padding: 12px 14px 16px 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 12px 30px rgba(0,0,0,.18);
}
.cmd .lights { grid-column: 1 / -1; display: flex; gap: 6px; }
.cmd .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.cmd .lights i:nth-child(2) { background: #febc2e; }
.cmd .lights i:nth-child(3) { background: #28c840; }
.cmd code { font-size: 15px; line-height: 1.55; white-space: pre; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; color: var(--term-ink); }
.cmd code::before { content: "$ "; color: var(--term-dim); }
.cmd button {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--term-ink);
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.cmd button:hover { background: rgba(255,255,255,.14); }
.cmd button.copied { color: #28c840; border-color: rgba(40,200,64,.5); }
.way code { font-size: .92em; }
.way p code, .way li code { background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; }
.steps-head { margin: 56px 0 24px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; }
.step { display: grid; gap: 16px; padding: 0 0 44px 52px; position: relative; }
.step::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--rule); }
.step:last-of-type::before { display: none; }
.step > div { max-width: 62ch; }
.step .num { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0; background: var(--band); color: var(--accent); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; line-height: 1.3; margin: 3px 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.step p b { color: var(--ink); }
.step figure { margin: 0; }
.step figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.step figure img.dialog { box-shadow: var(--shadow); border-radius: 14px; }
@media (max-width: 640px) { .step { padding-left: 48px; } }
.after { background: var(--band); border-radius: 16px; padding: 18px 22px; color: var(--ink-2); margin: 8px 0 40px; }
.after b { color: var(--ink); }

pre { background: var(--win); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 15px; margin: 0 0 14px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95em; }
p code { background: var(--win); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; }

footer { padding: 36px 0 48px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--rule); }
footer a { color: var(--ink-2); }
footer span { line-height: 1.8; }
