/* Tokometer. One narrow column, the system's type, and the product as the only picture. */

:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --field: #f5f5f7;
  --accent: #1d1d1f;
  --blue: #0a84ff;
  --green: #30c75a;
  --green-ink: #1f9d45;
  --red: #e5484d;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --ink: #f2f2f4;
    --ink-2: #b6b6bc;
    --ink-3: #85858c;
    --line: rgba(255, 255, 255, 0.1);
    --field: #1d1d20;
    --accent: #f2f2f4;
    --green-ink: #4cd273;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

main { max-width: 600px; margin: 0 auto; padding: 88px 24px 24px; }

a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
code { font: 0.86em var(--mono); background: var(--field); padding: 0.12em 0.4em; border-radius: 5px; }
b { font-weight: 600; }

header { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.icon { width: 56px; height: 56px; border-radius: 13px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12)); }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }

.note p { margin: 0 0 16px; color: var(--ink-2); }
.note p:first-child { color: var(--ink); }

section { margin: 64px 0 0; }
section p { color: var(--ink-2); margin: 0 0 14px; }

/* Getting it: an address and a button, nothing else. */
.get { display: flex; gap: 8px; margin: 32px 0 10px; }
.get input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px;
  border: 0; border-radius: 10px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
  transition: box-shadow 0.15s ease-out;
}
.get input[type="email"]::placeholder { color: var(--ink-3); }
.get input[type="email"]:focus { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.get button, .button {
  flex: none;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 13px 20px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: var(--bg);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform 0.1s ease-out, opacity 0.15s ease-out;
}
.get button:active, .button:active { transform: scale(0.97); }
.get button:disabled { opacity: 0.55; cursor: default; }
.get.busy button { opacity: 0.55; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.get-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.get-note.bad { color: var(--red); }
.sent { margin: 32px 0 10px; font-weight: 600; }

/* The picture: a desktop, the Dock, the widget in it and the shelf above. All drawn, so it is sharp
   at any size and follows the reader's light or dark. */
.shot { margin: 56px -40px 0; }
.desk {
  position: relative;
  padding: 28px 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 15% 10%, #c9dcff 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 20%, #ffd9c2 0%, transparent 55%),
    linear-gradient(160deg, #e8eef9, #f6eee8);
  overflow: hidden;
  font-size: 12px; line-height: 1.35; letter-spacing: 0;
  color: #1d1d1f;
}
@media (prefers-color-scheme: dark) {
  .desk {
    background:
      radial-gradient(120% 90% at 15% 10%, #24365a 0%, transparent 55%),
      radial-gradient(90% 80% at 90% 20%, #4a2f2a 0%, transparent 55%),
      linear-gradient(160deg, #1a2030, #241c1c);
    color: #f2f2f4;
  }
}
.desk small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.55; display: block; }
.desk .dim { opacity: 0.55; }
.shelf, .dock { background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.75); }
@media (prefers-color-scheme: dark) {
  .shelf, .dock { background: rgba(40, 40, 46, 0.6); border-color: rgba(255, 255, 255, 0.12); }
}

.shelf {
  display: grid; grid-template-columns: 1fr 1.35fr 0.95fr;
  border-radius: 18px; padding: 14px 0;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.3);
  margin: 0 auto 12px; max-width: 640px;
}
.col { padding: 0 14px; display: flex; flex-direction: column; min-width: 0; }
.col + .col { border-left: 1px solid rgba(0, 0, 0, 0.08); }
@media (prefers-color-scheme: dark) { .col + .col { border-left-color: rgba(255, 255, 255, 0.1); } }
.row { display: flex; gap: 10px; align-items: center; }
.ring { transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: currentColor; opacity: 0.12; stroke-width: 5; }
.ring .arc { stroke-width: 5; }
.ring .green { stroke: var(--green); }
.ring.big { width: 44px; height: 44px; }
.ring.big circle { stroke-width: 6; }
.fig { font: 600 22px/1.05 ui-rounded, -apple-system, sans-serif; letter-spacing: -0.02em; display: block; }
.fig i, .wk-top i { font-style: normal; font-size: 0.6em; opacity: 0.55; }
.word { font-size: 10px; font-weight: 600; }
.green-t { color: var(--green-ink); }
.line { font-size: 10.5px; margin: 8px 0 0; opacity: 0.6; color: inherit; }
.week { margin-top: auto; padding-top: 10px; }
.wk-top { display: flex; align-items: baseline; gap: 4px; }
.wk-top small { display: inline; margin-right: 2px; }
.wk-top b { font: 600 14px ui-rounded, -apple-system, sans-serif; }
.wk-top .word { margin-left: auto; }
.bar { position: relative; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.1); margin: 5px 0; }
@media (prefers-color-scheme: dark) { .bar { background: rgba(255, 255, 255, 0.14); } }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--green); }
.bar em { position: absolute; top: -3px; width: 2px; height: 11px; border-radius: 1px; background: currentColor; opacity: 0.8; }
.wk-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; white-space: nowrap; }

.tally { font-size: 10px; margin: 2px 0 6px; }
.accts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.accts li { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.logo { width: 22px; height: 22px; border-radius: 6px; flex: none; background-size: cover; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.logo.codex { background-image: url("/logos/chatgpt.png"); }
.logo.claude { background-image: url("/logos/claude.png"); }
.who { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who em { font-style: normal; opacity: 0.5; }
.who .dim { font-weight: 400; }
.when { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.when .dim { font-weight: 400; }

.cal .dim { font-size: 10px; margin: 2px 0 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.days span { aspect-ratio: 1.15; border-radius: 4px; font-size: 7.5px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.days .later { opacity: 0.3; }
.days .l0 { background: rgba(0, 0, 0, 0.07); }
.days .l1 { background: rgba(48, 199, 90, 0.3); }
.days .l2 { background: rgba(48, 199, 90, 0.52); }
.days .l3 { background: rgba(48, 199, 90, 0.76); color: #fff; }
.days .l4 { background: var(--green); color: #fff; }
.days .today { box-shadow: inset 0 0 0 1.25px rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) { .days .l0 { background: rgba(255, 255, 255, 0.1); } .days .today { box-shadow: inset 0 0 0 1.25px rgba(255, 255, 255, 0.6); } }

.dock {
  display: flex; align-items: center; gap: 9px; width: max-content; margin: 0 auto;
  padding: 7px 9px; border-radius: 18px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.35);
}
.app { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.a1 { background: linear-gradient(150deg, #7cc8ff, #2378e6); }
.a2 { background: linear-gradient(150deg, #ffe08f, #f4a52a); }
.a3 { background: linear-gradient(150deg, #b0f0c0, #2fb35b); }
.trash { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(205, 212, 216, 0.95)); }
.sep { width: 1px; height: 34px; background: currentColor; opacity: 0.2; }
.widget {
  display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 8px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.3); box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.85);
}
@media (prefers-color-scheme: dark) { .widget { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.2); } }
.widget .ring { width: 28px; height: 28px; }
.widget .fig { font-size: 15px; }
.widget small { font-size: 7px; }
.vr { width: 1px; height: 22px; background: currentColor; opacity: 0.15; }
.wk { position: relative; display: flex; flex-direction: column; align-items: center; }
.wk .ring.sm { width: 22px; height: 22px; }
.wk b { position: absolute; top: 5px; font: 700 8px ui-rounded, -apple-system, sans-serif; }
.wk small { font-size: 6.5px; margin-top: 1px; }

/* How it works, and what it does */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 34px; margin: 0 0 18px; color: var(--ink-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
  background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.steps b { color: var(--ink); }
.features { margin: 0; padding: 0; list-style: none; }
.features li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.features li:last-child { border-bottom: 1px solid var(--line); }

details { margin-top: 6px; }
summary { cursor: pointer; color: var(--ink); font-size: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "›"; display: inline-block; margin-right: 8px; color: var(--ink-3); transition: transform 0.15s ease-out; }
details[open] summary::before { transform: rotate(90deg); }
table { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); }
tbody th { font-weight: 400; color: var(--ink-2); }
td { width: 26%; }
td:nth-child(2) { font-weight: 600; }
.fine { font-size: 13px; color: var(--ink-3); }

footer { max-width: 600px; margin: 0 auto; padding: 64px 24px 72px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 680px) {
  main { padding-top: 56px; }
  .shot { margin: 44px -12px 0; }
  .desk { padding: 16px 10px 12px; }
  .shelf { grid-template-columns: 1fr; padding: 4px 0; }
  .col { padding: 12px 14px; }
  .col + .col { border-left: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .cal .days { max-width: 260px; }
  .get { flex-direction: column; }
  .get button { width: 100%; }
}

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