/* 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;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  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; }

/* 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 {
  font-size: 13px;
  color: var(--text);
  opacity: 0.8;
}

.nav nav a:hover { opacity: 1; text-decoration: none; }

/* 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: 50%;
  width: min(580px, calc(100% - 32px));
  transform: translateX(-50%);
  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: translate(-50%, -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); }

/* 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; }

.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);
}

/* 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);
}

/* 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; }

/* 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 .icon { margin-bottom: 12px; }
.minor h3 { margin-bottom: 4px; }

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

/* 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 ul { padding-left: 1.3em; }
.prose li { padding: 2px 0; }

/* Footer */
footer {
  margin-top: 96px;
  border-top: 0.5px solid var(--separator);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 28px;
}

.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

@media (max-width: 600px) {
  h1 br { display: none; }
  .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; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p { text-align: left; }
}
