/* Inter is the fallback where SF Pro (the Mac system font) isn't available */
@font-face {
  font-family: 'Inter';
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

/* macOS-style tokens, using Apple's light-mode system colours */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --titlebar: #ececee;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --separator: rgba(60, 60, 67, 0.14);
  --accent: #007aff;
  --accent-hover: #0068d9;
  --nav-bg: rgba(246, 246, 248, 0.72);
  --key-top: #ffffff;
  --key-edge: #c9c9ce;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --shadow-window: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 22px 70px -12px rgba(0, 0, 0, 0.28), 0 8px 20px -8px rgba(0, 0, 0, 0.16);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* New York is the macOS system serif */
  --font-serif: ui-serif, 'New York', 'Iowan Old Style', Georgia, serif;

  /* Wallpaper: the shore at dusk */
  --sky-top: #7fa6d1;
  --sky-mid: #f0c3b3;
  --sky-low: #fde2c2;
  --sun: #fff4dc;
  --sea-top: #4c8aa6;
  --sea-deep: #173f5a;
  --foam: #9cc6d4;
  --sand: #ecd7b4;
  --sand-dark: #dcc096;

  /* Highlight colours for recognised parts of a line, as in Inlet */
  --tok-date: #1a8f3c;
  --tok-date-bg: rgba(52, 199, 89, 0.16);
  --tok-repeat: #9d3ccf;
  --tok-repeat-bg: rgba(175, 82, 222, 0.14);
  --tok-list: #c46a00;
  --tok-list-bg: rgba(255, 149, 0, 0.17);
  --tok-prio: #d70015;
  --tok-prio-bg: rgba(255, 59, 48, 0.13);
  --tok-blue: #0a64d6;
  --tok-blue-bg: rgba(0, 122, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.86);
  --menubar-text: #1d1d1f;
  --menubar-bg: rgba(255, 255, 255, 0.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header: translucent like the macOS menu bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.brand:hover { text-decoration: none; }

/* An app's own icon in place of the keycap, on that app's pages */
.brand-icon { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)); }

/* Logo: a single keycap */
.brand-key {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--key-top);
  border-radius: 6px;
  box-shadow: 0 0 0 0.5px var(--hairline), 0 1.5px 0 var(--key-edge);
}

.nav nav a {
  margin: -12px -6px;
  padding: 12px 6px;
  font-size: 13px;
  color: var(--text);
  opacity: 0.8;
}

.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav nav { display: flex; gap: 20px; }

/* Type */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.lede {
  max-width: 32em;
  margin: 20px auto 0;
  font-size: 21px;
  line-height: 1.4;
  color: var(--muted);
}

.fine {
  font-size: 13px;
  color: var(--muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Inline Mac keycaps */
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 6px;
  font-family: var(--font);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  color: var(--text);
  background: var(--key-top);
  border-radius: 5px;
  box-shadow: 0 0 0 0.5px var(--hairline), 0 1.5px 0 var(--key-edge);
  vertical-align: 0.1em;
}

/* Hero */
.hero {
  padding: 96px 0 40px;
  text-align: center;
}

/* Window chrome with traffic lights */
.window {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: var(--titlebar);
  border-bottom: 0.5px solid var(--separator);
}

.lights {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Home hero: a small Mac desktop with Inlet's panel on it */
.desktop {
  position: relative;
  max-width: 940px;
  height: 500px;
  margin: 56px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  text-align: left;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.menubar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 26px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--menubar-text);
  background: var(--menubar-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.menubar b { font-weight: 700; }

.mb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Inlet's menu bar icon, shown selected while its panel is open */
.mb-inlet {
  box-sizing: content-box;
  width: 15px;
  height: 15px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.28);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inlet's panel */
.panel {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  width: min(580px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--panel);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 14px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 24px 60px -10px rgba(0, 0, 0, 0.4);
  animation: drop 0.7s 0.35s cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.panel-input {
  min-height: 62px;
  padding: 18px 20px 6px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  padding: 4px 20px 12px;
}

.chip {
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  font-size: 13px;
  border-top: 0.5px solid var(--separator);
}

/* Segmented control */
.seg {
  display: flex;
  padding: 2px;
  background: rgba(118, 118, 128, 0.14);
  border-radius: 7px;
}

.seg span {
  padding: 2px 10px;
  color: var(--muted);
  border-radius: 5px;
}

.seg .on {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.panel-list {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.panel-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-send {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: #34c759;
}

.panel-send svg,
.panel-saved svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Saved: the line is sent off and a tick confirms it */
.panel-saved {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.panel-saved svg {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  padding: 14px;
  border-radius: 50%;
  background: #34c759;
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.panel.saved .panel-saved { opacity: 1; }
.panel.saved .panel-saved svg { transform: scale(1); }

.desktop-caption {
  max-width: 34em;
  margin: 22px auto 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Recognised parts of a line */
mark {
  color: inherit;
  background: none;
  border-radius: 4px;
}

.tok-date { color: var(--tok-date); background: var(--tok-date-bg); }
.tok-repeat { color: var(--tok-repeat); background: var(--tok-repeat-bg); }
.tok-list { color: var(--tok-list); background: var(--tok-list-bg); }
.tok-prio { color: var(--tok-prio); background: var(--tok-prio-bg); }
.tok-time,
.tok-place { color: var(--tok-blue); background: var(--tok-blue-bg); }

mark[class^="tok-"] {
  padding: 0.12em 0.3em;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.examples mark { white-space: nowrap; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop, .panel, .chip, .caret { animation: none; }
}

/* Sections */
.section { padding: 64px 0 0; }

.group-title {
  max-width: 680px;
  margin: 0 auto 10px;
  padding-left: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

/* System Settings style grouped list */
.group {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  list-style: none;
}

.row,
.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text);
}

.row + .row {
  border-top: 0.5px solid var(--separator);
}

.row p,
.app-row p {
  font-size: 15px;
  color: var(--muted);
}

/* Rounded-square icons, as in System Settings */
.icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #fff;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-blue { background: linear-gradient(#3b9bff, #007aff); }
.icon-green { background: linear-gradient(#4cd964, #28b445); }
.icon-orange { background: linear-gradient(#ffad33, #ff9500); }
.icon-red { background: linear-gradient(#ff6961, #ff3b30); }
.icon-purple { background: linear-gradient(#c17bf0, #af52de); }
.icon-gray { background: linear-gradient(#a1a1a6, #8e8e93); }

.icon-flag { background: linear-gradient(#5b82f0, #2f55c8); }
.icon-flag svg { width: 34px; height: 34px; }

/* How we build, as a grid of cards */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.principle {
  padding: 22px 22px 24px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.principle .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
}

.principle .icon:not(.icon-flag) svg { width: 22px; height: 22px; }

.principle h3 { margin-bottom: 4px; }

.principle p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* App row, like a Mac App Store listing */
.app-row { gap: 16px; padding: 16px; }
.app-row:hover { text-decoration: none; background: var(--surface-2); }
.app-row img { flex-shrink: 0; }
.app-row h3 { font-size: 19px; }
.app-row-text { flex: 1; }

.pill {
  flex-shrink: 0;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 999px;
}

.app-row:hover .pill { color: #fff; background: var(--accent); }

/* Product page */
.hero.product { padding: 72px 0 0; }

/* Longer headline than the home page, so a size down to keep it on two lines */
.hero.product h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.hero.product .lede { max-width: 40em; text-wrap: balance; }

.app-icon {
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.app-name {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 600;
}

.download { margin-top: 32px; }
.download .fine { margin-top: 12px; }

/* Second download button after the feature cards */
.closing { text-align: center; padding-bottom: 32px; }

/* Push button, macOS accent style */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(#2a8cff, var(--accent));
  border-radius: 980px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
  transition: background 0.15s ease;
}

.button:hover {
  text-decoration: none;
  background: linear-gradient(#1a7ff0, var(--accent-hover));
}

.button:active { filter: brightness(0.92); }

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Screenshots */
.shot { margin-top: 64px; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}

/* Product demo: wider than the text column so it leads the page */
.demo {
  position: relative;
  left: 50%;
  width: min(1240px, calc(100vw - 48px));
  margin-top: 48px;
  transform: translateX(-50%);
}

.demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-window);
}

.demo-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 15px;
  color: var(--muted);
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  counter-increment: step;
}

.demo-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #2e8c80;
  border-radius: 50%;
}

/* Features: open rows, description on the left and example lines on the right */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
  padding: 44px 0;
  border-top: 0.5px solid var(--separator);
}

.feature:first-child { border-top: 0; padding-top: 0; }

.feature h2 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.feature-text p {
  max-width: 30em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

/* An image in a feature row's right column, like Meander's screenshots */
.feature-art {
  display: block;
  max-width: 100%;
  height: auto;
}

/* A window-like image: rounded corners and a window shadow, as in .shot */
.window-art {
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}

/* Example lines, set like text typed into Inlet */
.examples {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
  list-style: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.examples mark { white-space: nowrap; }

/* Before and after: the clicks Apple Reminders takes, then the same thing typed into Inlet */
.ba-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  list-style: none;
}

.steps li {
  padding: 5px 11px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 7px;
  box-shadow: 0 0 0 0.5px var(--hairline);
}

/* Smaller points, three across with no boxes */
.minor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-top: 44px;
  border-top: 0.5px solid var(--separator);
}

.minor:first-child { padding: 0 0 44px; border-top: 0; }
.minor .icon { margin-bottom: 12px; }
.minor h3 { margin-bottom: 4px; }

.minor p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Meander page: a warm off-white, with Meander's teal and the valley's colours */
.meander-page {
  --bg: #f7f6f2;
  --nav-bg: rgba(247, 246, 242, 0.72);
  --teal: #2e8c80;
  --teal-dark: #22695f;
  --teal-tint: rgba(46, 140, 128, 0.1);
  --ink: #12302c;
  /* One ink for all text, as LookAway does with white: secondary text is the
     ink at 80% on the page colour, mixed to a solid so it stays sharp */
  --text: var(--ink);
  --muted: #405854;
}

/* Soft valley-coloured glows behind the hero */
.m-hero { position: relative; isolation: isolate; }

.m-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -48px;
  left: 50%;
  width: 100vw;
  height: 130%;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 50% at 28% 32%, rgba(127, 184, 212, 0.42), transparent 70%),
    radial-gradient(38% 50% at 72% 32%, rgba(243, 196, 160, 0.3), transparent 70%),
    radial-gradient(30% 40% at 50% 70%, rgba(46, 140, 128, 0.16), transparent 70%);
  pointer-events: none;
}

/* The slowly moving sky drawn by site.js; the glows above stay as the fallback */
.m-sky {
  position: absolute;
  z-index: -1;
  top: -48px;
  left: 50%;
  width: 100vw;
  height: 130%;
  transform: translateX(-50%);
  filter: blur(40px);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
  opacity: 0;
  transition: opacity 2s ease-out;
  pointer-events: none;
}

.m-hero.live .m-sky { opacity: 1; }
.m-hero.live::before { opacity: 0; transition: opacity 2s ease-out; }

.m-icon {
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 18px 30px rgba(18, 48, 44, 0.28));
}

/* The app's name and what it is, between the icon and the headline */
.m-name {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.m-category {
  margin: 2px 0 22px;
  font-size: 17px;
  font-weight: 500;
  color: var(--teal-dark);
}

/* Even out heading lines so no word is left alone on the last one */
.meander-page h1,
.m-head h2 { text-wrap: balance; }

/* Solid ink headings, with one word picked out in teal italic */
.meander-page h1,
.m-head h2 {
  font-weight: 600;
  color: var(--ink);
}

.meander-page h1 em {
  font-style: italic;
  color: var(--teal);
}

/* The hero's lede a touch heavier, so the first paragraph reads firmly */
.m-hero .lede { font-weight: 500; }

/* Push buttons in Meander's teal */
.m-button { background: linear-gradient(#36a093, var(--teal)); }
.m-button:hover { background: linear-gradient(#2e8c80, var(--teal-dark)); }

/* On phones, under a download button turned into Send to my Mac */
.m-send-note { margin-top: 12px; font-size: 15px; color: var(--muted); text-wrap: balance; }
.m-valley .m-send-note { color: rgba(255, 255, 255, 0.7); }

/* The demo on a soft sky-to-sand backdrop instead of a laptop */
.m-demo {
  width: min(1180px, calc(100vw - 32px));
  margin-top: 64px;
  padding: clamp(16px, 5vw, 64px);
  border-radius: clamp(16px, 2.4vw, 32px);
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 244, 220, 0.7), transparent 70%),
    linear-gradient(160deg, #7fb8d4, #a8d0c6 48%, #f2cdb3);
  box-shadow: 0 30px 80px -30px rgba(18, 48, 44, 0.45);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.m-demo video { border-radius: clamp(6px, 1vw, 12px); }

.m-mb-app svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A centered heading over each big section */
.m-section { padding-top: 128px; }

.m-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.m-head h2 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.m-head p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

/* One desktop with the panel, the heads-up and the pointer pill on it */
.m-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  container-type: inline-size;
  background: url('valley-day.jpg') center 30% / cover;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 30px 80px -30px rgba(18, 48, 44, 0.5);
}

.m-menubar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 28px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.m-mb-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.m-mb-app {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.28);
}

.m-mb-app svg { width: 15px; height: 15px; }

/* A MacBook around the desktop: a black bezel with a camera, and an
   aluminium base with the notch for opening the lid */
.m-mac { position: relative; padding: 0 3.5%; }

.m-mac .m-stage {
  border: clamp(8px, 1.4vw, 16px) solid #0d0d0f;
  border-bottom-width: clamp(12px, 2vw, 24px);
  border-radius: clamp(14px, 2.2vw, 26px) clamp(14px, 2.2vw, 26px) 6px 6px;
  box-shadow: 0 0 0 1.5px #3a3a3e, 0 0 0 2.5px #c4c5ca, 0 30px 80px -30px rgba(18, 48, 44, 0.5);
}

.m-mac .m-stage::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: clamp(4px, 0.5vw, 6px);
  height: clamp(4px, 0.5vw, 6px);
  margin: calc(clamp(8px, 1.4vw, 16px) / -2 - clamp(2px, 0.25vw, 3px)) 0 0 calc(clamp(4px, 0.5vw, 6px) / -2);
  border-radius: 50%;
  background: #2a2d36;
}

.m-mac-base {
  position: relative;
  height: clamp(10px, 1.6vw, 20px);
  margin: 0 -3.5%;
  border-radius: 2px 2px clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) / 2px 2px 100% 100%;
  background: linear-gradient(#e6e7ea, #c9cace 55%, #9fa0a5);
  box-shadow: 0 18px 30px -14px rgba(18, 48, 44, 0.45);
}

.m-mac-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#b2b3b8, #d4d5d9);
}

/* An Emacs window where someone is working, until the break comes near */
.m-work {
  position: absolute;
  top: 27%;
  left: 13%;
  width: 54%;
  height: 64%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 22px 70px -12px rgba(0, 0, 0, 0.45), 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}

.m-work-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  color: #c8c8cc;
  background: #2a2a2c;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.8);
}

.m-work-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.m-work-bar i:nth-child(2) { background: #febc2e; }
.m-work-bar i:nth-child(3) { background: #28c840; }
.m-work-bar span { margin: 0 auto; padding-right: 54px; }

/* Emacs, showing a Magit diff, in a dark theme (Modus Vivendi's colours) */
.m-work { display: flex; flex-direction: column; }

.m-emacs {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.35cqw, 14px);
  line-height: 1.55;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.m-emacs div { min-height: 1.55em; }
.m-emacs { position: relative; }
.m-emacs div { padding: 0 4px; margin: 0 -4px; }
.m-diff-file { font-weight: 700; color: #fff; }
.m-diff-hunk { color: #c0c0c0; background: #2f2f2f; }
.m-diff-context { color: #c0c0c0; }
.m-diff-del { color: #ffbfbf; background: #4f1119; }
.m-diff-add { color: #a0e0a0; background: #00381f; }
.m-emacs .m-hl { box-shadow: inset 0 0 0 100vmax rgba(80, 110, 170, 0.28); }
.m-cursor { color: #000; background: #fff; }

.m-modeline, .m-minibuffer {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2cqw, 12.5px);
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
}

.m-modeline { padding: 0 6px; color: #fff; background: #505050; border-top: 1px solid #959595; }
.m-minibuffer { height: 1.7em; padding: 0 6px; color: #fff; background: #000; }


/* The heads-up card, easing in at the top of the screen */
.m-headsup {
  position: absolute;
  top: 9%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  width: clamp(250px, 40cqw, 380px);
  padding: 14px 16px 12px;
  border-radius: 16px;
  color: #1d1d1f;
  background: #fcfcfa;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 16px 40px -10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -14px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.m-hu-words { display: flex; flex-direction: column; min-width: 0; }
.m-hu-words b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-hu-words > span { font-size: 12px; line-height: 1.3; color: #86868b; white-space: nowrap; }

.m-hu-snooze, .m-hu-start {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: #eeeeee;
}

.m-hu-start { color: #fff; background: var(--teal); }

.m-hu-bar {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(46, 140, 128, 0.15);
}

.m-hu-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s linear;
}

/* The pointer, with the pill that rides beside it. When the visitor's own
   pointer is over the desktop, the pill follows theirs instead. */
.m-pointer {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  will-change: transform;
}

.m-arrow {
  width: 22px;
  height: 22px;
  fill: #1d1d1f;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform: translate(-5px, -3px);
}

.m-stage.is-own-pointer .m-arrow { visibility: hidden; }

/* Near the right edge the pill moves to the left of the pointer */
.m-pointer.flip { flex-direction: row-reverse; }
.m-pointer.flip .m-pill { margin: 16px -2px 0 0; transform-origin: 100% 0; }

.m-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0 -2px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #fff;
  background: rgba(36, 36, 38, 0.88);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 0 0;
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.m-pill-tile {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(#36a093, var(--teal));
}

.m-pill-tile svg { width: 14px; height: 9px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-pill-tile path { stroke: rgba(255, 255, 255, 0.35); }
.m-pill-tile path + path { stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s linear; }

.m-stage.is-warning .m-headsup { opacity: 1; transform: translateX(-50%); }
.m-stage.is-warning .m-pill { opacity: 1; transform: none; }

/* The break itself, briefly, before the loop starts over */
.m-break {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(10, 30, 40, 0.15), rgba(10, 30, 40, 0.3)), url('valley-day.jpg') center 30% / cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.m-break p {
  margin: 0 0 12%;
  font-family: var(--font-serif);
  font-size: clamp(28px, 5cqw, 52px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.m-stage.is-break .m-break { opacity: 1; }

/* Three feature cards under the desktop */
.m-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.m-cards > div {
  padding: 24px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.m-cards h3 { margin-bottom: 6px; }
.m-cards p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Why every hour: one finding per column, a headline with a line of detail and its source */
.m-findings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.m-findings li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.m-findings h3 { margin-bottom: 4px; color: var(--ink); }
/* Each finding is set apart as a research result, with its study cited underneath */
.m-findings p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.m-findings li > div { display: flex; flex-direction: column; flex: 1; }

.m-source {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.m-source::before {
  content: "";
  display: block;
  margin-bottom: 10px;
  border-top: 1px solid var(--hairline);
}

.m-source span { font-weight: 600; color: var(--ink); }
.m-source i { opacity: 0.85; }
.m-source abbr { text-decoration: none; cursor: help; }

.m-findings .icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.m-findings .icon svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* What Meander waits for, as a row of chips */
.m-label {
  margin: 56px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.m-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 7px;
  font-size: 15px;
  font-weight: 500;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* System Settings style tiles, as in .icon, a size down */
.m-chips .icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.m-chips .icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.m-chips .icon svg.solid { fill: currentColor; stroke: none; }

.m-chips-note {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}

/* Settings: the window on the valley desktop, stepping through each page of its sidebar */
.m-settings-desk {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: url('valley-dusk.jpg') center 30% / cover;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 30px 80px -30px rgba(18, 48, 44, 0.5);
}

.m-settings {
  position: relative;
  width: 58%;
  aspect-ratio: 7 / 6;
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15), 0 30px 60px -16px rgba(0, 0, 0, 0.5);
}

.m-settings img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* The next page fades in over the last one, which stays put underneath until it's covered */
.m-settings img.on { z-index: 1; opacity: 1; }
.m-settings img.last { opacity: 1; transition: none; }

/* The valley, full width on a deep teal band */
.m-valley {
  width: 100vw;
  margin: 128px 0 0 calc(50% - 50vw);
  padding: 96px 24px 88px;
  color: #fff;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(127, 184, 212, 0.18), transparent 70%),
    #12302c;
}

.m-valley .m-head h2 { color: #fff; }

.m-valley .m-head p { color: rgba(255, 255, 255, 0.6); }

.m-valley-view {
  position: relative;
  max-width: 1080px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.m-valley-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.m-valley-view img.on { opacity: 1; }

.m-times {
  display: flex;
  width: max-content;
  margin: 28px auto 0;
  padding: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.m-times button {
  padding: 7px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.m-times button:hover { color: #fff; }
.m-times [aria-pressed="true"] { color: var(--ink); background: #fff; }

/* A last download button under the valley, white on the dark band */
.m-valley-download { margin-top: 48px; text-align: center; }
.m-valley-download .fine { color: rgba(255, 255, 255, 0.6); }

.m-button-light {
  color: var(--ink);
  background: #fff;
}

.m-button-light:hover { background: #e9f1ef; }

.m-valley-note {
  margin-top: 18px;
  font-size: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Privacy: a heading and one line linking to the policy */
.m-private .m-head p a { color: var(--teal-dark); font-weight: 500; }

/* Meander's guides: a readable column of text in the page's ink and serif */
.m-guides,
.m-article {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 56px;
}

.m-back {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-dark);
}

/* Guides use one typeface throughout, as long reading is easier without the serif */
.m-guides h1,
.m-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.m-guides .lede { margin: 14px 0 0; text-align: left; }
.m-byline {
  margin-top: 22px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 0.5px solid var(--separator);
  border-bottom: 0.5px solid var(--separator);
}

/* Each guide's picture, under the byline, and in the guide list */
.m-article-hero,
.m-guide-list img,
.m-more img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(18, 48, 44, 0.45);
}

.m-article-hero { margin-top: 32px; }

.m-guide-list { margin-top: 40px; list-style: none; }

.m-guide-list li + li { margin-top: 16px; }

.m-guide-list img { margin-bottom: 20px; border-radius: 12px; box-shadow: none; }

.m-guide-list a {
  display: block;
  padding: 16px 16px 22px;
  color: inherit;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.m-guide-list a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 0.5px var(--hairline), 0 12px 30px -12px rgba(18, 48, 44, 0.3);
}

.m-guide-list h2 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}

.m-guide-list p { font-size: 16px; color: var(--muted); }
.m-guide-list .fine { margin-top: 10px; font-size: 13px; }

.m-article-body {
  margin-top: 36px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

.m-article-body > * + * { margin-top: 18px; }

/* The opening paragraph, larger, as a summary */
.m-article-body > p:first-child { font-size: 21px; line-height: 1.55; }

.m-article-body strong { font-weight: 600; }

.m-article-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(18, 48, 44, 0.45);
}

.m-article-body table {
  width: 100%;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.5;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.m-article-body th,
.m-article-body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 0.5px solid var(--separator);
}

.m-article-body thead th { font-weight: 600; border-top: 0; background: var(--teal-tint); }

.m-article-body h2 {
  margin-top: 44px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.m-article-body ul { padding-left: 1.2em; }
.m-article-body li + li { margin-top: 10px; }
.m-article-body a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* The sources list under the last heading, set smaller */
.m-article-body h2:last-of-type ~ ul { font-size: 15px; color: var(--muted); }

/* Other guides, after the Meander card */
.m-more { max-width: 680px; margin: 64px auto 0; }

.m-more > h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 650;
  color: var(--ink);
}

.m-more ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; }
.m-more a { display: block; color: var(--ink); }
.m-more a:hover { text-decoration: none; }
.m-more img { margin-bottom: 12px; border-radius: 12px; }
.m-more h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }

/* Meander, with a download button, at the end of each guide */
.m-article-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 56px auto 0;
  padding: 24px;
  background: var(--teal-tint);
  border-radius: 20px;
}

.m-article-cta img { flex-shrink: 0; filter: drop-shadow(0 8px 16px rgba(18, 48, 44, 0.25)); }
.m-article-cta h2 { font-size: 19px; color: var(--ink); }
.m-article-cta p { font-size: 15px; color: var(--muted); }
.m-article-cta .button { flex-shrink: 0; margin-left: auto; font-size: 15px; }
.m-article-cta .m-send-note { display: none; }

@media (max-width: 760px) {
  .m-article-body { font-size: 17px; }
  .m-article-body h2 { font-size: 22px; }
  .m-article-body > p:first-child { font-size: 19px; }
  .m-article-body table { font-size: 14px; }
  .m-article-body th, .m-article-body td { padding: 10px; }
  .m-more ul { grid-template-columns: 1fr; }
  .m-article-cta { flex-direction: column; text-align: center; }
  .m-article-cta .button { margin-left: 0; }
}

/* Findings go two by two on narrower screens before stacking on phones */
@media (max-width: 1000px) and (min-width: 761px) {
  .m-findings { grid-template-columns: repeat(2, 1fr); }
}

/* Rising into view on scroll; site.js adds .reveal, then .in once it's on screen */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .m-demo { animation: none; }
  .m-valley-view img { transition: none; }
  .m-settings img { transition: none; }
}

@media (max-width: 760px) {
  .m-cards { grid-template-columns: 1fr; }
  .m-findings { grid-template-columns: 1fr; }
  .m-section { padding-top: 88px; }
  .m-head p { font-size: 17px; }
  .m-stage { aspect-ratio: 4 / 3; background-position: 40% center; }
  .m-menubar > span:not(.m-mb-right) { display: none; }
  .m-mac { padding: 0 2%; }
  .m-mac-base { margin: 0 -2%; }
  .m-work { top: 24%; left: 5%; width: 90%; height: 72%; }
  .m-headsup { top: 12%; width: 80%; padding: 9px 11px 8px; gap: 6px; border-radius: 12px; }
  .m-hu-words b { font-size: 13px; }
  .m-hu-words > span { font-size: 10.5px; white-space: normal; }
  .m-hu-snooze, .m-hu-start { padding: 4px 8px; font-size: 11px; }
  .m-hu-bar { margin-top: 3px; }
  .m-pill { gap: 6px; padding: 3px 9px 3px 3px; font-size: 12px; }
  .m-pill-tile { width: 18px; height: 18px; border-radius: 5px; }
  .m-menubar { height: 22px; font-size: 11px; }
  .m-break p { font-size: 24px; }
  .m-valley { margin-top: 88px; padding: 64px 16px; }
  .m-valley-view, .m-stage, .m-settings-desk { border-radius: 16px; }
  .m-settings-desk { aspect-ratio: 4 / 5; }
  .m-settings { width: 88%; }
  .m-times button { padding: 6px 13px; }
}

/* Long-form text such as the privacy policy */
.prose {
  max-width: 760px;
  margin: 56px auto 0;
}

.prose-body { padding: 40px 48px 48px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 6px; }
.prose h2 { font-size: 20px; margin-top: 30px; }
.prose p,
.prose ul { margin-top: 10px; font-size: 16px; color: var(--muted); }
.prose .eyebrow { margin-bottom: 8px; color: var(--accent); }
.prose .back { display: inline-block; margin-bottom: 20px; font-size: 15px; font-weight: 500; }
.prose ul { padding-left: 1.3em; }
.prose li { padding: 2px 0; }

/* Footer: KeyShore and a line about it, columns of links, then the small print */
footer {
  margin-top: 96px;
  border-top: 0.5px solid var(--separator);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-about p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.footer-col h2 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
  /* A rule as wide as the text, inside the wrap's side padding */
  background: linear-gradient(var(--separator), var(--separator)) top center / calc(100% - 48px) 1px no-repeat;
}

.footer-bottom .heart { color: #ff3b30; }

@media (max-width: 600px) {
  h1 br { display: none; }
  .demo { width: calc(100vw - 24px); margin-top: 36px; }
  .demo video { border-radius: 8px; }
  .demo-steps { justify-content: flex-start; flex-direction: column; padding-left: 12px; }
  .hero { padding-top: 56px; }
  .lede { font-size: 18px; }
  .desktop { height: 400px; margin-top: 40px; }
  .mb-extra { display: none; }
  .menubar { gap: 14px; }
  .panel { top: 22%; }
  .panel-input { min-height: 54px; padding: 14px 16px 4px; font-size: 18px; }
  .panel-chips { padding: 4px 16px 10px; }
  .panel-list { display: none; }
  .app-row .pill { display: none; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature h2 { font-size: 26px; }
  .examples { font-size: 18px; gap: 10px; }
  .prose-body { padding: 28px 22px 32px; }
  .principles { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-col a { padding: 4px 0; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}

/* Questions: in the feature cards' style */
.m-faq .m-cards h3 { font-size: 17px; }
