/* Unfold marketing site.
   The page follows a day: daylight paper, the room dims for Hyperfocus, then night.
   Colors come from the app icon (navy, ribbon), the Mac app's palette (accent, now line,
   Hyperfocus violet) and Omarchy's Tokyo Night / Catppuccin Latte themes. */

:root {
  --paper: #EEF1F7;
  --ink: #0F1629;
  --ink-2: #434C66;
  --ink-3: #5F6886;
  --ribbon: #BDCFEB;
  --blue: #2E6BE6;
  --now: #F0545A;
  --violet: #6D5BD0;
  --violet-2: #B3A5F7;
  --night: #0A1020;
  --focus: #0E0F13;
  --app: #18191D;

  /* Tone-dependent roles; html[data-tone] swaps them as the day goes on. */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --rule: rgba(15, 22, 41, 0.13);
  --raised: #FFFFFF;
  --link: var(--blue);
  --soon-fg: #A8343F;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

html[data-tone="focus"] {
  --bg: var(--focus);
  --fg: #F4F5F8;
  --fg-2: #B6B9C6;
  --fg-3: #8C8F9C;
  --rule: rgba(255, 255, 255, 0.1);
  --raised: #17181D;
  --link: var(--violet-2);
  --soon-fg: #FF8A90;
  color-scheme: dark;
}

html[data-tone="night"] {
  --bg: var(--night);
  --fg: #E9ECF6;
  --fg-2: #AEB6CF;
  --fg-3: #8993B2;
  --rule: rgba(189, 207, 235, 0.14);
  --raised: #121A30;
  --link: var(--ribbon);
  --soon-fg: #FF8A90;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s ease, color 0.8s ease;
}

:where(h1, h2, h3, h4, p, li, dt, dd, th, td, a, span, small, strong, figcaption) {
  transition: color 0.8s ease, border-color 0.8s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
html[data-tone="night"] :focus-visible,
html[data-tone="focus"] :focus-visible { outline-color: var(--ribbon); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(1320px + 2 * var(--gutter)); }

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.5rem);
  font-stretch: 84%;
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-stretch: 92%;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 38em;
}

.fine { font-size: 0.875rem; color: var(--fg-3); }
.footnote { margin-top: 16px; font-size: 0.8125rem; color: var(--fg-3); }

.section { padding-block: var(--section) 0; }
.section__head { display: grid; gap: 22px; max-width: 880px; }

q { quotes: "“" "”"; font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--raised);
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  vertical-align: 0.08em;
}

/* Status tags, in sentence case. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fg-2);
  white-space: nowrap;
  vertical-align: 0.2em;
}
.tag--soon { border-color: color-mix(in oklab, var(--now) 55%, transparent); color: var(--soon-fg); }
.tag--soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--now); }
.tag--premium { border-color: color-mix(in oklab, var(--violet) 60%, transparent); color: color-mix(in oklab, var(--violet) 70%, var(--fg)); }
html[data-tone="night"] .tag--premium, html[data-tone="focus"] .tag--premium { color: var(--violet-2); }
.tag--later { border-style: dashed; }

/* Lists of things you can do: completed-task circles. What's still to come: empty ones. */
.ticks { list-style: none; display: grid; gap: 10px; align-content: start; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ticks li::after {
  content: "";
  position: absolute; left: 5px; top: calc(0.28em + 5.5px);
  width: 8px; height: 4.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.ticks li.is-soon::before {
  background: none; -webkit-mask: none; mask: none;
  width: 16px; height: 16px; top: 0.34em; left: 1px;
  border: 1.6px solid var(--fg-3);
}
.ticks li.is-soon::after { content: none; }

/* ---------- Store buttons: each in its own platform's language ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 22px 0 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:active { transform: translateY(1px); }
/* The Mac App Store buttons wait, hidden, for the listing; the installer stands in for them. */
.store-btn[hidden] { display: none; }
.store-btn__text { display: grid; line-height: 1.1; text-align: left; }
.store-btn__text small { font-size: 0.72rem; font-weight: 500; }
.store-btn__text strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

.store-btn--mac {
  border: 1px solid #000;
  border-radius: 13px;
  background: #000;
  color: #fff;
  font-family: var(--sans);
}
.store-btn--mac:hover { box-shadow: 0 10px 24px -10px rgba(15, 22, 41, 0.6); }
.store-btn--mac.store-btn--on-dark { border-color: rgba(255, 255, 255, 0.35); }
.store-btn__logo { width: 26px; height: 26px; margin-top: -3px; }

.store-btn--omarchy {
  border: 1px solid #7AA2F7;
  border-radius: 0;
  background: #1A1B26;
  color: #C0CAF5;
  font-family: var(--mono);
}
.store-btn--omarchy .store-btn__text strong { font-size: 1.12rem; font-weight: 700; letter-spacing: 0; }
.store-btn--omarchy .store-btn__text small { font-size: 0.7rem; color: #A9B1D6; }
.store-btn__prompt {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: #7AA2F7; color: #1A1B26;
  font-weight: 700; font-size: 0.8rem;
}
.store-btn--omarchy:hover { background: #7AA2F7; color: #1A1B26; }
.store-btn--omarchy:hover small { color: #1A1B26; }
.store-btn--omarchy:hover .store-btn__prompt { background: #1A1B26; color: #7AA2F7; }
.store-btn--omarchy:focus-visible { border-radius: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 600; text-decoration: none;
  transition: background-color 0.2s ease;
}
.button--light { background: var(--ink); color: #fff; }
.button--light:hover { background: var(--blue); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.8s ease, border-color 0.3s ease;
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  height: 64px; margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 0.9375rem; }
.nav__links a { text-decoration: none; color: var(--fg-2); }
.nav__links a:hover { color: var(--fg); }
.nav__cta {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 10px; background: var(--fg); color: var(--bg);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(32px, 4.5vw, 64px); }
.hero__copy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
}
.hero__title {
  grid-column: 1 / -1;
  max-width: 11.5em;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  font-stretch: 82%;
  line-height: 0.9;
  letter-spacing: -0.038em;
}
.hero__aside {
  grid-column: 6 / -1;
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* The title unfolds from condensed to its set width, once, when the font is ready. */
@keyframes unfold {
  from { font-stretch: 75%; letter-spacing: -0.07em; opacity: 0; }
  35% { opacity: 1; }
  to { font-stretch: 82%; letter-spacing: -0.038em; opacity: 1; }
}
.js .hero__title { opacity: 0; }
.js.is-ready .hero__title { animation: unfold 1.15s var(--ease) both; }

/* ---------- The seam ---------- */

.seam { margin: clamp(40px, 5vw, 72px) 0 0; }
.seam__stage {
  position: relative;
  aspect-ratio: 100 / 66;
  container-type: inline-size;
  overflow: hidden;
  border-radius: clamp(10px, 1.6vw, 22px);
  box-shadow: 0 50px 90px -40px rgba(15, 22, 41, 0.55), 0 0 0 1px rgba(15, 22, 41, 0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  isolation: isolate;
}
.seam__layer { position: absolute; inset: 0; }
.seam__layer--omarchy { clip-path: inset(0 0 0 var(--seam)); }
.desk { position: absolute; inset: 0; }

/* A macOS desktop in the icon's colors. */
.desk--mac {
  background:
    radial-gradient(60% 80% at 18% 110%, #F3C9B4 0%, transparent 60%),
    radial-gradient(70% 90% at 85% 100%, #7F8FD8 0%, transparent 62%),
    radial-gradient(80% 70% at 30% 20%, #3C4E96 0%, transparent 70%),
    radial-gradient(70% 70% at 90% 10%, #BDCFEB 0%, transparent 55%),
    linear-gradient(160deg, #1C2748 0%, #2B3A78 45%, #6C73C4 100%);
}
.menubar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  height: 2.5cqw; padding: 0 1.6cqw;
  background: rgba(16, 20, 38, 0.3);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.12cqw;
  font-weight: 500;
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 1.7cqw; }
.menubar__left b { font-weight: 700; }
.menubar svg { width: 1.3cqw; height: 1.3cqw; margin-top: -0.2cqw; }

.desk__window {
  position: absolute;
  top: 5.2cqw; left: 5cqw;
  width: 90cqw; height: auto;
}
.desk__window--mac { filter: drop-shadow(0 1.8cqw 2.6cqw rgba(5, 8, 20, 0.5)); }

/* Omarchy: Hyprland with a bar on top and a bordered tile. */
.desk--omarchy { background: #1A1B26; }
.waybar {
  position: absolute; inset: 0 0 auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 2.5cqw; padding: 0 1.2cqw;
  background: #16161E;
  color: #A9B1D6;
  font-family: var(--mono);
  font-size: 1.02cqw;
}
.waybar__ws { display: flex; gap: 1.1cqw; }
.waybar__ws b { color: #7AA2F7; }
.waybar__clock { color: #C0CAF5; }
.waybar__tray { display: flex; gap: 1.4cqw; justify-content: flex-end; }
.desk__window--omarchy { outline: 0.16cqw solid #7AA2F7; outline-offset: 0.2cqw; }

.seam__line {
  position: absolute; top: 0; bottom: 0; left: var(--seam);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 22, 41, 0.18), 0 0 26px rgba(189, 207, 235, 0.75);
  pointer-events: none;
  z-index: 2;
}
.seam__handle {
  position: absolute; top: 50%; left: 50%;
  display: flex; height: 44px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(5, 8, 20, 0.45));
}
.seam__half { display: grid; place-items: center; width: 30px; }
.seam__half--mac {
  border-radius: 22px 0 0 22px;
  background: #fff; color: var(--ink);
  font: 600 1.5rem/1 var(--sans);
  padding-bottom: 3px;
}
.seam__half--omarchy {
  background: #1A1B26; color: #7AA2F7;
  border: 1.5px solid #7AA2F7; border-left: 0;
  font: 700 1.05rem/1 var(--mono);
}
.seam__range {
  position: absolute; inset: auto 0 0 0;
  width: 100%; height: 1px; margin: 0;
  opacity: 0; pointer-events: none;
}
.seam__stage:has(.seam__range:focus-visible) .seam__handle {
  outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 24px 4px 4px 24px;
}

.seam__legend {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin-top: 18px;
}
.seam__tag { font-size: 0.875rem; color: var(--fg-2); }
.seam__tag--mac { justify-self: start; font-weight: 600; }
.seam__tag--mac::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--blue); vertical-align: 0.05em;
}
.seam__tag--omarchy { justify-self: end; font-family: var(--mono); font-size: 0.8125rem; }
.seam__tag--omarchy::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px;
  background: #7AA2F7; vertical-align: 0.05em;
}
.seam__hint { font-size: 0.8125rem; color: var(--fg-3); transition: opacity 0.5s ease; }
.seam__hint.is-gone { opacity: 0; }

/* ---------- Promises ---------- */

.promises { padding-top: var(--section); }
.promise-list { list-style: none; border-bottom: 1px solid var(--rule); }
.promise {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 32px;
  align-items: start;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--rule);
}
.promise__title {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  font-stretch: 84%;
  line-height: 1;
  letter-spacing: -0.03em;
}
.promise__title a { text-decoration: none; }
.promise__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.promise__title .tag { margin-left: 6px; vertical-align: 0.55em; letter-spacing: 0; }
.promise__text { color: var(--fg-2); padding-top: 6px; }
.promise__proof { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 6px; }

.file {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
  white-space: nowrap;
}
.file::before {
  content: ""; width: 10px; height: 12px;
  background: currentColor; opacity: 0.55;
  clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%);
}
.file--mac { border-radius: 8px; background: var(--app); color: #ECEDF0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.file--omarchy { background: #1A1B26; color: #C0CAF5; border: 1px solid #7AA2F7; }
.file--skill { border-radius: 8px; border: 1px dashed var(--fg-3); color: var(--fg-2); }

/* ---------- Local-first ---------- */

.local__grid {
  display: grid;
  gap: clamp(64px, 8vw, 112px);
  margin-top: clamp(48px, 6vw, 72px);
}

/* The real sidebar in three account states, shown at the app's own size. */
.states {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.states__stage {
  position: relative;
  aspect-ratio: 1440 / 470;
  overflow: hidden;
  border-radius: 16px;
  background: #18191D;
  box-shadow: 0 40px 70px -35px rgba(15, 22, 41, 0.6), 0 0 0 1px rgba(15, 22, 41, 0.1);
}
.states__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease;
}
.states__img.is-active { opacity: 1; }

.states__list { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; min-width: 0; }
.state-opt {
  position: relative;
  display: grid; gap: 2px;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.state-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.state-opt::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.6px solid var(--fg-3);
  transition: border-color 0.2s ease, border-width 0.2s ease;
}
.state-opt__title { font-weight: 600; }
.state-opt__text { color: var(--fg-2); font-size: 0.9375rem; }
.state-opt:hover { background: color-mix(in oklab, var(--raised) 60%, transparent); }
.state-opt:has(input:checked) { background: var(--raised); box-shadow: 0 1px 2px rgba(15, 22, 41, 0.06); }
.state-opt:has(input:checked)::before { border: 5px solid var(--blue); }
.state-opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.compare { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 4vw, 56px); align-items: start; }
.compare .table-scroll, .compare .footnote { grid-column: 2; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare__table th, .compare__table td {
  padding: 13px 14px; text-align: left; vertical-align: top;
  border-top: 1px solid var(--rule);
}
.compare__table thead th { border-top: 0; font-size: 0.875rem; color: var(--fg-3); font-weight: 600; }
.compare__table tbody th { font-weight: 500; color: var(--fg-2); padding-left: 0; }
.compare__table td { color: var(--fg-2); }
.compare__table .is-us { background: var(--raised); color: var(--fg); font-weight: 600; }
.compare__table thead .is-us { color: var(--fg); border-radius: 10px 10px 0 0; }
.compare__table tbody tr:last-child .is-us { border-radius: 0 0 10px 10px; }

/* ---------- A day in Unfold ---------- */

/* Time markers drawn as the app's calendar blocks. */
.block {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 10px;
  border: 1px solid; border-radius: 7px;
  font-size: 0.9375rem; font-weight: 600;
}
.block::before {
  content: ""; width: 11px; height: 11px;
  border: 1.6px solid currentColor; border-radius: 50%;
}
.block__time { font-variant-numeric: tabular-nums; font-weight: 500; opacity: 0.8; order: 2; }
.block--warm { background: #F8EADB; border-color: #DDB58C; color: #5C3713; }
.block--blue { background: #E1E9FB; border-color: #98B2EC; color: #173161; }
.block--violet { background: #ECE8FC; border-color: #A99BEF; color: #3C2F8F; transition: background-color 0.8s ease, border-color 0.8s ease, color 0.8s ease; }
html[data-tone="focus"] .block--violet { background: rgba(109, 91, 208, 0.18); border-color: var(--violet); color: #DCD5FC; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
}
.step__copy { display: grid; gap: 20px; justify-items: start; }
.step__copy > p:not(.block) { color: var(--fg-2); max-width: 34em; }
.step__copy .ticks { margin-top: 4px; }

.shot--round { border-radius: 12px; }
.shot--square { border-radius: 0; outline: 1px solid rgba(122, 162, 247, 0.55); }

.capture-visual { position: relative; padding-bottom: 22%; }
.capture-visual > .shot--square { width: 92%; margin-left: auto; box-shadow: 0 30px 60px -30px rgba(15, 22, 41, 0.55); }
.capture-visual__mac {
  position: absolute; left: 0; bottom: 0; width: 76%;
  box-shadow: 0 30px 60px -20px rgba(15, 22, 41, 0.6), 0 0 0 1px rgba(15, 22, 41, 0.1);
}

.step--plan { grid-template-columns: 1fr; align-items: start; }
.step__copy--split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.step__copy--split > div { display: grid; gap: 20px; justify-items: start; }
.step__copy--split > div > p:not(.block) { color: var(--fg-2); }

.sources { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.sources > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sources dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.sources dt .tag { vertical-align: 0; }
.sources dd { margin-top: 4px; color: var(--fg-2); font-size: 0.9375rem; }

.plan-visual { margin: 0 auto; width: 100%; max-width: 880px; }
.plan-visual img { width: 100%; box-shadow: 0 50px 90px -45px rgba(15, 22, 41, 0.6); }
.plan-visual figcaption, .agent-demo figcaption {
  margin-top: 14px; font-size: 0.875rem; color: var(--fg-3);
}

/* ---------- Hyperfocus ---------- */

.focus { padding-bottom: var(--section); }
.step--focus { grid-template-columns: 1fr; margin-top: 0; gap: clamp(48px, 6vw, 80px); }
.step__copy--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 900px; }
.step__copy--center .lead { margin-inline: auto; }

.focus-visual { position: relative; max-width: 1000px; width: 100%; margin-inline: auto; padding-bottom: 21%; }
.focus-visual::before {
  content: ""; position: absolute; inset: 8% 18% 20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(109, 91, 208, 0.55), rgba(109, 91, 208, 0) 100%);
  filter: blur(40px);
  opacity: 0; transition: opacity 1.2s ease;
}
html[data-tone="focus"] .focus-visual::before { opacity: 1; }
.focus-visual__mac { width: 100%; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.focus-visual__omarchy {
  position: absolute; right: -7%; bottom: 0; width: 48%;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.focus-lists {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  max-width: 1000px; width: 100%; margin-inline: auto;
}
.ticks--light li::before { background: var(--violet-2); }
.ticks--light li::after { border-color: var(--focus); }
.soon-list h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 14px; }
.soon-list h4 .tag { vertical-align: 0; }
.soon-list ul { list-style: none; display: grid; gap: 10px; color: var(--fg-2); }
.soon-list li { position: relative; padding-left: 30px; }
.soon-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.6px solid var(--fg-3);
}

/* ---------- Native, twice ---------- */

.native__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  align-items: stretch;
}
.platform { display: grid; gap: 24px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 40px); }
.platform img { width: 100%; }
.platform .ticks { width: 100%; }
.platform__head { display: grid; gap: 6px; }

.platform--mac {
  border-radius: 28px;
  background: var(--raised);
  box-shadow: 0 1px 0 rgba(15, 22, 41, 0.06), 0 40px 80px -50px rgba(15, 22, 41, 0.45);
}
.platform--mac .platform__title { font-size: 1.9rem; font-stretch: 90%; letter-spacing: -0.02em; line-height: 1.1; }
.platform--mac .platform__sub { color: var(--fg-2); }
.platform--mac .shot--round { box-shadow: 0 24px 48px -24px rgba(15, 22, 41, 0.5); }

/* Omarchy panel: a titled frame, one monospace face, the theme's colors, keys on screen. */
.platform--omarchy {
  --t-bg: #1A1B26; --t-fg: #C0CAF5; --t-fg-2: #A9B1D6; --t-line: #3B4261; --t-accent: #7AA2F7; --t-ok: #9ECE6A;
  position: relative;
  padding-top: clamp(40px, 4vw, 52px);
  border: 1px solid var(--t-line);
  background: var(--t-bg);
  color: var(--t-fg);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.platform--omarchy[data-theme="latte"] {
  --t-bg: #EFF1F5; --t-fg: #4C4F69; --t-fg-2: #5C5F77; --t-line: #BCC0CC; --t-accent: #1E66F5; --t-ok: #40A02B;
}
/* The frame is drawn inside, as the app draws its panes, with the title set into its top edge. */
.platform--omarchy::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid var(--t-line);
  pointer-events: none;
  transition: border-color 0.35s ease;
}
.platform--omarchy .platform__title {
  position: absolute; top: calc(12px - 0.8em); left: 30px;
  padding: 0 10px;
  background: var(--t-bg);
  color: var(--t-accent);
  font-size: 1rem; font-weight: 700;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.platform--omarchy .platform__sub { color: var(--t-fg-2); }
.platform--omarchy .shot--square { outline-color: var(--t-line); }
.platform--omarchy kbd {
  border: 1px solid var(--t-line); border-radius: 0;
  background: transparent; color: var(--t-accent);
  font-family: var(--mono); font-weight: 700; font-size: 0.85em;
}

.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.themes label { position: relative; }
.themes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.themes span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--t-line);
  color: var(--t-fg-2); font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.themes kbd { padding: 0 6px; }
.themes input:checked + span { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-bg); }
.themes input:checked + span kbd { color: var(--t-bg); border-color: var(--t-bg); }
.themes input:focus-visible + span { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.themes__stage { position: relative; width: 100%; aspect-ratio: 1440 / 900; }
.themes__img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.themes__img.is-active { opacity: 1; }
.themes__note { color: var(--t-fg-2); font-size: 0.875rem; margin-top: -8px; }

.ticks--term { gap: 8px; font-size: 0.875rem; }
.ticks--term li { padding-left: 40px; }
.ticks--term li::before {
  content: "[x]"; top: 0; width: auto; height: auto; border-radius: 0;
  background: none; -webkit-mask: none; mask: none;
  color: var(--t-ok); font-weight: 700;
}
.ticks--term li::after { content: none; }

/* ---------- Agents ---------- */

.tags { display: flex; gap: 8px; }
.agents__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  margin-top: clamp(48px, 6vw, 72px);
  align-items: start;
}
.ways { list-style: none; border-bottom: 1px solid var(--rule); }
.ways li { padding: 18px 0; border-top: 1px solid var(--rule); }
.ways h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.ways p { color: var(--fg-2); font-size: 0.9375rem; margin-top: 2px; }

.agent-demo { margin: 0; display: grid; gap: 16px; }
.term {
  border-radius: 14px;
  background: #060A15;
  border: 1px solid rgba(189, 207, 235, 0.16);
  font-family: var(--mono); font-size: 0.875rem; line-height: 1.65;
  color: #C9D1EA;
  overflow: hidden;
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid rgba(189, 207, 235, 0.1);
}
.term__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(189, 207, 235, 0.22); }
.term__bar em { margin-left: 8px; font-style: normal; font-size: 0.75rem; color: #7E88A8; }
.term__body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.term__you { color: #fff; }
.term__you span { color: var(--ribbon); margin-right: 6px; }
.term__muted { color: #7E88A8; }
.term__hl { color: #8FB2F5; }

/* A proposed plan, drawn like the Mac app's calendar with dashed drafts. */
.draft {
  border-radius: 16px; background: #141518; color: #ECEDF0;
  border: 1px solid #2A2B31; padding: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.draft__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.draft__head strong { font-weight: 600; }
.draft__head span { font-size: 0.8125rem; color: #A1A3AB; }
.draft__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.draft__day {
  position: relative; height: 240px; padding-top: 32px;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, #1C1D21 0 1px, transparent 1px 44px) 0 32px / 100% 100% no-repeat, #16171B;
}
.draft__label { position: absolute; top: 8px; left: 10px; font-size: 0.75rem; font-weight: 600; color: #A1A3AB; }
.draft__block {
  position: absolute; left: 6px; right: 6px;
  top: calc(32px + var(--start) * 44px + 2px);
  height: calc(var(--len) * 44px - 4px);
  display: grid; align-content: start; gap: 1px;
  padding: 5px 8px;
  border: 1.5px dashed #5B8DEF; border-radius: 6px;
  background: rgba(46, 107, 230, 0.14);
  color: #DCE6FB; font-size: 0.75rem; font-weight: 600; line-height: 1.25;
  overflow: hidden;
}
.draft__block b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft__block small { font-size: 0.6875rem; font-weight: 500; color: #A9BCE0; font-variant-numeric: tabular-nums; }
.draft__actions { display: flex; gap: 8px; margin-top: 14px; }
.draft__btn {
  padding: 6px 14px; border-radius: 8px;
  background: #232429; border: 1px solid #2F3036;
  font-size: 0.8125rem; font-weight: 600; color: #D4D6DB;
}
.draft__btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Everything ---------- */

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.875rem; color: var(--fg-2); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .tag { vertical-align: 0; }
.legend i { display: inline-block; }

.features {
  width: 100%; min-width: 620px;
  margin-top: clamp(40px, 5vw, 56px);
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.features th, .features td { padding: 12px 12px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; }
.features thead th { border-top: 0; color: var(--fg-3); font-size: 0.8125rem; font-weight: 600; }
.features thead th:first-child, .features tbody th { padding-left: 0; }
.features tbody th { font-weight: 500; color: var(--fg); width: 52%; }
.features td { color: var(--fg-2); width: 16%; }
.features__group th {
  padding-top: 40px; padding-bottom: 10px;
  font-size: 1.25rem; font-weight: 600; font-stretch: 92%; letter-spacing: -0.01em;
  color: var(--fg); border-top: 0;
}
.features tr:first-child.features__group th { padding-top: 12px; }

/* Available and not-planned read as icons; their words stay for screen readers. */
.st--yes, .st--no, .legend .yes, .legend .no {
  position: relative; display: inline-block; width: 20px; height: 20px;
  overflow: hidden; color: transparent; font-size: 0; vertical-align: middle;
}
.st--yes::before, .legend .yes::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3F8F5F;
}
html[data-tone="night"] .st--yes::before, html[data-tone="night"] .legend .yes::before { background: #4FA673; }
.st--yes::after, .legend .yes::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.st--no::before, .legend .no::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; background: var(--fg-3);
}
.st--soon, .st--later {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.st--soon { border: 1px solid color-mix(in oklab, var(--now) 55%, transparent); color: var(--soon-fg); }
.st--soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--now); }
.st--later { border: 1px dashed var(--fg-3); color: var(--fg-2); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 72px); }
.plan { display: grid; gap: 18px; align-content: start; justify-items: start; padding: clamp(28px, 3.5vw, 44px); border-radius: 28px; }
.plan h3 { font-size: 1.1rem; font-weight: 600; }
.plan__price { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 600; font-stretch: 80%; letter-spacing: -0.04em; line-height: 0.9; }
.plan__price--text { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.plan__lede { max-width: 26em; }
.plan .ticks { width: 100%; padding-top: 18px; }
.plan .ticks .tag { vertical-align: 0.1em; margin-left: 4px; }
.plan--free { background: var(--paper); color: var(--ink); }
.plan--free .plan__lede { color: var(--ink-2); }
.plan--free .ticks { border-top: 1px solid rgba(15, 22, 41, 0.13); }
.plan--free .button { margin-top: 10px; }
.plan--premium {
  background: linear-gradient(180deg, rgba(109, 91, 208, 0.16), rgba(109, 91, 208, 0.04));
  box-shadow: 0 0 0 1px rgba(179, 165, 247, 0.35) inset;
}
.plan--premium .plan__lede { color: var(--fg-2); }
.plan--premium .ticks { border-top: 1px solid var(--rule); }
.plan--premium .ticks li::before { background: var(--violet-2); }
.plan--premium .ticks li::after { border-color: var(--night); }

/* ---------- Download and footer ---------- */

.download { padding-bottom: var(--section); }
.download__inner { display: grid; justify-items: center; text-align: center; gap: 24px; }
.download__icon {
  width: clamp(104px, 12vw, 150px);
  filter: drop-shadow(0 24px 48px rgba(189, 207, 235, 0.22));
}
.download__title { font-size: clamp(3rem, 8vw, 7rem); font-stretch: 80%; line-height: 0.92; }
.download .lead { margin-inline: auto; }

.footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center;
  color: var(--fg-2); font-size: 0.9375rem;
}
.footer nav { display: flex; gap: 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--fg); }
.footer__copy { grid-column: 1 / -1; color: var(--fg-3); font-size: 0.8125rem; }

/* ---------- Install dialog ---------- */

.install {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #7AA2F7;
  background: #1A1B26; color: #C0CAF5;
  font-family: var(--mono); font-size: 0.9375rem; line-height: 1.6;
}
.install::backdrop { background: rgba(6, 10, 21, 0.62); backdrop-filter: blur(4px); }
.install__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid #3B4261;
  color: #7AA2F7; font-weight: 700;
}
.install__close { border: 0; background: none; color: #A9B1D6; cursor: pointer; padding: 4px; }
.install :focus-visible, .platform--omarchy :focus-visible { outline-color: #7AA2F7; border-radius: 0; }
.install__close:hover { color: #C0CAF5; }
.install kbd, .install__close kbd {
  border: 1px solid #3B4261; border-radius: 0; background: transparent;
  color: #7AA2F7; font-family: var(--mono); font-weight: 700;
}
.install__steps { list-style: none; counter-reset: step; display: grid; gap: 22px; padding: 22px 20px 8px; }
.install__steps li { counter-increment: step; position: relative; padding-left: 34px; display: grid; gap: 10px; }
.install__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; color: #9ECE6A; font-weight: 700; }
.install__steps p { color: #A9B1D6; }
.install code { font-family: var(--mono); color: #C0CAF5; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 14px; background: #16161E; border: 1px solid #3B4261;
}
.cmd code { min-width: 0; overflow-wrap: anywhere; }
.cmd code::before { content: "$ "; color: #565F89; }
.cmd__copy {
  border: 1px solid #3B4261; background: none; color: #7AA2F7;
  padding: 3px 10px; cursor: pointer; font-family: var(--mono); font-size: 0.8125rem;
}
.cmd__copy:hover { background: #7AA2F7; color: #1A1B26; }
.install__note { padding: 12px 20px 20px 54px; color: #A9B1D6; font-size: 0.8125rem; }
.install__note a { color: #7AA2F7; }
.install__note a:hover { color: #C0CAF5; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero__aside { grid-column: 3 / -1; }
  .promise { grid-template-columns: 1fr 1fr; }
  .promise__title { grid-column: 1 / -1; }
  .promise__proof { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .hero__aside { grid-column: 1 / -1; }
  .states, .compare, .step, .step__copy--split, .native__grid, .agents__grid, .plans, .focus-lists { grid-template-columns: 1fr; }
  .compare .table-scroll, .compare .footnote { grid-column: 1; }
  .step--capture .step__visual { order: 2; }
  .focus-visual__omarchy { right: -2%; width: 60%; }
  .focus-visual { padding-bottom: 28%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .promise { grid-template-columns: 1fr; gap: 14px; }
  .seam__legend { grid-template-columns: 1fr 1fr; }
  .seam__hint { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .seam__half { width: 24px; }
  .seam__handle { height: 36px; }
  .store-btn { height: 54px; }
  .cta-row { width: 100%; }
  .cta-row .store-btn { flex: 1 1 200px; justify-content: center; }
  .draft__block small { display: none; }
  .features { font-size: 0.875rem; }
}

/* On phones each feature becomes a small card: its name, then Mac, Omarchy and plan. */
@media (max-width: 640px) {
  .features { min-width: 0; }
  .features thead { display: none; }
  .features tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
  .features th, .features td { border-top: 0; padding: 0; width: auto; }
  .features tbody th { grid-column: 1 / -1; margin-bottom: 8px; }
  .features td { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.8125rem; }
  .features td::before { font-size: 0.6875rem; font-weight: 600; color: var(--fg-3); }
  .features td:nth-child(2)::before { content: "Mac"; }
  .features td:nth-child(3)::before { content: "Omarchy"; }
  .features td:last-child::before { content: "Plan"; }
  .features td[colspan] { grid-column: span 2; }
  .features td[colspan]::before { content: "Both apps"; }
  .features tr.features__group { display: block; border-top: 0; padding: 0; }
  .features__group th { display: block; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .hero__title { opacity: 1; }
}
