:root {
  --bg: #faf9f6;
  --raised: #ffffff;
  --ink: #252d29;
  --ink-deep: #16232b;
  --muted: #5f6862;
  --faint: #8d958c;
  --line: #e4e5de;
  --accent: #416853;
  --accent-soft: #e3ebe4;
  --wall: radial-gradient(60% 80% at 82% 18%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(160deg, #a8cddd 0%, #cfd9d3 55%, #e8dfcc 100%);
  --dusk: radial-gradient(60% 50% at 75% 15%, rgba(163, 212, 180, 0.18), transparent 60%), linear-gradient(165deg, #33465a 0%, #7b8ea0 100%);
  --font: 'Segoe UI Variable Text', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
  --display: 'Segoe UI Variable Display', 'Segoe UI', -apple-system, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --widget-shadow: 0 34px 70px -26px rgba(22, 35, 43, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---- header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
header.scrolled { border-bottom-color: var(--line); }
header .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14.5px; }
nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
nav a:hover { color: var(--ink); }
.nav-dl {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-deep);
  color: #fff;
  font: 600 16px var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(22, 35, 43, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(22, 35, 43, 0.6); }
.btn svg { width: 17px; height: 17px; }
.meta { font-size: 13.5px; color: var(--muted); }
/* Two downloads: the visitor's own system leads, the other is a quiet second. */
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
[data-os="mac"] .btn, html.mac [data-os="win"] .btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-deep);
  box-shadow: inset 0 0 0 1px rgba(22, 35, 43, 0.14), 0 10px 24px -16px rgba(22, 35, 43, 0.45);
}
html.mac [data-os="mac"] .btn { background: var(--ink-deep); color: #fff; box-shadow: 0 12px 28px -12px rgba(22, 35, 43, 0.55); }
html.mac [data-os="mac"] { order: -1; }
.phone-only { display: none; }
@media (pointer: coarse) and (max-width: 860px) {
  .desk-only { display: none !important; }
  .phone-only { display: block; }
}

/* ---- hero ---- */
.hero {
  position: relative;
  margin: 8px 16px 0;
  border-radius: 36px;
  background: var(--wall);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 680px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink-deep); }
h1 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.lead { margin: 26px 0 38px; max-width: 30em; font-size: 17.5px; color: #3a4952; }
.cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 16px; }
.cta .sub { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.phone-note { margin: 12px 0 0; max-width: 24em; font-size: 14px; color: #3a4952; }

.stage { position: relative; height: 560px; }
.stage .w {
  position: absolute;
  border-radius: 9px;
  box-shadow: var(--widget-shadow);
}
.stage .w-tasks { right: 2%; top: 0; width: 330px; }
.stage .w-today { left: 0; bottom: 18px; width: 300px; }

/* ---- sections ---- */
section { padding: 128px 0 0; }
.head { max-width: 640px; margin-bottom: 64px; }
h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.head p { margin: 18px 0 0; color: var(--muted); font-size: 17px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.points .n { font: 200 44px/1 var(--display); color: var(--accent); letter-spacing: -0.02em; }
.points h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 600; }
.points p { margin: 0; color: var(--muted); }
.points > div { padding-top: 28px; border-top: 1px solid var(--line); }

.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}
.feature:nth-of-type(even) .tile { order: 2; }
.tile {
  display: grid;
  place-items: center;
  gap: 28px;
  min-height: 560px;
  padding: 64px 40px;
  border-radius: 32px;
  background: var(--wall);
}
.tile img { border-radius: 9px; box-shadow: var(--widget-shadow); }
.tile .tall { width: min(330px, 100%); }
.tile .wide { width: min(330px, 100%); }
.tile.pair { grid-template-columns: 1fr 1fr; place-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.tile.pair > div { display: grid; place-items: center; height: 100%; min-height: 560px; padding: 40px 28px; }
.tile.pair > div + div { background: var(--dusk); }
.tile.pair img { width: 100%; max-width: 280px; }
/* The Mac pictures carry the widget's own rounded corners with clear pixels outside them, so their
   shadow follows that shape; a box shadow would show square corners. */
html.mac .stage .w[data-mac], html.mac .tile img[data-mac] { border-radius: 0; box-shadow: none; filter: drop-shadow(0 26px 30px rgba(22, 35, 43, 0.3)); }
/* The Mac desktop is a wide picture: the words above it, the picture the full width. */
.feature.full { grid-template-columns: 1fr; gap: 40px; }
.feature.full > div:not(.tile) { max-width: 680px; }
.feature.full .tile { order: 2; }
.tile.desktop { min-height: 0; padding: 0; overflow: hidden; }
.tile.desktop img { width: 100%; border-radius: 0; box-shadow: none; }
.label { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.feature h3 { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; }
.feature p { margin: 0 0 14px; color: var(--muted); }

/* ---- install & connect ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 32px 30px 30px;
  border-radius: 24px;
  background: var(--raised);
  border: 1px solid var(--line);
}
.card .n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 14px var(--font);
}
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }
.card b { color: var(--ink); font-weight: 600; }

.connect { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 80px; }
.connect .card { padding: 0; overflow: hidden; }
.connect .media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 400px;
  padding: 40px 32px 0;
  background: var(--wall);
  overflow: hidden;
}
.connect .media.center { align-items: center; padding: 32px; }
.connect .media img { border-radius: 8px; box-shadow: 0 20px 40px -18px rgba(22, 35, 43, 0.4); }
.connect .media .tall { width: min(320px, 86%); }
.connect .body { padding: 30px 32px 32px; }
.connect .n { margin-bottom: 16px; }
.note { margin: 28px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---- faq ---- */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  font: 500 18px var(--display);
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease-out);
}
details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details p { margin: -6px 4px 26px; max-width: 42em; color: var(--muted); }
code { font: 14px Consolas, 'SF Mono', monospace; padding: 2px 6px; border-radius: 6px; background: #eeefe9; }

/* ---- closing ---- */
.closing {
  margin: 140px 16px 0;
  padding: 112px 24px;
  border-radius: 36px;
  background: var(--wall);
  text-align: center;
}
.closing h2 { margin-bottom: 36px; }
.closing .cta { justify-content: center; }
.closing .dl { align-items: center; }
.closing .sub { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.closing .phone-note { margin-left: auto; margin-right: auto; }

footer { padding: 48px 0 56px; font-size: 13.5px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
footer .brand { font-size: 14px; color: var(--muted); }
footer .brand img { width: 24px; height: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .right { margin-left: auto; display: flex; gap: 24px; }
footer .legal { flex-basis: 100%; margin: 6px 0 0; font-size: 12.5px; }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.stage .w { animation: rise 1.1s var(--ease-out) both; }
.stage .w-today { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stage .w { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- narrow ---- */
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  nav a:not(.nav-dl):not(.lang) { display: none; }
  .hero { margin: 4px 8px 0; border-radius: 28px; }
  h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 0; gap: 48px; }
  .stage { height: 460px; }
  .stage .w-tasks { width: 62%; max-width: 300px; right: 0; }
  .stage .w-today { width: 62%; max-width: 280px; bottom: 32px; }
  section { padding-top: 96px; }
  .head { margin-bottom: 44px; }
  .points, .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps { gap: 16px; }
  .feature { grid-template-columns: 1fr; gap: 36px; margin-bottom: 88px; }
  .feature:nth-of-type(even) .tile { order: 0; }
  .tile { min-height: 0; padding: 48px 28px; border-radius: 26px; }
  .tile.pair > div { min-height: 0; padding: 36px 16px; }
  .connect { grid-template-columns: 1fr; margin-top: 56px; }
  .connect .media { height: 300px; padding: 28px 22px 0; }
  .connect .media.center { padding: 20px; }
  .closing { margin: 96px 8px 0; padding: 80px 24px; border-radius: 28px; }
  footer .right { margin-left: 0; }
}
