@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #f5f5f0;
}

:root {
  --bg: #0a0a0a;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f0;
  --muted: #8e8e93;
  --line: #262628;
  --expenbot: #85bb65;
  --expenbot-ink: #162e0e;
  --musclebot: #e9f40a;
  --musclebot-ink: #000;
  --accent: #f5f5f0;
  --accent-ink: #0a0a0a;
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
  transition: --accent 0.6s ease;
}

:root[data-bot="expenbot"] { --accent: var(--expenbot); --accent-ink: var(--expenbot-ink); }
:root[data-bot="musclebot"] { --accent: var(--musclebot); --accent-ink: var(--musclebot-ink); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.dot { color: var(--accent); }

.glow {
  position: fixed;
  inset: -20vh -20vw auto;
  height: 90vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Nav */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.wordmark {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-mark {
  width: 32px;
  height: 30px;
  flex: none;
}

.nav nav { display: flex; gap: clamp(16px, 3vw, 32px); }

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.nav nav a:hover { color: var(--text); }

/* Hero */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) var(--gutter) 64px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.06em;
  margin: 0;
}

.lede {
  max-width: 34ch;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--muted);
  margin: 28px 0 40px;
}

.console { max-width: 860px; }

.prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  background: #111;
  transition: border-color 0.3s;
}

.prompt:focus-within { border-color: var(--accent); }

.caret {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--accent);
  font-weight: 500;
}

#say {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 28px);
  caret-color: var(--accent);
}

#say::placeholder { color: #4a4a4e; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips button {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.chips button:hover { color: var(--text); border-color: var(--muted); }

.hint {
  font-family: var(--mono);
  font-size: 12px;
  color: #5a5a5e;
  margin: 16px 0 0;
}

/* Result cards */

.result {
  max-width: 860px;
  min-height: 236px;
  margin-top: 28px;
}

.card {
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-head img { width: 24px; height: 24px; border-radius: 6px; }

.card-head b { color: var(--text); font-weight: 700; }

.card-head .understood {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

/* Expenbot row, modelled on the app's expense list */

.exp {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: 24px;
  padding: 18px 22px;
}

.exp-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.exp-main { flex: 1; min-width: 0; }

.exp-payee {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-meta { color: var(--muted); font-size: 16px; }

.exp-amount {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.exp-amount small { color: var(--muted); font-weight: 700; font-size: 0.6em; margin-right: 2px; }

.exp-budget {
  margin-top: 10px;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 22px;
  font-size: 15px;
  color: var(--muted);
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  margin: 8px 0 6px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--expenbot);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Musclebot exercise card, modelled on the app's workout screen */

.lift {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 24px;
}

.lift-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
}

.lift-title span { margin-right: auto; }

.pill {
  font-size: 13px;
  font-weight: 700;
  background: var(--musclebot);
  color: var(--musclebot-ink);
  padding: 3px 10px;
  border-radius: 999px;
}

.lift-sub { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }

.lift-sub em { color: var(--musclebot); font-style: normal; font-weight: 700; }

.set {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  padding: 3px 0;
}

.set span:first-child { color: var(--muted); }

.lift-foot { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Nothing matched */

.nope {
  border: 2px dashed var(--line);
  border-radius: 24px;
  padding: 24px;
  color: var(--muted);
}

.nope b { color: var(--text); }

/* Apps */

.apps, .principles {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.section-title {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 56px;
}

.app {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  border-radius: 40px;
  padding: clamp(28px, 5vw, 72px);
  margin-bottom: 32px;
  overflow: hidden;
}

.app--expenbot {
  --brand: var(--expenbot);
  --brand-ink: var(--expenbot-ink);
  background: linear-gradient(160deg, #1d3a14 0%, #0d160a 70%);
}

.app--musclebot {
  --brand: var(--musclebot);
  --brand-ink: var(--musclebot-ink);
  background: #141414;
  box-shadow: inset 0 0 0 2px #232323;
}

.app-icon { width: 80px; height: 80px; border-radius: 18px; }

.app h3 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 20px 0 4px;
}

.app-tag {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.app-copy > p:not(.app-tag) { color: #c7c7cc; max-width: 46ch; }

.facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.facts li::before { content: "+ "; color: var(--brand); }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn--brand { background: var(--brand); color: var(--brand-ink); }

.btn--ghost { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }

.phone {
  margin: 0;
  justify-self: center;
  width: min(300px, 100%);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 0 0 8px #000, 0 0 0 10px #2a2a2a, 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Principles */

.zeros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line);
}

.zeros div {
  padding: 32px 0;
  border-bottom: 2px solid var(--line);
}

.zeros b {
  display: block;
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.zeros span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--muted);
}

.manifesto {
  max-width: 52ch;
  font-size: clamp(18px, 2vw, 22px);
  color: #c7c7cc;
  margin-top: 40px;
}

/* Footer */

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px var(--gutter) 48px;
  border-top: 2px solid var(--line);
}

.pitch {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 32px;
}

.mail {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 28px);
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.fine { color: #5a5a5e; font-size: 14px; margin-top: 80px; }

/* Wide screens: headline left, demo right, both above the fold */

@media (min-width: 1040px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
    padding-top: clamp(32px, 6vh, 72px);
  }
  h1 { font-size: clamp(96px, 11vw, 176px); }
  .lede { margin-bottom: 0; }
  .hero-demo { padding-top: 44px; }
}

/* Small screens */

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; border-radius: 28px; }
  .phone { width: min(240px, 80%); }
  .zeros { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav nav a[href="#principles"] { display: none; }
  .chips button:nth-child(n + 5) { display: none; }
  .exp { padding: 14px 16px; gap: 12px; }
  .exp-icon { width: 44px; height: 44px; font-size: 22px; }
  .exp-payee { font-size: 18px; }
  .lift { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html { scroll-behavior: auto; }
  .card { animation: none; }
}
