/* Lemon Code, Mac download page. One self-contained stylesheet that follows the landing page design.
   Spacing scale (px): 4 8 12 16 24 32 48 64 96 128. Radii: 12 window, 20 panel, 32 slab, 999 pill. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --dot: rgba(15, 23, 42, 0.09);
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #5a6678;
  --slab: #f3f5fa;
  --panel: #ffffff;
  --bar: #f6f7fb;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.2);
  --hover: rgba(15, 23, 42, 0.05);
  --lemon: #facc15;
  --on-lemon: #0f172a;
  --btn-bg: #0f172a;
  --btn-bg-hover: #1e293b;
  --btn-fg: #ffffff;
  --eb-bg: rgba(250, 204, 21, 0.16);
  --eb-edge: rgba(161, 98, 7, 0.3);
  --eb-text: #7a4a03;
  --focus: #0f172a;
  --focus-halo: rgba(250, 204, 21, 0.65);
  --sh-nav: 0 12px 32px -16px rgba(15, 23, 42, 0.18);
  --sh-window:
    0 32px 80px -28px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.05);
  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: min(1200px, 100% - 48px);
  --gap: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #090c13;
    --dot: rgba(255, 255, 255, 0.065);
    --ink: #f1f5f9;
    --muted: #a9b3c4;
    --subtle: #8d99ad;
    --slab: #0f141e;
    --panel: #151b27;
    --bar: #111724;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.2);
    --hover: rgba(255, 255, 255, 0.06);
    --btn-bg: #f1f5f9;
    --btn-bg-hover: #ffffff;
    --btn-fg: #0f172a;
    --eb-bg: rgba(250, 204, 21, 0.09);
    --eb-edge: rgba(250, 204, 21, 0.28);
    --eb-text: #facc15;
    --focus: #f1f5f9;
    --focus-halo: rgba(250, 204, 21, 0.45);
    --sh-nav: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    --sh-window:
      0 32px 80px -28px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
picture {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
strong {
  font-weight: 500;
  color: var(--ink);
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0;
  padding: 0.15em 0.45em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bar);
  color: var(--ink);
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
  border-radius: 8px;
}
.btn:focus-visible,
.menu-btn:focus-visible,
.nav-links a:focus-visible,
.nav-signin:focus-visible {
  border-radius: 999px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 14px;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.c2 {
  grid-column: span 2;
}
.c3 {
  grid-column: span 3;
}
.c5 {
  grid-column: span 5;
}
.c6 {
  grid-column: span 6;
}
.c7 {
  grid-column: span 7;
}

/* ---------- navigation pill ---------- */
.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: var(--wrap);
  margin: 12px auto 0;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 10px 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-nav);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  border-radius: 12px;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.nav-links a:hover {
  background: var(--hover);
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-signin {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.nav-signin:hover {
  color: var(--ink);
  background: var(--hover);
}
.here {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lemon);
}

/* mobile menu, no script: a details element */
.menu {
  display: none;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.menu-btn::-webkit-details-marker {
  display: none;
}
.menu-btn:hover {
  background: var(--hover);
}
.menu-close,
.menu[open] .menu-open {
  display: none;
}
.menu[open] .menu-close {
  display: inline;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-nav);
  font-size: 16px;
  font-weight: 500;
}
.menu-panel a {
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--muted);
}
.menu-panel a:hover {
  background: var(--hover);
  color: var(--ink);
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
}
.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--hover);
}
.btn-wait {
  justify-self: start;
  background: var(--hover);
  border-color: var(--line);
  color: var(--muted);
}
.ico {
  flex: none;
  transition: transform 0.15s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.inline {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--lemon);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s ease;
}
.inline:hover {
  text-decoration-color: var(--ink);
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- type ---------- */
h1,
h2 {
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.9vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}
h2 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.036em;
}
.h2-sm {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.032em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid var(--eb-edge);
  border-radius: 999px;
  background: var(--eb-bg);
  color: var(--eb-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lemon);
}

/* ---------- windows, slab, panel ---------- */
.window {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-window);
}
.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0;
}
.window img {
  width: 100%;
}
.slab {
  padding: clamp(20px, 4.5vw, 56px);
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 32px);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* ---------- sections ---------- */
.section {
  padding-top: clamp(72px, 9vw, 128px);
  scroll-margin-top: 72px;
}
.section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head .eyebrow,
.slab-head .eyebrow,
.updates .eyebrow {
  margin-bottom: 20px;
}
.slab-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* hero */
.hero {
  padding-top: clamp(56px, 8vw, 104px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy .eyebrow {
  margin-bottom: 28px;
}
.hero .lede {
  max-width: 32em;
}
.hero-slab {
  margin-top: clamp(40px, 5vw, 64px);
}

/* download card and its four states */
.dl-grid {
  align-items: start;
  row-gap: var(--gap);
}
.dl-card {
  align-self: start;
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.dl-state {
  display: grid;
  gap: 20px;
}
.dl-state > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.dl-title {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.dl-get {
  justify-self: start;
}
.dl-state .btns {
  margin-top: 4px;
}

.facts {
  display: grid;
}
.fact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.fact dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.fact dd {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.sha {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-all;
  user-select: all;
}
.verify {
  display: grid;
  gap: 10px;
}
.verify p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--subtle);
}
.note {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 20px 18px 26px;
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.note::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--lemon);
}
.note p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.cmd {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bar);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  user-select: all;
}
.note .cmd {
  background: var(--panel);
}

.skel {
  display: grid;
}
.skel-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.skel-row i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--line);
}
.skel-row i:first-child {
  width: 70%;
}
.skel-row i:last-child {
  width: 55%;
}
.skel-row:nth-child(2) i:last-child {
  width: 38%;
}
.skel-row:nth-child(3) i:last-child {
  width: 72%;
}

.dl-window {
  align-self: start;
}
.window-shot {
  overflow: hidden;
}

/* what you need */
.needs {
  row-gap: var(--gap);
}
.need {
  padding: clamp(24px, 3vw, 32px);
}
.need p {
  margin-top: 12px;
  max-width: 36em;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* install */
.install {
  align-items: start;
  row-gap: 32px;
}
.steps {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 0;
}
.step p {
  padding-top: 2px;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lemon);
  color: var(--on-lemon);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.aside {
  margin-top: 24px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.install-shot figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--subtle);
}

/* updates */
.updates {
  row-gap: 8px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.updates-body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 4px;
}
.updates-body p {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.updates-body .min {
  padding-left: 16px;
  border-left: 3px solid var(--lemon);
  font-size: 15px;
  color: var(--ink);
}

/* web app */
.web {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: clamp(24px, 3.2vw, 36px) clamp(24px, 3.2vw, 40px);
}
.web-copy p {
  margin-top: 8px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* footer */
.footer {
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(40px, 5vw, 64px) 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  row-gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 24em;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.footer-h {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.footer-col li + li {
  margin-top: 10px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 6px;
}
.footer-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lemon);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-mail {
  font-size: 14.5px;
  color: var(--muted);
}
.footer-base {
  margin-top: clamp(40px, 6vw, 72px);
  font-size: 13.5px;
  color: var(--subtle);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col.c2,
  .footer-col.c3 {
    grid-column: span 4;
  }
}
@media (max-width: 860px) {
  .nav-links,
  .nav-signin {
    display: none;
  }
  .menu {
    display: block;
  }
  .dl-grid .c6,
  .needs .c6,
  .install .c7,
  .install .c5,
  .updates .c5,
  .updates .c7 {
    grid-column: 1 / -1;
  }
  .window-shot {
    max-height: 420px;
  }
}
@media (max-width: 560px) {
  :root {
    --wrap: min(1200px, 100% - 32px);
  }
  .nav {
    padding: 0 8px 0 12px;
  }
  .dl-get,
  .dl-state .btns .btn,
  .web .btn {
    width: 100%;
  }
  .btn-wait {
    justify-self: stretch;
  }
  .fact,
  .skel-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .skel-row {
    gap: 10px;
  }
  .step {
    padding: 16px 18px;
  }
  .footer-col.c2,
  .footer-col.c3 {
    grid-column: span 6;
  }
  .window-bar {
    height: 34px;
    padding: 0 12px;
  }
  .window-title {
    font-size: 11px;
  }
  .window-shot {
    max-height: 340px;
  }
}
@media (max-width: 420px) {
  .nav .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .btn:hover .arrow {
    transform: none;
  }
}
