/* Bricolage Grotesque (SIL Open Font License, see /fonts/OFL.txt), hosted with the site. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-vietnamese-standard-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2");
  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 {
  --paper: #f1f3ee;
  --ink: #1a2421;
  --muted: #5b6560;
  --rule: #cdd3cc;
  --ours: #1e6b66;
  --theirs: #3b3f8c;
  --field: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121715;
    --ink: #e6ebe7;
    --muted: #9aa49f;
    --rule: #2c3531;
    --ours: #5fb8ae;
    --theirs: #9ea2f0;
    --field: #1a201d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
}
main, footer { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ours); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.top { max-width: 46rem; margin: 0 auto; padding: 1.1rem 1rem 0; display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 800; letter-spacing: 0.04em; text-decoration: none; }
.signin { font-weight: 600; text-decoration: none; padding: 0.45rem 1rem; border: 1.5px solid var(--rule); border-radius: 999px; }
.signin:hover { border-color: var(--ink); }

/* ---------- sign up ---------- */
.cta { margin: 0 0 2.25rem; }
.btn-google {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--ink); color: var(--paper);
  font: 600 1.05rem/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  padding: 0.95rem 1.5rem 0.95rem 1rem; border-radius: 999px; text-decoration: none;
}
.btn-google .g { width: 1.6rem; height: 1.6rem; background: #fff; border-radius: 50%; padding: 0.25rem; }
.btn-google:hover { opacity: 0.9; }
.cta-note { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- hero: the name as the chain it describes ---------- */
.hero { padding: clamp(1.75rem, 6vw, 4rem) 0 2rem; }
.chain {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.glyph {
  display: block;
  font-size: clamp(4.5rem, 19vw, 10.5rem);
  line-height: 0.82;
  font-weight: 800;
  font-variation-settings: "wdth" 100, "opsz" 96;
  letter-spacing: -0.04em;
  background: var(--paper);
  padding-right: 0.08em;
}
.node.ours .glyph { color: var(--ours); }
.node.theirs .glyph { color: var(--theirs); }
.who {
  margin-top: 0.85rem;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  color: var(--muted);
  line-height: 1.25;
  padding-right: 0.5rem;
}
/* The thread from you to them: your side in teal, theirs in indigo, meeting between the assistants. */
.link {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(clamp(4.5rem, 19vw, 10.5rem) * 0.42);
  height: 3px;
  display: flex;
  z-index: 0;
}
.link i { flex: 1; transform-origin: left center; }
.link .ours { background: var(--ours); }
.link .theirs { background: var(--theirs); }

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.lede { margin: 0 0 2rem; max-width: 60ch; color: var(--ink); }

.connect label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.field {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--field);
  overflow: hidden;
  max-width: 34rem;
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  padding: 0.95rem 1rem;
}
.field input:focus-visible { outline: none; }
.field:focus-within { outline: 2px solid var(--ours); outline-offset: 3px; }
.field button {
  border: 0;
  border-left: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  padding: 0 1.4rem;
  cursor: pointer;
}
.field button:focus-visible { outline: 2px solid var(--ours); outline-offset: -5px; }
.hint { min-height: 1.6em; margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--ours); }

/* ---------- sections ---------- */
section + section { border-top: 1px solid var(--rule); padding: 2.75rem 0 1rem; }
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  margin: 0 0 1.25rem;
}
h3 { font-size: 1.0625rem; line-height: 1.35; margin: 0 0 0.35rem; font-weight: 650; }

.steps { margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.1rem;
  max-width: 64ch;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ours);
  font-variation-settings: "wdth" 75;
}

.where { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
details:last-child { border-bottom: 0; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 0.9rem; max-width: 62ch; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  word-break: break-all;
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.facts p { margin: 0; color: var(--muted); }

footer {
  width: calc(100% - 2rem);
  max-width: 44rem;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .facts { grid-template-columns: 1fr; }
}

/* One moment of motion: the thread draws from you to them, then the names appear. */
@media (prefers-reduced-motion: no-preference) {
  .link i { animation: draw 0.55s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .link .ours { animation-delay: 0.15s; }
  .link .theirs { animation-delay: 0.7s; }
  .who { animation: appear 0.4s ease-out both; }
  .node:nth-child(2) .who { animation-delay: 0.2s; }
  .node:nth-child(3) .who { animation-delay: 0.5s; }
  .node:nth-child(4) .who { animation-delay: 0.8s; }
  .node:nth-child(5) .who { animation-delay: 1.1s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- setup steps with a looping demo ---------- */
.howto { margin: 0 0 1rem; padding-left: 1.3rem; max-width: 62ch; }
.howto li { margin: 0 0 0.4rem; padding-left: 0.2rem; }
.howto a { font-weight: 600; color: var(--ours); }
.howto code { font-size: 0.9em; word-break: break-all; }
.copy-small {
  font: 600 0.8rem/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  border: 1.5px solid var(--rule); background: var(--field); color: var(--ink);
  border-radius: 999px; padding: 0.3rem 0.65rem; cursor: pointer; vertical-align: 0.1em;
}
.copy-small:hover { border-color: var(--ink); }
.small-note { font-size: 0.9rem; color: var(--muted); }

.demo {
  --d: 12s;
  container-type: inline-size;
  position: relative; width: 100%; max-width: 34rem; aspect-ratio: 16 / 9;
  margin: 0.5rem 0 0.75rem; border: 1.5px solid var(--rule); border-radius: 14px;
  overflow: hidden; background: #fafafa; color: #1b1b1b;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}
.d-bar { height: 11%; display: flex; align-items: center; gap: 1.2cqw; padding: 0 2.5cqw; background: #ececec; border-bottom: 1px solid #ddd; }
.d-bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #c9c9c9; }
.d-bar span { margin-left: 2cqw; flex: 1; background: #fff; border-radius: 99px; font-size: 2.4cqw; padding: 0.5cqw 2cqw; color: #555; }
.d-page { position: absolute; inset: 11% 0 0 0; }
.d-title { position: absolute; left: 6%; top: 12%; font-size: 5cqw; font-weight: 700; }
.d-sub { position: absolute; left: 6%; top: 30%; font-size: 2.3cqw; color: #666; }
.d-search { position: absolute; left: 6%; right: 6%; top: 44%; height: 12%; border: 1px solid #ddd; border-radius: 99px; background: #fff; }
.d-add { position: absolute; right: 5%; top: 9%; padding: 1.4cqw 3cqw; border-radius: 99px; background: #1f1f1f; color: #fff; font-size: 2.8cqw; font-weight: 600; animation: d-press var(--d) infinite; }
.d-add span { font-size: 2.2cqw; margin-left: 0.6cqw; }
.d-menu { position: absolute; right: 5%; top: 25%; width: 46%; padding: 1.2cqw; background: #fff; border: 1px solid #e3e3e3; border-radius: 2.4cqw; box-shadow: 0 4px 18px rgba(0,0,0,.12); font-size: 2.7cqw; opacity: 0; animation: d-menu var(--d) infinite; }
.d-menu div { padding: 1.6cqw 2cqw; border-radius: 1.6cqw; }
.d-pick { animation: d-pick var(--d) infinite; }
.d-shade { position: absolute; inset: -14% 0 0 0; background: rgba(0,0,0,.28); opacity: 0; animation: d-dialog var(--d) infinite; }
.d-dialog { position: absolute; left: 12%; right: 12%; top: 8%; bottom: 8%; background: #fff; border-radius: 3cqw; box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 4cqw 5cqw; opacity: 0; animation: d-dialog var(--d) infinite; }
.d-form { animation: d-form var(--d) infinite; }
.d-dtitle { font-size: 3.4cqw; font-weight: 700; margin-bottom: 3cqw; }
.d-label { font-size: 2.3cqw; color: #666; margin-bottom: 1cqw; }
.d-input { display: flex; align-items: center; border: 1.5px solid #1f6f68; border-radius: 1.6cqw; padding: 1.6cqw 2cqw; font: 2.5cqw ui-monospace, Menlo, monospace; }
.d-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: d-type var(--d) infinite; }
.d-caret { width: 0.25cqw; height: 3cqw; background: #1b1b1b; margin-left: 0.3cqw; animation: d-blink 0.8s step-end infinite; }
.d-buttons { display: flex; justify-content: flex-end; gap: 2cqw; margin-top: 5cqw; font-size: 2.6cqw; font-weight: 600; }
.d-cancel { padding: 1.4cqw 3cqw; color: #555; }
.d-ok { padding: 1.4cqw 3.4cqw; border-radius: 99px; background: #1f1f1f; color: #fff; animation: d-press2 var(--d) infinite; }
.d-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; text-align: center; padding: 0 6cqw; opacity: 0; animation: d-done var(--d) infinite; font-size: 2.6cqw; color: #555; }
.d-done strong { font-size: 3.6cqw; color: #1b1b1b; }
.d-check { width: 8cqw; height: 8cqw; border-radius: 50%; background: #1e6b66; color: #fff; display: grid; place-items: center; font-size: 4.4cqw; }
.d-cursor { position: absolute; width: 4.6cqw; height: 4.6cqw; left: 18%; top: 88%; animation: d-cursor var(--d) infinite; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.d-click { position: absolute; width: 6cqw; height: 6cqw; margin: -3cqw 0 0 -3cqw; border-radius: 50%; border: 0.5cqw solid #1e6b66; opacity: 0; animation: d-ripple var(--d) infinite; }

/* Timeline (12 s, all in step): move to Add, click, menu, pick, dialog, type, click Add, connected. */
@keyframes d-cursor {
  0%   { left: 18%; top: 88%; opacity: 0; }
  4%   { left: 18%; top: 88%; opacity: 1; }
  14%  { left: 86%; top: 15%; }
  24%  { left: 72%; top: 56%; }
  30%  { left: 72%; top: 56%; }
  36%  { left: 55%; top: 80%; }
  58%  { left: 55%; top: 80%; }
  64%  { left: 79%; top: 72%; }
  70%  { left: 79%; top: 72%; opacity: 1; }
  74%, 100% { left: 79%; top: 72%; opacity: 0; }
}
@keyframes d-ripple {
  0%, 15% { left: 88%; top: 18%; opacity: 0; transform: scale(.4); }
  16% { left: 88%; top: 18%; opacity: 1; transform: scale(.6); }
  20% { left: 88%; top: 18%; opacity: 0; transform: scale(1.4); }
  25.9% { left: 74%; top: 59%; opacity: 0; transform: scale(.4); }
  26% { left: 74%; top: 59%; opacity: 1; transform: scale(.6); }
  30% { left: 74%; top: 59%; opacity: 0; transform: scale(1.4); }
  65.9% { left: 81%; top: 75%; opacity: 0; transform: scale(.4); }
  66% { left: 81%; top: 75%; opacity: 1; transform: scale(.6); }
  70%, 100% { left: 81%; top: 75%; opacity: 0; transform: scale(1.4); }
}
@keyframes d-press { 0%, 15% { transform: scale(1); } 16% { transform: scale(.92); } 18%, 100% { transform: scale(1); } }
@keyframes d-press2 { 0%, 65% { transform: scale(1); } 66% { transform: scale(.9); } 68%, 100% { transform: scale(1); } }
@keyframes d-menu { 0%, 16% { opacity: 0; transform: translateY(-4px); } 18%, 27% { opacity: 1; transform: none; } 29%, 100% { opacity: 0; } }
@keyframes d-pick { 0%, 23% { background: transparent; } 24%, 30% { background: #ececec; } 31%, 100% { background: transparent; } }
@keyframes d-dialog { 0%, 28% { opacity: 0; transform: scale(.96); } 31%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes d-form { 0%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes d-done { 0%, 69% { opacity: 0; } 72%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes d-type { 0%, 36% { width: 0; animation-timing-function: steps(26, end); } 56%, 100% { width: 26ch; } }
@keyframes d-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .demo *, .demo { animation: none !important; }
  .d-dialog, .d-form, .d-shade { opacity: 1; }
  .d-typed { width: auto; }
  .d-cursor, .d-click, .d-menu, .d-done { display: none; }
}
