/* Checkie landing page.
   A (Liquid Glass Night): glass, glow, the device stage — where the product is shown.
   F (Precision Dark): 80 px grid, mono values, the sync diagram — where it is explained.
   Colours inside the devices come from the app (AppTheme, ListTheme dark variants). */

/* Theme colours animate when a theme is picked. */
@property --g1 { syntax: "<color>"; inherits: true; initial-value: #9C77F7; }
@property --g2 { syntax: "<color>"; inherits: true; initial-value: #6890F8; }
@property --t-bg { syntax: "<color>"; inherits: true; initial-value: #232032; }
@property --t-text { syntax: "<color>"; inherits: true; initial-value: #CDC3FB; }
@property --t-tint { syntax: "<color>"; inherits: true; initial-value: #8E7DF5; }

:root {
  --night: #07060D;
  --ink: #F2F1F4;
  --haze: #A5A3AB;
  --quiet: #85838C;
  --lilac: #CDC3FB;
  --hair: rgba(242, 241, 244, .08);
  --hair-strong: rgba(242, 241, 244, .14);

  /* the list theme (violet by default) */
  --g1: #9C77F7;
  --g2: #6890F8;
  --t-bg: #232032;
  --t-text: #CDC3FB;
  --t-tint: #8E7DF5;

  /* app surfaces, dark */
  --win: #161619;
  --card: #222226;
  --side: #1D1D22;

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

  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  transition: --g1 .5s ease, --g2 .5s ease, --t-bg .5s ease, --t-text .5s ease, --t-tint .5s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--night);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.glass {
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .13);
}

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 7px 7px 7px 12px; border-radius: 999px;
  background: rgba(16, 14, 24, .55);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand span { font: 800 16px/1 var(--rounded); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: rgba(242, 241, 244, .72); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--night); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
}
.nav-cta:hover { color: var(--night); background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--night); }
.btn-primary:hover { background: #fff; color: var(--night); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

/* Apple's App Store badge: used as supplied (no hover effect, no resizing below 40 px).
   Its clear space, a quarter of its height, is 12 px: keep neighbours at least that far. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { display: block; width: 144px; height: 48px; }

/* ---------- Glow (A) ---------- */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(40px); }
.glow-a { background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 44%, transparent), transparent); }
.glow-b { background: radial-gradient(closest-side, color-mix(in srgb, var(--g2) 38%, transparent), transparent); }
.hero .glow-a { left: 12%; top: 46%; width: 66%; height: 62%; }
.hero .glow-b { left: 42%; top: 56%; width: 52%; height: 52%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 0; overflow: hidden; isolation: isolate; }
.hero::after { /* hairline at the very top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 195, 251, .35), transparent);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000, transparent 75%);
  opacity: .7;
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px; text-align: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.045em; }
.hero .lead { max-width: 600px; }
.lead { font-size: 19px; line-height: 1.55; color: rgba(242, 241, 244, .72); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.try { color: var(--quiet); }

/* The stage holds the devices at a fixed design size; main.js scales it to fit. */
.stage { --w: 1280px; --h: 600px; --s: 1; position: relative; z-index: 1; height: calc(var(--h) * var(--s)); margin-top: 36px; }
.stage-inner {
  position: absolute; left: 50%; top: 0; width: var(--w); height: var(--h);
  transform: translateX(-50%) scale(var(--s)); transform-origin: top center;
}
.stage::after { /* devices fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 6; pointer-events: none;
  background: linear-gradient(transparent, var(--night));
}
.dev { position: absolute; left: var(--x); top: var(--y); transform: scale(var(--k, 1)); transform-origin: 0 0; }
.dev-ipad   { --x: 16px;   --y: 98px;  z-index: 1; }
.dev-mac    { --x: 282px;  --y: 40px;  z-index: 2; }
.dev-iphone { --x: 1016px; --y: 70px;  z-index: 3; }
.dev-watch  { --x: 258px;  --y: 270px; z-index: 4; }
.chip       { position: absolute; left: 876px; top: 0; z-index: 5; }

.stage[data-layout="narrow"] { --w: 440px; --h: 600px; }
.stage[data-layout="narrow"]::after { height: 56px; }
.stage[data-layout="narrow"] .dev-mac    { --x: 22px;  --y: 0;     --k: .52; }
.stage[data-layout="narrow"] .dev-ipad   { --x: 0;     --y: 214px; --k: .6; }
.stage[data-layout="narrow"] .dev-iphone { --x: 256px; --y: 204px; --k: .76; }
.stage[data-layout="narrow"] .dev-watch  { --x: 148px; --y: 340px; --k: .74; }
.stage[data-layout="narrow"] .chip       { left: 50%; top: 236px; transform: translateX(-50%); display: none; }

/* one orchestrated entrance */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
.dev-mac .rise { --d: .05s; }
.dev-ipad .rise { --d: .15s; }
.dev-iphone .rise { --d: .25s; }
.dev-watch .rise { --d: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.chip { animation: fade .6s ease .7s both; }
@keyframes fade { from { opacity: 0; } }

.chip {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 10px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  transition: box-shadow .3s ease;
}
.chip .ck { width: 20px; height: 20px; }
.chip.is-syncing { box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 25%, transparent); }
.chip.is-syncing .ck { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Device chrome ---------- */
.ui { font-family: var(--rounded); color: var(--ink); }
.screen { overflow: hidden; position: relative; }
.list-title { color: var(--t-text); font-weight: 800; letter-spacing: -.01em; }
.count { color: color-mix(in srgb, var(--t-text) 60%, transparent); font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot-theme { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.dot-mint { background: linear-gradient(135deg, #40C592, #1FAA9B); }
.dot-peach { background: linear-gradient(135deg, #F2966F, #E2679B); }
.dot-sky { background: linear-gradient(135deg, #639AF8, #4FC3F5); }

/* the CheckCircle */
.ck {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(242, 241, 244, .32);
  transition: background-color .2s ease, box-shadow .2s ease, transform .25s var(--ease);
}
.ck svg { width: 64%; height: 64%; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .25s ease .05s; }
.ck.is-on, [aria-pressed="true"] > .ck {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--g1) 45%, transparent);
}
.ck.is-on svg, [aria-pressed="true"] > .ck svg { stroke-dashoffset: 0; }

/* rows (built by main.js) */
.list { display: flex; flex-direction: column; min-height: 0; }
.row {
  all: unset; box-sizing: border-box; display: flex; align-items: center; width: 100%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.row:focus-visible { outline: 2px solid var(--t-text); outline-offset: 1px; border-radius: 8px; }
.row .lbl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); transition: color .2s ease; }
.row[aria-pressed="true"] .lbl { text-decoration: line-through; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.row[aria-pressed="true"] > .ck { opacity: .7; }
.row:active > .ck { transform: scale(.88); }
.row.is-flash > .ck { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
.done-head { display: flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--t-text) 62%, transparent); font-weight: 700; }
.done-head::before { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.more { color: color-mix(in srgb, var(--t-text) 55%, transparent); font-weight: 600; }
[hidden] { display: none !important; }

.add-field {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}
.add-field span:first-child { flex: 1; }
.mic { width: 9px; height: 13px; border: 1.6px solid currentColor; border-radius: 6px; position: relative; opacity: .9; }
.mic::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 1.6px; height: 3px; background: currentColor; transform: translateX(-50%); }

/* iPad */
.ipad {
  width: 330px; height: 450px; padding: 12px; border-radius: 32px;
  background: #1B1B20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px rgba(0, 0, 0, .55);
}
.ipad-screen { width: 100%; height: 100%; border-radius: 21px; display: flex; background: var(--t-bg); }
.side { width: 112px; flex: none; background: var(--side); padding: 20px 8px; display: flex; flex-direction: column; gap: 4px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; font-size: 14px; font-weight: 800; }
.plus { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #4F7DF9); position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.6px; background: #fff; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.side-row { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 10px; }
.side-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-row b { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row small { font-size: 9px; color: var(--haze); }
.side-row.is-selected { background: var(--t-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t-tint) 80%, transparent); }
.side-row.is-selected b { color: var(--t-text); }
.detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ipad .detail { padding: 22px 16px 14px; }
.ipad .list-title { font-size: 21px; }
.ipad .count { font-size: 11px; }
.ipad .list { margin-top: 10px; }
.ipad .row { gap: 9px; padding: 7px 0; }
.ipad .ck { width: 18px; height: 18px; }
.ipad .lbl { font-size: 12px; }
.ipad .done-head { font-size: 10px; padding: 8px 0 3px; }
.ipad .add-field { padding: 9px 10px; font-size: 11px; }

/* Mac */
.mac { width: 760px; height: 430px; position: relative; }
.mac-lid {
  position: absolute; left: 60px; top: 0; width: 640px; height: 400px; padding: 12px;
  border-radius: 20px 20px 6px 6px; background: #0E0E12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px rgba(0, 0, 0, .6);
}
.mac-screen {
  width: 100%; height: 100%; border-radius: 9px;
  background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--g1) 30%, #1a1530), #121020 55%, #0B0A12);
}
.mac-base { position: absolute; left: 0; top: 400px; width: 760px; height: 18px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#2A2A31, #141418); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.mac-base span { position: absolute; left: 50%; top: 0; width: 100px; height: 6px; border-radius: 0 0 6px 6px; background: #0B0B0E; transform: translateX(-50%); }
.menubar { height: 18px; display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 9px; background: rgba(0, 0, 0, .35); color: rgba(242, 241, 244, .82); }
.menubar-time { margin-left: auto; }

.widget { background: var(--t-bg); display: flex; flex-direction: column; }
.widget-head { display: flex; align-items: center; gap: 6px; }
.widget-head .list-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-mic, .w-plus { flex: none; border-radius: 50%; position: relative; }
.w-mic { background: var(--t-tint); }
.w-mic::before { content: ""; position: absolute; left: 50%; top: 22%; width: 30%; height: 40%; border-radius: 99px; background: #fff; transform: translateX(-50%); }
.w-plus { background: color-mix(in srgb, var(--t-text) 16%, transparent); }
.w-plus::before, .w-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 1.6px; background: var(--t-text); transform: translate(-50%, -50%); }
.w-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.widget .list { border-top: 1px solid color-mix(in srgb, var(--t-text) 16%, transparent); }

.widget-mac { position: absolute; left: 14px; top: 32px; width: 196px; padding: 11px 12px 10px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.widget-mac .list-title { font-size: 12px; }
.widget-mac .count { font-size: 9px; }
.widget-mac .w-mic, .widget-mac .w-plus { width: 16px; height: 16px; }
.widget-mac .list { margin-top: 7px; padding-top: 5px; }
.widget-mac .row { gap: 7px; padding: 3px 0; }
.widget-mac .ck { width: 13px; height: 13px; box-shadow: inset 0 0 0 1.5px rgba(242, 241, 244, .32); }
.widget-mac .lbl { font-size: 10px; }
.widget-mac .more { font-size: 9px; padding-top: 3px; }

.window {
  position: absolute; left: 226px; top: 30px; width: 376px; height: 324px; border-radius: 12px; overflow: hidden; display: flex;
  background: var(--t-bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 18px 40px rgba(0, 0, 0, .5);
}
.win-side { width: 112px; flex: none; background: var(--side); padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.lights { display: flex; gap: 5px; padding: 0 4px 12px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.win-side .side-head { font-size: 12px; padding-bottom: 6px; }
.window .detail { padding: 26px 16px 12px; }
.window .list-title { font-size: 19px; }
.window .count { font-size: 10px; }
.window .list { margin-top: 8px; }
.window .row { gap: 8px; padding: 6px 0; }
.window .ck { width: 16px; height: 16px; }
.window .lbl { font-size: 11.5px; }
.window .done-head { font-size: 9.5px; padding: 6px 0 2px; }
.window .add-field { padding: 8px 10px; font-size: 10.5px; border-radius: 10px; }

/* iPhone */
.iphone {
  width: 224px; height: 460px; padding: 9px; border-radius: 44px;
  background: #1B1B20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6);
}
.iphone-screen { width: 100%; height: 100%; border-radius: 36px; background: var(--t-bg); padding: 12px 15px 14px; display: flex; flex-direction: column; }
.status { display: flex; align-items: center; justify-content: space-between; height: 20px; padding: 0 10px; font-size: 11px; font-weight: 700; }
.island { width: 64px; height: 19px; border-radius: 12px; background: #000; }
.bars { width: 26px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.2px rgba(242, 241, 244, .7); position: relative; }
.bars::after { content: ""; position: absolute; inset: 2px 6px 2px 2px; border-radius: 1px; background: var(--ink); }
.back { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--t-tint); display: flex; align-items: center; gap: 4px; }
.back::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.iphone .title-row { margin-top: 8px; }
.iphone .list-title { font-size: 24px; }
.iphone .count { font-size: 12px; }
.iphone .list { margin-top: 8px; }
.iphone .row { gap: 10px; padding: 8px 0; }
.iphone .ck { width: 20px; height: 20px; }
.iphone .lbl { font-size: 13px; }
.iphone .done-head { font-size: 11px; padding: 8px 0 3px; }
.iphone .add-field { padding: 10px 10px 10px 12px; font-size: 12px; border-radius: 14px; }
.add-plus { width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); position: relative; }
.add-plus::before, .add-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.add-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Apple Watch */
.watch { width: 158px; height: 300px; position: relative; }
.band { position: absolute; left: 27px; width: 98px; height: 82px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.band-top { top: 0; border-radius: 18px 18px 6px 6px; background: linear-gradient(#26262D, #1A1A1F); }
.band-bottom { top: 218px; border-radius: 6px 6px 18px 18px; background: linear-gradient(#1A1A1F, #26262D); }
.crown { position: absolute; left: 148px; top: 112px; width: 8px; height: 30px; border-radius: 4px; background: #3A3A42; }
.watch-case {
  position: absolute; left: 0; top: 58px; width: 152px; height: 184px; padding: 9px; border-radius: 46px;
  background: #2A2A31; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .7);
}
.watch-screen { width: 100%; height: 100%; border-radius: 38px; background: #000; padding: 14px 11px 8px; display: flex; flex-direction: column; gap: 5px; }
.watch-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 5px; font-size: 10px; font-weight: 600; }
.watch-head .list-title { font-size: 12px; }
.watch .list { gap: 4px; }
.watch .row { gap: 7px; padding: 6px 8px; border-radius: 13px; background: #1F1F23; }
.watch .row[aria-pressed="true"] { opacity: .55; }
.watch .row[aria-pressed="true"] > .ck { opacity: 1; }
.watch .ck { width: 15px; height: 15px; box-shadow: inset 0 0 0 1.5px rgba(242, 241, 244, .32); }
.watch .lbl { font-size: 10px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 128px 0; }
.section h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; max-width: 22ch; }
.section .lead { margin-top: 20px; max-width: 58ch; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  opacity: .55;
}
main { position: relative; z-index: 0; }

/* Devices */
.device-cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--hair-strong); }
.device-col { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.device-col + .device-col { padding-left: 28px; border-left: 1px solid var(--hair); }
.glyph { width: 40px; height: 40px; fill: none; stroke: var(--lilac); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 14px; }
.device-col h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.device-col .os { color: var(--quiet); }
.device-col p:last-child { color: var(--haze); font-size: 16px; margin-top: 6px; }

/* Sync */
.sync-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.spec { margin: 40px 0 0; border-bottom: 1px solid var(--hair-strong); }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair-strong); }
.spec dt { color: var(--haze); font-size: 15px; }
.spec dd { margin: 0; color: var(--ink); align-self: center; }

.diagram { position: relative; aspect-ratio: 560 / 440; width: 100%; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines path { fill: none; stroke: color-mix(in srgb, var(--g1) 55%, transparent); stroke-width: 1.4; stroke-dasharray: 4 6; transition: stroke .3s ease; }
.lines path.is-hot { stroke: var(--lilac); }
.pulses circle { fill: #fff; filter: drop-shadow(0 0 6px var(--g1)); }
.cloud {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--g1) 14%, #0c0b14);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1) 45%, transparent), 0 0 60px color-mix(in srgb, var(--g1) 35%, transparent);
  font-weight: 600; font-size: 15px;
}
.cloud svg { width: 20px; height: 20px; fill: none; stroke: var(--lilac); stroke-width: 1.8; stroke-linejoin: round; }
.cloud.is-hot { box-shadow: inset 0 0 0 1px var(--lilac), 0 0 80px color-mix(in srgb, var(--g1) 60%, transparent); }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.node:hover { background: rgba(255, 255, 255, .1); }
.node .mono { color: var(--haze); font-weight: 400; }
.node.is-hot { border-color: var(--lilac); }
.node[data-node="mac"] { left: 50%; top: 14.1%; }
.node[data-node="ipad"] { left: 15%; top: 50%; }
.node[data-node="iphone"] { left: 85%; top: 50%; }
.node[data-node="watch"] { left: 50%; top: 85.9%; }
.demo-hint { margin-top: 14px; text-align: center; color: var(--quiet); font-size: 15px; }
.log { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--hair-strong); min-height: 128px; }
.log li { display: grid; grid-template-columns: 72px 56px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); color: var(--haze); }
.log li:first-child { color: var(--ink); }
.log li:nth-child(n+3) { opacity: .6; }
.log time { color: var(--quiet); }
.log .who { color: var(--lilac); }
.log li.is-new { animation: logIn .4s var(--ease); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* Features */
.features { margin: 56px 0 0; border-bottom: 1px solid var(--hair-strong); }
.features div { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 24px; padding: 22px 0; border-top: 1px solid var(--hair-strong); align-items: baseline; }
.features dt { font: 600 21px/1.25 var(--display); letter-spacing: -.015em; }
.features dd { margin: 0; color: var(--haze); max-width: 56ch; }
.features .where { color: var(--quiet); text-align: right; }

/* Themes */
.themes { overflow: hidden; isolation: isolate; }
.themes .glow { z-index: -1; }
.glow-soft .glow-a { left: 48%; top: 6%; width: 55%; height: 90%; opacity: .7; }
.glow-soft .glow-b { left: 62%; top: 30%; width: 40%; height: 70%; opacity: .7; }
.themes-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 36px; max-width: 460px; }
.swatch {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  font: 600 15px/1 var(--sans); color: var(--haze);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.swatch:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.swatch:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.swatch[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(242, 241, 244, .5); }
.sw { width: 26px; height: 26px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 2px 10px color-mix(in srgb, var(--a) 40%, transparent); }
.swatch[data-theme="cream"] .sw { --a: #E5A54B; --b: #DD7A49; }
.swatch[data-theme="violet"] .sw { --a: #9C77F7; --b: #6890F8; }
.swatch[data-theme="peach"] .sw { --a: #F2966F; --b: #E2679B; }
.swatch[data-theme="mint"] .sw { --a: #40C592; --b: #1FAA9B; }
.swatch[data-theme="sky"] .sw { --a: #639AF8; --b: #4FC3F5; }
.swatch[data-theme="blossom"] .sw { --a: #E370AC; --b: #B56CE8; }
.note { margin-top: 20px; color: var(--quiet); font-size: 15px; }

.home {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 64px 40px 48px; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(80% 70% at 15% 10%, color-mix(in srgb, var(--g1) 75%, transparent), transparent 70%),
    radial-gradient(70% 70% at 90% 90%, color-mix(in srgb, var(--g2) 70%, transparent), transparent 70%),
    #15131f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.widget-home { width: min(100%, 380px); padding: 16px 18px 14px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.widget-home .list-title { font-size: 19px; }
.widget-home .count { font-size: 14px; }
.widget-home .w-mic, .widget-home .w-plus { width: 26px; height: 26px; }
.widget-home .list { margin-top: 10px; padding-top: 6px; }
.widget-home .row { gap: 11px; padding: 6px 0; }
.widget-home .ck { width: 21px; height: 21px; }
.widget-home .lbl { font-size: 15px; }
.widget-home .more { font-size: 13px; padding-top: 4px; }
.home-label { font: 600 13px/1 var(--sans); color: rgba(255, 255, 255, .85); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; max-width: 920px; }
.plan { padding: 32px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.plan h3 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.plan-sub { margin-top: 6px; color: var(--haze); }
.plan-pro {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--g1) 26%, transparent), transparent 60%),
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1) 50%, transparent);
  border: 0;
}
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tick) center / 12px no-repeat, rgba(242, 241, 244, .14);
}
.plan-pro .ticks li::before { background: var(--tick) center / 12px no-repeat, linear-gradient(135deg, var(--g1), var(--g2)); }
.ticks { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-foot { margin-top: 26px; color: var(--quiet); font-size: 14px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq { border-bottom: 1px solid var(--hair-strong); }
.faq details { border-top: 1px solid var(--hair-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font: 600 19px/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--quiet); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--haze); max-width: 62ch; }

/* Final */
.final { overflow: hidden; isolation: isolate; text-align: center; padding: 160px 0 176px; }
.final .glow { z-index: -1; }
.final .glow-a { left: 18%; top: 20%; width: 64%; height: 80%; }
.final .glow-b { left: 40%; top: 40%; width: 44%; height: 60%; }
.final-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 30px 80px color-mix(in srgb, var(--g1) 45%, transparent); }
.final h2 { max-width: 14ch; margin: 0 auto; }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 28px 0 40px; color: var(--quiet); font-size: 14px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--haze); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.footer-legal { flex-basis: 100%; max-width: 76ch; margin-top: 8px; font-size: 12px; line-height: 1.5; }

/* Privacy page */
.doc { padding: 148px 0 112px; }
.doc-wrap { max-width: 680px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.doc-meta { margin-top: 16px; color: var(--quiet); }
.doc-lead { margin-top: 36px; font-size: 21px; line-height: 1.5; color: var(--ink); }
.doc h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair-strong); font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.doc p { margin-top: 14px; color: var(--haze); }
.doc h2 + p { margin-top: 12px; }

/* 404 */
.lost { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px; text-align: center; }
.lost .glow { z-index: -1; }
.lost .glow-a { left: 20%; top: 20%; width: 60%; height: 60%; }
.lost .glow-b { left: 40%; top: 40%; width: 40%; height: 40%; }
.lost img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 12px; }
.lost h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.lost p { color: var(--haze); margin-bottom: 12px; }
.lost-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.lost-page .lost { flex: 1; min-height: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sync-wrap, .themes-wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .features div { grid-template-columns: 160px minmax(0, 1fr); }
  .features .where { grid-column: 2; text-align: left; margin-top: -14px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { gap: 16px; }
  .device-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-col:nth-child(3) { padding-left: 0; border-left: 0; }
  .device-col:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .section { padding: 96px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(1200px, 100% - 40px); }
  .hero { padding-top: 120px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .cta-row .badge { align-self: center; }
  .device-cols { grid-template-columns: minmax(0, 1fr); }
  .device-col, .device-col + .device-col { padding: 24px 0 8px; border-left: 0; }
  .device-col + .device-col { border-top: 1px solid var(--hair); }
  .features div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .features .where { grid-column: auto; margin-top: 4px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px 22px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home { padding: 44px 18px 32px; border-radius: 28px; }
  .log li { grid-template-columns: 64px 48px minmax(0, 1fr); gap: 8px; font-size: 12px; }
  .node { padding: 8px 10px; font-size: 13px; gap: 6px; }
  .node .mono { font-size: 11px; }
  .cloud { padding: 9px 12px; font-size: 13px; }
  .final { padding: 120px 0 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
