/* Helmr homepage. A Mac desktop at night: olive-black ground, a translucent menu bar,
   real dark panels, ochre for the wheel and the one action. */

:root {
  color-scheme: dark;

  --bg: #101511;
  --bg-raised: #161d18;
  --line: #243028;
  --line-soft: #1c251f;
  --text: #ecebe3;
  --text-2: #a7ab9c;
  --text-3: #8a8f80;

  --ochre: #e8c66b;
  --ochre-hi: #f1d37d;
  --olive: #2c3d32;
  --olive-ink: #1b261f;

  --code-bg: #1a221c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 75% -10%, #1b261e 0%, rgba(27, 38, 30, 0) 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ochre-hi); }
strong { font-weight: 600; color: var(--text); }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.08em 0.32em;
  border-radius: 5px;
  background: var(--code-bg);
  color: #dcd9cb;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ochre); color: var(--olive-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Menu bar --------------------------------------------------------------- */

.menubar {
  position: sticky; top: 0; z-index: 10;
  height: 32px;
  background: rgba(20, 26, 22, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 32px;
}
.menubar-inner {
  display: flex; align-items: center; gap: 2px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) - 10px);
}
.menubar a {
  display: block;
  padding: 0 10px;
  border-radius: 5px;
  line-height: 24px;
  color: rgba(236, 235, 227, 0.92);
  text-decoration: none;
}
.menubar a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.menubar-app { font-weight: 700; }
.menubar-menus { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menubar-status {
  margin-left: auto;
  display: grid; place-items: center;
  width: 36px; height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: #f4f2ea;
}

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

.hero { padding: 6px 0 128px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 72px; max-width: 620px; }

.lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.lockup img { width: 64px; height: 64px; }
.lockup span { font: 700 26px/1 var(--font-display); letter-spacing: -0.01em; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #f6f4ec;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 1.3rem + 3.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34em;
}
.lead strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ochre);
  color: var(--olive-ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--ochre-hi); color: var(--olive-ink); }
.button:active { background: #ddb858; }

.hero-command { margin-top: 14px; width: fit-content; max-width: 100%; }
.fineprint { margin-top: 18px; max-width: 36em; font-size: 14px; color: var(--text-3); text-wrap: pretty; }

.hero-panel {
  /* Hangs from the wheel in the menu bar: the menu bar's padding is 10px narrower than the
     page's, so the panel's right edge moves out by 10px to line up with the wheel's. */
  margin: 0 -10px 0 0;
  justify-self: end;
  width: 100%;
  animation: drop 420ms var(--ease-out) 120ms both;
}
.hero-panel > img { width: 100%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }

.hero-panel .notification { animation: banner 520ms var(--ease-out) 900ms both; }

@keyframes banner {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

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

.section { padding: 104px 0; border-top: 1px solid var(--line-soft); }
h2 {
  font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 16px;
  max-width: 40em;
  font-size: 1.1rem;
  color: var(--text-2);
}
.note { margin-top: 24px; font-size: 15px; color: var(--text-2); max-width: 36em; }

/* Why: three failures, each with its fix */

.failures {
  list-style: none; margin: 48px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.failures > li {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.failure, .fix {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
.failure svg, .fix svg { margin-top: 3px; }
.failure p { color: var(--text-2); }
.failure strong { display: block; margin-bottom: 2px; font-size: 1.1rem; }
.fix p { color: var(--text); }

.notification {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  margin: 20px 0 0;
  padding: 12px 14px 13px 12px;
  border-radius: 18px;
  background: rgba(46, 48, 46, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), var(--shadow-panel);
  font-size: 13px;
  line-height: 1.35;
}
.notification p { color: #e9e8e2; }
.notification-title { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.notification-title span { font-weight: 400; color: #a5a6a0; white-space: nowrap; }

/* Setup, and the screenshot layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.split-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 46px;
  color: var(--text-2);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: var(--text);
  font: 600 14px/1 var(--font);
}
.steps strong { color: var(--text); }

.code {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 15px/1.5 var(--mono);
  color: #e6e3d4;
  overflow-x: auto;
}
.code code { padding: 0; background: none; font-size: inherit; color: inherit; overflow-wrap: normal; }
.code-key { color: var(--ochre); }

.shots img { filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)); }
.shots-setup { display: grid; gap: 20px; justify-items: center; }
.shots-setup img { width: 100%; max-width: 441px; }
.shots-setup img + img { width: 88%; max-width: 400px; margin-top: -4px; }

.shots-pair {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 40px;
  margin-top: 56px;
}
.shots-pair figure { margin: 0; width: 321px; max-width: 100%; display: flex; flex-direction: column; }
.shots-pair figcaption { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--text-2); text-align: center; text-wrap: balance; }

.shots-settings { justify-self: center; width: 100%; max-width: 420px; }
.shots-settings img { border-radius: 11px; }

.features { margin: 36px 0 0; display: grid; gap: 24px; }
.features dt { font-weight: 600; color: var(--text); }
.features dd { margin: 4px 0 0; color: var(--text-2); }

/* Install */

.install { background: linear-gradient(180deg, rgba(44, 61, 50, 0.22), rgba(44, 61, 50, 0) 70%); }
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
}
.install-grid > div > p { margin-top: 16px; color: var(--text-2); }
.install-grid h2 + p { margin-top: 20px; }
.install-grid .button { margin-top: 4px; }

.command {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding-right: 8px;
  border-radius: 10px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.command .code { flex: 1; min-width: 0; margin: 0; background: none; box-shadow: none; }
.copy {
  flex: none;
  min-height: 32px; padding: 0 12px;
  border: 0; border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 500 13px/1 var(--font);
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.14); }
.install .note { margin-top: 20px; font-size: 14px; }

.reqs { margin: 20px 0 0; padding: 0; list-style: none; }
.reqs li {
  position: relative;
  padding: 0 0 14px 22px;
  color: var(--text-2);
}
.reqs li::before {
  content: "";
  position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3);
}

/* Footer */

.footer { padding: 40px 0 56px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.footer-brand svg { color: var(--ochre); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { flex-basis: 100%; }

/* Narrower screens ------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .split, .split-reverse, .install-grid { gap: 48px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .menubar-menus li:nth-child(-n+3) { display: none; }
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { padding-top: 48px; }
  .hero-panel { justify-self: center; max-width: 380px; margin: 0; }
  .section { padding: 80px 0; }
  .failures > li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .split, .split-reverse, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .shots-settings { order: 2; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lockup img { width: 52px; height: 52px; }
  .lockup span { font-size: 22px; }
  .lead { font-size: 1.08rem; }
  .actions .button { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .failures { margin-top: 36px; }
  .code { font-size: 13.5px; padding: 12px 14px; }
  .command .code { white-space: pre-wrap; }
  .shots-pair { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-panel, .hero-panel .notification { animation: none; }
}
