:root {
  color-scheme: light dark;
  --brand: #2e56ff;
  --accent: var(--brand);
  --on-accent: #fff;
  --ink: #0b0b0c;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --line: #ececed;
  --line-strong: #d4d4d9;
  --paper: #fff;
  --page: #f7f7f8;
  --field: #fff;
  --soft: #fbfbfc;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #16a34a;
  --shadow: 0 1px 2px #0000000d, 0 12px 32px -12px #0000001f;
  --g-fill: #fff;
  --g-line: #747775;
  --g-ink: #1f1f1f;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --ink-3: #a1a1aa;
    --line: #27272a;
    --line-strong: #3f3f46;
    --paper: #18181b;
    --page: #0e0e10;
    --field: #111113;
    --soft: #1d1d21;
    --danger: #fda29b;
    --danger-soft: #55160c66;
    --shadow: 0 1px 2px #0006, 0 16px 40px -16px #000c;
    --g-fill: #131314;
    --g-line: #8e918f;
    --g-ink: #e3e3e3;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 8vh, 72px) 16px 24px;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.card {
  width: 100%;
  max-width: 408px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px 24px;
}

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.pair .icon,
.pair .mark {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex: none;
}

.pair .icon {
  object-fit: cover;
  box-shadow: 0 1px 2px #0000001f, 0 0 0 1px #0000000d;
}

.pair .mark {
  display: block;
  box-shadow: 0 1px 2px #00000024;
}

@media (prefers-color-scheme: dark) {
  .pair .mark {
    box-shadow: 0 0 0 1px #ffffff26;
  }
}

h1,
.lead,
.perks li {
  text-wrap: balance;
}

.pair .link {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

h1 {
  font: 600 24px/1.2 var(--display);
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 8px;
}

.lead {
  text-align: center;
  color: var(--ink-2);
  margin: 0;
}

.lead b {
  color: var(--ink);
  font-weight: 600;
}

.sub {
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 2px 0 0;
}

.perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 22px 0;
  padding: 12px 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-2);
}

.perks svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.google {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--g-fill);
  color: var(--g-ink);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  font: 500 14px/20px "Roboto", var(--sans);
  letter-spacing: 0.25px;
  cursor: pointer;
}

.google:hover {
  background: color-mix(in srgb, var(--g-fill) 92%, var(--g-ink));
}

.google svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

input:read-only {
  color: var(--ink-3);
  background: var(--soft);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.primary,
.secondary {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font: 500 15px var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}

.primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  box-shadow: 0 1px 2px #0000001a;
}

.primary:hover {
  filter: brightness(0.95);
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  text-decoration: none;
}

.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input:focus-visible {
  outline: none;
}

.textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}

.textlink:hover {
  text-decoration-color: currentColor;
}

.switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 14px 0 0;
}

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13.5px;
}

.note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 22px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px var(--display);
}

.who div {
  min-width: 0;
}

.who b,
.who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who small {
  color: var(--ink-3);
  font-size: 13px;
}

.stack > * + * {
  margin-top: 10px;
}

.done {
  text-align: center;
}

.bigcheck {
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.bigcheck svg {
  width: 32px;
  height: 32px;
}

.foot {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.legal {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 14px 0 0;
}

@media (max-width: 440px) {
  .card {
    padding: 26px 18px 20px;
  }

  h1 {
    font-size: 22px;
  }
}

/* The site shell: evlarsoft.com's masthead, dot grid and ownership tree. */
:root {
  --ink-4: #a1a1aa;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 34%, transparent);
  --dot: #09090b12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-4: #71717a;
    --dot: #ffffff14;
  }
}

body.site {
  display: block;
  padding: 0;
  background: var(--paper);
  overflow-x: clip;
}

.site .mast {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand .word {
  font: 700 17px var(--display);
  letter-spacing: -0.02em;
}

.brand .one {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  padding: 2px 8px;
}

.site .out {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site .out:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #0b0b0c, #26272c);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 1px 2px #00000024;
}

.mark b {
  font: 700 16px/1 var(--display);
  color: #fff;
}

.mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #2e56ff;
}

.mark.lg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mark.lg b {
  font-size: 21px;
}

.mark.lg::after {
  width: 7px;
  height: 7px;
  right: 6px;
  bottom: 6px;
}

@media (prefers-color-scheme: dark) {
  .mark {
    box-shadow: 0 0 0 1px #ffffff26;
  }
}

.stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) 24px clamp(40px, 7vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 420px);
  grid-template-areas: "pitch card" "tree card";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 32px;
  align-items: start;
}

.stage .grid {
  position: absolute;
  inset: 0 -20vw;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 70% at 22% 20%, #000 0%, transparent 72%);
}

.pitch,
.tree,
.card--auth {
  position: relative;
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.pitch {
  grid-area: pitch;
}

.tree {
  grid-area: tree;
  animation-delay: 0.18s;
}

.card--auth {
  grid-area: card;
  animation-delay: 0.1s;
}

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

.tag {
  font: 500 11.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

h1.big {
  font: 700 clamp(2.4rem, 5vw, 4rem) / 1.02 var(--display);
  letter-spacing: -0.04em;
  text-align: left;
  margin: 20px 0 0;
}

h1.big em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lede b {
  color: var(--ink);
  font-weight: 600;
}

.tree {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 1px #00000005, 0 24px 60px -30px #09090b47;
  overflow: hidden;
}

.tree-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.tree-bar .dots {
  display: flex;
  gap: 6px;
}

.tree-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.tree-bar .t,
.tree-bar .live {
  font: 10.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.tree-bar .t {
  margin-left: 4px;
}

.tree-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}

.tree-bar .live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.tree-body {
  padding: 20px 22px 18px;
}

.root {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}

.root .rn {
  font: 700 16px var(--display);
  letter-spacing: -0.02em;
}

.root .rl {
  margin-left: auto;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  padding: 3px 9px;
}

/* The pulse is the account reaching each branch; each state lands as it passes. */
.kids {
  position: relative;
  margin-left: 19px;
  border-left: 1.5px solid var(--line);
  padding-top: 4px;
  overflow: hidden;
}

.kids::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(transparent, var(--accent), transparent);
  animation: pulse 3.6s cubic-bezier(0.45, 0, 0.3, 1) 0.6s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    top: -48px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    top: 100%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.kid {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 12px 22px;
  border-radius: 8px;
}

.kid::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 0.75px);
  width: 14px;
  height: 1.5px;
  background: var(--line);
  animation: reach 0.4s ease forwards;
}

.kid:last-child::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: calc(50% + 0.75px);
  bottom: -8px;
  width: 1.5px;
  background: var(--paper);
}

.kid:nth-child(1)::before {
  animation-delay: 0.9s;
}
.kid:nth-child(2)::before {
  animation-delay: 1.5s;
}
.kid:nth-child(3)::before {
  animation-delay: 2.1s;
}

@keyframes reach {
  to {
    background: var(--accent);
  }
}

.kid--app {
  background: var(--accent-soft);
}

.ki {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ki img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ki:empty,
.ki--glyph {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.ki:empty::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.ki svg {
  width: 18px;
  height: 18px;
}

.kn {
  font: 600 15px var(--display);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kd {
  font: 11px var(--mono);
  color: var(--ink-3);
  margin-top: 3px;
}

.ks {
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--accent);
}

.ks span {
  opacity: 0.5;
}

.kid:nth-child(1) .ks {
  --at: 1s;
}
.kid:nth-child(2) .ks {
  --at: 1.6s;
}
.kid:nth-child(3) .ks {
  --at: 2.2s;
}

.ks::before {
  animation: spin 0.8s linear infinite, land 0.01s linear var(--at) forwards;
}

.ks span {
  animation: lit 0.3s ease var(--at) forwards;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes land {
  to {
    transform: none;
    border-color: transparent;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
  }
}

@keyframes lit {
  to {
    opacity: 1;
    color: var(--ink-2);
  }
}

.card--auth {
  max-width: none;
  padding: 30px 28px 24px;
  border-color: var(--line);
  box-shadow: 0 1px 1px #00000005, 0 24px 60px -34px #09090b3d;
}

.card--auth .pair {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.card--auth .pair .icon,
.card--auth .pair .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.card--auth h1,
.card--auth .lead {
  text-align: left;
}

.card--auth h1 {
  font-size: 22px;
}

.card--auth .lead {
  font-size: 14.5px;
  margin-bottom: 22px;
}

.card--auth .field span {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.12s, box-shadow 0.15s;
}

.site .primary::after {
  content: "→";
  transition: transform 0.15s;
}

.site .primary:hover:not(:disabled) {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px #00000066;
}

.site .primary:hover:not(:disabled)::after {
  transform: translateX(3px);
}

.site .avatar {
  background: var(--accent);
  color: var(--on-accent);
}

.site .fine {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font: 11px var(--mono);
  letter-spacing: 0.03em;
  color: var(--ink-4);
}

.site .fine a {
  text-decoration: none;
}

.site .fine a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pitch" "card" "tree";
    max-width: 560px;
    row-gap: 28px;
  }

  h1.big {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .tree {
    max-width: none;
  }
}

@media (max-width: 440px) {
  .stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site .mast {
    padding: 0 16px;
  }

  .site .out {
    display: none;
  }

  .kid {
    grid-template-columns: 32px 1fr auto;
    padding-left: 18px;
  }

  .ki {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pitch,
  .tree,
  .card--auth {
    animation: none;
    opacity: 1;
  }

  .kids::before {
    display: none;
  }

  .kid::before,
  .ks::before,
  .ks span {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
