/* =========================================================================
   thoughtdesk.org
   The app's look (src/app.css): grayscale with the label colours as
   accents, Inter with optical sizing, continuous corners, quiet shadows.
   ========================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --separator: #e8e8ed;
  --hairline: rgba(0, 0, 0, 0.08);
  --fill: rgba(0, 0, 0, 0.045);
  --fill-2: rgba(0, 0, 0, 0.07);
  --ink: #1d1d1f;
  --on-ink: #ffffff;
  --selected: #ffffff;

  --c-red: #ff3b30;
  --c-orange: #ff9500;
  --c-yellow: #ffcc00;
  --c-green: #34c759;
  --c-teal: #30b0c7;
  --c-blue: #007aff;
  --c-indigo: #5856d6;
  --c-purple: #af52de;
  --c-pink: #ff2d55;
  --c-gray: #8e8e93;

  --shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-window: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 40px 90px -30px rgba(0, 0, 0, 0.3), 0 16px 36px -18px rgba(0, 0, 0, 0.14);
  --shadow-tab: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.12);

  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1080px;
  --gutter: 24px;
  --r-md: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0f0f10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --separator: #2c2c2e;
    --hairline: rgba(255, 255, 255, 0.1);
    --fill: rgba(255, 255, 255, 0.07);
    --fill-2: rgba(255, 255, 255, 0.11);
    --ink: #f5f5f7;
    --on-ink: #000000;
    --selected: #3a3a3c;

    --c-red: #ff453a;
    --c-orange: #ff9f0a;
    --c-yellow: #ffd60a;
    --c-green: #30d158;
    --c-teal: #40c8e0;
    --c-blue: #0a84ff;
    --c-indigo: #5e5ce6;
    --c-purple: #bf5af2;
    --c-pink: #ff375f;
    --c-gray: #98989d;

    --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    --shadow-window: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    --shadow-tab: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 450 17px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
kbd,
code {
  font: 500 0.86em var(--mono);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill-2);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 150ms var(--ease),
    transform 150ms var(--ease),
    background-color 150ms var(--ease);
}
.button:hover {
  opacity: 0.86;
}
.button:active {
  transform: scale(0.97);
}
.button.secondary {
  background: var(--fill);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--fill-2);
  opacity: 1;
}
.button.small {
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
}
.button .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

/* ---------------------------------------------------------------- header */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition:
    color 120ms var(--ease),
    background-color 120ms var(--ease);
}
.nav nav a:hover {
  color: var(--text);
  background: var(--fill);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 88px 0 0;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
}
.hero h1 {
  max-width: 880px;
  margin: 24px auto 0;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
.lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}
.fine + .fine {
  margin-top: 4px;
}

/* A window: a screenshot of the app with the shadow of one. */
.shot {
  position: relative;
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}
.shot::before {
  /* The label colours, very softly, behind the window. */
  content: '';
  position: absolute;
  inset: 8% 10% -6%;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 40%, color-mix(in srgb, var(--c-blue) 55%, transparent), transparent 70%),
    radial-gradient(35% 45% at 50% 70%, color-mix(in srgb, var(--c-purple) 45%, transparent), transparent 70%),
    radial-gradient(40% 50% at 84% 38%, color-mix(in srgb, var(--c-green) 45%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: 0.32;
}
.window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-window);
}
.window img {
  width: 100%;
}

/* ----------------------------------------------------------------- stats */

.stats {
  padding: 80px 0 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 112px 0;
}
.tinted {
  background: var(--bg-2);
}
.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.034em;
}
.section-head p {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
}
.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-blue) 14%, transparent);
  color: var(--c-blue);
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ tour */

.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  gap: 2px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--fill);
  scrollbar-width: none;
}
.tabs button {
  flex: none;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: 550 15px/1 var(--font);
  cursor: pointer;
  transition:
    color 120ms var(--ease),
    background-color 120ms var(--ease);
}
.tabs button:hover {
  color: var(--text);
}
.tabs button[aria-selected='true'] {
  background: var(--selected);
  color: var(--text);
  box-shadow: var(--shadow-tab);
}
.panel > p {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 18px;
  color: var(--text-2);
}
.panel > p strong {
  color: var(--text);
  font-weight: 600;
}
.panel .shot {
  margin-top: 0;
  padding: 0;
}
.panel + .panel {
  margin-top: 72px;
}
.panel[hidden] {
  display: none;
}

/* -------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.feature .badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--tone);
  color: #ffffff;
}
.feature .badge .icon {
  width: 21px;
  height: 21px;
}
/* White doesn't read on yellow. */
.feature.yellow .badge {
  color: #1d1d1f;
}
.feature h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.feature p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.blue {
  --tone: var(--c-blue);
}
.purple {
  --tone: var(--c-purple);
}
.orange {
  --tone: var(--c-orange);
}
.green {
  --tone: var(--c-green);
}
.red {
  --tone: var(--c-red);
}
.teal {
  --tone: var(--c-teal);
}
.yellow {
  --tone: var(--c-yellow);
}
.indigo {
  --tone: var(--c-indigo);
}
.pink {
  --tone: var(--c-pink);
}

/* ------------------------------------------------------- private (dark) */

.private {
  background: #000000;
  color: #f5f5f7;
}
@media (prefers-color-scheme: dark) {
  .private {
    background: #111113;
  }
}
.private .section-head p {
  color: #a1a1a6;
}
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promise {
  padding: 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}
.promise .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  stroke-width: 1.75;
}
.promise h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.promise p {
  margin-top: 8px;
  font-size: 15.5px;
  color: #a1a1a6;
}
.private code {
  background: rgba(255, 255, 255, 0.12);
}

/* ----------------------------------------------------------------- speed */

.speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.speed .section-head {
  margin: 0;
  text-align: left;
}
.bars {
  display: grid;
  gap: 32px;
}
.bars h3 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.bar {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.bar + .bar {
  margin-top: 10px;
}
.bar .label {
  color: var(--text-2);
}
.bar .track {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar .fill {
  height: 12px;
  min-width: 8px;
  width: var(--w);
  border-radius: 999px;
  background: var(--fill-2);
}
/* Out of the larger figure: 4 of 200 MB, 115 of 600 MB. */
.w-download {
  --w: 2%;
}
.w-memory {
  --w: 19%;
}
.w-full {
  --w: 100%;
}
.bar.ours .fill {
  background: var(--c-green);
}
.bar.ours .label {
  color: var(--text);
  font-weight: 600;
}
.bar .value {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

/* ------------------------------------------------------------- together */

.together {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.together .section-head {
  margin: 0;
  text-align: left;
}
.page-card {
  padding: 36px 40px 40px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 16px;
}
.page-card .title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.page-card .lines {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  color: var(--text-2);
}
.page-card .line {
  position: relative;
}
.caret {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin: 0 1px;
  vertical-align: -0.2em;
  background: var(--tone);
}
.caret::after {
  content: attr(data-name);
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 2px 6px;
  border-radius: 5px 5px 5px 0;
  background: var(--tone);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.typed {
  color: var(--text);
}

/* ------------------------------------------------------------------- faq */

.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--separator);
}
.faq details {
  border-bottom: 1px solid var(--separator);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--text-3);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--text-2);
}
.faq details p + p {
  margin-top: -10px;
}

/* ------------------------------------------------------------------- cta */

.cta {
  padding: 120px 0;
  text-align: center;
}
.cta img {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}
.cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--separator);
  font-size: 14px;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
.footer .brand {
  color: var(--text);
}
.footer-brand p {
  max-width: 280px;
  margin-top: 12px;
}
.footer h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}
.copyright {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-3);
}

/* ----------------------------------------------------------------- prose */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px var(--gutter) 112px;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.034em;
}
.prose .updated {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-3);
}
.prose .summary {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.prose .summary h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.prose h2 {
  margin: 52px 0 14px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 30px 0 8px;
  font-size: 18px;
  letter-spacing: -0.012em;
}
.prose p,
.prose li {
  line-height: 1.65;
}
.prose p + p {
  margin-top: 14px;
}
.prose ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 8px;
}
.prose ul + p {
  margin-top: 14px;
}
.prose a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- not found */

.lost {
  padding: 140px 0 160px;
  text-align: center;
}
.lost h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.034em;
}
.lost p {
  margin: 16px auto 32px;
  font-size: 19px;
  color: var(--text-2);
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 920px) {
  .features,
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
  .speed,
  .together {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .speed .section-head,
  .together .section-head {
    text-align: center;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .nav nav {
    display: none;
  }
  .nav .button {
    margin-left: auto;
  }
  .hero {
    padding-top: 56px;
  }
  .actions .button {
    width: 100%;
  }
  .shot {
    margin-top: 48px;
  }
  .window {
    border-radius: 8px;
  }
  .section {
    padding: 80px 0;
  }
  .features,
  .promises {
    grid-template-columns: 1fr;
  }
  .feature,
  .promise {
    padding: 24px;
  }
  .bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stat strong {
    font-size: 28px;
  }
  .tabs button {
    padding: 9px 12px;
    font-size: 14px;
  }
  .page-card {
    padding: 28px 24px 32px;
  }
  .faq details p {
    padding-right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
