@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F2F0EA;
  --paper-2: #E8E5DC;
  --ink: #121314;
  --ink-2: #53565B;
  --line: #D6D2C8;
  --rec: #E23B24;
  --rec-ink: #B8261A;
  --monitor: #101112;
  --monitor-2: #1B1D1F;
  --osd: #F4F2EC;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0D0E;
    --paper-2: #141618;
    --ink: #EEECE6;
    --ink-2: #A3A6AB;
    --line: #2A2D30;
    --rec-ink: #FF6A55;
    --monitor: #17191B;
    --monitor-2: #222528;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.eyebrow {
  margin: 0 0 18px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.9rem, 5.2vw + 0.6rem, 5.4rem); line-height: 0.98; }
h2 { font-size: clamp(2.3rem, 3.6vw + 0.6rem, 3.8rem); line-height: 1; }
h3 { font-size: 1.9rem; line-height: 1.05; }
em { font-style: italic; }
.nowrap { white-space: nowrap; }
.lede { margin: 20px 0 0; font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.mark { width: 26px; height: 26px; fill: var(--ink); }
.mark .dot { fill: var(--rec); animation: rec 2.4s steps(1, end) infinite; }
@keyframes rec { 0%, 70% { opacity: 1; } 70.01%, 100% { opacity: 0.25; } }
.top-cta { font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s; }
.top-cta:hover { border-color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 48px; padding-block: 28px 96px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 0.92fr 1.08fr; gap: 64px; padding-block: 48px 128px; } }
.hero h1 em { color: var(--ink); }

/* Join form */
.join { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; position: relative; }
.join input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px;
  font: inherit; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s;
}
.join input[type="email"]::placeholder { color: var(--ink-2); opacity: 0.7; }
.join input[type="email"]:hover, .join input[type="email"]:focus { border-color: var(--ink); }
.join input[type="email"]:focus-visible { outline-offset: 1px; }
.join button {
  flex: 0 0 auto; height: 52px; padding: 0 20px;
  font: 600 1rem var(--sans); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, opacity .2s;
}
.join button:hover { transform: translateY(-1px); }
.join button:active { transform: translateY(0); }
.join button[disabled] { opacity: 0.6; cursor: progress; }
.join .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.join .status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 0.95rem; }
.join .status.bad { color: var(--rec-ink); }
.join.done input, .join.done button { display: none; }
.join.done .status { font-size: 1.1rem; font-weight: 500; }
.fine { margin: 8px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.join.done + .fine { display: none; }
@media (max-width: 480px) { .join button { flex: 1 1 100%; } .top-cta { padding: 8px 12px; font-size: 0.9rem; } }

/* Demo */
.demo { margin: 0; }
.monitor {
  background: var(--monitor); border-radius: 20px; padding: 14px;
  box-shadow: 0 40px 80px -40px rgba(18, 19, 20, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.searchbar {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--monitor-2); border-radius: 11px; color: var(--osd); font-size: 1rem;
  white-space: nowrap; overflow: hidden;
}
.searchbar svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #8D9196; stroke-width: 2; stroke-linecap: round; }
.caret { width: 2px; height: 20px; margin-left: -8px; background: var(--rec); animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.frame { position: relative; margin-top: 12px; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; background: #000; }
.frame .shot { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease, filter .35s ease; }
.frame.searching .shot { opacity: 0.15; transform: scale(1.02); filter: blur(6px); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 22%, transparent 75%, rgba(0,0,0,0.45)); }
.osd { position: absolute; z-index: 1; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; color: var(--osd); text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,0.6); transition: opacity .3s; }
.frame.searching .osd { opacity: 0; }
.osd.cam { top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 8px; }
.osd.cam i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.osd.time { bottom: 16px; left: 18px; }
.corner { position: absolute; z-index: 1; width: 22px; height: 22px; border: 0 solid rgba(244, 242, 236, 0.9); transition: inset .45s ease, opacity .3s; }
.corner.tl { top: 10px; right: auto; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.frame.searching .corner { opacity: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button {
  font: 500 0.85rem/1 var(--sans); color: #C9CCD0; background: transparent;
  border: 1px solid #34373A; border-radius: 999px; padding: 9px 12px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.chips button:hover { color: var(--osd); border-color: #5A5E62; }
.chips button[aria-pressed="true"] { color: var(--monitor); background: var(--osd); border-color: var(--osd); }
.demo figcaption { margin-top: 12px; font: 400 0.75rem/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }

/* Year */
.year { padding-block: 96px; border-top: 1px solid var(--line); }
.chart { margin-top: 48px; display: grid; gap: 14px; }
.row { display: grid; gap: 10px; }
@media (min-width: 720px) { .row { grid-template-columns: 170px 1fr; align-items: center; gap: 20px; } }
.row-name { font: 500 0.8rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.cells i, .legend i { display: block; height: 44px; border-radius: 6px; }
.full { background: var(--ink); }
.smart { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 7px); box-shadow: inset 0 0 0 1px var(--ink); }
.gone { border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.axis { display: flex; justify-content: space-between; font: 400 0.75rem var(--mono); color: var(--ink-2); }
@media (min-width: 720px) { .axis { margin-left: 190px; } }
.legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.95rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 22px; height: 16px; border-radius: 4px; }

/* The erase: cells after month 1 empty out when the chart scrolls in */
.js .chart .cells i:not(:first-child) { transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease; }
.js .chart:not(.shown) .gone { background: var(--ink); border-color: transparent; }
.js .chart:not(.shown) .smart { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.js .chart .cells i:nth-child(2) { transition-delay: .05s; }
.js .chart .cells i:nth-child(3) { transition-delay: .1s; }
.js .chart .cells i:nth-child(4) { transition-delay: .15s; }
.js .chart .cells i:nth-child(5) { transition-delay: .2s; }
.js .chart .cells i:nth-child(6) { transition-delay: .25s; }
.js .chart .cells i:nth-child(7) { transition-delay: .3s; }
.js .chart .cells i:nth-child(8) { transition-delay: .35s; }
.js .chart .cells i:nth-child(9) { transition-delay: .4s; }
.js .chart .cells i:nth-child(10) { transition-delay: .45s; }
.js .chart .cells i:nth-child(11) { transition-delay: .5s; }
.js .chart .cells i:nth-child(12) { transition-delay: .55s; }

/* Points */
.points { display: grid; gap: 40px; padding-block: 88px 104px; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.point p:last-child { margin: 12px 0 0; color: var(--ink-2); max-width: 30ch; }

/* Bottom call to action */
.cta { background: var(--monitor); color: var(--osd); padding-block: 104px; }
.cta .lede { color: #A9ACB0; }
.cta .join input[type="email"] { color: var(--osd); border-color: #3A3D40; }
.cta .join input[type="email"]::placeholder { color: #A9ACB0; }
.cta .join input[type="email"]:hover, .cta .join input[type="email"]:focus { border-color: var(--osd); }
.cta .join button { background: var(--osd); color: var(--monitor); }
.cta .join .status.bad { color: #FF7A66; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 32px 40px; font-size: 0.9rem; color: var(--ink-2); }
.foot span { margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Plain pages: privacy, thanks, not found */
.page { padding-block: 40px 96px; }
.page > * { max-width: 640px; }
.page h1 { font-size: clamp(2.6rem, 4vw + 1rem, 4rem); }
.page p, .page li { color: var(--ink-2); }
.page h2 { font-size: 1.7rem; margin-top: 40px; }
.page .back { display: inline-block; margin-top: 32px; }

/* Load-in */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
.reveal:nth-child(5) { animation-delay: .32s; }
.demo.reveal { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
