/* The four-app example page (ecosystem.html), in the Full Stop look.
   Self-contained: the page loads only this sheet (and js/boot/prepaint.js,
   which sets html[data-theme] to "dark", "space" or "light" from the saved
   choice before first paint). The tokens are css/fullstop.css section 1,
   under the same names; Studio is the default. */

@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSansVF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fs-canvas: #190d07;
  --fs-s1: #23160e;
  --fs-s2: #2c1e16;
  --fs-s3: #36281e;
  --fs-line: #3c2e25;
  --fs-line-strong: #85776c;
  --fs-t1: #f6ebdd;
  --fs-t2: #d5cabd;
  --fs-t3: #bfb4a7;
  --fs-icon: #9d9286;
  --fs-kept: #4e8fb2;
  --fs-kept-fill: #4e8fb2;
  --fs-kept-ink: #94c9e8;
  --fs-firm: #d8bd8e;
  --fs-on-firm: #21130c;
  --fs-firm-hover: #e4c999;
  --fs-stern: #f77c56;
  --fs-wordmark-chip: transparent;
  --fs-font: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
:root[data-theme="space"] {
  --fs-canvas: #050912;
  --fs-s1: #0b121d;
  --fs-s2: #121926;
  --fs-s3: #1b2331;
  --fs-line: #212937;
  --fs-line-strong: #6b7587;
  --fs-t1: #e4ecf4;
  --fs-t2: #c2cad3;
  --fs-t3: #abb4be;
  --fs-icon: #87909c;
  --fs-firm: #d8bd8e;
  --fs-on-firm: #21130c;
  --fs-firm-hover: #e4c999;
  --fs-kept: #5a9bbe;
  --fs-kept-fill: #5a9bbe;
  --fs-kept-ink: #9ecfec;
  --fs-stern: #f78660;
}
:root[data-theme="light"] {
  color-scheme: light;
  --fs-canvas: #fbf6ee;
  --fs-s1: #fffcf8;
  --fs-s2: #f4efe5;
  --fs-s3: #ece5db;
  --fs-line: #e3dbd1;
  --fs-line-strong: #897e74;
  --fs-t1: #21130c;
  --fs-t2: #5b4c42;
  --fs-t3: #6e6056;
  --fs-icon: #84786d;
  --fs-kept: #1a5f80;
  --fs-kept-fill: #367697;
  --fs-kept-ink: #1a5f80;
  --fs-firm: #21130c;
  --fs-on-firm: #fbf6ee;
  --fs-firm-hover: #000000;
  --fs-stern: #b6351b;
  --fs-wordmark-chip: #131315;
}

html { background: var(--fs-canvas); }
.hub-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--fs-canvas);
  color: var(--fs-t1);
  font-family: var(--fs-font);
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
  font-variant-numeric: proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
.hub-page * { box-sizing: border-box; }
.hub-page :is(h1, h2) { text-wrap: balance; }
.hub-page p { text-wrap: pretty; }
.hub-page a { color: inherit; text-decoration: none; touch-action: manipulation; }
.hub-page a:focus-visible {
  outline: 2px solid var(--fs-kept);
  outline-offset: 2px;
}

/* Header: the wordmark on the canvas (on its dark chip in Day), and the
   Idea Board as a quiet button. */
.hub-header {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: max(20px, env(safe-area-inset-top)) 20px 0;
}
.hub-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.hub-wordmark img {
  display: block;
  width: auto;
  height: 40px;
  border-radius: 10px;
  background: var(--fs-wordmark-chip);
}
[data-theme="light"] .hub-wordmark img {
  height: 48px;
  padding: 8px 12px;
  box-sizing: border-box;
}
.hub-wordmark span {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--fs-t2);
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--fs-line);
  color: var(--fs-t1);
  font-size: 15px;
  line-height: 20px;
  font-weight: 620;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms var(--fs-ease), background-color 120ms var(--fs-ease);
}
.hub-button:active { transform: scale(0.97); }
.hub-page .hub-primary {
  background: var(--fs-firm);
  color: var(--fs-on-firm);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .hub-button:hover { background: var(--fs-s2); }
  .hub-page .hub-primary:hover { background: var(--fs-firm-hover); }
}

.hub-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px max(64px, env(safe-area-inset-bottom));
}
.hub-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 560;
  letter-spacing: 0;
  color: var(--fs-t2);
}
.hub-heading { margin: 0 0 32px; }
.hub-heading h1 {
  margin: 0;
  max-width: 640px;
  font-size: 34px;
  line-height: 40px;
  font-weight: 760;
  font-stretch: 88%;
  letter-spacing: -0.024em;
  color: var(--fs-t1);
}
.hub-heading h1::after {
  content: "";
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.06em;
  border-radius: 1.5px;
  background: var(--fs-line-strong);
  vertical-align: baseline;
}
.hub-heading > p:last-child {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fs-t2);
}

.hub-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.hub-card {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--fs-s1);
  box-shadow: inset 0 0 0 1px var(--fs-line);
}
/* The step number: a small neutral square, as on the setup guide. */
.hub-step {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fs-s3);
  color: var(--fs-t1);
  font-size: 13px;
  line-height: 18px;
  font-weight: 680;
}
.hub-card > .hub-kicker { margin-bottom: 16px; }
.hub-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 660;
  letter-spacing: -0.015em;
  color: var(--fs-t1);
}
.hub-card p {
  margin: 0 0 12px;
  color: var(--fs-t2);
}
.hub-card > p:last-child { margin-bottom: 0; }
/* The closing: the principle and the one action, flat under a hairline so
   the four cards above read as one flow. */
.hub-card.hub-close {
  margin-top: 48px;
  padding: 32px 0 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-top: 1px solid var(--fs-line);
}
.hub-close h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.hub-close .hub-button { margin-top: 12px; }

@media (max-width: 559px) {
  .hub-wordmark span { display: none; }
  .hub-close .hub-button { width: 100%; }
}
@media (min-width: 760px) {
  .hub-header { padding: max(32px, env(safe-area-inset-top)) 48px 0; }
  .hub-main { padding: 80px 48px 96px; }
  .hub-heading { margin-bottom: 48px; }
  .hub-heading h1 { font-size: 56px; line-height: 56px; }
  .hub-heading > p:last-child { margin-top: 16px; }
  .hub-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hub-card { padding: 24px; }
  .hub-card.hub-close { margin-top: 64px; padding: 48px 0 0; }
  .hub-close p { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-button { transition: none; }
  .hub-button:active { transform: none; }
}
