/* TaskCanyon — shared styles. The site borrows the Mac itself: a menu bar for a header, a popover for navigation,
   windows for content and a Dock for a footer. Colours come from the app icon. */

/* ---------- Tokens ---------- */
:root {
  /* Icon palette */
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22a855;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #0b3d22;
  --green-950: #052e16;
  --mint: #dcfce7;
  --mint-50: #f0fdf4;

  /* Greys */
  --ink: #101814;
  --ink-2: #3a4540;
  --muted: #6f7a74;
  --faint: #a3ada8;
  --line: rgba(16, 24, 20, 0.09);
  --line-2: rgba(16, 24, 20, 0.14);
  --canvas: #eef2ef;

  /* App-like accents (match the app's own badges) */
  --today: #c2410c;  --today-bg: #ffedd5;
  --late: #b91c1c;   --late-bg: #fee2e2;
  --blue: #1d4ed8;   --blue-bg: #dbeafe;
  --star: #eab308;   --star-bg: #fef3c7;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-rim: rgba(255, 255, 255, 0.9);
  --blur: 24px;
  --shadow-sm: 0 1px 2px rgba(5, 46, 22, 0.08), 0 4px 14px -6px rgba(5, 46, 22, 0.16);
  --shadow: 0 2px 6px rgba(5, 46, 22, 0.06), 0 22px 50px -22px rgba(5, 46, 22, 0.35);
  --shadow-lg: 0 4px 12px rgba(5, 46, 22, 0.06), 0 50px 100px -40px rgba(5, 46, 22, 0.5);

  /* Shape */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --max: 1200px;
  --gutter: 24px;
  --bar-h: 34px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.16s;
  --dur-2: 0.36s;
  --dur-3: 0.85s;

  /* Type: a rounded display face, friendly like the app; system text for body */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* clip, not hidden: elements sliding in from the side can't widen the page, and position: sticky keeps working. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: rgba(74, 222, 128, 0.35); }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 0.86em var(--font); padding: 2px 7px; border-radius: 7px; background: #fff; color: var(--ink); white-space: nowrap;
  border: 1px solid var(--line-2); box-shadow: 0 2px 0 rgba(16, 24, 20, 0.12); }
code { font: 0.9em var(--mono); background: rgba(16, 24, 20, 0.06); padding: 2px 6px; border-radius: 6px; }

/* Wallpaper: a fixed, softly lit desktop behind everything, so the glass has something to frost */
.wallpaper { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(74, 222, 128, 0.32), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(134, 239, 172, 0.35), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(21, 128, 61, 0.18), transparent 60%),
    linear-gradient(180deg, #f6faf7 0%, var(--canvas) 100%); }
/* Hills: scenery at the bottom of the hero and under the Dock. Their top fades into the page, so there's no edge. */
.hills { position: absolute; left: 0; width: 100%; bottom: 0; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); }
.hills-hero { position: fixed; height: min(38vh, 340px); z-index: -1; will-change: transform;   /* behind page content */
  /* Top fades into the sky; the bottom softens slightly so the edge never shows as the hills lift away. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 82%, transparent 100%); }
.hills-foot { height: 100%; min-height: 220px; }

/* ---------- Glass ---------- */
.glass { position: relative; background: linear-gradient(170deg, var(--glass-strong), var(--glass) 55%);
  border: 1px solid var(--glass-rim); border-radius: var(--r);
  backdrop-filter: blur(var(--blur)) saturate(180%); -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  box-shadow: var(--shadow), inset 0 0 0 0.5px rgba(5, 46, 22, 0.06); }

/* ---------- Menu bar (header) ---------- */
.menubar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; gap: 4px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 0.5px solid rgba(16, 24, 20, 0.1); font-size: 14px; }
.menubar a, .menubar button { color: var(--ink); text-decoration: none; }
.mb-app { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 24px; border-radius: 6px; font-weight: 700; }
.mb-app img { width: 18px; height: 18px; }
.mb-item { display: flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-weight: 450; }
.mb-app:hover, .mb-item:hover, .mb-item[aria-current="page"] { background: rgba(16, 24, 20, 0.08); text-decoration: none; }
.mb-spacer { flex: 1; }
.mb-status { position: relative; display: flex; align-items: center; gap: 4px; }
.mb-clock { padding: 0 8px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-icon { position: relative; display: grid; place-items: center; width: 34px; height: 24px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.mb-icon img { width: 17px; height: 17px; }
.mb-icon:hover, .mb-icon[aria-expanded="true"] { background: rgba(16, 24, 20, 0.1); }
.mb-get { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; margin-left: 4px; border-radius: 999px;
  font-weight: 650; font-size: 13px; color: #fff !important; background: linear-gradient(135deg, var(--green-400), var(--green-700)); }
.mb-get:hover { text-decoration: none; filter: brightness(1.05); }

/* A one-time tip pointing at the ✓ icon, like the app's own welcome tip */
.mb-tip { position: absolute; top: calc(100% + 12px); left: -12px; width: 236px; padding: 12px 14px; border: 0; border-radius: 14px;
  font-size: 13px; line-height: 1.45; color: #fff; background: var(--green-700); box-shadow: var(--shadow);
  animation: tip-in 0.6s var(--spring) 1.4s both; cursor: pointer; text-align: left; }
.mb-tip::before { content: ""; position: absolute; top: -6px; left: 23px; width: 12px; height: 12px; background: var(--green-700); transform: rotate(45deg); border-radius: 2px; }
.mb-tip b { display: block; margin-bottom: 2px; }
@keyframes tip-in { from { opacity: 0; transform: translateY(-8px) scale(0.92); } }
.mb-icon.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 6px; animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }

/* ---------- Popover (navigation menu from the ✓ icon) ---------- */
.nav-pop { position: fixed; top: calc(var(--bar-h) + 10px); right: 10px; z-index: 70; width: 320px; padding: 6px 0 10px;
  border-radius: 14px; transform-origin: calc(100% - var(--arrow-right, 26px)) -8px; opacity: 0; transform: scale(0.92) translateY(-6px);
  pointer-events: none; visibility: hidden; transition: opacity 0.18s var(--ease-out), transform 0.32s var(--spring), visibility 0s 0.32s; }
.nav-pop.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.18s var(--ease-out), transform 0.32s var(--spring); }
.nav-pop::after { content: ""; position: absolute; top: -7px; right: var(--arrow-right, 26px); width: 14px; height: 14px; transform: rotate(45deg);
  background: #fbfdfc; border-left: 1px solid var(--glass-rim); border-top: 1px solid var(--glass-rim); border-radius: 3px 0 0 0; }
.np-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; font-weight: 650; font-size: 14px; border-bottom: 1px solid var(--line); }
.np-head img { width: 18px; height: 18px; }
.np-head .left { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.np-list { list-style: none; margin: 6px 6px 0; padding: 0; }
.np-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14.5px; }
.np-list a:hover { background: rgba(22, 163, 74, 0.1); text-decoration: none; }
.np-list a[aria-current="page"] { background: rgba(22, 163, 74, 0.08); }
.np-list .box { flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; transition: all 0.25s var(--spring); }
.np-list .box svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transform: scale(0.5); transition: all 0.25s var(--spring); }
.np-list a:hover .box, .np-list a[aria-current="page"] .box { border-color: transparent; background: #22c55e; }
.np-list a:hover .box svg, .np-list a[aria-current="page"] .box svg { opacity: 1; transform: none; }
.np-list small { margin-left: auto; color: var(--muted); font-size: 12px; }
.np-sep { height: 1px; background: var(--line); margin: 6px 12px; }
.np-cta { display: flex; justify-content: center; padding: 6px 14px 2px; }
.np-foot { display: flex; justify-content: center; gap: 16px; padding: 8px 14px 0; font-size: 12px; }
.np-foot a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
  font: 650 15.5px var(--font); border: 1px solid transparent; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform var(--dur-2) var(--spring), box-shadow var(--dur-2) var(--ease-out), background var(--dur-1); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-green { color: #fff; background: linear-gradient(135deg, var(--green-400), var(--green-500) 50%, var(--green-700));
  box-shadow: 0 10px 26px -10px rgba(21, 128, 61, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-green:hover { box-shadow: 0 16px 34px -12px rgba(21, 128, 61, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-glass { color: var(--ink); background: var(--glass-strong); border-color: var(--glass-rim);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
.btn-glass:hover { background: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }
.store-badge { display: inline-flex; align-items: center; padding: 4px 22px; border-radius: 999px; background: #000;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); transition: transform var(--dur-2) var(--spring), box-shadow var(--dur-2); }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7); text-decoration: none; }
.store-badge img { height: 38px; width: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-round); color: var(--ink); margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 750; }
.hl { color: var(--green-600); }
.label { display: inline-flex; align-items: center; gap: 8px; font: 650 13px/1 var(--font); color: var(--green-700); margin: 0 0 18px; }
.label::before { content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: #22c55e 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='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 560px; margin: 22px 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 60px) 0 70px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }
.hero .meta { margin: 20px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero .meta span::before { content: "✓"; color: var(--green-600); font-weight: 800; margin-right: 6px; }
.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero.is-3d .hero-canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 24%; filter: drop-shadow(0 30px 50px rgba(21, 128, 61, 0.45));
  animation: bob 6s var(--ease-in-out) infinite alternate; transition: opacity var(--dur-3); }
.hero.is-3d .hero-fallback { opacity: 0; }
@keyframes bob { to { transform: translateY(-14px) rotate(-2deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); }
.scroll-cue i { width: 2px; height: 26px; border-radius: 2px; background: linear-gradient(var(--green-600), transparent); animation: cue 1.8s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head > p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 460px; justify-self: end; }
/* Stacked: the intro sits under the heading, left-aligned. */
.sec-head.stack { grid-template-columns: 1fr; gap: 16px; }
.sec-head.stack > p { justify-self: start; }

/* ---------- Window (macOS-style frame for content) ---------- */
.window { border-radius: var(--r-lg); overflow: hidden; }
.titlebar { position: relative; display: flex; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45)); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #d4d9d6; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); transition: background 0.2s; }
.window:hover .lights i:nth-child(1), .window.live .lights i:nth-child(1) { background: #ff5f57; }
.window:hover .lights i:nth-child(2), .window.live .lights i:nth-child(2) { background: #febc2e; }
.window:hover .lights i:nth-child(3), .window.live .lights i:nth-child(3) { background: #28c840; }
.titlebar .title { position: absolute; left: 0; right: 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); pointer-events: none; }

/* ---------- Replica popover (the live demo, the story and 404) ---------- */
.mini-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 30px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.mini-bar .tc-ico { position: relative; display: grid; place-items: center; width: 28px; height: 20px; border-radius: 5px; background: rgba(16, 24, 20, 0.1); }
.mini-bar .tc-ico img { width: 14px; height: 14px; }
.mini-bar .tc-ico .dot { position: absolute; top: 1px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; transform: scale(0); transition: transform 0.4s var(--spring); }
.mini-bar .tc-ico .dot.on { transform: scale(1); }
.tc-pop { position: relative; width: 360px; max-width: calc(100% - 28px); margin: 12px 14px 0 auto; border-radius: 16px; background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg), inset 0 0 0 0.5px rgba(5, 46, 22, 0.1); font-size: 13.5px; text-align: left; }
.tc-pop::before { content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: rgba(255, 255, 255, 0.94); transform: rotate(45deg); }
.tc-clip { border-radius: 16px; overflow: hidden; }
.tc-head { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
.tc-head img { width: 18px; height: 18px; }
.tc-head .pro { font: 800 9px/1 var(--font); letter-spacing: 0.06em; padding: 3px 5px; border-radius: 999px; color: #fff; background: #3b82f6; }
.tc-head .count { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.tc-head .count b { color: var(--late); font-weight: 600; }
.tc-tabs { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow: hidden; }
.tc-tab { --c: #64748b; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; border: 0; cursor: pointer; font: 600 11.5px var(--font);
  background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tc-tab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tc-tab.on { background: var(--c); color: #fff; }
.tc-tab.on::before { background: #fff; }
.tc-tab small { opacity: 0.7; font-size: 10px; }
.tc-add { padding: 0 14px; border-bottom: 1px solid var(--line); }
.tc-add label { display: flex; align-items: center; gap: 10px; height: 42px; }
.tc-add svg { width: 17px; height: 17px; flex: none; }
.tc-add input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px var(--font); color: var(--ink); }
.tc-add input::placeholder { color: var(--faint); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 0 9px 27px; }
.tc-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; animation: chip-in 0.4s var(--spring) both; }
.chip.date { color: var(--blue); background: var(--blue-bg); }
.chip.list { color: var(--green-700); background: var(--mint); }
.chip.star { color: #a16207; background: var(--star-bg); }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px) scale(0.85); } }
.tc-rows { padding: 4px 0; }
.tc-row { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 5px; padding: 7px 9px; border-radius: 8px;
  transition: background 0.2s, opacity 0.35s, transform 0.35s var(--ease-out); }
.tc-row:hover { background: rgba(59, 130, 246, 0.08); }
.tc-row.star { background: rgba(250, 204, 21, 0.1); }
.tc-row.late { background: rgba(239, 68, 68, 0.06); }
.tc-row.enter { animation: row-in 0.5s var(--ease-out) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } }
.tc-check { flex: none; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.6px solid var(--faint); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: all 0.25s var(--spring); }
.tc-check svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.2; fill: none; opacity: 0; transform: scale(0.3); transition: all 0.3s var(--spring); }
.tc-row.done .tc-check { background: #22c55e; border-color: #22c55e; }
.tc-row.done .tc-check svg { opacity: 1; transform: none; }
.tc-row.late .tc-check { border-color: rgba(239, 68, 68, 0.8); }
.tc-body { flex: 1; min-width: 0; }
.tc-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-row.done .tc-text { color: #64748b; text-decoration: line-through; }
.tc-meta { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 10.5px; color: #475569; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; font-weight: 550; background: rgba(100, 116, 139, 0.12); }
.badge.today { color: var(--today); background: var(--today-bg); font-weight: 650; }
.badge.late { color: var(--late); background: var(--late-bg); font-weight: 650; }
.list-dot { --c: #64748b; }
.list-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-right: 4px; vertical-align: 1px; }
.tc-acts { display: flex; gap: 5px; }
.tc-act { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(16, 24, 20, 0.07);
  opacity: 0; transition: opacity 0.15s, transform 0.3s var(--spring); }
.tc-row:hover .tc-act, .tc-row.star .tc-act.st { opacity: 1; }
.tc-act svg { width: 11px; height: 11px; }
.tc-act.del svg { stroke: #ef4444; fill: none; stroke-width: 2; }
.tc-act.st svg { fill: none; stroke: #64748b; stroke-width: 2; }
.tc-row.star .tc-act.st { background: rgba(250, 204, 21, 0.25); }
.tc-row.star .tc-act.st svg { fill: var(--star); stroke: var(--star); }
.tc-act.pop { animation: star-pop 0.5s var(--spring); }
@keyframes star-pop { 40% { transform: scale(1.5) rotate(72deg); } }
.tc-done-head { display: flex; align-items: center; gap: 6px; padding: 8px 14px 4px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.tc-done-head span { padding: 0 6px; border-radius: 999px; background: rgba(16, 24, 20, 0.07); font-size: 10.5px; }
.tc-empty { padding: 26px 14px 30px; text-align: center; color: var(--muted); font-size: 13px; }
.tc-empty svg { width: 36px; height: 36px; margin: 0 auto 8px; display: block; stroke: #22c55e; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-undo { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); animation: row-in 0.3s var(--ease-out); }
.tc-undo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-undo button { margin-left: auto; flex: none; padding: 3px 10px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: #3b82f6; font: 600 11.5px var(--font); }
.tc-foot { padding: 4px 6px 6px; border-top: 1px solid var(--line); }
.tc-foot div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--muted); font-size: 13px; }
.tc-foot span:last-child { margin-left: auto; font-size: 11px; color: var(--faint); }

/* Desk: a little desktop the replica sits on */
.desk { position: relative; padding: 0 0 24px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(500px 300px at 80% 0%, rgba(134, 239, 172, 0.55), transparent 70%),
              linear-gradient(160deg, #dcf7e5, #bfeacd 55%, #9bd9b0); box-shadow: var(--shadow-lg); }
/* A desk that hugs the popover: the same 16px margin on every side. The icon sits right above the
   popover's arrow (16px edge + 22px arrow inset + 6px half-arrow = 44px to the icon's centre). */
.desk.fit { width: fit-content; max-width: 100%; justify-self: center; padding: 0 0 16px; }
.desk.fit .mini-bar { padding: 0 30px 0 16px; }
.desk.fit .tc-pop { margin: 12px 16px 0; max-width: calc(100% - 32px); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tryhints { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tryhints li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.tryhints li b { color: var(--ink); }
.tryhints .n { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--font-round);
  color: #fff; background: var(--green-600); transform: translateY(3px); }
.tryhints button { padding: 0; border: 0; background: none; color: var(--green-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 16px; }
.tile { position: relative; padding: 26px; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { margin: 0 0 6px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 36ch; }
.tile .art { flex: 1; display: grid; place-items: center; min-height: 0; margin-top: 12px; }
.t-keys { grid-column: span 4; grid-row: span 2; }
.t-quick { grid-column: span 2; grid-row: span 2; }
.t-cal, .t-notif, .t-lists { grid-column: span 2; }
.t-sync, .t-private { grid-column: span 3; }
.t-private { color: #fff; background: linear-gradient(150deg, var(--green-600), var(--green-700) 55%, var(--green-950)); border-color: rgba(255, 255, 255, 0.25); }
.t-private h3 { color: #fff; }
.t-private p { color: rgba(255, 255, 255, 0.82); }
.tag-pro { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; vertical-align: 3px; font: 800 9.5px/1.3 var(--font); letter-spacing: 0.07em; color: #fff; background: var(--green-600); }

/* Tile art: ⌥⌘T keycaps pressed in turn, and an app coming into focus */
.keys { display: flex; gap: 14px; }
.key { width: 86px; height: 86px; border-radius: 18px; display: grid; place-items: center; font: 500 38px var(--font); background: #fff;
  box-shadow: 0 6px 0 #cfd8d2, 0 14px 24px -10px rgba(5, 46, 22, 0.35); animation: key 3.2s var(--ease-in-out) infinite; }
.key:nth-child(2) { animation-delay: 0.12s; } .key:nth-child(3) { animation-delay: 0.24s; }
@keyframes key { 0%, 30%, 100% { transform: none; box-shadow: 0 6px 0 #cfd8d2, 0 14px 24px -10px rgba(5, 46, 22, 0.35); }
  12% { transform: translateY(5px); box-shadow: 0 1px 0 #cfd8d2, 0 6px 12px -8px rgba(5, 46, 22, 0.35); background: var(--mint); } }
.apps { display: flex; gap: 10px; margin-top: 30px; }
.apps span { width: 64px; height: 44px; border-radius: 9px; background: rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-sm); position: relative; }
.apps span::before { content: ""; position: absolute; top: 6px; left: 7px; width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); }
.apps span:nth-child(3) { animation: focus 3.2s var(--ease-in-out) infinite; }
@keyframes focus { 0%, 20%, 100% { box-shadow: var(--shadow-sm); } 30%, 80% { box-shadow: 0 0 0 2px var(--green-500), var(--shadow-sm); } }
/* Quick-add tile */
.qa { width: 100%; }
.qa .field { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; white-space: nowrap; overflow: hidden; }
.qa .field span { border-right: 2px solid var(--green-600); padding-right: 1px; animation: caret 0.9s steps(2) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.qa .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 26px; }
/* Mini calendar */
.cal { display: grid; grid-template-columns: repeat(7, 26px); gap: 4px; font-size: 11px; text-align: center; color: var(--ink-2); }
.cal b { font-weight: 600; color: var(--faint); font-size: 10px; }
.cal span { width: 26px; height: 26px; line-height: 26px; border-radius: 50%; }
.cal .today { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); font-weight: 700; }
.cal .sel { background: var(--blue); color: #fff; font-weight: 700; animation: sel 3s var(--ease-in-out) infinite; }
@keyframes sel { 0%, 15% { transform: scale(0.6); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
/* Notification sliding in */
.notif { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow);
  font-size: 12px; text-align: left; }
.tile .notif { animation: notif 4.2s var(--ease-out) infinite; }
.notif img { width: 30px; height: 30px; flex: none; }
.notif b { display: block; font-size: 12.5px; }
.notif em { font-style: normal; color: var(--muted); }
.notif i { margin-left: auto; font-style: normal; font-weight: 650; color: var(--green-700); background: var(--mint); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
@keyframes notif { 0% { transform: translateX(110%); opacity: 0; } 12%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateX(110%); opacity: 0; } }
/* Lists switching */
.lists { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lists .tc-tab { font-size: 12.5px; padding: 5px 10px; animation: tabs 6s infinite; animation-delay: var(--d); cursor: default; }
@keyframes tabs { 0%, 24% { background: var(--c); color: #fff; } 25%, 100% { background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); } }
/* Two Macs syncing */
.sync { display: flex; align-items: center; gap: 18px; }
.mac { width: 96px; height: 64px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); border: 4px solid #1f2a24; position: relative; }
.mac::after { content: ""; position: absolute; bottom: -12px; left: 50%; width: 30px; height: 8px; margin-left: -15px; border-radius: 0 0 4px 4px; background: #c9d1cc; }
.mac i { position: absolute; left: 9px; right: 14px; height: 5px; border-radius: 3px; background: var(--line-2); }
.mac i:nth-child(1) { top: 10px; } .mac i:nth-child(2) { top: 22px; right: 26px; }
.mac i:nth-child(3) { top: 34px; right: 34px; background: var(--green-400); animation: newrow 3s infinite; }
.mac:first-child i:nth-child(3) { animation-name: newrow-a; }
@keyframes newrow { 0%, 40% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes newrow-a { 0%, 10% { opacity: 0; } 20%, 100% { opacity: 1; } }
.wire { position: relative; width: 70px; height: 2px; background: repeating-linear-gradient(90deg, var(--green-500) 0 6px, transparent 6px 12px); }
.wire::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 12px var(--green-400); animation: packet 3s var(--ease-in-out) infinite; }
@keyframes packet { 0%, 15% { left: 0; opacity: 0; } 20% { opacity: 1; } 45% { left: 58px; opacity: 1; } 50%, 100% { left: 58px; opacity: 0; } }
.shield { width: 74px; height: 74px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25)); }

/* ---------- Story (sticky) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-steps { padding: 4vh 0 16vh; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.5s var(--ease-out); }
.story-step.on { opacity: 1; }
.story-step .time { font: 800 15px var(--font-round); color: var(--green-600); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.story-step h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.story-step p { color: var(--ink-2); font-size: 18px; max-width: 440px; margin: 14px 0 0; }
.story-stage { position: sticky; top: calc(var(--bar-h) + 7vh); height: 80vh; display: grid; align-items: center; }
.story-stage .desk.fit { width: 392px; }
.story-stage .desk.fit .tc-pop { width: auto; min-height: 460px; }
.story-notif { position: absolute; top: 42px; left: 16px; right: 16px; width: auto; z-index: 3; transform: translateY(-150%); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.4s; }
.story-notif.on { transform: none; opacity: 1; }

/* ---------- Pro window ---------- */
.pro-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 44px; }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 26px 0 0; }
/* Left column runs the full height of the window body; the button and its note sit at its foot, level with the
   last unlock on the right (11px matches that row's bottom padding). */
.pro-body { align-items: stretch; }
.pro-main { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 11px; }
.pro-main .pro-cta { margin-top: auto; padding-top: 32px; }
.price b { font: 800 76px/1 var(--font-round); letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.pro-win .fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; max-width: 420px; }
.unlocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.unlocks li { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background 0.3s; }
.unlocks li:hover { background: rgba(22, 163, 74, 0.07); }
.unlocks .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.8px solid var(--faint); display: grid; place-items: center;
  transition: all 0.45s var(--spring); transition-delay: var(--d, 0s); }
.unlocks .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3.2; fill: none; opacity: 0; transform: scale(0.3); transition: all 0.45s var(--spring); transition-delay: var(--d, 0s); }
.unlocks.ticked .box { background: #22c55e; border-color: #22c55e; }
.unlocks.ticked .box svg { opacity: 1; transform: none; }
.unlocks b { display: block; font-size: 16px; }
.unlocks span { color: var(--ink-2); font-size: 14.5px; }
.free-line { margin: 0; padding: 18px 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; background: rgba(240, 253, 244, 0.6); }

/* ---------- Spotlight FAQ ---------- */
.spot { max-width: 760px; margin: 0 auto; border-radius: 20px; }
.spot-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.spot-field svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.spot-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 20px var(--font); color: var(--ink); }
.spot-field input::placeholder { color: var(--faint); }
.faq { padding: 6px; }
.faq details { border-radius: 12px; }
.faq details[hidden] { display: none; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 13px 14px; font-weight: 600; font-size: 16.5px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "?"; flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 13px var(--font-round);
  color: #fff; background: linear-gradient(135deg, var(--green-400), var(--green-700)); }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease-out); }
.faq details.is-open summary::after { transform: rotate(45deg); }
.faq summary:hover, .faq details.is-open summary { background: rgba(22, 163, 74, 0.08); }
.faq details > div { padding: 0 14px 14px 52px; overflow: hidden; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.faq mark { background: rgba(250, 204, 21, 0.4); color: inherit; border-radius: 3px; padding: 0 1px; }
.spot-empty { padding: 22px; text-align: center; color: var(--muted); }
.spot-empty[hidden] { display: none; }
.spot-more { display: flex; justify-content: center; padding: 6px 0 18px; }
.faq-group { margin: 18px 14px 4px; font: 700 12px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); scroll-margin-top: calc(var(--bar-h) + 24px); }
.faq-group[hidden] { display: none; }
.doc .faq-group { font: 700 12px var(--font); letter-spacing: 0.08em; margin: 22px 14px 4px; }

/* ---------- Final ---------- */
.final { text-align: center; padding: 120px 0 70px; }
.final .icon { width: 130px; height: 130px; margin: 0 auto 30px; filter: drop-shadow(0 26px 40px rgba(21, 128, 61, 0.4)); }
.final .lede { margin: 18px auto 32px; }
.final .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Dock (footer) ---------- */
.dock-footer { position: relative; overflow: hidden; padding: 90px var(--gutter) 26px; text-align: center; }
.dock-footer > :not(.hills) { position: relative; z-index: 1; }
.dock { display: inline-flex; align-items: flex-end; gap: 6px; height: 76px; padding: 8px 10px; border-radius: 22px; }
.dock a { position: relative; display: block; width: 52px; height: 52px; flex: none; }
.dock a:hover { text-decoration: none; }
.dock .tile-ico { width: 100%; height: 100%; border-radius: 23%; display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(5, 46, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.dock .tile-ico svg { width: 50%; height: 50%; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock img.tile-ico { box-shadow: none; border-radius: 0; width: 124%; height: 124%; margin: -12%; max-width: none; }
.dock .tile-ico { transition: transform 0.18s var(--spring), filter 0.18s; }
.dock a.press .tile-ico { transform: scale(0.9) translateY(2px); filter: brightness(0.85); }
.dock .tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(4px); padding: 4px 10px; border-radius: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 550; color: var(--ink); background: var(--glass-strong); box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: all 0.15s; }
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; transform: translateX(-50%); }
.dock a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink-2); }
.dock .sep { flex: none; width: 1px; height: 46px; margin: 0 4px 3px; background: var(--line-2); }
.g1 { background: linear-gradient(145deg, #4ade80, #15803d); } .g2 { background: linear-gradient(145deg, #60a5fa, #1d4ed8); }
.g3 { background: linear-gradient(145deg, #fb923c, #c2410c); } .g4 { background: linear-gradient(145deg, #94a3b8, #475569); }
.g5 { background: linear-gradient(145deg, #34d399, #047857); } .g6 { background: linear-gradient(145deg, #a78bfa, #6d28d9); } .g7 { background: linear-gradient(145deg, #374151, #000); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 18px auto 0; max-width: 900px; color: var(--muted); font-size: 12px; }
.legal a { color: var(--muted); }

/* ---------- Content pages: a window with a sidebar ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: calc(var(--bar-h) + 50px) var(--gutter) 20px; }
.page .window { min-height: 70vh; }
.win-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.win-body.single { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: relative; padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.35); }
.sidebar .inner { position: sticky; top: calc(var(--bar-h) + 20px); max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; }
.sidebar p { margin: 4px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sidebar ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sidebar li { counter-increment: s; }
.sidebar a { display: flex; gap: 9px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.sidebar a::before { content: counter(s); flex: none; width: 18px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.sidebar a:hover { background: rgba(16, 24, 20, 0.05); text-decoration: none; }
.sidebar a[aria-current="true"] { background: var(--green-600); color: #fff; }
.sidebar a[aria-current="true"]::before { color: rgba(255, 255, 255, 0.75); }
.doc { padding: 46px 56px 56px; max-width: 880px; }
.doc h1 { font-size: clamp(38px, 5vw, 58px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 12px 0 26px; }
.doc .lead { font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.doc h2 { font-size: 25px; margin: 46px 0 10px; letter-spacing: -0.02em; scroll-margin-top: calc(var(--bar-h) + 24px); }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc address { font-style: normal; color: var(--ink-2); }
.doc .tldr { font-size: 14px; color: var(--green-700); font-weight: 650; margin: -2px 0 10px; }
.doc .note, .doc .fine { font-size: 14px; color: var(--muted); }
.doc .card { margin: 22px 0; padding: 22px 24px; border-radius: var(--r); background: rgba(240, 253, 244, 0.75); border: 1px solid rgba(22, 163, 74, 0.16); }
.doc .card h3 { margin-top: 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc .glance { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc .glance li { position: relative; padding-left: 32px; margin: 0; color: var(--ink); }
.doc .glance li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #22c55e 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='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.doc .table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--green-700); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(240, 253, 244, 0.8); }
.doc td:first-child { color: var(--ink); font-weight: 560; }
.doc .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.doc .contact-grid .card { margin: 0; }
.doc .template { white-space: pre-wrap; font: 13.5px/1.6 var(--mono); padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); margin: 16px 0; }
.doc .spot { margin: 24px 0 0; max-width: none; box-shadow: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Desktop: the window is a fixed height that fills the screen under the menu bar. The document scrolls inside its
   pane; the sidebar stays put and scrolls on its own only if its list is taller than the window. */
.pane { min-width: 0; }
@media (min-width: 861px) {
  .page { padding-top: calc(var(--bar-h) + 28px); }
  .page .window { height: calc(100svh - var(--bar-h) - 56px); min-height: 460px; display: flex; flex-direction: column; }
  .page .titlebar { flex: none; }
  .page .win-body { flex: 1; min-height: 0; }
  .page .sidebar { overflow-y: auto; overscroll-behavior: contain; }
  .page .sidebar .inner { position: static; max-height: none; overflow: visible; }
  .page .pane { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; min-height: 0; }
  .page .pane, .page .sidebar { scrollbar-width: thin; scrollbar-color: rgba(16, 24, 20, 0.22) transparent; }
  .page .pane::-webkit-scrollbar, .page .sidebar::-webkit-scrollbar { width: 10px; }
  .page .pane::-webkit-scrollbar-thumb, .page .sidebar::-webkit-scrollbar-thumb { background: rgba(16, 24, 20, 0.2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
  .page .doc { padding-bottom: 72px; }
}
@media (min-width: 861px) and (prefers-reduced-motion: reduce) { .page .pane { scroll-behavior: auto; } }

/* 404: an empty task list */
.lost { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 30px) var(--gutter) 30px; text-align: center; }
.lost .desk { width: min(420px, 100%); margin: 0 auto 34px; }
.lost h1 { font-size: clamp(40px, 6vw, 68px); }
.lost p { color: var(--ink-2); max-width: 460px; margin: 16px auto 28px; }
.lost .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Motion: reveals, tilt, parallax ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.985);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="pop"] { transform: scale(0.9); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--ease-out), box-shadow var(--dur-2); will-change: transform; }
[data-tilt].is-tilting { transition: transform 0.1s linear, box-shadow var(--dur-2); box-shadow: var(--shadow-lg); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-2);
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 50%); mix-blend-mode: soft-light; }
[data-tilt].is-tilting::after { opacity: 1; }
.js [data-tilt][data-reveal].is-in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento .tile { grid-column: span 1; grid-row: auto; min-height: 250px; }
  .bento .t-keys, .bento .t-quick { grid-column: span 2; min-height: 320px; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; top: calc(var(--bar-h) + 8px); height: auto; z-index: 2; }
  .story-stage .desk { transform: scale(0.8); transform-origin: top center; margin-bottom: -96px; }
  .story-step { min-height: 55vh; position: relative; z-index: 1; }
  .story-steps { padding-top: 0; }
}
@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .mb-item { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--bar-h) + 30px); }
  .hero-grid, .demo-grid, .sec-head { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 380px; margin: -10px auto 10px; }
  .sec-head > p { justify-self: start; }
  .pro-body { grid-template-columns: 1fr; padding: 28px 22px; }
  .free-line { padding: 16px 22px; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .inner { position: static; max-height: none; }
  .sidebar ol { columns: 2; column-gap: 6px; }
  .doc { padding: 30px 22px 36px; }
  .doc .contact-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .mb-clock { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile, .bento .t-keys, .bento .t-quick { grid-column: span 1; }
  .key { width: 66px; height: 66px; font-size: 30px; }
  .apps { gap: 7px; margin-top: 22px; }
  .apps span { width: 42px; height: 30px; }
  .tc-tabs { flex-wrap: wrap; }
  .dock a { width: 38px; height: 38px; }
  .dock { height: 56px; gap: 4px; padding: 7px 8px; }
  .dock .sep { height: 32px; }
  .sidebar ol { columns: 1; }
  .nav-pop { left: 10px; right: 10px; width: auto; }
  .mb-tip { left: auto; right: 0; width: min(236px, calc(100vw - 24px)); }
  .mb-tip::before { left: auto; right: 66px; }
  .price b { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .tile .notif { transform: none; opacity: 1; }
}
