/* Total Recall. Tokens from Sources/TotalRecall/Theme (Palette), light and dark. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk: #FDFCF9;
  --desk-dim: #F2EFE9;
  --fill: #EFEBE4;
  --title: #15130F;
  --text: #27241F;
  --ink: #1C1A16;
  --muted: #6B665C;
  --faint: #E7E2D9;
  --tick: #D0C9BC;
  --claude: #3443A6;
  --point: #E0452A;
  --card: #FDFCF9;
  --highlight: #F6E6A6;
  --button-ink: #FDFCF9;
  --shadow: 48 36 15;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --settle: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #1A1815;
    --desk-dim: #100F0D;
    --fill: #25221E;
    --title: #F4F0E8;
    --text: #D9D2C6;
    --ink: #E9E4DA;
    --muted: #A39C8F;
    --faint: #2B2823;
    --tick: #403B34;
    --claude: #A9B3FF;
    --point: #FF7456;
    --card: #25221E;
    --highlight: #4A3F1C;
    --button-ink: #15130F;
    --shadow: 0 0 0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--claude); outline-offset: 3px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.folio {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

kbd {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  display: inline-block;
  min-width: 20px;
  padding: 4px 5px;
  text-align: center;
  color: var(--ink);
  background: var(--desk);
  border: 1px solid var(--tick);
  border-radius: 6px;
  box-shadow: 0 1.5px 0 var(--tick);
}

/* The point: coral, the reader's. It breathes only while the page waits for you. */
.point {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--point);
  flex: none;
}
.breathing { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.7; }
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--button-ink);
  text-decoration: none;
  transition: transform 0.2s var(--settle), opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.req { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Hero */

.hero {
  min-height: min(86vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 72px 24px 56px;
}
.mark {
  position: relative;
  height: clamp(64px, 11vw, 104px);
  width: 100%;
  display: grid; place-items: center;
}
.mark > * { grid-area: 1 / 1; }
.wordmark, .mark-frame {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--title);
  white-space: nowrap;
}
.wm-c, .f-pivot { color: var(--point); }
.mark-point { width: 14px; height: 14px; display: none; }
.mark-frame { display: none; width: 100%; grid-template-columns: 1fr auto 1fr; }
.f-before { text-align: right; }
.f-after { text-align: left; }
/* The intro, run by site.js: the point, two Speed read frames, then the name out from its c. */
.intro-point .mark-point { display: inline-block; }
.intro-point .wordmark, .intro-frame .wordmark { visibility: hidden; }
.intro-frame .mark-frame { display: grid; }
.intro-name .wm-first { opacity: 0; }
.wm-first { transition: opacity 0.31s ease-out 0.17s; }
.wordmark.glide { transition: transform 0.6s var(--settle); }

.tagline {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.25;
  color: var(--title);
}
.lede {
  margin-top: 14px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
}
.hero .btn { margin-top: 32px; }
.js .hero .tagline, .js .hero .lede, .js .hero .btn, .js .hero .req {
  transition: opacity 0.6s var(--settle), transform 0.6s var(--settle), filter 0.6s var(--settle);
}
.waiting .hero .tagline, .waiting .hero .lede, .waiting .hero .btn, .waiting .hero .req {
  opacity: 0; transform: translateY(4px); filter: blur(6px);
}
.js .hero .lede { transition-delay: 0.08s; }
.js .hero .btn { transition-delay: 0.16s; }
.js .hero .req { transition-delay: 0.22s; }

/* Demo */

.demo { padding: 0 20px; }
.stage {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--desk-dim);
  border: 0.5px solid var(--tick);
  border-radius: 16px;
}
.send {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-bottom: 0.5px solid var(--tick);
  min-height: 52px;
}
.send .agent { color: var(--claude); flex: none; }
.prompt {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
  flex: 1; min-width: 0;
}
.caret-mark { color: var(--muted); }
.caret {
  display: inline-block; width: 7px; height: 15px; margin-left: 2px;
  vertical-align: -2px;
  background: var(--ink);
  opacity: 0;
}
.typing .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sent { flex: none; transition: opacity 0.4s; }
.await .sent, .typing .sent { opacity: 0; }
.quiet {
  flex: none;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--tick);
}
.quiet:hover { color: var(--title); }

.desk {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 33rem) minmax(240px, 280px);
  justify-content: center;
  column-gap: 36px;
  padding: 44px 24px 36px;
}

.ideas ol { margin-top: 14px; display: grid; gap: 12px; }
.idea {
  position: relative;
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 21px;
  color: var(--text);
  padding-left: 16px;
  transition: color 0.2s;
}
.idea::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--claude); opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.idea:hover, .idea:focus-visible, .idea.on { color: var(--title); }
.idea:hover::before, .idea:focus-visible::before, .idea.on::before { opacity: 1; transform: scale(1.3); }

.page {
  position: relative;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 28px;
  color: var(--text);
  transition: opacity 0.7s var(--settle), filter 0.7s var(--settle), transform 0.7s var(--settle);
}
.page h3 {
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: var(--title);
  margin: 6px 0 14px;
}
.page p + p { margin-top: 14px; }
.page .running { font-family: var(--mono); }
.await .page, .await .ideas, .typing .page, .typing .ideas, .sending .page, .sending .ideas { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.ideas { transition: opacity 0.7s var(--settle) 0.15s, filter 0.7s var(--settle) 0.15s, transform 0.7s var(--settle) 0.15s; }

.s { cursor: pointer; border-radius: 3px; }
.s:focus-visible { outline-offset: 1px; }
.page ::selection { background: color-mix(in srgb, var(--claude) 22%, transparent); }
/* What lies under the words: the reader's highlight first, then a lit idea, then the selection. */
.w, .sp { transition: background-color 0.25s; }
.lit .w, .lit .sp { background: color-mix(in srgb, var(--claude) 13%, transparent); }
.hl { background: var(--highlight) !important; }
.sel { background: color-mix(in srgb, var(--claude) 22%, transparent) !important; }
.anchor { box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--claude) 70%, transparent); }

/* Marks: a Claude point left of the first line of each key idea's sentence. */
.gutter {
  position: absolute; left: -18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--claude); opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.gutter.on { opacity: 1; transform: scale(1.3); }

.margin { position: relative; min-height: 80px; }
.note {
  position: absolute; left: 0; right: 0;
  background: var(--card);
  border: 0.5px solid var(--tick);
  border-radius: 12px;
  padding: 12px 14px 14px;
  transition: top 0.4s var(--settle), opacity 0.3s;
}
.note-head { display: flex; align-items: center; gap: 8px; }
.note-head .folio { color: var(--claude); flex: 1; }
.cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--claude); flex: none; }
.note-close {
  width: 24px; height: 24px; margin: -4px -6px -4px 0;
  border-radius: 50%;
  color: var(--muted); font-size: 16px; line-height: 24px;
}
.note-close:hover { color: var(--title); background: var(--fill); }
.note-on {
  display: none;
  margin-top: 6px;
  font-family: var(--serif); font-size: 13px; line-height: 18px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-text {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
}
.note-text .nw { opacity: 0; transition: opacity 0.35s ease-out; }
.note-text .nw.in { opacity: 1; }
.cite {
  display: inline-block;
  min-width: 16px; height: 16px;
  margin-left: 3px;
  padding: 0 4px;
  vertical-align: 2px;
  border-radius: 8px;
  font-family: var(--mono); font-size: 10px; line-height: 16px;
  color: var(--claude);
  background: color-mix(in srgb, var(--claude) 14%, transparent);
  opacity: 0; transition: opacity 0.35s ease-out;
}
.cite.in { opacity: 1; }
.cite:hover { background: color-mix(in srgb, var(--claude) 26%, transparent); }

.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lines path {
  fill: none; stroke: var(--claude); stroke-width: 1; opacity: 0.7;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s var(--settle);
}
.lines path.in { stroke-dashoffset: 0; }

.menu {
  position: absolute; z-index: 5;
  display: flex; gap: 2px;
  padding: 4px;
  background: var(--card);
  border: 0.5px solid var(--tick);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgb(var(--shadow) / 0.16), 0 1px 3px rgb(var(--shadow) / 0.1);
  animation: menu-in 0.16s var(--settle);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(3px) scale(0.98); } }
.menu button {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 15px; line-height: 20px;
  color: var(--ink);
  white-space: nowrap;
}
.menu button:hover, .menu button:focus-visible, .menu button.down { background: var(--fill); }
.menu button.down kbd { transform: translateY(1.5px); box-shadow: none; }

.hint {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 22px 18px;
  border-top: 0.5px solid var(--tick);
  font-size: 15px;
  color: var(--muted);
}
.hint kbd { margin: 0 2px; }
.aside { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }

/* Points */

.points { max-width: 1160px; margin: 0 auto; padding: 120px 24px 0; }
.points h2, .get h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--title);
  text-align: center;
}
.points ul {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.points li { border-top: 0.5px solid var(--tick); padding-top: 18px; }
.points h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--title);
}
.points li p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 24px; }

.get {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 128px 24px 104px;
}
.get img { border-radius: 22px; }
.get h2 { margin-top: 20px; }
.get .btn { margin-top: 28px; }
.fine { margin-top: 20px; max-width: 30em; font-size: 14px; color: var(--muted); }

footer {
  border-top: 0.5px solid var(--tick);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer p + p { margin-top: 4px; }

/* Narrow: one column. Notes float over the foot of the page, so the page does not move. */
@media (max-width: 1119px) {
  .desk { display: block; padding: 28px 22px 20px 30px; }
  .ideas { margin-bottom: 26px; }
  .ideas ol { gap: 8px; }
  .lines { display: none; }
  .margin { position: sticky; bottom: 12px; z-index: 4; min-height: 0; margin: 20px -8px 0 -16px; }
  .note {
    position: static;
    box-shadow: 0 10px 32px rgb(var(--shadow) / 0.2), 0 1px 3px rgb(var(--shadow) / 0.12);
  }
  .note:not(.latest) { display: none; }
  .note-on { display: block; }
  .points { padding-top: 88px; }
  .points ul { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .demo { padding: 0 12px; }
  .send { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .prompt { flex-basis: 100%; order: 3; font-size: 12px; }
  .send .agent { flex: 1; }
  .desk { padding: 22px 16px 16px 28px; }
  .page { font-size: 16px; line-height: 26px; }
  .page h3 { font-size: 23px; }
  .hint { align-items: flex-start; text-align: left; padding: 12px 16px 14px; font-size: 14px; }
  .hint .point { margin-top: 6px; }
  .points ul { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .get { padding: 96px 24px 80px; }
}

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